
  :root {
    --bg-primary: #0a0d14;
    --bg-secondary: #111622;
    --bg-tertiary: #182030;
    --bg-card: rgba(20, 26, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 52, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(238, 108, 56, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #ee6c38;
    --accent-hover: #ff7f4d;
    --accent-light: rgba(238, 108, 56, 0.12);
    --accent-border: rgba(238, 108, 56, 0.3);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --info: #38bdf8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.35);
    --shadow-accent: 0 8px 24px -4px rgba(238, 108, 56, 0.35);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  html {
    scroll-behavior: smooth;
    color-scheme: dark;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(238, 108, 56, 0.14), transparent 70%),
      radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.05), transparent 40%);
  }

  a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Header & Navbar */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 13, 20, 0.82);
    border-bottom: 1px solid var(--border-color);
  }

  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
  }

  .brand span {
    white-space: nowrap;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ee6c38, #ff8a50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(238, 108, 56, 0.35);
    overflow: hidden;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(238, 108, 56, 0.35);
    display: block;
    flex-shrink: 0;
  }

  .brand-logo svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
    word-break: keep-all;
    display: inline-block;
    flex-shrink: 0;
  }

  .nav-link:hover, .nav-link.active {
    color: #fff;
  }

  /* Navbar Dropdown (Compliance & Legal) */
  .nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .nav-dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle.active,
  .nav-item-dropdown:hover .nav-dropdown-toggle,
  .nav-item-dropdown.open .nav-dropdown-toggle {
    color: var(--accent);
  }

  .nav-dropdown-caret {
    font-size: 0.65rem;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
    color: currentColor;
  }

  .nav-item-dropdown:hover .nav-dropdown-caret,
  .nav-item-dropdown.open .nav-dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05);
    padding: 6px;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 3px;
    z-index: 250;
    margin: 0;
  }

  .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }

  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown.open .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
  }

  .lc-svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
  }

  .lc-svg-icon.fa-spin {
    animation: lc-spin 1s linear infinite;
  }

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

  .nav-dropdown-item i,
  .nav-dropdown-item .lc-svg-icon {
    color: #64748b;
    font-size: 0.9em;
    transition: color 0.15s ease;
  }

  .nav-dropdown-item:hover {
    color: var(--accent);
    background: #fff7ed;
  }

  .nav-dropdown-item:hover i,
  .nav-dropdown-item:hover .lc-svg-icon {
    color: var(--accent);
  }

  .nav-dropdown-item.active {
    color: var(--accent);
    background: rgba(238, 108, 56, 0.1);
    font-weight: 600;
  }

  .nav-dropdown-item.active i,
  .nav-dropdown-item.active .lc-svg-icon {
    color: var(--accent);
  }

  /* Dark theme fallback if body lacks .theme-light */
  body:not(.theme-light) .nav-dropdown-menu {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.55);
  }
  body:not(.theme-light) .nav-dropdown-item {
    color: var(--text-secondary);
  }
  body:not(.theme-light) .nav-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  body:not(.theme-light) .nav-dropdown-item.active {
    color: var(--accent);
    background: rgba(238, 108, 56, 0.18);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .lang-text-mobile {
    display: none;
  }

  .lang-text-desktop {
    display: inline;
  }

  .nav-auth-text-mobile {
    display: none;
  }

  .nav-auth-text-desktop {
    display: inline;
  }

  .btn-nav-auth {
    padding: 7px 13px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(238, 108, 56, 0.08);
    border: 1px solid rgba(238, 108, 56, 0.32);
    border-radius: var(--radius-sm);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .btn-nav-auth:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 108, 56, 0.25);
  }

  .nav-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(238, 108, 56, 0.08);
    border: 1px solid rgba(238, 108, 56, 0.28);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
  }

  .nav-user-badge:hover {
    border-color: rgba(238, 108, 56, 0.55);
  }

  .nav-user-name {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-user-caret {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
  }

  .nav-user-badge[aria-expanded="true"] .nav-user-caret {
    transform: rotate(180deg);
  }

  .nav-user-badge.official {
    background: #FFF7ED;
    border-color: #FDBA74;
    color: #C2410C;
  }

  .nav-user-menu {
    position: relative;
    display: inline-flex;
  }

  .nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.35);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
  }

  .nav-user-dropdown.open {
    display: flex;
  }

  .nav-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    color: #334155;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
  }

  .nav-user-item:hover {
    background: #FFF7ED;
    color: #EE6C38;
  }

  .nav-user-item.danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
  }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 34px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle:hover {
    border-color: var(--border-focus);
  }

  .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-secondary);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-cta-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    text-decoration: none;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8a50 100%);
    color: #fff;
    box-shadow: var(--shadow-accent);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -4px rgba(238, 108, 56, 0.55);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #ff9866 100%);
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .btn-lang {
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
  }

  .btn-lang:hover {
    color: #fff;
    border-color: var(--border-focus);
    background: var(--accent-light);
  }

  /* Badges */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent-border);
  }

  .badge-success {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
  }

  /* Typography */
  .gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #ff9b71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin-bottom: 48px;
    line-height: 1.6;
  }

  /* Cards */
  .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
  }

  .card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* Footer */
  .footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: #06080e;
    padding: 64px 0 36px;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
  }

  .footer-brand {
    max-width: 360px;
  }

  .footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
  }

  .footer-brand-desc {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
  }

  .footer-col h4,
  .footer-col-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
  }

  .footer-links a:hover {
    color: var(--accent);
    transform: translateX(2px);
  }

  .footer-info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .status-indicator-link {
    display: inline-flex;
    align-items: center;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    margin-right: 8px;
    display: inline-block;
  }

  .footer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 32px 0 24px;
  }

  .footer-bottom-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.86rem;
    color: var(--text-muted);
  }

  .footer-copy {
    color: var(--text-muted);
    font-size: 0.86rem;
  }

  .footer-quick-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-quick-links a {
    color: var(--text-secondary);
    font-size: 0.86rem;
  }

  .footer-quick-links a:hover {
    color: #fff;
  }

  .footer-sep {
    opacity: 0.35;
    font-size: 0.8rem;
  }

  .footer-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: all 0.2s ease;
  }

  .footer-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .footer-compliance-bar {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .compliance-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .compliance-item {
    color: var(--text-secondary);
  }

  .compliance-icp-link {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .compliance-icp-link:hover {
    color: var(--accent);
    text-decoration: underline;
  }

  /* Doc Footer (for /privacy, /terms, etc.) */
  .doc-footer {
    padding: 36px 0 28px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
    background: rgba(8, 11, 18, 0.96);
    font-size: 0.86rem;
    color: var(--text-muted);
  }

  .doc-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .doc-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .doc-footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
  }

  .doc-footer-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 10px;
    border-left: 1px solid var(--border-color);
  }

  .doc-footer-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .doc-footer-link {
    color: var(--text-secondary);
    font-size: 0.86rem;
    transition: color 0.2s ease;
  }

  .doc-footer-link:hover {
    color: #fff;
  }

  .doc-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
  }

  .doc-footer-compliance {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Real App Screenshots Carousel Slideshow */
  .phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
  }
  .phone-frame {
    width: 312px;
    max-width: 88vw;
    background: #0f172a;
    border: 8px solid #0f172a;
    border-radius: 48px;
    box-shadow:
      0 28px 70px -10px rgba(0, 0, 0, 0.5),
      0 12px 32px -6px rgba(238, 108, 56, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .phone-frame:hover {
    box-shadow:
      0 32px 80px -10px rgba(0, 0, 0, 0.6),
      0 16px 40px -6px rgba(238, 108, 56, 0.24),
      0 0 0 1px rgba(238, 108, 56, 0.35);
  }
  .phone-screen {
    background: #000000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1179 / 2556;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
  }
  .phone-dynamic-island {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 23px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  .phone-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .phone-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    pointer-events: none;
  }
  .phone-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
  }
  .phone-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
  }
  .phone-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    opacity: 0;
    transition: all 0.22s ease;
  }
  .phone-screen:hover .phone-nav-btn {
    opacity: 0.85;
  }
  .phone-nav-btn:hover {
    opacity: 1 !important;
    background: #ee6c38;
    border-color: #ee6c38;
    transform: translateY(-50%) scale(1.08);
  }
  .phone-nav-btn.prev {
    left: 10px;
  }
  .phone-nav-btn.next {
    right: 10px;
  }
  @media (max-width: 768px) {
    .phone-nav-btn {
      opacity: 0.7;
    }
  }
  .phone-screen-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 14px;
    margin-bottom: -4px;
    z-index: 12;
  }
  body:not(.theme-light) .phone-screen-dots {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .phone-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body:not(.theme-light) .phone-dot {
    background: rgba(255, 255, 255, 0.35);
  }
  .phone-dot:hover {
    background: #ee6c38;
    transform: scale(1.15);
  }
  .phone-dot.active {
    width: 22px;
    background: #ee6c38;
    box-shadow: 0 0 8px rgba(238, 108, 56, 0.5);
  }
  .stage-caption-box {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
  }
  .stage-caption-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
  }
  body:not(.theme-light) .stage-caption-pill {
    background: #1e2433;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .stage-caption-badge {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #ee6c38;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    transition: opacity 0.15s ease;
  }
  .stage-caption-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    transition: opacity 0.15s ease;
  }
  body:not(.theme-light) .stage-caption-title {
    color: #f1f5f9;
  }
  .stage-caption-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
  }
  .stage-caption-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
  }
  @keyframes pulseDot {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
  }

  /* Compact language switch on mid-width screens */
  @media (max-width: 1280px) {
    .lang-text-desktop {
      display: none;
    }
    .lang-text-mobile {
      display: inline;
    }
  }

  /* Tablet & Medium Screen responsiveness */
  @media (max-width: 1180px) {
    .container {
      padding: 0 16px;
    }
    .navbar {
      gap: 10px;
    }
    .brand {
      font-size: 1.05rem;
      gap: 8px;
    }
    .brand-logo-img {
      width: 34px;
      height: 34px;
    }
    .nav-links {
      gap: 10px;
    }
    .nav-link {
      font-size: 0.85rem;
    }
    .nav-actions {
      gap: 8px;
    }
    .lang-text-desktop {
      display: none;
    }
    .lang-text-mobile {
      display: inline;
    }
    .btn-lang {
      padding: 6px 10px;
      font-size: 0.8rem;
    }
    .btn-nav-auth {
      padding: 6px 10px;
      font-size: 0.8rem;
    }
    .nav-user-badge {
      padding: 4px 10px;
      font-size: 0.8rem;
      gap: 6px;
    }
    .nav-cta-btn {
      padding: 7px 13px !important;
      font-size: 0.84rem !important;
    }
  }

  /* Mobile & Small Tablet responsiveness */
  @media (max-width: 980px) {
    .nav-toggle {
      display: inline-flex;
    }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 8px 16px 14px;
      background: rgba(10, 13, 20, 0.97);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.55);
    }
    .header.nav-open .nav-links {
      display: flex;
    }
    .nav-links li {
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links li:last-child {
      border-bottom: none;
    }
    .nav-links .nav-link {
      display: block;
      padding: 14px 4px;
      font-size: 1rem;
    }
    .nav-links .nav-link.active {
      color: var(--accent);
    }
    .nav-item-dropdown {
      flex-direction: column;
      align-items: stretch;
      width: 100%;
    }
    .nav-item-dropdown .nav-dropdown-toggle {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 4px;
      font-size: 1rem;
    }
    .nav-item-dropdown .nav-dropdown-menu {
      position: static;
      transform: none;
      min-width: 100%;
      box-shadow: none;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 8px;
      margin: 0 0 10px 0;
      padding: 4px;
      display: none;
    }
    .nav-item-dropdown .nav-dropdown-menu::before {
      display: none;
    }
    .nav-item-dropdown:hover .nav-dropdown-menu {
      display: none;
    }
    .nav-item-dropdown.open .nav-dropdown-menu {
      display: flex;
    }
    .nav-dropdown-item {
      padding: 10px 12px;
      font-size: 0.94rem;
    }
    .header.nav-open .nav-toggle-bar:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }
    .header.nav-open .nav-toggle-bar:nth-child(2) {
      opacity: 0;
    }
    .header.nav-open .nav-toggle-bar:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 36px;
    }
    .footer-brand {
      grid-column: span 2;
      max-width: 100%;
    }
  }

  @media (max-width: 640px) {
    .container {
      padding: 0 16px;
    }
    .navbar {
      height: 60px;
      gap: 8px;
    }
    .brand {
      font-size: 1.02rem;
      gap: 8px;
      white-space: nowrap;
      min-width: 0;
      flex-shrink: 1;
    }
    .brand-logo-img {
      width: 30px;
      height: 30px;
    }
    .brand span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .nav-actions {
      gap: 6px;
      flex-shrink: 0;
    }
    .lang-text-desktop {
      display: none;
    }
    .lang-text-mobile {
      display: inline;
    }
    .btn-lang {
      padding: 5px 8px;
      font-size: 0.78rem;
      white-space: nowrap;
    }
    .nav-auth-text-desktop {
      display: none;
    }
    .nav-auth-text-mobile {
      display: inline;
    }
    .btn-nav-auth {
      padding: 5px 9px;
      font-size: 0.78rem;
      white-space: nowrap;
    }
    .nav-user-badge {
      padding: 4px 8px;
      font-size: 0.78rem;
      gap: 4px;
    }
    .nav-user-name {
      max-width: 68px;
    }
    .nav-cta-btn {
      padding: 6px 11px !important;
      font-size: 0.78rem !important;
      white-space: nowrap !important;
      flex-shrink: 0;
    }
    .footer {
      padding: 44px 0 24px;
    }
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 26px;
    }
    .footer-brand {
      grid-column: span 1;
    }
    .footer-brand-desc {
      font-size: 0.85rem;
      line-height: 1.58;
    }
    .footer-badges {
      gap: 6px;
      margin-top: 12px;
      flex-wrap: wrap;
    }
    .footer-badge {
      font-size: 0.72rem;
      padding: 4px 8px;
    }
  }

  @media (max-width: 680px) {
    .doc-footer-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 14px;
    }
    .doc-footer-nav {
      justify-content: center;
      gap: 12px;
    }
    .doc-footer-bottom {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
    }
  }

  @media (max-width: 580px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }
    .footer-brand {
      grid-column: span 1;
    }
    .footer-bottom-main {
      flex-direction: column;
      gap: 12px;
      text-align: center;
    }
    .footer-quick-links {
      justify-content: center;
    }
    .compliance-inner {
      flex-direction: column;
      gap: 6px;
      text-align: center;
    }
    .compliance-inner .footer-sep {
      display: none;
    }
    .section-title {
      font-size: 1.75rem;
    }
  }

  /* ========================================================= */
  /* Flutter-Styled Unified Authentication Modal               */
  /* ========================================================= */
  .auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
  }
  .auth-modal-overlay.open {
    display: flex;
  }
  .auth-modal-card {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding: 32px 28px;
    position: relative;
    animation: authModalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
  }
  @keyframes authModalSlideUp {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    font-size: 1.25rem;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
  }
  .auth-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
  }

  /* Brand Header */
  .auth-brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
  }
  .auth-brand-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF8A50 0%, #EE5326 100%);
    box-shadow: 0 10px 24px rgba(238, 83, 38, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
  }
  .auth-brand-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }
  .auth-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
  }
  .auth-brand-slogan {
    font-size: 0.82rem;
    color: #64748B;
  }

  /* Mode Switcher (Flutter-style Pill Tab) */
  .auth-mode-switcher {
    height: 44px;
    background: #F1F5F9;
    border-radius: 8px;
    padding: 3px;
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }
  .auth-mode-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
  }
  .auth-mode-tab.active {
    background: #FFFFFF;
    color: #EE6C38;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Error Banner */
  .auth-error-banner {
    background: #FEF2F2;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #DC2626;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  /* Input fields */
  .auth-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-form-input {
    width: 100%;
    padding: 11px 14px 11px 40px !important;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.92rem;
    outline: none;
    box-sizing: border-box;
    background: #F8FAFC;
    transition: all 0.15s;
    color: #0F172A;
  }
  .auth-form-input:focus {
    border-color: #EE6C38;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(238, 108, 56, 0.12);
  }
  .auth-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-phone-group {
    display: flex;
    width: 100%;
  }
  .auth-phone-prefix {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-right: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .auth-sms-btn {
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #EE6C38;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
  }
  .auth-sms-btn:hover:not(:disabled) {
    background: #FFF7ED;
    border-color: #FDBA74;
  }
  .auth-sms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #94A3B8;
  }
  .auth-btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #FF8A50 0%, #EE5326 100%);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 14px;
    box-shadow: 0 4px 16px rgba(238, 83, 38, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .auth-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(238, 83, 38, 0.45);
  }
  .auth-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  .auth-footer-links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
  }
  .auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    text-decoration: none;
  }
  .auth-link-btn:hover {
    text-decoration: underline;
  }

  @media print {
    body {
      background: #ffffff !important;
      color: #000000 !important;
      background-image: none !important;
    }
    .header, .footer, .btn-lang, .nav-actions, .mobile-action-bar {
      display: none !important;
    }
    .card {
      border: 1px solid #ccc !important;
      box-shadow: none !important;
      background: #fff !important;
      color: #000 !important;
    }
    .text-secondary, .text-muted {
      color: #444 !important;
    }
  }
