/* ============================================
   CORPLIFY — Design System
   Professional Corporate Services | JB, Malaysia
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
  --primary:        #0F2C59;
  --primary-light:  #183F7A;
  --primary-dark:   #091E3F;
  --accent:         #C9A84C;
  --accent-light:   #E4C97A;
  --white:          #FFFFFF;
  --bg:             #F7F9FC;
  --surface:        #FFFFFF;
  --text:           #1A1F2E;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;
  --border:         #E2E8F0;
  --border-focus:   #C9A84C;
  --success:        #059669;
  --success-bg:     #ECFDF5;
  --error:          #DC2626;
  --error-bg:       #FEF2F2;
  --warning:        #D97706;
  --warning-bg:     #FFFBEB;

  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow:         0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.08);
  --shadow-accent:  0 4px 24px rgba(201,168,76,0.25);

  --transition:     0.2s ease;
  --transition-md:  0.3s ease;

  --max-width:      1200px;
  --nav-height:     72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--primary); background: var(--bg); }

.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-accent {
  background: rgba(201,168,76,0.12);
  color: var(--accent);
  border: 1px solid rgba(201,168,76,0.25);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
}
.badge-muted {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-primary {
  background: rgba(15,44,89,0.08);
  color: var(--primary);
  border: 1px solid rgba(15,44,89,0.18);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Brand logo image */
.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 32px;   /* nav default — matches original 36px mark height */
  flex-shrink: 0;
}
.brand-logo-sm {
  height: 26px;   /* sidebar / footer */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--bg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text);
  margin-left: auto;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.nav-mobile a:hover { background: var(--bg); }
.nav-mobile .nav-mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }
.nav-mobile .btn { justify-content: center; }

/* ── Services nav dropdown (desktop: hover panel; mobile: accordion) ── */
.nav-caret { transition: transform var(--transition); flex-shrink: 0; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 4px 20px;
  min-width: 560px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 150;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 4px 0 6px;
  padding: 0 10px;
}
.nav-dropdown-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-link:hover { background: var(--bg); color: var(--primary); }
.nav-dropdown-standalone { display: flex; flex-direction: column; gap: 2px; }

/* Mobile: Services becomes an expandable accordion instead of a hover panel */
.nav-mobile-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
}
.nav-mobile-group-toggle:hover { background: var(--bg); }
.nav-mobile-group-toggle.open .nav-caret { transform: rotate(180deg); }
.nav-mobile-group-body {
  display: none;
  flex-direction: column;
  padding-left: 12px;
}
.nav-mobile-group-body.open { display: flex; }
.nav-mobile-group-sub-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 16px 4px;
}
.nav-mobile-group-body a { padding: 9px 16px; font-size: 14px; }

@media (max-width: 900px) {
  .nav-dropdown-panel { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 100px;
  background: linear-gradient(160deg, #F0F4FA 0%, #FFFFFF 60%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,44,89,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(15,44,89,0.06);
  border: 1px solid rgba(15,44,89,0.12);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-trust-item .check {
  width: 18px; height: 18px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 10px;
  flex-shrink: 0;
}

/* Hero visual — dashboard mockup */
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-card-header {
  background: var(--primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-card-dots {
  display: flex;
  gap: 6px;
}
.hero-card-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.hero-card-dots span:first-child { background: #FF5F57; }
.hero-card-dots span:nth-child(2) { background: #FEBC2E; }
.hero-card-dots span:nth-child(3) { background: #28C840; }
.hero-card-title {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
}
.hero-card-body { padding: 20px; }

.app-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.app-status-item:last-child { border-bottom: none; }
.app-status-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.app-status-icon.done { background: var(--success-bg); }
.app-status-icon.progress { background: rgba(201,168,76,0.12); }
.app-status-icon.pending { background: var(--bg); }
.app-status-info { flex: 1; }
.app-status-label { font-size: 13px; font-weight: 600; color: var(--text); }
.app-status-sub { font-size: 12px; color: var(--text-muted); }
.app-status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.app-status-badge.done { background: var(--success-bg); color: var(--success); }
.app-status-badge.progress { background: rgba(201,168,76,0.12); color: var(--accent); }
.app-status-badge.pending { background: var(--bg); color: var(--text-muted); }

.hero-card-footer {
  padding: 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-card-footer-text { font-size: 12px; color: var(--text-muted); }
.hero-card-footer-text strong { color: var(--primary); }

.hero-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}
.hero-float-badge.top-left {
  top: -20px; left: -30px;
  animation-delay: 0s;
}
.hero-float-badge.bottom-right {
  bottom: -20px; right: -20px;
  animation-delay: 1.5s;
}
.hero-float-badge .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.hero-float-badge .icon.icon-accent { color: var(--accent); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  background: var(--primary);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 96px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 2-up variant, used on services/incorporation.php and services/secretarial.php
   category pages to list their sub-services */
.services-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .services-grid-2 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,44,89,0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-md);
  pointer-events: none; /* purely decorative — without this it sits on top of
    .service-card-actions in the stacking order (positioned z-index:auto
    paints above static in-flow content) and silently blocks every click on
    the Get Started / Find Out More buttons underneath. */
}
.service-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: rgba(15,44,89,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(201,168,76,0.12);
  color: var(--accent);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  margin-top: auto;
}
.service-card:hover .service-link { gap: 8px; }

.service-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  margin-bottom: 18px;
}
.service-price-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.service-price-note {
  font-size: 12px;
  color: var(--text-muted);
}
.service-card-actions {
  display: flex;
  gap: 10px;
}
.service-card-actions .btn { flex: 1; justify-content: center; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1B3E70 100%);
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.how-it-works .container { position: relative; z-index: 1; }
.how-it-works .section-tag { color: var(--accent); }
.how-it-works .section-title { color: var(--white); }
.how-it-works .section-subtitle { color: rgba(255,255,255,0.65); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 2px;
  background: linear-gradient(to right, var(--accent), rgba(201,168,76,0.2));
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 auto 20px;
  transition: all var(--transition-md);
  position: relative;
  z-index: 1;
}
.step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
  box-shadow: 0 0 0 6px rgba(15,44,89,0.08);
}
.how-it-works .step-number {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.5);
}
.how-it-works .step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.15);
}
.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.how-it-works .step-title { color: var(--white); }
.how-it-works .step-desc { color: rgba(255,255,255,0.65); }

/* ============================================
   NAME CHECKER TEASER
   ============================================ */
.name-checker-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.name-checker-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}

.name-checker-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.name-checker-content { color: var(--white); }
.name-checker-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.name-checker-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.name-checker-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}
.name-checker-features { margin-bottom: 32px; }
.name-checker-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  font-weight: 500;
}
.name-checker-feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.name-checker-preview {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  position: relative;
}
.name-checker-preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.name-checker-input-mock {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.name-checker-input-mock span {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}
.name-checker-blur-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, transparent 40%, rgba(15,44,89,0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.name-checker-lock {
  width: 100%;
  text-align: center;
  padding-bottom: 8px;
}
.name-checker-lock-icon {
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.name-checker-lock p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.name-checker-results-mock { filter: blur(6px); pointer-events: none; }
.result-mock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.result-mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.result-mock-dot.green { background: #10B981; }
.result-mock-dot.red { background: #EF4444; }
.result-mock-text { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: 96px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-md);
  position: relative;
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pricing-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-2px); }

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.pricing-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-card.featured .pricing-type { color: rgba(255,255,255,0.6); }

.pricing-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.pricing-card.featured .pricing-name { color: var(--white); }

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.6); }

.pricing-price {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-card.featured .pricing-price { border-bottom-color: rgba(255,255,255,0.12); }
.pricing-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -2px;
  line-height: 1;
}
.pricing-card.featured .pricing-amount { color: var(--accent); }
.pricing-currency {
  font-size: 20px;
  font-weight: 700;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}
.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.5); }

.pricing-features { margin-bottom: 28px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
}
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.85); }
.pricing-feature-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card.featured .pricing-feature-check {
  background: rgba(201,168,76,0.15);
  color: var(--accent);
}
.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}
.pricing-card.featured .pricing-note { color: rgba(255,255,255,0.4); }

/* ============================================
   CONTACT TEASER (homepage, between Pricing and FAQ)
   ============================================ */
.contact-teaser {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1B3E70 100%);
  position: relative;
  overflow: hidden;
}
.contact-teaser::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.contact-teaser .container { position: relative; z-index: 1; }
.contact-teaser .section-tag { color: var(--accent); }
.contact-teaser .section-title { color: var(--white); }
.contact-teaser .section-subtitle { color: rgba(255,255,255,0.65); }
.contact-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-teaser-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.contact-teaser-item:hover { border-color: rgba(201,168,76,0.4); background: rgba(255,255,255,0.09); }
.contact-teaser-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(201,168,76,0.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.contact-teaser-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.contact-teaser-value { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.contact-teaser-value a { color: var(--white); font-weight: 600; }
.contact-teaser-cta { text-align: center; }

@media (max-width: 900px) {
  .contact-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .contact-teaser-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 96px 0;
  background: var(--bg);
}
/* Help-center toolbar: search + category tabs */
.faq-toolbar {
  max-width: 800px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.faq-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 220px;
}
.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.faq-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.faq-search-input::placeholder { color: var(--text-light); }

.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.faq-tab {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.faq-tab:hover { border-color: var(--accent); color: var(--primary); }
.faq-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.faq-empty {
  max-width: 800px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.faq-empty a { color: var(--primary); font-weight: 600; }

.faq-see-all-wrap { max-width: 800px; margin: 20px auto 0; text-align: center; }

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(201,168,76,0.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: var(--primary); }
.faq-question-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.faq-category-tag {
  padding: 3px 10px;
  font-size: 10px;
  flex-shrink: 0;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1B3E70 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-banner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 56px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  padding: 64px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-mark {
  width: 32px; height: 32px;
  background: rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
}
.footer-logo-text { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.footer-contact-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.footer-social:hover { background: rgba(201,168,76,0.15); color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================
   AUTH PAGES (Login / Signup)
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}
.auth-brand { position: relative; z-index: 1; }
.auth-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-brand-mark {
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}
.auth-headline {
  position: relative;
  z-index: 1;
}
.auth-headline h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.auth-headline p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.auth-trust-list { position: relative; z-index: 1; }
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}
.auth-trust-item::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}
.auth-form-box {
  width: 100%;
  max-width: 420px;
}
.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.auth-form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.auth-form-subtitle a {
  font-weight: 700;
  color: var(--accent);
}
.auth-form-subtitle a:hover { text-decoration: underline; }

/* ============================================
   RECAPTCHA V3 — invisible, so hide Google's default
   floating badge (it sits bottom-right and collides with
   the chat launcher) and show the required disclosure
   text near each submit button instead, per Google's ToS.
   ============================================ */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-disclosure {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 0 16px;
}
.recaptcha-disclosure a { color: inherit; text-decoration: underline; }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: var(--error); margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,44,89,0.08);
}
.form-input::placeholder { color: var(--text-light); }
.form-input.error { border-color: var(--error); }
.form-input.success { border-color: var(--success); }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}
.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}
.form-footer a { color: var(--primary); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

.form-terms {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}
.form-terms a { color: var(--primary); }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--primary);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-mark {
  width: 32px; height: 32px;
  background: rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
}
.sidebar-brand-name { font-size: 17px; font-weight: 700; color: var(--white); }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  padding: 8px 8px 4px;
  margin-top: 12px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.sidebar-link.active { background: rgba(201,168,76,0.15); color: var(--accent); font-weight: 600; }
.sidebar-link .icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; flex: 1; overflow: hidden; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-email { font-size: 11px; color: rgba(255,255,255,0.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.sidebar-logout:hover { color: var(--error); }

.dashboard-main { background: var(--bg); }
.dashboard-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-size: 18px; font-weight: 700; color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-notification {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.topbar-notification:hover { background: var(--bg); }
.notification-dot {
  width: 8px; height: 8px;
  background: var(--error);
  border-radius: 50%;
  position: absolute;
  top: 6px; right: 6px;
  border: 2px solid var(--white);
}

/* ── Notification dropdown ── */
.notif-wrap { position: relative; }
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-mark-all {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 0;
}
.notif-mark-all:hover { color: var(--accent); }
.notif-mark-all:disabled { color: var(--text-muted); cursor: default; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--text-muted); }
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(201,168,76,0.06); }
.notif-item-message { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.notif-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif-item-time { font-size: 11.5px; color: var(--text-muted); }
.notif-item-view {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.notif-item-view:hover { color: var(--accent); }

.dashboard-content { padding: 32px; }

.dash-greeting {
  margin-bottom: 32px;
}
.dash-greeting h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.dash-greeting p { font-size: 14px; color: var(--text-muted); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.dash-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.dash-stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.dash-stat-value { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.dash-stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--primary); }
.card-body { padding: 20px 24px; }

/* Application progress tracker */
.progress-timeline { padding: 0; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.timeline-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.timeline-dot.done { background: var(--success-bg); color: var(--success); }
.timeline-dot.active { background: var(--primary); color: var(--accent); }
.timeline-dot.pending { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--border);
  margin: 4px auto 0;
}
.timeline-item:last-child .timeline-line { display: none; }
.timeline-body { flex: 1; padding-top: 4px; }
.timeline-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.timeline-desc { font-size: 13px; color: var(--text-muted); }
.timeline-date { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* Name Checker in dashboard */
.name-checker-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
}
.name-checker-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.name-checker-box p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.name-checker-form { display: flex; gap: 8px; }
.name-checker-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: background var(--transition);
}
.name-checker-form input::placeholder { color: rgba(255,255,255,0.4); }
.name-checker-form input:focus { background: rgba(255,255,255,0.18); }
.checker-result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.checker-result.available {
  background: rgba(5,150,105,0.2);
  color: #6EE7B7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checker-result.taken {
  background: rgba(220,38,38,0.2);
  color: #FCA5A5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checker-result.moderate {
  background: rgba(217,119,6,0.2);
  color: #FCD34D;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checker-proceed {
  margin-top: 10px;
  display: none;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid #A7F3D0; }
.flash-error { background: var(--error-bg); color: var(--error); border: 1px solid #FECACA; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner-dark {
  border-color: rgba(15,44,89,0.2);
  border-top-color: var(--primary);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; max-width: 480px; margin: 0 auto; }
  .hero-float-badge { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .name-checker-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dash-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: calc(var(--nav-height) + 48px); }

  /* Reduce 96px section padding to 64px on mobile */
  .services,
  .how-it-works,
  .name-checker-section,
  .pricing,
  .faq,
  .cta-banner { padding: 64px 0; }
  .cta-banner { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq-toolbar { flex-direction: column; align-items: stretch; }
  .faq-search { flex: none; min-width: 0; }
  .faq-tabs { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat { border-right: none; padding: 12px 0; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Dashboard mobile: show topbar, hide sidebar, show bottom nav */
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-content { padding: 20px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-main { padding-bottom: 72px; } /* space for mobile bottom nav */

  /* Mobile bottom nav (shown only on dashboard pages) */
  .mobile-bottom-nav {
    display: flex !important;
  }

  /* Legal pages: tighter vertical padding on mobile */
  .legal-wrap { padding: 40px 20px 60px; }
}

/* ============================================
   MOBILE BOTTOM NAV (dashboard pages only)
   ============================================ */
.mobile-bottom-nav {
  display: none; /* hidden by default; shown at ≤768px via media query above */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 200;
  height: 64px;
  align-items: stretch;
}
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  padding: 8px 4px;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active { color: var(--accent); }
.mobile-bottom-nav .mnav-icon { font-size: 20px; line-height: 1; }

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .cta-banner-actions { flex-direction: column; }
  .faq-tab { flex: 1; text-align: center; padding: 10px 8px; }
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform var(--transition), background var(--transition);
}
.chat-launcher:hover { background: var(--primary-light); transform: scale(1.06); }
.chat-launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: #EF4444;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.chat-launcher-badge.show { display: flex; }
.chat-launcher-icon, .chat-launcher-close {
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-launcher .chat-launcher-close { display: none; }
.chat-launcher.open .chat-launcher-icon { display: none; }
.chat-launcher.open .chat-launcher-close { display: flex; }

.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--transition-md), transform var(--transition-md);
  z-index: 998;
}
.chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chat-header-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; flex-shrink: 0; }
.chat-header-title { font-size: 14px; font-weight: 700; }
.chat-header-sub { font-size: 11px; color: rgba(255,255,255,0.65); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-msg.user { align-self: flex-end; background: var(--primary); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg.bot  { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.typing { align-self: flex-start; background: var(--white); border: 1px solid var(--border); color: var(--text-muted); font-style: italic; }
.chat-msg.staff {
  align-self: flex-start;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--primary);
  border-bottom-left-radius: 4px;
}
.chat-msg.staff .chat-msg-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chat-banner {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.chat-banner.connecting { background: var(--warning-bg); color: var(--warning); }
.chat-banner.connected  { background: var(--success-bg); color: var(--success); }

.chat-escalate {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 8px 14px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.chat-escalate:hover { opacity: 0.85; }

.chat-contact-form {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.chat-contact-form input {
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  color: var(--text);
}
.chat-contact-form input:focus { border-color: var(--primary); outline: none; }
.chat-contact-submit {
  margin-top: 2px;
  padding: 8px 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.chat-contact-submit:hover { background: var(--primary-light); }
.chat-contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-contact-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px;
  align-self: flex-start;
}
.chat-contact-skip:hover { color: var(--text); }

.chat-footer {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  background: var(--white);
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  resize: none;
  max-height: 90px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }
.chat-attach-btn, .chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-attach-btn { background: var(--bg); color: var(--text-muted); }
.chat-attach-btn:hover { background: var(--border); }
.chat-send-btn { background: var(--primary); color: var(--white); }
.chat-send-btn:hover { background: var(--primary-light); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-footer-note { padding: 0 14px 10px; font-size: 10.5px; color: var(--text-light); text-align: center; background: var(--white); }

@media (max-width: 480px) {
  .chat-widget { right: 16px; bottom: 88px; width: calc(100vw - 32px); }
  .chat-launcher { right: 16px; bottom: 16px; }
}

/* ── Floating WhatsApp button + mini popup (customer dashboard pages, bottom-right) ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-float:hover { background: #1EBE5A; transform: scale(1.06); }
@media (max-width: 768px) {
  /* Dashboard pages show a fixed bottom nav on mobile — sit above it, not on top of it */
  .whatsapp-float { bottom: 84px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-popup { bottom: 148px; right: 16px; }
}

.whatsapp-popup {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--transition-md), transform var(--transition-md);
  z-index: 899;
}
.whatsapp-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.whatsapp-popup-header {
  background: #25D366;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.whatsapp-popup-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.whatsapp-popup-title { font-size: 14px; font-weight: 700; }
.whatsapp-popup-sub { font-size: 11px; color: rgba(255,255,255,0.8); }
.whatsapp-popup-close {
  margin-left: auto; background: none; border: none; color: #fff;
  opacity: 0.85; cursor: pointer; display: flex; padding: 2px;
}
.whatsapp-popup-close:hover { opacity: 1; }
.whatsapp-popup-body {
  padding: 16px; font-size: 13.5px; line-height: 1.5; color: var(--text);
  background: var(--bg);
}
.whatsapp-popup-cta {
  display: block; text-align: center; padding: 12px 16px;
  background: #25D366; color: #fff; font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: background var(--transition);
}
.whatsapp-popup-cta:hover { background: #1EBE5A; }

/* ============================================
   SERVICE DETAIL PAGES (services/*.php)
   ============================================ */
.service-hero {
  background: var(--primary);
  padding: 110px 0 48px;
}
.service-hero-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.service-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  max-width: 720px;
}
.service-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px;
  max-width: 640px;
  line-height: 1.6;
}
.service-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.service-detail-wrap { max-width: 800px; margin: 0 auto; padding: 64px 24px 56px; }
.service-detail-section { margin-bottom: 68px; }
.service-detail-section:last-of-type { margin-bottom: 0; }
.service-detail-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
}
.service-detail-section p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin: 0 0 12px; }

/* Supporting image, one per section on services/*.php detail pages.
   Placeholder photography (picsum.photos) until real Corplify photos are
   supplied — swap the <img src> when available, keep the wrapper/overlay. */
.service-detail-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0 4px;
  box-shadow: var(--shadow-md);
}
.service-detail-image img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05) saturate(0.85);
}
.service-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,44,89,0.38) 0%, rgba(15,44,89,0.08) 55%, transparent 100%);
  pointer-events: none;
}
.service-detail-image-caption {
  position: absolute;
  left: 20px;
  bottom: 14px;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
}

.service-check-list { list-style: none; padding: 0; margin: 0; }
.service-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.service-check-list li svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.service-price-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.service-price-box .amount { font-size: 28px; font-weight: 800; color: var(--primary); }
.service-price-box .amount-note { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.service-final-cta {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  margin-top: 8px;
}
.service-final-cta h3 { color: var(--white); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.service-final-cta p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0 0 22px; }

/* ============================================
   ARTICLES / RESOURCES
   Hub page (articles.php) + individual article template
   (articles/*.php). Reuses .service-hero for the page/article
   header and .service-detail-section/.faq-grid/.service-final-cta
   for the body, FAQ, and closing CTA — this block only adds what's
   new: the hub card grid and article-specific typography.
   ============================================ */

/* Byline row shown under the h1 on an individual article page,
   sits inside the navy .service-hero so text stays light. */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 18px;
}
.article-meta span + span::before { content: '\00b7'; margin-right: 8px; color: rgba(255,255,255,0.35); }

/* Hub grid of article cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-md);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(201,168,76,0.12);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}
.article-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.article-card:hover .article-card-link { gap: 8px; }

/* Direct-answer lede — the opening paragraph on an article page,
   written to stand alone (good for AEO/AI-answer extraction) and
   styled to visually stand out from the body copy below it. */
.article-lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: rgba(201,168,76,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 8px;
}

/* Comparison / process tables inside article body copy */
.article-table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-table th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
}
.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.6;
}
.article-table tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}
