/* ============================================================
   StarPOS Lanka - Main Stylesheet
   Complete CSS Framework
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --success: #10b981;
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --info: #06b6d4;
  --light: #f8fafc;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --black: #000000;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

strong { font-weight: 700; }
small { font-size: 0.875rem; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--secondary);
  padding: 0;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo:hover { color: var(--white); }

.navbar-logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  color: var(--gray-300);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.25rem;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-success:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-dark);
  border-color: var(--danger-dark);
  color: var(--white);
}

.btn-warning {
  background: var(--warning);
  color: var(--white);
  border-color: var(--warning);
}

.btn-warning:hover {
  background: var(--warning-dark);
  border-color: var(--warning-dark);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--gray-800);
  border-color: var(--gray-200);
}

.btn-light:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.card-text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   Solution Cards
   ============================================================ */
.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.solution-card .solution-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.solution-card .solution-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 64, 175, 0.08);
  border-radius: var(--radius);
}

.solution-card .solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.solution-card .solution-text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.solution-card .solution-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.solution-card .solution-link:hover {
  color: var(--accent);
  gap: 0.6rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   Featured Product
   ============================================================ */
.featured-product {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.featured-product::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
}

.featured-product h2 {
  color: var(--white);
}

.featured-product p {
  color: rgba(255, 255, 255, 0.8);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-item {
  text-align: center;
}

.feature-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.feature-item h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   Pricing Tables
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  border: 2px solid var(--gray-100);
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.pricing-popular {
  border-color: var(--primary);
  position: relative;
}

.pricing-card.pricing-popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-body {
  padding: 1.5rem;
}

.pricing-body ul {
  text-align: left;
}

.pricing-body ul li {
  padding: 0.5rem 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-body ul li i {
  color: var(--success);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.pricing-body ul li.disabled {
  color: var(--gray-400);
  text-decoration: line-through;
}

.pricing-body ul li.disabled i {
  color: var(--gray-300);
}

.pricing-footer {
  padding: 1rem 1.5rem 2rem;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-control.is-valid {
  border-color: var(--success);
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--secondary);
  color: var(--gray-300);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 0.2rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

.section-dark {
  background: var(--secondary);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--gray-400);
}

.section-light {
  background: var(--gray-50);
}

.section-gradient {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
}

.section-gradient h2,
.section-gradient h3 {
  color: var(--white);
}

.section-gradient p {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.section-dark .stat-item h3,
.section-gradient .stat-item h3 {
  color: var(--white);
}

.stat-item p {
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================
   Industries Grid
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.industry-card i {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.industry-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================================
   Blog Cards
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card .blog-category {
  display: inline-block;
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  color: var(--gray-900);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card .blog-excerpt {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.blog-card .blog-meta a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   Customer Portal / Dashboard
   ============================================================ */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-menu {
  padding: 1rem 0;
  flex: 1;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.sidebar-menu a.active {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.05);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-menu a i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.dashboard-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}

.dashboard-header {
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-body {
  padding: 2rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.stat-card h4 {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
}

/* ============================================================
   Tables
   ============================================================ */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.table-striped tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.table tbody tr:hover {
  background: rgba(30, 64, 175, 0.02);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge-primary {
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-dark);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-dark);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-dark);
}

.badge-info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info);
}

/* ============================================================
   Admin Panel
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
}

.admin-sidebar {
  width: 260px;
  background: var(--secondary);
  color: var(--gray-300);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition);
}

.admin-sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-sidebar-header h2 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0;
}

.admin-sidebar-header span {
  color: var(--accent);
}

.admin-sidebar-menu {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.admin-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.admin-sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.admin-sidebar-menu a.active {
  color: var(--white);
  background: rgba(59, 130, 246, 0.15);
  border-left-color: var(--accent);
}

.admin-sidebar-menu a i {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-800);
}

.admin-sidebar-footer a {
  color: var(--gray-500);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-sidebar-footer a:hover {
  color: var(--danger);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  padding: 0.875rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-header-left h1 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-header .admin-toggle {
  display: none;
  font-size: 1.25rem;
  color: var(--gray-600);
  padding: 0.25rem;
}

.admin-content {
  padding: 2rem;
  flex: 1;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}

.user-dropdown-toggle:hover {
  background: var(--gray-100);
}

.user-dropdown-toggle img,
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 180px;
  padding: 0.5rem 0;
  display: none;
  z-index: 200;
}

.user-dropdown-menu.show {
  display: block;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.user-dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.user-dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 0.25rem 0;
}

/* ============================================================
   Flash Messages / Alerts
   ============================================================ */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-dark);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-dark);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.alert .alert-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1.1rem;
}

.alert .alert-close:hover {
  opacity: 1;
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: var(--white) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-light { background-color: var(--gray-50) !important; }
.bg-dark { background-color: var(--secondary) !important; }
.bg-white { background-color: var(--white) !important; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-normal { font-weight: 400; }
.fs-sm { font-size: 0.875rem; }
.fs-lg { font-size: 1.125rem; }

/* ============================================================
   Animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ============================================================
   Error Pages
   ============================================================ */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-page p {
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* ============================================================
   Responsive - Tablet (768px - 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }

  .hero h1 { font-size: 2.5rem; }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Responsive - Mobile (< 768px)
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container { padding: 0 1rem; }

  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--secondary);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .nav-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero h1 { font-size: 2rem; }

  .hero-actions {
    flex-direction: column;
  }

  /* Grids mobile */
  .solution-grid,
  .pricing-grid,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .section { padding: 3rem 0; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Dashboard mobile */
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-content {
    margin-left: 0;
  }

  .dashboard-body {
    padding: 1rem;
  }

  /* Admin mobile */
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-header .admin-toggle {
    display: block;
  }

  .admin-header {
    padding: 0.75rem 1rem;
  }

  /* Table mobile */
  .table th,
  .table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pricing-header { padding: 1.5rem 1rem 1rem; }
  .pricing-price { font-size: 2rem; }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .navbar, .footer, .sidebar, .admin-sidebar,
  .admin-header, .nav-toggle, .btn, .wa-float { display: none !important; }
  body { color: #000; background: #fff; }
  .dashboard-content, .admin-main { margin-left: 0; }
}

/* ============================================================
   Professional UI polish
   ============================================================ */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
}

body { letter-spacing: -0.01em; }

.brand-logo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  max-height: 48px;
}
.brand-logo {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.footer .brand-logo { height: 40px; }
.admin-sidebar-header .navbar-logo { color: #fff; }
.admin-sidebar-header .brand-logo { height: 34px; max-width: 160px; }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 0.9rem;
  margin-right: 0.15rem;
}
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 0.9rem;
  margin-right: 0.15rem;
}

.navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar .container { height: 76px; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-whatsapp {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  min-width: 38px;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.btn-whatsapp:hover { background: #15803d; color: #fff; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover { background: #fff; color: var(--secondary); }

.btn-text-light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: transparent;
  box-shadow: none;
}
.btn-text-light:hover { color: #fff; transform: none; box-shadow: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.85rem;
}
.eyebrow.dark { color: var(--primary); }

.hero {
  min-height: auto;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(59,130,246,0.35), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #0f172a 42%, #1e3a8a 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: none;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.4rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hero-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dbeafe;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.hero-stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.1rem;
  color: #fff;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.hero-stat-card i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.25);
  color: #93c5fd;
}
.hero-stat-card strong { display: block; font-size: 0.95rem; }
.hero-stat-card small { color: rgba(255,255,255,0.7); }

.solution-card {
  position: relative;
  padding: 1.5rem 1.25rem 1.3rem;
  border: 1px solid var(--gray-200);
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: #bfdbfe;
}
.solution-card h3 { font-size: 1.1rem; margin-top: 0.4rem; }
.link-arrow {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
}
.link-arrow:hover { color: var(--primary-dark); }

.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 3.2rem 0 2.6rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: rgba(255,255,255,0.78); margin: 0; }

.section-cta {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
}
.section-cta h2, .section-cta p { color: #fff; }
.section-cta p { opacity: 0.85; }

.stats-section { background: var(--gray-50); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.stat-label { color: var(--gray-500); font-weight: 600; font-size: 0.9rem; }

.featured-product.section .feature-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.featured-product.section .feature-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.featured-product.section .feature-card h4 { color: #fff; margin: 0; font-size: 0.95rem; }
.featured-product.section .feature-card i { color: #93c5fd; font-size: 1.1rem; }

.footer { padding-top: 3.5rem; }
.footer-brand p { color: var(--gray-400); max-width: 280px; }
.footer-tagline { font-size: 0.78rem; color: #93c5fd !important; }
.footer-bottom { gap: 1rem; }
.footer-bottom a { margin-left: 1rem; }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(34,197,94,0.4);
  z-index: 1100;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

.admin-layout { background: #f1f5f9; }
.admin-content { padding: 1.5rem 1.75rem; }
.admin-content h1 { font-size: 1.45rem; letter-spacing: -0.02em; }
.admin-sidebar { background: #0b1220; }
.admin-sidebar-menu a.active { background: #1d4ed8; }
.card { border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }

@media (max-width: 900px) {
  .hero-grid, .hero-panel { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: #bfdbfe;
}
.product-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--primary);
  font-size: 1.3rem;
}
.product-card-body { display: flex; flex-direction: column; flex: 1; }
.product-card-body .btn { margin-top: auto; align-self: flex-start; }

.contact-info-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-info-item i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item p { margin: 0.15rem 0 0; }

.content-block {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
}

.section .feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.25rem;
  color: inherit;
  display: block;
}
.section .feature-card:hover {
  border-color: #bfdbfe;
  color: inherit;
}

.form-control {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   About / Company Portfolio page enhancements
   ============================================================ */
.hero-stats-row { gap: 1rem; }
.hero-stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1rem 0.75rem;
  text-align: center;
}
.hero-stat-chip strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stat-chip span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.industry-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.industry-chip i { color: var(--primary); }
.industry-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .hero-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lead { font-size: 1.08rem; line-height: 1.7; opacity: 0.92; }

/* ---- Portfolio hero: two-column layout + animated blobs ---- */
.portfolio-hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; }
.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.portfolio-hero-copy .btn { margin-right: 0.6rem; }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.hero-blob-1 { width: 320px; height: 320px; background: #3b82f6; top: -80px; left: -60px; animation: blobFloat 9s ease-in-out infinite; }
.hero-blob-2 { width: 260px; height: 260px; background: #22c55e; bottom: -70px; right: 10%; animation: blobFloat 11s ease-in-out infinite reverse; }
.hero-blob-3 { width: 200px; height: 200px; background: #a855f7; top: 20%; right: -60px; animation: blobFloat 7.5s ease-in-out infinite; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-anim { animation: floatY 5s ease-in-out infinite; }

/* ---- Browser / dashboard mockup ---- */
.portfolio-hero-visual { position: relative; }
.browser-mockup {
  background: #0f172a;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.browser-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: #1e293b;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.browser-mockup-url {
  margin-left: 0.75rem;
  font-size: 0.72rem;
  color: var(--gray-400);
  background: rgba(255,255,255,0.06);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  flex: 1;
}
.browser-mockup-body { display: flex; background: #0b1220; min-height: 260px; }
.mockup-sidebar {
  width: 52px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mockup-sidebar-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.mockup-sidebar-icon.active { background: var(--primary-light); color: #fff; }
.mockup-main { flex: 1; padding: 1rem 1.1rem; }
.mockup-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.mockup-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mockup-stat-label { font-size: 0.62rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.04em; }
.mockup-stat-value { font-size: 0.92rem; font-weight: 800; color: #fff; }
.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 80px;
  margin-bottom: 1rem;
  padding: 0 0.2rem;
}
.mockup-bar {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  border-radius: 4px 4px 0 0;
  animation: growBar 1.4s ease-out;
}
@keyframes growBar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
.mockup-table { display: flex; flex-direction: column; gap: 0.4rem; }
.mockup-row { display: flex; gap: 0.5rem; }
.mockup-row span { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.mockup-row span:nth-child(1) { width: 30%; }
.mockup-row span:nth-child(2) { width: 45%; }
.mockup-row span:nth-child(3) { width: 15%; }

.floating-tech-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15,23,42,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  animation: floatY 4.5s ease-in-out infinite;
}
.icon-1 { top: -14px; right: 18%; animation-delay: 0.2s; }
.icon-2 { bottom: 8%; left: -18px; animation-delay: 1s; color: #f59e0b; }
.icon-3 { bottom: -16px; right: 22%; animation-delay: 1.8s; color: #ca8a04; }

@media (max-width: 900px) {
  .portfolio-hero-grid { grid-template-columns: 1fr; }
  .floating-tech-icon { display: none; }
}

/* ---- Tech stack marquee ---- */
.tech-marquee-section { background: var(--gray-900); padding: 1.75rem 0 1.5rem; overflow: hidden; }
.tech-marquee-label {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.tech-marquee { width: 100%; overflow: hidden; }
.tech-marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.tech-marquee:hover .tech-marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.tech-chip i { color: #60a5fa; }

/* ---- Process timeline ---- */
.process-section { position: relative; }
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  margin-top: 1rem;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-300) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-step-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.process-step:hover .process-step-icon {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--primary-light);
}
.process-step h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.85rem; color: var(--gray-500); }

@media (max-width: 900px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-timeline::before { display: none; }
}
@media (max-width: 560px) {
  .process-timeline { grid-template-columns: 1fr; }
}

/* ---- Stagger scroll reveals slightly for a livelier feel ---- */
.grid .fade-in:nth-child(2) { transition-delay: 0.05s; }
.grid .fade-in:nth-child(3) { transition-delay: 0.1s; }
.grid .fade-in:nth-child(4) { transition-delay: 0.15s; }

/* ============================================================
   Site-wide hero motion
   (animates existing hero components; no view-file changes
   required for the shared .page-hero component used across
   solutions/products/industries/pricing/blog/contact/demo/
   support/detail pages)
   ============================================================ */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .page-hero h1 { animation: heroFadeUp 0.7s ease both; }
.hero p, .page-hero p, .hero .eyebrow, .page-hero .eyebrow { animation: heroFadeUp 0.7s ease 0.1s both; }
.hero-buttons, .hero-actions, .page-hero .mt-4 { animation: heroFadeUp 0.7s ease 0.2s both; }

/* Give the Home hero's existing static circles some life */
.hero::before, .hero::after { filter: blur(50px); }
.hero::before { animation: blobFloat 10s ease-in-out infinite; }
.hero::after { animation: blobFloat 13s ease-in-out infinite reverse; }

.hero-panel .hero-stat-card { animation: floatY 5s ease-in-out infinite; }
.hero-panel .hero-stat-card:nth-child(1) { animation-delay: 0s; }
.hero-panel .hero-stat-card:nth-child(2) { animation-delay: 0.4s; }
.hero-panel .hero-stat-card:nth-child(3) { animation-delay: 0.8s; }
.hero-panel .hero-stat-card:nth-child(4) { animation-delay: 1.2s; }
.hero-stat-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-3px); transition: transform var(--transition-fast), border-color var(--transition-fast); }

/* Ambient animated blob-glow for every secondary page hero
   (About's richer .portfolio-hero already has its own visual
   treatment, so it's excluded here to avoid doubling up). */
.page-hero:not(.portfolio-hero) {
  position: relative;
  overflow: hidden;
}
.page-hero:not(.portfolio-hero)::before,
.page-hero:not(.portfolio-hero)::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.page-hero:not(.portfolio-hero)::before {
  width: 260px;
  height: 260px;
  background: #3b82f6;
  top: -70px;
  left: -50px;
  animation: blobFloat 10s ease-in-out infinite;
}
.page-hero:not(.portfolio-hero)::after {
  width: 220px;
  height: 220px;
  background: #22c55e;
  bottom: -60px;
  right: 6%;
  animation: blobFloat 12.5s ease-in-out infinite reverse;
}
.page-hero:not(.portfolio-hero) .container { position: relative; z-index: 1; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ============================================================
   Customer Portal: Auth pages (login / register / forgot / reset)
   ============================================================ */
.badge-secondary { background: rgba(100, 116, 139, 0.12); color: var(--gray-600); }

.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 12% 8%, rgba(59,130,246,0.25), transparent 55%),
    radial-gradient(600px 340px at 90% 90%, rgba(34,197,94,0.18), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #0f172a 45%, #1e3a8a 100%);
}
.auth-section .container { display: flex; justify-content: center; }

.auth-card {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.35);
  position: relative;
  animation: heroFadeUp 0.6s ease both;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--primary-light), var(--success), var(--primary-light));
  background-size: 200% 100%;
  animation: marqueeScroll 6s linear infinite;
}
.auth-card h2 {
  text-align: center;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}
.auth-card > p { text-align: center; color: var(--gray-500); margin-bottom: 1.5rem; }
.auth-card .form-group:last-of-type,
.auth-card .form-check { margin-bottom: 1.2rem; }

.auth-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

.required, .text-danger { color: var(--danger); }

@media (max-width: 560px) {
  .auth-card { padding: 2rem 1.4rem; border-radius: 16px; }
}

/* ============================================================
   Customer Portal: Dashboard shell (sidebar + header)
   ============================================================ */
.sidebar-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
}
.sidebar-header .navbar-logo,
.sidebar-header .brand-logo { color: #fff; }

.sidebar-menu a {
  border-radius: 0 24px 24px 0;
  margin: 0.1rem 0.6rem 0.1rem 0;
}
.sidebar-menu a.active {
  background: linear-gradient(90deg, rgba(30,64,175,0.1), rgba(30,64,175,0.02));
  box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar-menu a:hover { transform: translateX(2px); }

.dashboard-header {
  backdrop-filter: blur(8px);
}
.dashboard-header-right .btn-outline-primary i { margin-right: 0.3rem; }

/* Reveal dashboard content with a soft entrance, same feel as the
   public site, without requiring scroll (dashboard is above the fold) */
.dashboard-body > * { animation: heroFadeUp 0.5s ease both; }
.dashboard-body > *:nth-child(2) { animation-delay: 0.05s; }
.dashboard-body > *:nth-child(3) { animation-delay: 0.1s; }
.dashboard-body > *:nth-child(4) { animation-delay: 0.15s; }

/* ============================================================
   Customer Portal: Dashboard widgets
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.page-header h1 { margin-bottom: 0.2rem; font-size: 1.6rem; }
.page-header p { color: var(--gray-500); margin: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
}
.stats-grid .stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.stats-grid .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}
.stat-icon.bg-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.stat-icon.bg-success { background: linear-gradient(135deg, #34d399, var(--success)); }
.stat-icon.bg-warning { background: linear-gradient(135deg, #fbbf24, var(--warning)); }
.stat-icon.bg-info { background: linear-gradient(135deg, #22d3ee, var(--info)); }

.stat-info h3 { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.1rem; }
.stat-info p { font-size: 0.82rem; color: var(--gray-500); margin: 0; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h2 { font-size: 1.05rem; margin: 0; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray-500);
}
.empty-state i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 0.4rem; }
.empty-state p { margin: 0; }

/* Notifications */
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: rgba(30, 64, 175, 0.035); border-radius: 10px; }
.notification-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-content { flex: 1; }
.notification-content strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.notification-content p { margin: 0 0 0.2rem; font-size: 0.85rem; color: var(--gray-600); }
.notification-list-full .notification-item { align-items: center; }

/* Downloads */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.download-card .card-body { text-align: center; }
.download-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 14px;
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.download-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0.5rem 0 1rem;
}

/* Renew / Top-up */
.topup-info p { margin: 0 0 0.35rem; font-size: 0.9rem; }
.btn-renew { margin-top: 0.25rem; }
.renew-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.topup-total {
  background: rgba(16, 185, 129, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0;
  font-size: 1.05rem;
}

/* Tickets */
.ticket-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.ticket-info-item label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}
.ticket-info-item p { margin: 0; font-weight: 600; }

.ticket-replies { display: flex; flex-direction: column; gap: 1rem; }
.reply-item {
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--gray-100);
}
.reply-item.reply-staff { background: rgba(30, 64, 175, 0.04); border-color: rgba(30, 64, 175, 0.12); }
.reply-item.reply-customer { background: var(--gray-50); }
.reply-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.reply-date { margin-left: auto; font-size: 0.78rem; color: var(--gray-400); }
.reply-body { font-size: 0.92rem; color: var(--gray-700); line-height: 1.6; }
.reply-attachment { margin-top: 0.5rem; font-size: 0.85rem; }

.form-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* ============================================================
   Home Page — New Hero Section (matches supplied reference design)
   Scoped entirely under .home-hero-* so no other page/section
   that reuses the shared .hero class is affected.
   ============================================================ */

.home-hero {
  background: #ffffff;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* --- Left: copy --- */

.home-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  margin: 0 0 0.9rem;
}

.home-hero-heading {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 3.1rem;
  line-height: 1.12;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}

.home-hero-heading-dark { display: block; color: var(--gray-900); }
.home-hero-heading-blue { display: block; color: var(--primary); }

.home-hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.home-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.home-hero-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.55);
}
.home-hero-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.home-hero-btn-outline {
  background: #fff;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}
.home-hero-btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.home-hero-btn-outline i { color: var(--primary); font-size: 1.1rem; }

.home-hero-trust {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.75rem;
}

.home-hero-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.home-hero-trust-item strong { display: block; font-size: 0.92rem; color: var(--gray-900); }
.home-hero-trust-item small { display: block; font-size: 0.8rem; color: var(--gray-500); }

.home-hero-trust-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.home-hero-trust-icon-green  { background: #dcfce7; color: #16a34a; }
.home-hero-trust-icon-blue   { background: #dbeafe; color: #2563eb; }
.home-hero-trust-icon-indigo { background: #e0e7ff; color: #4f46e5; }
.home-hero-trust-icon-amber  { background: #fef3c7; color: #d97706; }

/* --- Right: device mockup panel --- */

.home-hero-visual {
  position: relative;
  min-height: 420px;
}

.home-hero-tag {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: 'Segoe Print', 'Bradley Hand', cursive;
  font-size: 1.15rem;
  color: var(--gray-700);
  transform: rotate(-6deg);
  z-index: 3;
}

.home-hero-monitor {
  position: relative;
  width: 92%;
  margin: 0 auto;
}

.home-hero-screen {
  background: #0f172a;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}

.home-hero-screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: #0b1327;
  border-radius: 8px 8px 0 0;
  font-size: 0.72rem;
  color: #cbd5e1;
}
.home-hero-screen-brand { color: #fff; font-weight: 700; }
.home-hero-screen-brand i { color: #3b82f6; margin-right: 0.3rem; }
.home-hero-screen-title { font-weight: 600; }

.home-hero-screen-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  background: #f1f5f9;
  border-radius: 0 0 8px 8px;
  min-height: 230px;
}

.home-hero-sidebar {
  background: #0b1327;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-radius: 0 0 0 8px;
}
.home-hero-sidebar span { color: #64748b; font-size: 0.8rem; }
.home-hero-sidebar span.active { color: #3b82f6; }

.home-hero-main { padding: 0.75rem; }

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.home-hero-stat {
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.home-hero-stat small { font-size: 0.62rem; color: var(--gray-500); }
.home-hero-stat strong { font-size: 0.82rem; color: var(--gray-900); }
.home-hero-stat em { font-style: normal; font-size: 0.6rem; color: #16a34a; }

.home-hero-stat-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #fff; margin-bottom: 0.15rem;
}
.stat-green  { background: #16a34a; }
.stat-blue   { background: #2563eb; }
.stat-amber  { background: #d97706; }
.stat-purple { background: #7c3aed; }

.home-hero-panels {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.5rem;
}

.home-hero-chart-card, .home-hero-top-products {
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  box-shadow: var(--shadow-sm);
}
.home-hero-chart-card span, .home-hero-top-products span {
  display: block; font-size: 0.66rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.3rem;
}
.home-hero-chart { width: 100%; height: 40px; }
.home-hero-chart polyline { fill: none; stroke: #2563eb; stroke-width: 2; }

.home-hero-top-products ol { list-style: none; margin: 0; padding: 0; }
.home-hero-top-products li {
  display: flex; justify-content: space-between;
  font-size: 0.62rem; color: var(--gray-600);
  padding: 0.12rem 0;
}
.home-hero-top-products li b { color: var(--gray-900); }

.home-hero-monitor-stand {
  width: 90px;
  height: 14px;
  background: #cbd5e1;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
}

.home-hero-tablet {
  position: absolute;
  right: 6%;
  bottom: -1rem;
  width: 150px;
  background: #0f172a;
  border-radius: 12px;
  padding: 7px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.home-hero-tablet-screen { background: #fff; border-radius: 6px; padding: 0.5rem; }
.home-hero-tablet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.home-hero-tablet-grid span {
  aspect-ratio: 1;
  border-radius: 5px;
  background: linear-gradient(135deg, #fde68a, #fca5a5);
}
.home-hero-tablet-grid span:nth-child(2) { background: linear-gradient(135deg, #bbf7d0, #86efac); }
.home-hero-tablet-grid span:nth-child(3) { background: linear-gradient(135deg, #bfdbfe, #93c5fd); }
.home-hero-tablet-grid span:nth-child(4) { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); }
.home-hero-tablet-grid span:nth-child(5) { background: linear-gradient(135deg, #fecaca, #fda4af); }
.home-hero-tablet-grid span:nth-child(6) { background: linear-gradient(135deg, #fed7aa, #fdba74); }
.home-hero-tablet-screen button {
  width: 100%; border: none; border-radius: 5px;
  background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 0.35rem 0; cursor: default;
}

.home-hero-phone {
  position: absolute;
  right: -0.5rem;
  bottom: -1.75rem;
  width: 92px;
  background: #0f172a;
  border-radius: 16px;
  padding: 7px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.home-hero-phone-screen {
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.home-hero-phone-screen i { color: var(--primary); font-size: 0.9rem; }
.home-hero-phone-screen strong { font-size: 0.62rem; color: var(--gray-900); }
.home-hero-phone-field {
  width: 100%; height: 12px; border-radius: 4px; background: var(--gray-100);
}
.home-hero-phone-screen button {
  width: 100%; border: none; border-radius: 5px;
  background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 0.3rem 0; margin-top: 0.15rem; cursor: default;
}

@media (max-width: 992px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-heading { font-size: 2.4rem; }
  .home-hero-visual { min-height: 380px; margin-top: 1rem; }
  .home-hero-trust { grid-template-columns: repeat(2, auto); row-gap: 1.25rem; }
}

@media (max-width: 560px) {
  .home-hero { padding: 3rem 0 2.5rem; }
  .home-hero-heading { font-size: 2rem; }
  .home-hero-buttons { flex-direction: column; align-items: stretch; }
  .home-hero-btn { justify-content: center; }
  .home-hero-tablet { display: none; }
  .home-hero-phone { right: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero * { transition: none !important; }
}
