/* ==========================================
   StrainCorr Official Website — Design System
   ========================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:         #1B3A6B;
  --primary-light:   #2E5299;
  --primary-dark:    #0F2347;
  --accent:          #E8760A;
  --accent-light:    #F59332;
  --accent-dark:     #C4600A;
  --bg:              #FFFFFF;
  --bg-section:      #F5F7FA;
  --bg-dark:         #0D1B2E;
  --bg-card:         #FFFFFF;
  --text-primary:    #1A2332;
  --text-secondary:  #5A6A7E;
  --text-light:      #8A99AD;
  --border:          #DDE3EC;
  --border-light:    #EEF1F6;
  --success:         #1A7C47;
  --warning:         #D97706;
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:       0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl:       0 24px 64px rgba(0,0,0,0.16);
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --transition:      0.2s ease;
  --font-sans:       'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  --container:       1200px;
  --section-py:      96px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-section); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 18px; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-title.light { color: #fff; }
.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}
.section-subtitle.light { color: rgba(255,255,255,0.7); }
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,118,10,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--bg-section);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-sm); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}
.navbar-brand .brand-logo {
  width: 36px;
  height: 36px;
}
.brand-name { color: var(--primary); }
.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: block;
  line-height: 1;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--bg-section);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.lang-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}
.navbar-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero Section ── */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #F0F4FB 0%, #E8EEF7 50%, #F5F7FA 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,58,107,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,118,10,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(27,58,107,0.08);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid rgba(27,58,107,0.12);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title .highlight {
  color: var(--primary);
  position: relative;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-icon {
  width: 16px; height: 16px;
  color: var(--success);
}
.hero-visual {
  position: relative;
}
.hero-screenshot {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero-screenshot img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}
.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 2;
  min-width: 160px;
}
.hero-float-card.card-tl {
  top: -20px; left: -30px;
}
.hero-float-card.card-br {
  bottom: -20px; right: -30px;
}
.float-card-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.float-card-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}
.float-card-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 48px 0;
  background: var(--primary);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.stat-value .stat-unit { font-size: 22px; }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27,58,107,0.08), rgba(27,58,107,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: rgba(27,58,107,0.07);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* ── Screenshot Carousel ── */
.carousel-section { overflow: hidden; }
.carousel-wrapper {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 12px 0;
}
.carousel-slide {
  flex-shrink: 0;
  width: 780px;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 18px;
  color: var(--text-primary);
}
.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ── Use Cases ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}
.usecase-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.usecase-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}
.usecase-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.usecase-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}
.tag {
  padding: 4px 10px;
  background: var(--bg-section);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1E4080 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.8;
}
.footer-legal a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-badges {
  display: flex;
  gap: 12px;
}
.footer-badge {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

/* ── Page Hero ── */
.page-hero {
  padding: 120px 0 72px;
  background: linear-gradient(135deg, #F0F4FB 0%, #E8EEF7 100%);
  text-align: center;
}
.page-hero .page-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.page-hero .page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Features Page ── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-block:last-child { border-bottom: none; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-block-content {}
.feature-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-block-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}
.feature-block-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-block-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.feature-block-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-block-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.feature-block-img img { width: 100%; display: block; }

/* ── Pricing Page ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.08), var(--shadow-lg);
  transform: translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pricing-early-bird-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pricing-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}
.price-period {
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.pricing-feature .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}
.pricing-feature .cross {
  color: var(--text-light);
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th {
  background: var(--bg-section);
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.comparison-table th:not(:first-child) { text-align: center; }
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-section); }
.comparison-table .check-icon { color: var(--success); font-size: 16px; }
.comparison-table .dash { color: var(--border); }
.comparison-table .plan-header {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

/* ── Download Page ── */
.download-hero-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}
.download-hero-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.download-hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 440px;
  line-height: 1.6;
}
.download-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.download-meta span { display: flex; align-items: center; gap: 6px; }
.download-btn-area { flex-shrink: 0; text-align: center; }
.download-btn-area .btn { margin-bottom: 10px; display: block; }
.download-note { font-size: 12px; color: rgba(255,255,255,0.5); }

.sysreqs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sysreq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
}
.sysreq-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sysreq-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sysreq-card ul li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.sysreq-card ul li strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.install-step {
  text-align: center;
  padding: 28px 20px;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.version-table-wrap { overflow-x: auto; }
.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.version-table th {
  background: var(--bg-section);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.version-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}
.version-table tr:hover td { background: var(--bg-section); }
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.version-badge.latest { background: rgba(26,124,71,0.1); color: var(--success); }
.version-badge.stable { background: rgba(27,58,107,0.1); color: var(--primary); }

/* ── Docs Page ── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 0;
}
.docs-sidebar-title {
  padding: 0 20px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.docs-nav-item {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.docs-nav-item:hover { color: var(--primary); background: var(--bg-section); }
.docs-nav-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(27,58,107,0.04);
  font-weight: 600;
}
.docs-content {}
.docs-section { margin-bottom: 60px; }
.docs-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.docs-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.docs-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.docs-section ul, .docs-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.docs-section ul { list-style: disc; }
.docs-section ol { list-style: decimal; }
.docs-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}
.docs-section code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--primary);
}
.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.params-table th {
  background: var(--bg-section);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.params-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}
.params-table td code { font-size: 12px; }
.params-table tr:hover td { background: var(--bg-section); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-section); }
.faq-question.open { background: var(--bg-section); }
.faq-icon { font-size: 18px; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }

/* ── About Page ── */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tech-icon { font-size: 36px; margin-bottom: 14px; }
.tech-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.tech-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-icon { font-size: 36px; margin-bottom: 16px; }
.contact-type {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.contact-note {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary-color { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; }
.mobile-menu-inner {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-section);
  color: var(--primary);
}
.mobile-lang-toggle {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding: 0 4px;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hero-inner { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --section-py: 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .hero-float-card.card-tl { top: -10px; left: 0; }
  .hero-float-card.card-br { bottom: -10px; right: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: 1fr; }
  .feature-block { grid-template-columns: 1fr; gap: 40px; }
  .feature-block.reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .install-steps { grid-template-columns: repeat(2, 1fr); }
  .sysreqs-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: relative; top: 0; }
  .tech-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .download-hero-box { flex-direction: column; text-align: center; }
  .carousel-slide { width: 90vw; }
}

@media (max-width: 768px) {
  :root { --section-py: 48px; }
  .navbar-nav { display: none; }
  .navbar-actions .btn { display: none; }
  .navbar-actions .lang-toggle { display: none; }
  .navbar-mobile-toggle { display: flex; }
  .mobile-menu { display: block; pointer-events: none; }
  .mobile-menu.open { pointer-events: all; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: clamp(26px, 6vw, 38px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .install-steps { grid-template-columns: 1fr; }
  .tech-stack-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .download-hero-box { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCOUNT SYSTEM: Forms, Modals, Dashboard, Badges, License Box, Toast
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Auth Page Layout ───────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-section); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 80px 20px 40px; }
.auth-card {
  background: var(--bg-card); border-radius: var(--radius-xl); padding: 48px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.auth-logo img { height: 32px; }
.auth-logo-text { font-size: 20px; font-weight: 700; color: var(--primary); }
.auth-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { color: var(--accent); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-label .required { color: #C0392B; margin-left: 2px; }
.form-input {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: var(--font-sans);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text-primary); transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.form-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}
.form-input::placeholder { color: var(--text-light); }
.form-input.error { border-color: #C0392B; }
.form-error { font-size: 12px; color: #C0392B; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }

.form-alert {
  padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px;
  display: none;
}
.form-alert.visible { display: block; }
.form-alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FCA5A5; }
.form-alert-success { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }

.btn-block { width: 100%; justify-content: center; }
.btn-loading { opacity: 0.7; pointer-events: none; }

/* ── Beta Application Form ──────────────────────────────────────────────── */
.beta-form-card {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 48px; max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.apply-divider {
  display: flex; align-items: center; gap: 12px; margin: 24px 0 0;
  font-size: 13px; color: var(--text-secondary);
}
.apply-divider::before, .apply-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
@media (max-width: 640px) { .beta-form-card { padding: 28px 20px; } }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-card {
  background: var(--bg-card); border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 540px; position: relative; box-shadow: var(--shadow-xl);
  transform: translateY(20px); transition: transform 0.25s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--bg-section);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 18px; transition: background var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }

/* Modal step indicator */
.modal-steps { display: flex; align-items: center; margin-bottom: 28px; }
.modal-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light); font-weight: 500;
}
.modal-step.active { color: var(--primary); }
.modal-step.done { color: var(--success); }
.modal-step-num {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700;
  background: var(--border-light); color: var(--text-light); flex-shrink: 0;
}
.modal-step.active .modal-step-num { background: var(--primary); color: white; }
.modal-step.done .modal-step-num { background: var(--success); color: white; }
.modal-step-sep { flex: 1; height: 1px; background: var(--border-light); margin: 0 8px; }

/* Payment method radio cards */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.payment-method-card {
  border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all var(--transition);
}
.payment-method-card:hover { border-color: var(--primary); }
.payment-method-card.selected { border-color: var(--primary); background: rgba(27,58,107,0.04); }
.payment-method-icon { font-size: 28px; }
.payment-method-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.payment-method-card input[type="radio"] { display: none; }

/* QR code display */
/* ── Inquiry Modal ──────────────────────────────────────────────────────── */
.inquiry-contact-box {
  background: var(--bg-section); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px;
}
.inquiry-intro { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.inquiry-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.inquiry-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.inquiry-icon { font-size: 18px; width: 24px; flex-shrink: 0; }
.inquiry-note { font-size: 12px; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 0; }

/* ── Dashboard Layout ───────────────────────────────────────────────────── */
.dash-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-section); }
.dash-main { flex: 1; padding: 88px 0 60px; }
.dash-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.dash-sidebar {
  position: sticky; top: 104px; align-self: start;
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.dash-user-info { padding: 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 12px; }
.dash-user-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: white; margin-bottom: 10px;
}
.dash-user-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.dash-user-email { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
  text-decoration: none; border: none; background: none; width: 100%; text-align: left;
}
.dash-nav-item:hover { background: var(--bg-section); color: var(--text-primary); }
.dash-nav-item.active { background: rgba(27,58,107,0.08); color: var(--primary); font-weight: 600; }
.dash-nav-item svg { flex-shrink: 0; }

.dash-content { min-width: 0; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.dash-section-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }

/* Dashboard cards */
.dash-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.dash-card-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.dash-card-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.dash-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

/* ── Status Badges ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.status-badge::before { content:''; width:6px; height:6px; border-radius:50%; }
.badge-pending { background: #FFF7ED; color: #C2410C; }
.badge-pending::before { background: #F97316; }
.badge-paid { background: #F0FDF4; color: #166534; }
.badge-paid::before { background: #22C55E; }
.badge-cancelled { background: var(--bg-section); color: var(--text-secondary); }
.badge-cancelled::before { background: var(--text-light); }
.badge-issued { background: #EFF6FF; color: #1D4ED8; }
.badge-issued::before { background: #3B82F6; }
.badge-rejected { background: #FEF2F2; color: #B91C1C; }
.badge-rejected::before { background: #EF4444; }

/* ── Data Tables ────────────────────────────────────────────────────────── */
.data-table-wrap { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary); text-align: left;
  background: var(--bg-section); border-bottom: 1px solid var(--border-light);
}
.data-table td { padding: 14px 16px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border-light); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,0,0,0.015); }

/* ── License Key Box ────────────────────────────────────────────────────── */
.license-key-box {
  position: relative; background: var(--bg-section); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 48px 16px 16px; margin: 16px 0;
}
.license-key-text {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-primary);
  word-break: break-all; white-space: pre-wrap;
}
.license-key-copy {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.license-key-copy:hover { background: var(--primary); color: white; border-color: var(--primary); }
.license-key-copy svg { width: 14px; height: 14px; }

/* ── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 14px 18px;
  font-size: 14px; color: var(--text-primary); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--border); max-width: 360px;
  transform: translateX(120%); transition: transform 0.3s ease; pointer-events: all;
}
.toast.toast-visible { transform: translateX(0); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: #C0392B; }
.toast.toast-info { border-left-color: var(--primary); }

/* ── Navbar Auth Slot extras ────────────────────────────────────────────── */
.btn-ghost-danger {
  background: none; border: 1.5px solid transparent; color: var(--text-secondary);
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.btn-ghost-danger:hover { color: #C0392B; border-color: #C0392B; background: #FEF2F2; }
.nav-account-btn { display: flex; align-items: center; gap: 6px; }

/* ── Invoice special fields ─────────────────────────────────────────────── */
.special-only { display: none; }
.special-only.visible { display: block; }

/* ── Admin page ─────────────────────────────────────────────────────────── */
.admin-header { background: var(--bg-dark); color: white; padding: 16px 24px; display: flex; align-items: center; gap: 16px; }
.admin-header h1 { font-size: 18px; font-weight: 700; }
.admin-body { max-width: 1200px; margin: 32px auto; padding: 0 24px; }
.admin-tabs { display: flex; gap: 4px; background: var(--bg-section); border-radius: var(--radius-md); padding: 4px; margin-bottom: 24px; width: fit-content; }
.admin-tab { padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition); color: var(--text-secondary); border: none; background: none; }
.admin-tab.active { background: white; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ── Billing Toggle (pricing page) ─────────────────────────────────────── */
.billing-toggle {
  display: inline-flex; background: var(--bg-section); border-radius: var(--radius-full);
  padding: 4px; gap: 0; border: 1.5px solid var(--border);
}
.billing-btn {
  padding: 8px 24px; border-radius: var(--radius-full); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; background: transparent; color: var(--text-secondary);
  transition: all var(--transition); white-space: nowrap;
}
.billing-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-cards-grid { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .modal-card { padding: 28px 20px; }
}
