    @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/Inter-Variable.woff2") format("woff2-variations"), url("/assets/fonts/Inter-Variable.woff2") format("woff2"); }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { touch-action: manipulation; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #0F1419;
      color: #E7E9EA;
      line-height: 1.5;
      min-height: 100vh;
      overscroll-behavior: contain;
      -webkit-font-smoothing: antialiased;
    }
    a { color: #1D9BF0; text-decoration: none; }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    /* ===== Top Bar ===== */
    .topbar {
      position: sticky; top: 0; z-index: 50;
      background: rgba(15, 20, 25, 0.88);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid #2F3336;
      padding: 10px 16px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .topbar-logo {
      display: flex; align-items: center; gap: 8px;
      font-size: 1.05rem; font-weight: 700; color: #E7E9EA;
    }
    .topbar-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
    .topbar-right { display: flex; align-items: center; gap: 4px; }

    /* Language button pill */
    .lang-btn {
      display: flex; align-items: center; gap: 6px;
      height: 40px; padding: 0 12px 0 10px;
      border-radius: 20px;
      background: rgba(29, 155, 240, 0.06);
      border: 1px solid #2F3336;
      color: #E7E9EA;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.82rem;
      font-weight: 600;
      transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
      -webkit-tap-highlight-color: transparent;
    }
    .lang-btn:hover { background: rgba(29, 155, 240, 0.12); border-color: rgba(29, 155, 240, 0.3); }
    .lang-btn-flag { font-size: 1.15rem; line-height: 1; }
    .lang-btn-chev { width: 12px; height: 12px; color: #8B98A5; transition: transform 0.25s; margin-left: -2px; }
    .lang-wrap.open .lang-btn-chev { transform: rotate(180deg); }
    .lang-wrap.open .lang-btn { background: rgba(29, 155, 240, 0.14); border-color: rgba(29, 155, 240, 0.4); }
    .lang-wrap { position: relative; }

    .lang-dd {
      display: none;
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: rgba(22, 28, 35, 0.96);
      backdrop-filter: blur(24px) saturate(1.4);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px;
      min-width: 240px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 6px 20px rgba(0,0,0,0.3);
      z-index: 100;
      padding: 6px;
    }
    .lang-dd.open { display: block; animation: lang-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
    @keyframes lang-in {
      from { opacity: 0; transform: scale(0.92) translateY(-6px); }
      to   { opacity: 1; transform: scale(1) translateY(0); }
    }
    .lang-dd a {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; color: #E7E9EA; font-size: 0.88rem; font-weight: 500;
      border-radius: 12px; text-decoration: none;
      transition: background 0.15s; min-height: 44px;
    }
    .lang-dd a:hover { background: rgba(29, 155, 240, 0.08); }
    .lang-dd a.active { background: rgba(29, 155, 240, 0.12); }
    .lang-dd-flag { font-size: 1.5rem; width: 28px; text-align: center; }
    .lang-dd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
    .lang-dd-native { font-weight: 600; color: #E7E9EA; line-height: 1.2; }
    .lang-dd-en { font-size: 0.7rem; color: #8B98A5; line-height: 1.2; }

    @media (max-width: 540px) {
      .lang-wrap .lang-dd { display: none !important; }
    }

    /* ===== Bottom Bar (floating island) ===== */
    .bottombar {
      display: flex;
      position: fixed;
      bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 50;
      background: rgba(22, 28, 35, 0.88);
      backdrop-filter: blur(24px) saturate(1.4);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 28px;
      padding: 6px;
      gap: 2px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
      animation: bb-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    }
    @keyframes bb-in {
      from { opacity: 0; transform: translateX(-50%) translateY(20px); }
      to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    @media (min-width: 768px) { .bottombar { display: none; } }

    .btab {
      position: relative;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 2px;
      padding: 10px 22px;
      min-width: 70px; min-height: 52px;
      border-radius: 22px;
      color: #7A8794;
      font-size: 0.68rem; font-weight: 600;
      text-decoration: none; -webkit-tap-highlight-color: transparent;
      transition: color 0.25s, background 0.25s, transform 0.15s;
    }
    .btab svg { width: 22px; height: 22px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .btab.on {
      color: #1D9BF0;
      background: linear-gradient(135deg, rgba(29, 155, 240, 0.18), rgba(29, 155, 240, 0.08));
      box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.2);
    }
    .btab.on svg { transform: translateY(-1px) scale(1.06); }
    .btab:active { transform: scale(0.92); }
    .btab.on::after {
      content: '';
      position: absolute; bottom: 4px; left: 50%;
      width: 4px; height: 4px;
      border-radius: 50%;
      background: #1D9BF0;
      transform: translateX(-50%);
      box-shadow: 0 0 8px rgba(29, 155, 240, 0.8);
    }
    @media (max-width: 767px) { body { padding-bottom: 88px; } }

    /* Accent bar */
    .accent-bar {
      height: 3px;
      background: linear-gradient(90deg, #1D9BF0, #2DB87D, #1D9BF0);
      background-size: 200% 100%;
      animation: gradient-shift 3s ease infinite;
    }
    @keyframes gradient-shift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    /* ===== Content ===== */
    .content {
      max-width: 600px;
      margin: 0 auto;
      padding: 20px 16px 32px;
    }

    .back-link {
      display: inline-flex; align-items: center; gap: 6px;
      color: #8B98A5;
      font-size: 0.85rem; font-weight: 600;
      padding: 8px 0 14px;
      transition: color 0.15s;
    }
    .back-link:hover { color: #1D9BF0; }
    .back-link svg { width: 14px; height: 14px; }

    /* ===== Hero Card ===== */
    .hero-card {
      background: linear-gradient(180deg, rgba(29,155,240,0.08) 0%, #1A1F24 50%);
      border: 1px solid rgba(29, 155, 240, 0.25);
      border-radius: 24px;
      padding: 28px 24px;
      margin-bottom: 16px;
      text-align: center;
      position: relative;
      overflow: hidden;
      animation: fade-up 0.4s ease-out;
    }
    @keyframes fade-up {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .hero-card::before {
      content: '';
      position: absolute;
      top: -40px; left: 50%;
      width: 200px; height: 200px;
      background: radial-gradient(circle, rgba(29,155,240,0.15), transparent 70%);
      transform: translateX(-50%);
      pointer-events: none;
    }
    .hero-flag {
      font-size: 4rem;
      line-height: 1;
      margin-bottom: 14px;
      display: block;
      position: relative;
    }
    .hero-location {
      font-size: 1.35rem;
      font-weight: 800;
      color: #E7E9EA;
      margin-bottom: 4px;
      letter-spacing: -0.02em;
      position: relative;
    }
    .hero-country {
      font-size: 0.85rem;
      color: #8B98A5;
      font-weight: 500;
      margin-bottom: 16px;
      position: relative;
    }
    .hero-status {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 700;
      position: relative;
    }
    .hero-status.online {
      background: rgba(45,184,125,0.12);
      color: #2DB87D;
      border: 1px solid rgba(45,184,125,0.25);
    }
    .hero-status.offline {
      background: rgba(244,33,46,0.12);
      color: #F4212E;
      border: 1px solid rgba(244,33,46,0.25);
    }
    .hero-status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 8px currentColor;
      animation: pulse 2s infinite;
    }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

    /* ===== Stats Grid ===== */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
    .stat-card {
      background: #1A1F24;
      border: 1px solid #2F3336;
      border-radius: 16px;
      padding: 14px 12px;
      text-align: center;
    }
    .stat-card-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #8B98A5;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .stat-card-value {
      font-size: 1.3rem;
      font-weight: 800;
      color: #E7E9EA;
      letter-spacing: -0.02em;
      line-height: 1.1;
    }
    .stat-card-sub {
      font-size: 0.68rem;
      color: #7A8A94;
      margin-top: 2px;
    }
    .ping-good { color: #2DB87D; }
    .ping-mid { color: #F5A623; }
    .ping-bad { color: #F4212E; }

    /* ===== Big Connect Button ===== */
    .btn-connect-big {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      min-height: 62px;
      padding: 18px;
      background: linear-gradient(135deg, #1D9BF0, #1A8CD8);
      color: #fff;
      border-radius: 20px;
      font-size: 1.1rem;
      font-weight: 800;
      text-decoration: none;
      box-shadow: 0 8px 24px rgba(29,155,240,0.35), 0 2px 8px rgba(29,155,240,0.2);
      transition: all 0.15s;
      letter-spacing: -0.01em;
      margin-bottom: 12px;
      border: none;
      font-family: inherit;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .btn-connect-big:hover {
      box-shadow: 0 12px 32px rgba(29,155,240,0.45), 0 4px 12px rgba(29,155,240,0.25);
      transform: translateY(-2px);
      color: #fff;
    }
    .btn-connect-big:active { transform: scale(0.98); }
    .btn-connect-big svg { width: 22px; height: 22px; flex-shrink: 0; }
    .btn-connect-big.connecting { pointer-events: none; }
    .btn-connect-big.connecting svg { display: none; }
    .btn-connect-big.connecting::before {
      content: '';
      width: 20px; height: 20px;
      border: 3px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Type + action row */
    .quick-actions {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
    }
    .qa-btn {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px;
      background: rgba(29,155,240,0.06);
      border: 1px solid #2F3336;
      border-radius: 16px;
      color: #E7E9EA;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      min-height: 48px;
      transition: all 0.15s;
    }
    .qa-btn:hover { background: rgba(29,155,240,0.1); border-color: rgba(29,155,240,0.3); }
    .qa-btn:active { transform: scale(0.97); }
    .qa-btn svg { width: 15px; height: 15px; color: #1D9BF0; }
    .qa-btn.copied { border-color: #2DB87D; color: #2DB87D; }
    .qa-btn.copied svg { color: #2DB87D; }

    /* Section card */
    .section-card {
      background: #1A1F24;
      border: 1px solid #2F3336;
      border-radius: 20px;
      padding: 22px;
      margin-bottom: 14px;
    }
    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #8B98A5;
      font-weight: 700;
      margin-bottom: 14px;
    }
    .section-title::before {
      content: '';
      width: 4px; height: 14px;
      background: linear-gradient(180deg, #1D9BF0, #2DB87D);
      border-radius: 2px;
    }

    /* ===== QR Card ===== */
    .qr-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }
    .qr-box {
      position: relative;
      width: 200px;
      height: 200px;
      background: #fff;
      border-radius: 18px;
      padding: 12px;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.4);
    }
    .qr-box::before,
    .qr-box::after {
      content: '';
      position: absolute;
      width: 18px;
      height: 18px;
      border: 2px solid #1D9BF0;
    }
    .qr-box::before {
      top: -2px; left: -2px;
      border-right: none;
      border-bottom: none;
      border-top-left-radius: 8px;
    }
    .qr-box::after {
      bottom: -2px; right: -2px;
      border-left: none;
      border-top: none;
      border-bottom-right-radius: 8px;
    }
    .qr-box img { width: 100%; height: 100%; display: block; }
    .qr-fs-btn {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(15, 20, 25, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.15);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s;
      padding: 0;
    }
    .qr-fs-btn:hover { background: #1D9BF0; border-color: #1D9BF0; }
    .qr-fs-btn svg { width: 15px; height: 15px; }
    .qr-desc {
      font-size: 0.82rem;
      color: #8B98A5;
      text-align: center;
      max-width: 280px;
      line-height: 1.55;
    }
    .qr-actions {
      display: flex;
      gap: 8px;
      width: 100%;
      margin-top: 4px;
    }
    .qr-btn {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 11px;
      background: rgba(29,155,240,0.08);
      border: 1px solid rgba(29,155,240,0.2);
      border-radius: 14px;
      color: #1D9BF0;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      min-height: 44px;
      transition: all 0.15s;
    }
    .qr-btn:hover { background: rgba(29,155,240,0.14); }
    .qr-btn svg { width: 15px; height: 15px; }

    /* Uptime bar */
    .uptime-bar-bg {
      width: 100%;
      height: 8px;
      background: rgba(47, 51, 54, 0.5);
      border-radius: 4px;
      overflow: hidden;
      margin-top: 10px;
    }
    .uptime-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #2DB87D, #34D399);
      border-radius: 4px;
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .uptime-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.78rem;
      color: #8B98A5;
    }
    .uptime-pct { font-weight: 800; color: #2DB87D; font-size: 0.95rem; }

    /* ===== How to connect steps ===== */
    .step {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 14px 0;
    }
    .step:not(:last-child) { border-bottom: 1px solid rgba(47, 51, 54, 0.5); }
    .step-num {
      width: 32px; height: 32px;
      min-width: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1D9BF0, #1A8CD8);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem;
      font-weight: 800;
    }
    .step-text {
      flex: 1;
      font-size: 0.88rem;
      color: #C2CBD4;
      line-height: 1.6;
      padding-top: 4px;
    }
    .step-text strong { color: #E7E9EA; font-weight: 600; }

    /* ===== How-to tabs ===== */
    .howto-intro {
      font-size: 0.86rem;
      color: #8B98A5;
      margin-bottom: 14px;
      line-height: 1.55;
    }
    .howto-tabs {
      display: flex;
      gap: 6px;
      margin-bottom: 14px;
      padding: 4px;
      background: rgba(15, 20, 25, 0.6);
      border-radius: 12px;
      border: 1px solid #2F3336;
    }
    .howto-tab {
      flex: 1;
      padding: 9px 8px;
      border-radius: 9px;
      background: transparent;
      border: none;
      color: #8B98A5;
      font-size: 0.78rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
      white-space: nowrap;
    }
    .howto-tab.on {
      background: linear-gradient(135deg, #1D9BF0, #1A8CD8);
      color: #fff;
      box-shadow: 0 2px 8px rgba(29, 155, 240, 0.35);
    }
    .howto-pane { display: none; }
    .howto-pane.on { display: block; animation: fadeIn 0.25s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    .howto-tip {
      margin-top: 12px;
      padding: 11px 13px;
      background: rgba(29, 155, 240, 0.08);
      border: 1px solid rgba(29, 155, 240, 0.25);
      border-radius: 10px;
      font-size: 0.82rem;
      color: #C2CBD4;
      line-height: 1.55;
    }
    .howto-tip strong { color: #1D9BF0; }

    /* Manual config fields */
    .manual-fields {
      margin: 14px 0 10px;
      background: rgba(15, 20, 25, 0.5);
      border: 1px solid #2F3336;
      border-radius: 10px;
      overflow: hidden;
    }
    .manual-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 11px 14px;
      font-size: 0.82rem;
    }
    .manual-row:not(:last-child) { border-bottom: 1px solid #2F3336; }
    .manual-label { color: #8B98A5; font-weight: 600; flex-shrink: 0; }
    .manual-row code {
      font-family: ui-monospace, 'SF Mono', Menlo, monospace;
      font-size: 0.78rem;
      color: #1D9BF0;
      background: transparent;
      word-break: break-all;
      text-align: right;
      direction: ltr;
      user-select: all;
    }

    /* FAQ */
    .faq {
      padding: 14px 0;
      border-bottom: 1px solid rgba(47, 51, 54, 0.5);
    }
    .faq:last-child { border-bottom: none; }
    .faq summary {
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 700;
      color: #E7E9EA;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after {
      content: '+';
      font-size: 1.3rem;
      color: #1D9BF0;
      font-weight: 400;
      transition: transform 0.2s;
      flex-shrink: 0;
    }
    .faq[open] summary::after { content: '−'; }
    .faq-a {
      margin-top: 10px;
      font-size: 0.84rem;
      color: #8B98A5;
      line-height: 1.6;
    }

    /* RTL adjustments for ar/fa */
    html[dir="rtl"] body { font-family: 'Tahoma', 'Arial', 'Inter', sans-serif; }
    html[dir="rtl"] .back-link svg { transform: scaleX(-1); }
    html[dir="rtl"] .manual-row code { text-align: left; }
    html[dir="rtl"] .rel-go svg { transform: scaleX(-1); }

    /* ===== Related proxies ===== */
    .related-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .rel-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: #0F1419;
      border: 1px solid rgba(47, 51, 54, 0.5);
      border-radius: 14px;
      transition: border-color 0.15s;
      text-decoration: none;
    }
    .rel-card:hover { border-color: rgba(29,155,240,0.3); }
    .rel-flag { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
    .rel-info { flex: 1; min-width: 0; }
    .rel-name {
      font-size: 0.88rem; font-weight: 700; color: #E7E9EA;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .rel-stats {
      display: flex; align-items: center; gap: 6px;
      margin-top: 2px;
      font-size: 0.7rem; color: #8B98A5;
    }
    .rel-dot { width: 3px; height: 3px; border-radius: 50%; background: #3D4A56; }
    .rel-on { color: #2DB87D; font-weight: 700; }
    .rel-off { color: #F4212E; font-weight: 700; }
    .rel-go {
      padding: 8px 14px;
      background: #1D9BF0;
      color: #fff;
      border-radius: 18px;
      font-size: 0.72rem;
      font-weight: 700;
      text-decoration: none;
      flex-shrink: 0;
      min-height: 36px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .rel-go:hover { background: #1A8CD8; color: #fff; }
    .rel-go svg { width: 12px; height: 12px; }

    /* ===== Skeleton ===== */
    .sk-hero {
      background: #1A1F24;
      border: 1px solid #2F3336;
      border-radius: 24px;
      padding: 28px 24px;
      text-align: center;
      margin-bottom: 16px;
    }
    .sk-flag {
      width: 60px; height: 60px;
      border-radius: 14px;
      background: linear-gradient(90deg,#2F3336 25%,#38444D 50%,#2F3336 75%);
      background-size: 200% 100%;
      animation: sh 1.5s ease-in-out infinite;
      margin: 0 auto 14px;
    }
    .sk-line {
      height: 16px;
      background: linear-gradient(90deg,#2F3336 25%,#38444D 50%,#2F3336 75%);
      background-size: 200% 100%;
      animation: sh 1.5s ease-in-out infinite;
      border-radius: 8px;
      margin: 0 auto 8px;
    }
    .sk-line.w60 { width: 60%; }
    .sk-line.w40 { width: 40%; }
    .sk-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
    .sk-stat {
      height: 68px;
      background: linear-gradient(90deg,#2F3336 25%,#38444D 50%,#2F3336 75%);
      background-size: 200% 100%;
      animation: sh 1.5s ease-in-out infinite;
      border-radius: 16px;
    }
    .sk-btn {
      height: 62px;
      background: linear-gradient(90deg,#2F3336 25%,#38444D 50%,#2F3336 75%);
      background-size: 200% 100%;
      animation: sh 1.5s ease-in-out infinite;
      border-radius: 20px;
      margin-bottom: 14px;
    }
    @keyframes sh { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

    /* ===== Fullscreen QR ===== */
    .qr-fs {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 9000;
      background: rgba(0,0,0,0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      align-items: center;
      justify-content: center;
      padding: 24px;
      animation: qrfs-in 0.25s ease-out;
    }
    .qr-fs.open { display: flex; }
    @keyframes qrfs-in { from { opacity: 0; } to { opacity: 1; } }
    .qr-fs-box {
      max-width: min(440px, 90vw);
      width: 100%;
      text-align: center;
      animation: qrfs-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes qrfs-pop {
      from { opacity: 0; transform: scale(0.85); }
      to   { opacity: 1; transform: scale(1); }
    }
    .qr-fs-img {
      width: 100%;
      aspect-ratio: 1;
      background: #fff;
      border-radius: 24px;
      padding: 24px;
      box-shadow: 0 0 80px rgba(29,155,240,0.25), 0 0 0 2px rgba(29,155,240,0.4);
    }
    .qr-fs-img img { width: 100%; height: 100%; display: block; }
    .qr-fs-label {
      color: #fff;
      font-size: 1.1rem;
      font-weight: 700;
      margin-top: 20px;
    }
    .qr-fs-sub { color: #8B98A5; font-size: 0.85rem; margin-top: 6px; }
    .qr-fs-close {
      position: absolute;
      top: max(20px, env(safe-area-inset-top, 0px));
      right: 20px;
      width: 44px; height: 44px;
      border-radius: 50%;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .qr-fs-close svg { width: 20px; height: 20px; }

    /* ===== Toast ===== */
    .toast-container {
      position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
      z-index: 600; pointer-events: none;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
    }
    .toast {
      background: linear-gradient(135deg, #1D9BF0, #1A8CD8);
      color: #fff; padding: 12px 24px;
      border-radius: 24px; font-size: 0.85rem; font-weight: 600;
      box-shadow: 0 8px 32px rgba(29,155,240,0.3);
      animation: tin 0.25s ease-out, tout 0.25s ease-in 2s forwards;
      pointer-events: auto;
    }
    @keyframes tin { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
    @keyframes tout { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(12px); } }

    /* ===== Footer ===== */
    .foot {
      max-width: 600px;
      margin: 16px auto 0;
      padding: 0 16px 28px;
    }
    .foot-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 20px 0 24px;
      border-top: 1px solid #2F3336;
      margin-bottom: 20px;
    }
    .foot-brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
    .foot-brand-name { font-size: 1rem; font-weight: 700; color: #E7E9EA; letter-spacing: -0.01em; }
    .foot-brand-tag { font-size: 0.75rem; color: #8B98A5; margin-top: 1px; }
    .foot-brand-text { flex: 1; }
    .foot-powered {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: linear-gradient(135deg, rgba(29,155,240,0.08), rgba(45,184,125,0.04));
      border: 1px solid rgba(29,155,240,0.2);
      border-radius: 14px;
      margin-bottom: 20px;
      text-decoration: none;
      transition: border-color 0.15s;
    }
    .foot-powered:hover { border-color: rgba(29,155,240,0.4); }
    .foot-powered-icon {
      width: 36px; height: 36px; min-width: 36px;
      border-radius: 50%;
      background: rgba(29,155,240,0.15);
      display: flex; align-items: center; justify-content: center;
    }
    .foot-powered-icon svg { width: 18px; height: 18px; color: #1D9BF0; }
    .foot-powered-text { flex: 1; }
    .foot-powered-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8B98A5; font-weight: 600; }
    .foot-powered-name { font-size: 0.9rem; color: #E7E9EA; font-weight: 700; margin-top: 1px; }
    .foot-powered-arrow { color: #1D9BF0; }
    .foot-powered-arrow svg { width: 18px; height: 18px; }
    .foot-copy {
      text-align: center;
      font-size: 0.7rem;
      color: #7A8A94;
      line-height: 1.6;
      padding-top: 16px;
      border-top: 1px solid #2F3336;
    }

    /* Mobile lang sheet */
    .lang-sheet-bg {
      display: none; position: fixed; inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      z-index: 998;
    }
    .lang-sheet-bg.open { display: block; animation: lsbg-in 0.2s ease-out; }
    @keyframes lsbg-in { from { opacity: 0; } to { opacity: 1; } }
    .lang-sheet {
      display: none; position: fixed;
      left: 0; right: 0; bottom: 0;
      z-index: 999;
      background: #161C23;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 22px 22px 0 0;
      padding: 8px 12px calc(20px + env(safe-area-inset-bottom, 0px));
      max-height: 85vh; overflow-y: auto;
      box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    }
    .lang-sheet.open { display: block; animation: lsheet-in 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
    @keyframes lsheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .lang-sheet-handle { width: 40px; height: 4px; background: #2F3336; border-radius: 2px; margin: 4px auto 14px; }
    .lang-sheet-title {
      font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
      color: #7A8A94; font-weight: 700; text-align: center; padding: 0 16px 12px;
    }
    .lang-sheet a {
      display: flex; align-items: center; gap: 14px;
      padding: 14px 16px;
      color: #E7E9EA; text-decoration: none;
      border-radius: 14px; min-height: 56px;
      transition: background 0.15s;
      margin-bottom: 2px;
    }
    .lang-sheet a:hover { background: rgba(29, 155, 240, 0.06); }
    .lang-sheet a.active { background: rgba(29, 155, 240, 0.1); }
    .lang-sheet-flag { font-size: 2rem; width: 40px; text-align: center; }
    .lang-sheet-native { font-size: 1rem; font-weight: 600; color: #E7E9EA; }
    .lang-sheet-en { font-size: 0.78rem; color: #8B98A5; }
    .lang-sheet-cancel {
      display: block; width: 100%; margin-top: 8px;
      padding: 16px;
      background: #2F3336; border: none; border-radius: 14px;
      color: #E7E9EA; font-size: 0.9rem; font-weight: 600;
      cursor: pointer; font-family: inherit; min-height: 52px;
    }

    /* Error state */
    .error-state {
      text-align: center;
      padding: 60px 24px;
    }
    .error-state svg { width: 48px; height: 48px; color: #7A8A94; margin-bottom: 14px; }
    .error-state-title { font-size: 1.1rem; font-weight: 700; color: #E7E9EA; margin-bottom: 6px; }
    .error-state-sub { font-size: 0.88rem; color: #8B98A5; margin-bottom: 20px; }
    .error-state-btn {
      display: inline-block;
      padding: 12px 24px;
      background: #1D9BF0;
      color: #fff;
      border-radius: 22px;
      font-size: 0.88rem;
      font-weight: 700;
      text-decoration: none;
      min-height: 44px;
    }
