  :root {
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;
    --color-border-tertiary: #E5E7EB;
    --color-border-secondary: #D1D5DB;
    --color-background-primary: #FFFFFF;
    --color-background-secondary: #F9FAFB;
    --font-sans: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', Monaco, Consolas, monospace;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --primary-dark: #042C53;
    --primary: #185FA5;
    --primary-light: #378ADD;
    --primary-bg: #F0F6FC;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    line-height: 1.6;
    background: #F4F6FA;
    min-height: 100vh;
    font-size: 15px;
  }

  .alft-site { max-width: 1280px; margin: 0 auto; background: white; min-height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,0.04); }

  /* === TOP BAR === */
  .topbar {
    background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 8px 1.5rem;
    font-size: 12px; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
  }
  .topbar a { color: inherit; text-decoration: none; cursor: pointer; }
  .topbar-links { display: flex; gap: 12px; align-items: center; }
  .topbar-links span { opacity: 0.5; }

  /* === HEADER === */
  .header {
    background: white; padding: 1.25rem 1.5rem;
    border-bottom: 0.5px solid var(--color-border-tertiary);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px; position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  }
  .brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
  .brand-logo {
    width: 48px; height: 48px; border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .brand-logo::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
  }
  .brand-logo svg { position: relative; z-index: 1; }
  .brand-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--color-text-primary); }
  .brand-sub { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }

  .nav-menu { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
  .nav-link {
    padding: 9px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
    border: none; background: transparent; color: var(--color-text-secondary);
    border-radius: var(--border-radius-md); transition: all 0.15s ease;
    font-family: inherit; position: relative;
  }
  .nav-link:hover { color: var(--primary); background: var(--primary-bg); }
  .nav-link.active { color: var(--primary); }
  .nav-link.active::after {
    content: ''; position: absolute; bottom: -6px; left: 14px; right: 14px;
    height: 2px; background: var(--primary); border-radius: 2px;
  }
  .nav-cta {
    background: var(--primary); color: white; padding: 9px 18px; font-size: 14px; font-weight: 500;
    border: none; border-radius: var(--border-radius-md); cursor: pointer;
    transition: all 0.2s ease; font-family: inherit; margin-left: 8px;
  }
  .nav-cta:hover { background: #0C447C; transform: translateY(-1px); }

  /* === ACTIONS === */
  .btn-white {
    background: white; color: var(--primary-dark); padding: 12px 22px; font-size: 14px;
    font-weight: 500; border: none; border-radius: var(--border-radius-md); cursor: pointer;
    font-family: inherit; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s ease;
  }
  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
  .btn-ghost {
    background: rgba(255,255,255,0.1); color: white; padding: 12px 22px; font-size: 14px;
    font-weight: 500; border: 0.5px solid rgba(255,255,255,0.3); border-radius: var(--border-radius-md);
    cursor: pointer; font-family: inherit; backdrop-filter: blur(8px);
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease;
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.18); }

  /* === CONTENT === */
  .content-section { padding: 3.5rem 2rem; background: white; }
  .content-section.alt-bg { background: #F7F9FC; }
  .section-header { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
  .section-eyebrow {
    font-size: 12px; font-weight: 600; color: var(--primary); letter-spacing: 0.12em;
    margin-bottom: 12px; text-transform: uppercase;
  }
  .section-title {
    font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.75rem;
    line-height: 1.3;
  }
  .section-desc { font-size: 15px; color: var(--color-text-secondary); margin: 0; line-height: 1.7; }

  /* Feature grid */
  .feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px; max-width: 1100px; margin: 0 auto;
  }
  .f-card {
    background: white; padding: 1.75rem 1.5rem; border-radius: var(--border-radius-lg);
    border: 0.5px solid var(--color-border-tertiary); transition: all 0.25s ease;
    cursor: pointer; position: relative; overflow: hidden;
  }
  .f-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
  }
  .f-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(24,95,165,0.08); }
  .f-card:hover::before { transform: scaleX(1); }
  .f-icon {
    width: 48px; height: 48px; border-radius: var(--border-radius-md);
    background: var(--primary-bg); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; color: var(--primary);
  }
  .f-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
  .f-desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; margin: 0 0 14px; }
  .f-link { font-size: 13px; color: var(--primary); font-weight: 500; }

  /* === FOOTER === */
  .footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.75);
    padding: 3rem 2rem 2rem;
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem;
    max-width: 1100px; margin: 0 auto 2rem; padding-bottom: 2rem;
    border-bottom: 0.5px solid rgba(255,255,255,0.12);
  }
  .footer-col-title {
    font-size: 13px; font-weight: 600; color: white; margin: 0 0 1rem; letter-spacing: 0.05em;
  }
  .footer-link {
    display: block; font-size: 13px; color: rgba(255,255,255,0.7); padding: 4px 0;
    cursor: pointer; text-decoration: none;
  }
  .footer-link:hover { color: white; }
  .footer-bottom {
    max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between;
    font-size: 12px; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 12px;
  }

  /* === PAGE STATES === */
  .page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white; padding: 3rem 2rem;
  }
  .page-hero h1 { font-size: 30px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
  .page-hero p { font-size: 14px; opacity: 0.85; margin: 0; max-width: 640px; }

  /* === SHARED === */
  .alft-input {
    width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit;
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-md); background: white;
    color: var(--color-text-primary); transition: all 0.15s ease;
  }
  .alft-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,95,165,0.12); }

  .primary-btn {
    background: var(--primary); color: white; border: none; padding: 10px 20px;
    font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
    border-radius: var(--border-radius-md); transition: all 0.2s ease;
  }
  .primary-btn:hover { background: #0C447C; transform: translateY(-1px); }
  .primary-btn:active { transform: scale(0.98); }

  .secondary-btn {
    background: transparent; color: var(--color-text-secondary); padding: 9px 16px;
    font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
    border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md);
    transition: all 0.15s ease;
  }
  .secondary-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

  .badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
    font-size: 11px; font-weight: 500; border-radius: 100px;
  }
  .badge-verified { background: #E1F5EE; color: #0F6E56; }
  .badge-pending { background: #FAEEDA; color: #854F0B; }
  .badge-expired { background: #FCEBEB; color: #A32D2D; }

  .m-card {
    background: white; padding: 1.25rem 1.5rem; border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg); transition: all 0.2s ease;
  }
  .m-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(24,95,165,0.06); }

  .stat-card-alt {
    background: white; padding: 1.25rem; border-radius: var(--border-radius-lg);
    border: 0.5px solid var(--color-border-tertiary);
  }
  .stat-num-alt { font-size: 28px; font-weight: 600; color: var(--primary-dark); letter-spacing: -0.02em; line-height: 1.1; }
  .stat-label-alt { font-size: 12px; color: var(--color-text-secondary); margin-top: 4px; }

  .modal-backdrop {
    position: fixed; inset: 0; background: rgba(4,44,83,0.65); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 100;
  }
  .modal-card {
    background: white; border-radius: var(--border-radius-lg); padding: 2rem;
    max-width: 500px; width: 100%; animation: slideUp 0.3s ease;
    max-height: 90vh; overflow-y: auto;
  }
  .qr-box {
    width: 180px; height: 180px; background: white; padding: 10px;
    border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md);
    display: flex; align-items: center; justify-content: center;
  }
  .tab-btn {
    padding: 12px 18px; font-size: 14px; cursor: pointer; background: transparent;
    border: none; color: var(--color-text-secondary); border-bottom: 2px solid transparent;
    font-family: inherit; font-weight: 500; transition: all 0.15s ease;
  }
  .tab-btn:hover { color: var(--primary); }
  .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

  .table-row {
    display: grid; padding: 14px; border-bottom: 0.5px solid var(--color-border-tertiary);
    align-items: center; font-size: 13px;
  }
  .table-head {
    background: #F7F9FC; font-weight: 600; font-size: 11px;
    color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.08em;
  }
  .progress-bar { height: 6px; background: var(--primary-bg); border-radius: 3px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width 0.6s ease; }

  .notif-dot {
    width: 7px; height: 7px; background: #E24B4A; border-radius: 50%;
    display: inline-block; margin-left: 4px; vertical-align: middle;
  }

  .fade-in { animation: slideUp 0.4s ease; }

  @media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 28px; }
    .section-title { font-size: 22px; }
    .content-section { padding: 2.5rem 1.25rem; }
    .hero { padding: 3rem 1.25rem; }
    .nav-menu { width: 100%; justify-content: flex-start; overflow-x: auto; }
  }
  @media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header { padding: 1rem; }
    .hero-stat { padding: 8px; }
  }
