
    :root {
      --bg-body: #000000;
      --bg-card: rgba(17,17,20,0.75);
      --bg-elevated: rgba(24,24,27,0.8);
      --border-subtle: #1e1e22;
      --border-default: #27272a;
      --text-primary: #e5e5e5;
      --text-secondary: #a3a3a3;
      --text-muted: #71717a;
      --text-dimmed: #525252;
      --orange: #f97316;
      --orange-hover: #ea580c;
      --orange-light: #fdba74;
      --green: #22c55e;
      --green-light: #4ade80;
      --red: #ef4444;
      --radius-sm: 8px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --radius-xl: 16px;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg-body);
      color: var(--text-primary);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: pageIn 0.35s ease-out;
    }
    @keyframes pageIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    a { color: var(--orange); }
    .icon { display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
    .processing-spin { display: inline-block; animation: spin 1.5s linear infinite; }
    @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @media (max-width: 768px) {
      body { animation: none; }
      .section { animation: none; opacity: 1; transform: none; }
    }
  
    /* ── Buttons ── */
    .btn {
      display: inline-block;
      padding: 10px 20px;
      border-radius: var(--radius-sm);
      border: none;
      background: linear-gradient(135deg, var(--orange), var(--orange-hover));
      color: white;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-decoration: none;
      transition: transform 0.15s, box-shadow 0.25s;
      box-shadow: 0 2px 10px rgba(249,115,22,0.2);
    }
    .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249,115,22,0.3); }
    .btn:active { transform: scale(0.97); }
    .btn-secondary {
      background: var(--bg-elevated);
      border: 1px solid #3f3f46;
      color: var(--text-primary);
      box-shadow: none;
    }
    .btn-secondary:hover { background: var(--border-default); box-shadow: none; }
    .btn-current {
      background: #14532d; color: var(--green-light);
      cursor: default;
    }
    .btn-current:hover { background: #14532d; transform: none; box-shadow: none; }

    /* ── Badges ── */
    .badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    .badge-ok { background: #14532d; color: var(--green-light); }
    .badge-pending { background: #451a03; color: var(--orange-light); }
    .badge-off { background: #262626; color: #737373; }

    /* ── Form elements ── */
    input[type="email"], input[type="text"], input[type="password"] {
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      border: 1px solid #333;
      background: rgba(26,26,26,0.7);
      color: var(--text-primary);
      font-size: 16px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }
    select {
      background: var(--bg-body);
      color: var(--text-primary);
      border: 1px solid #3f3f46;
      border-radius: 6px;
      padding: 5px 10px;
      font-size: 12px;
      font-family: inherit;
      cursor: pointer;
      outline: none;
      transition: border-color 0.2s;
    }
    select:focus { border-color: var(--orange); }

    /* ── Cards ── */
    .card {
      background: rgba(17,17,20,0.92);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px;
    }

    /* ── Section ── */
    .section {
      background: rgba(17,17,20,0.92);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px;
      margin-bottom: 20px;
      animation: cardIn 0.4s ease-out both;
    }
    .section:nth-child(2) { animation-delay: 0.05s; }
    .section:nth-child(3) { animation-delay: 0.1s; }
    .section:nth-child(4) { animation-delay: 0.15s; }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .section-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: -0.2px;
    }
    .section-title small {
      color: var(--text-dimmed);
      font-weight: 500;
      font-size: 13px;
    }

    /* ── Progress bars ── */
    .progress-bar {
      background: var(--border-default); border-radius: 4px; height: 6px;
      width: 100px; display: inline-block; vertical-align: middle;
    }
    .progress-fill {
      background: var(--orange); border-radius: 4px; height: 100%;
      transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .progress-full .progress-fill { background: var(--red); }

    /* ── Error ── */
    .error {
      background: #451a03;
      border: 1px solid #92400e;
      color: var(--orange-light);
      padding: 12px;
      border-radius: var(--radius-sm);
      margin-bottom: 16px;
      font-size: 14px;
      animation: shake 0.4s ease-out;
    }
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      20% { transform: translateX(-6px); }
      40% { transform: translateX(6px); }
      60% { transform: translateX(-4px); }
      80% { transform: translateX(4px); }
    }

    /* ── Message flash ── */
    .msg {
      background: #14532d;
      border: 1px solid #16a34a;
      color: var(--green-light);
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      margin-bottom: 16px;
    }
    .msg.error {
      background: #451a03;
      border-color: #92400e;
      color: var(--orange-light);
    }

    /* ── Plain button (auth forms) ── */
    button {
      padding: 14px;
      border-radius: var(--radius-sm);
      border: none;
      background: var(--orange);
      color: white;
      font-size: 16px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.2s, transform 0.1s;
    }
    button:hover { background: var(--orange-hover); }
    button:active { transform: scale(0.97); }

    /* ── Misc ── */
    .empty {
      color: var(--text-dimmed);
      font-style: italic;
      text-align: center;
      padding: 24px 0;
    }
    .back {
      color: var(--orange);
      text-decoration: none;
      font-size: 14px;
      display: inline-block;
      transition: transform 0.15s, color 0.15s;
    }
    .back:hover { text-decoration: underline; transform: translateX(-2px); color: var(--orange-light); }
    .logo {
      font-size: 24px;
      font-weight: 700;
      color: var(--orange);
      text-decoration: none;
      display: block;
      margin-bottom: 32px;
    }

    /* ── Mobile: disable GPU-heavy effects ── */
    @media (max-width: 768px) {
      .card, .section {
        background: rgba(17,17,20,0.95);
      }
    }
  
    /* ── Auth-style centered container ── */
    .container {
      max-width: 400px;
      width: 100%;
      padding: 40px 24px;
      text-align: center;
    }
    h1 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .subtitle {
      color: var(--text-secondary);
      margin-bottom: 24px;
      line-height: 1.5;
    }
    form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .hint {
      color: #737373;
      font-size: 13px;
      margin-top: 16px;
    }

    /* ── Dashboard-style full-width wrapper ── */
    .page-wrap {
      max-width: 820px;
      width: 100%;
      margin: 0 auto;
      padding: 32px 24px 60px;
    }
    .page-header {
      margin-bottom: 28px;
    }
    .page-header h1 {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.5px;
      margin-bottom: 4px;
    }
    .page-header p { color: #737373; font-size: 14px; }

    /* ── Grids ── */
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .status-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .status-item {
      background: var(--bg-elevated);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-md);
      padding: 14px 16px;
    }
    .status-label {
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 500;
      margin-bottom: 6px;
    }
    .status-value {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* ── Tables ── */
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    th { text-align: left; color: var(--text-muted); padding: 10px 8px; border-bottom: 1px solid var(--border-default); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
    td { padding: 10px 8px; border-bottom: 1px solid var(--border-subtle); }
    tr:hover td { background: var(--bg-elevated); }

    /* ── Responsive ── */
    @media (max-width: 700px) {
      .two-col { grid-template-columns: 1fr; }
    }
    @media (max-width: 480px) {
      .status-grid { grid-template-columns: 1fr; }
      .page-wrap { padding: 20px 16px 40px; }
    }
  
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      background: rgba(7,7,10,0.96);
      border-bottom: 1px solid var(--border-subtle);
      padding: 0 24px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 100;
    }
    .navbar .nav-left {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .navbar .nav-logo {
      font-size: 18px;
      font-weight: 700;
      color: var(--orange);
      text-decoration: none;
    }
    .navbar .nav-links {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .navbar .nav-links a {
      color: #737373;
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      transition: color 0.15s;
    }
    .navbar .nav-links a:hover,
    .navbar .nav-links a.active { color: var(--text-primary); }
    .navbar .nav-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .navbar .nav-email { color: var(--text-dimmed); font-size: 12px; }
    .navbar .nav-plan {
      display: inline-block; padding: 1px 8px;
      border-radius: 999px; font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.5px;
    }
    .navbar .nav-plan.free { background: #262626; color: #a3a3a3; }
    .navbar .nav-plan.plus { background: #422006; color: var(--orange-light); }
    .navbar .nav-plan.pro { background: #14532d; color: var(--green-light); }
    .navbar .nav-logout {
      background: none; border: none; color: var(--text-dimmed);
      cursor: pointer; font-size: 12px;
    }
    .navbar .nav-logout:hover { color: var(--text-secondary); }
    .nav-spacer { height: 48px; }

    /* Lang switcher (inside navbar) */
    
    .lang-switch {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
    }
    .lang-switch a {
      color: #737373;
      text-decoration: none;
      padding: 2px 6px;
      border-radius: 4px;
      transition: color 0.2s, background 0.2s;
    }
    .lang-switch a:hover { color: #e5e5e5; }
    .lang-switch a.active {
      color: #f97316;
      font-weight: 600;
    }
    .lang-sep { color: #404040; }
  

    /* ── Hamburger button — hidden on desktop ── */
    .nav-hamburger {
      display: none;
      background: none; border: none; cursor: pointer;
      width: 36px; height: 36px;
      flex-direction: column; justify-content: center; align-items: center; gap: 5px;
      padding: 4px;
      margin-left: auto;
    }
    .nav-hamburger span {
      display: block; width: 20px; height: 2px;
      background: var(--text-secondary); border-radius: 1px;
      transition: transform 0.25s, opacity 0.25s;
    }
    .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-hamburger.open span:nth-child(2) { opacity: 0; }
    .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── Drawer — hidden on desktop ── */
    .nav-drawer { display: none; }
    .nav-overlay { display: none; }

    /* ── Mobile: hamburger + drawer ── */
    @media (max-width: 700px) {
      .navbar .nav-links { display: none; }
      .navbar .nav-right { display: none; }
      .nav-hamburger { display: flex; }

      .nav-drawer {
        display: block;
        position: fixed; top: 48px; right: 0; bottom: 0;
        width: 260px;
        background: rgba(7,7,10,0.99);
        border-left: 1px solid var(--border-subtle);
        transform: translateX(100%);
        transition: transform 0.25s ease-out;
        z-index: 99;
        padding: 12px 0;
        overflow-y: auto;
      }
      .nav-drawer.open { transform: translateX(0); }

      .nav-overlay {
        display: none;
        position: fixed; top: 48px; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 98;
      }
      .nav-overlay.open { display: block; }

      .nav-drawer a,
      .nav-drawer .drawer-logout {
        display: block; width: 100%;
        padding: 14px 24px;
        color: var(--text-secondary); font-size: 15px; font-weight: 500;
        text-decoration: none; background: none; border: none;
        text-align: left; cursor: pointer;
        font-family: 'Inter', sans-serif;
        transition: background 0.15s, color 0.15s;
      }
      .nav-drawer a:hover,
      .nav-drawer .drawer-logout:hover {
        background: rgba(255,255,255,0.04);
        color: var(--text-primary);
      }
      .nav-drawer a.active { color: var(--orange); }
      .nav-drawer .drawer-separator {
        height: 1px; background: var(--border-subtle); margin: 8px 24px;
      }
      .nav-drawer .drawer-meta {
        padding: 10px 24px; font-size: 12px; color: var(--text-dimmed);
        display: flex; align-items: center; gap: 8px;
      }
      .nav-drawer .drawer-logout { color: var(--text-dimmed); font-size: 13px; }
    }

    @media (max-width: 768px) {
      .navbar { background: rgba(7,7,10,0.98); }
    }
    @media (max-width: 480px) {
      .navbar { padding: 0 12px; }
    }
  
    .toast-container {
      position: fixed; bottom: 24px; right: 24px; z-index: 9999;
      display: flex; flex-direction: column-reverse; gap: 8px;
      pointer-events: none;
    }
    .toast {
      pointer-events: auto;
      padding: 12px 18px; border-radius: 10px;
      font-size: 13px; font-weight: 500; font-family: inherit;
      display: flex; align-items: center; gap: 8px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.4);
      transform: translateX(120%); opacity: 0;
      animation: toastIn 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
      max-width: 360px;
    }
    .toast.removing {
      animation: toastOut 0.3s ease-in forwards;
    }
    .toast-success { background: #052e16; border: 1px solid #166534; color: #86efac; }
    .toast-error { background: #2a1010; border: 1px solid #7f1d1d; color: #fca5a5; }
    .toast-info { background: #1a1a2e; border: 1px solid #312e81; color: #a5b4fc; }
    @keyframes toastIn {
      from { transform: translateX(120%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    @keyframes toastOut {
      from { transform: translateX(0); opacity: 1; }
      to { transform: translateX(120%); opacity: 0; }
    }
    @media (max-width: 480px) {
      .toast-container { bottom: 16px; right: 16px; left: 16px; }
      .toast { max-width: 100%; }
    }
  
    .confirm-overlay {
      position: fixed; inset: 0; z-index: 300;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.7);
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s ease;
    }
    .confirm-overlay.open { opacity: 1; pointer-events: auto; }
    .confirm-overlay.closing { opacity: 0; }
    .confirm-box {
      background: var(--bg-card); border: 1px solid var(--border-default);
      border-radius: 14px; padding: 24px; max-width: 380px; width: 90%;
      text-align: center;
      transform: translateY(20px) scale(0.97); opacity: 0;
      transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
    }
    .confirm-overlay.open .confirm-box { transform: translateY(0) scale(1); opacity: 1; }
    .confirm-overlay.closing .confirm-box { transform: translateY(20px) scale(0.97); opacity: 0; }
    .confirm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
    .confirm-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
    .confirm-actions { display: flex; gap: 10px; justify-content: center; }
    .confirm-actions button {
      padding: 10px 24px; border-radius: 8px; font-size: 13px;
      font-weight: 600; cursor: pointer; font-family: inherit;
      transition: opacity 0.2s, transform 0.1s; border: none;
    }
    .confirm-actions button:active { transform: scale(0.97); }
    .confirm-cancel {
      background: var(--bg-elevated); color: var(--text-primary);
      border: 1px solid var(--border-default) !important;
    }
    .confirm-cancel:hover { border-color: var(--text-muted) !important; }
    .confirm-danger { background: #7f1d1d; color: #fca5a5; }
    .confirm-danger:hover { opacity: 0.9; }
    @media (max-width: 768px) {
      .confirm-overlay { background: rgba(0,0,0,0.8); }
    }
  
    .bg-blobs {
      position: fixed; inset: 0; overflow: hidden;
      pointer-events: none; z-index: 0;
      contain: strict;
    }
    .bg-blobs .blob {
      position: absolute; border-radius: 50%;
      filter: blur(100px); opacity: 0.08;
      will-change: transform;
      animation: blobDrift 25s ease-in-out infinite alternate;
      contain: strict;
    }
    .blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #f97316 0%, rgba(249,115,22,0.3) 40%, transparent 70%); top: -150px; left: 30%; animation-duration: 25s; }
    .blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, #ef4444 0%, rgba(239,68,68,0.3) 40%, transparent 70%); top: 200px; right: -100px; animation-duration: 20s; animation-delay: -5s; }
    .blob-3 { width: 450px; height: 450px; background: radial-gradient(circle, #a855f7 0%, rgba(168,85,247,0.3) 40%, transparent 70%); bottom: 100px; left: -80px; animation-duration: 28s; animation-delay: -10s; }
    @keyframes blobDrift {
      0% { transform: translate3d(0, 0, 0) scale(1); }
      50% { transform: translate3d(25px, -15px, 0) scale(1.03); }
      100% { transform: translate3d(-15px, 10px, 0) scale(0.97); }
    }
    .starfield { position: fixed; inset: 0; pointer-events: none; z-index: 0; contain: strict; }
    .starfield .star {
      position: absolute; background: white; border-radius: 50%;
      opacity: var(--max-opacity, 0.4);
    }
    @media (max-width: 768px) {
      .bg-blobs .blob { display: none; }
    }
  