:root {
      --bg: #050711;
      --bg-2: #090d1f;
      --text: #f8fafc;
      --muted: rgba(248,250,252,0.68);
      --muted-2: rgba(248,250,252,0.46);
      --card: rgba(255,255,255,0.075);
      --card-strong: rgba(255,255,255,0.12);
      --border: rgba(255,255,255,0.12);
      --border-strong: rgba(255,255,255,0.22);
      --accent: #8b5cf6;
      --accent-2: #22d3ee;
      --success: #34d399;
      --danger: #fb7185;
      --warning: #fbbf24;
      --shadow: 0 34px 110px rgba(0,0,0,0.45);
      --shadow-soft: 0 18px 55px rgba(0,0,0,0.25);
      --radius: 34px;
      --radius-sm: 20px;
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(circle at 18% 5%, rgba(139,92,246,0.28), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(34,211,238,0.18), transparent 28%),
        radial-gradient(circle at 50% 92%, rgba(99,102,241,0.18), transparent 32%),
        linear-gradient(180deg, #050711 0%, #080b19 44%, #0c1024 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: radial-gradient(circle at center, black, transparent 74%);
      pointer-events: none;
      z-index: -3;
    }

    .aurora {
      position: fixed;
      width: 470px;
      height: 470px;
      border-radius: 999px;
      filter: blur(48px);
      opacity: 0.34;
      pointer-events: none;
      z-index: -2;
      animation: aurora 13s ease-in-out infinite alternate;
    }

    .aurora.one { left: -190px; top: 70px; background: #8b5cf6; }
    .aurora.two { right: -210px; bottom: 60px; background: #22d3ee; animation-delay: -5s; }

    @keyframes aurora {
      from { transform: translate3d(0, 0, 0) scale(1); }
      to { transform: translate3d(72px, -46px, 0) scale(1.14); }
    }

    .wrap {
      width: min(1180px, calc(100% - 36px));
      margin: 0 auto;
      padding: 170px 0 82px;
    }

    .site-header {
      position: fixed !important;
      top: 18px !important;
      left: 50% !important;
      right: auto !important;
      transform: translateX(-50%) !important;

      width: min(1180px, calc(100% - 36px));
      z-index: 9999999;

      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      justify-content: center;
      gap: 18px;

      margin: 0 !important;
      padding: 12px 14px;

      border: 1px solid var(--border);
      background: rgba(8,11,25,0.96);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-radius: 999px;
      box-shadow: 0 18px 55px rgba(0,0,0,0.38);

      isolation: isolate;
    }

    .brand {
      grid-column: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 280px;
      padding: 8px 34px;
      border-radius: 999px;
      font-weight: 950;
      letter-spacing: -0.07em;
      font-size: clamp(30px, 4vw, 46px);
      cursor: pointer;
      background: linear-gradient(90deg, #ffffff, #c4b5fd, #67e8f9);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .nav {
      grid-column: 3;
      justify-self: end;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px;
      border-radius: 999px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .nav button {
      border: none;
      background: transparent;
      color: var(--muted);
      border-radius: 999px;
      padding: 11px 16px;
      font-weight: 850;
      cursor: pointer;
      transition: 0.22s ease;
    }

    .nav button:hover, .nav button.active {
      color: #fff;
      background: rgba(255,255,255,0.12);
    }

    .section { display: none; animation: show 0.32s ease both; }
    .section.active { display: block; }

    @keyframes show {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero {
      min-height: calc(100vh - 140px);
      display: grid;
      place-items: center;
      text-align: center;
      padding: 28px 0 42px;
    }

    .hero-inner { width: min(920px, 100%); }

    h1 {
      margin: 0;
      font-size: clamp(46px, 8vw, 104px);
      line-height: 0.92;
      letter-spacing: -0.086em;
      font-weight: 950;
    }

    .grad {
      background: linear-gradient(90deg, #ffffff, #c4b5fd, #67e8f9);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .lead {
      width: min(760px, 100%);
      margin: 24px auto 0;
      color: var(--muted);
      font-size: clamp(17px, 2vw, 22px);
      line-height: 1.56;
      letter-spacing: -0.02em;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 32px;
    }

    .btn {
      border: none;
      border-radius: 18px;
      padding: 16px 20px;
      font-weight: 950;
      cursor: pointer;
      transition: transform 0.22s ease, filter 0.22s ease, background 0.22s ease, border-color 0.22s ease;
      color: #fff;
      background: linear-gradient(135deg, var(--accent), #6d5dfc 58%, var(--accent-2));
      box-shadow: 0 18px 42px rgba(139,92,246,0.28);
      width: 100%;
      margin-top: 18px;
      font-size: 15px;
    }

    .btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
    .btn:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }
    .btn.secondary { background: rgba(255,255,255,0.085); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
    .btn.danger { background: linear-gradient(135deg, #fb7185, #ef4444); box-shadow: 0 18px 42px rgba(251,113,133,0.18); }
    .btn.success { background: linear-gradient(135deg, #34d399, #22d3ee); box-shadow: 0 18px 42px rgba(52,211,153,0.18); }
    .btn.inline { width: auto; margin: 0; padding: 14px 18px; white-space: nowrap; }
    .btn.compact { margin: 0; padding: 13px 15px; border-radius: 16px; font-size: 14px; }

    .mini-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 40px;
    }

    .mini-card {
      position: relative;
      padding: 24px;
      min-height: 150px;
      border-radius: 30px;
      background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
      border: 1px solid rgba(255,255,255,0.13);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(22px);
      text-align: left;
      overflow: hidden;
    }

    .mini-card::after {
      content: "";
      position: absolute;
      right: -46px;
      bottom: -64px;
      width: 150px;
      height: 150px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(34,211,238,0.2), transparent 68%);
      pointer-events: none;
    }

    .mini-card b { display: block; font-size: 20px; letter-spacing: -0.045em; position: relative; z-index: 1; }
    .mini-card span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; position: relative; z-index: 1; }

    .page-head {
      text-align: center;
      width: min(780px, 100%);
      margin: 54px auto 32px;
    }

    .page-head h2 {
      margin: 0;
      font-size: clamp(38px, 6vw, 72px);
      line-height: 0.96;
      letter-spacing: -0.075em;
      font-weight: 950;
    }

    .page-head p {
      margin: 18px auto 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 17px;
    }

    .plans-wrap {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
      margin-top: 34px;
    }

    .plan {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 32px;
      min-height: 380px;
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,0.12);
      background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
      box-shadow: var(--shadow-soft);
      cursor: pointer;
      transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
      overflow: hidden;
      backdrop-filter: blur(22px);
    }

    .plan::before {
      content: attr(data-badge);
      position: absolute;
      top: 24px;
      right: 24px;
      z-index: 2;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.14);
      color: rgba(255,255,255,0.82);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .plan::after {
      content: "";
      position: absolute;
      right: -40px;
      bottom: -60px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(139,92,246,0.20), transparent 68%);
      pointer-events: none;
      transition: 0.25s ease;
    }

    .plan:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.25); }
    .plan.active {
      border-color: rgba(34, 211, 238, 0.4);
      background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    }
    .plan.active::after { background: radial-gradient(circle, rgba(34,211,238,0.26), transparent 68%); transform: scale(1.12); }

    .plan small {
      display: block;
      max-width: 72%;
      font-size: 36px;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -0.06em;
      color: #fff;
    }

    .price {
      margin-top: 18px;
      font-size: 60px;
      line-height: 0.95;
      font-weight: 950;
      letter-spacing: -0.08em;
    }

    .plan-note {
      margin-top: 18px;
      margin-bottom: 24px;
      flex-grow: 1;
      font-size: 16px;
      line-height: 1.55;
      font-weight: 650;
      color: var(--muted);
    }

    .plan .btn {
      position: relative;
      z-index: 2;
      margin-top: auto;
      width: 100%;
      min-width: 0;
      align-self: stretch;
      padding-inline: 20px;
    }

    .auth-layout {
      width: min(620px, 100%);
      margin: 0 auto 46px;
    }

    .panel {
      background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.055));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(26px);
      overflow: hidden;
    }

    .auth-panel { padding: 18px; }

    .tabs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      padding: 7px;
      background: rgba(0,0,0,0.2);
      border: 1px solid var(--border);
      border-radius: 23px;
      margin-bottom: 16px;
    }

    .tab {
      border: none;
      border-radius: 17px;
      padding: 14px 10px;
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      font-weight: 900;
      transition: 0.22s ease;
    }

    .tab.active {
      background: linear-gradient(135deg, var(--accent), #6d5dfc);
      color: #fff;
      box-shadow: 0 16px 32px rgba(139,92,246,0.24);
    }

    form { display: none; padding: 12px 8px 8px; }
    form.active { display: block; animation: show 0.28s ease both; }

    .form-title {
      margin: 4px 0 7px;
      font-size: 30px;
      font-weight: 950;
      letter-spacing: -0.055em;
    }

    .form-subtitle {
      margin: 0 0 18px;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }

    label {
      display: block;
      margin: 15px 0 8px;
      color: rgba(248,250,252,0.82);
      font-size: 13px;
      font-weight: 900;
    }

    input {
      width: 100%;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.075);
      color: var(--text);
      border-radius: 18px;
      padding: 16px 17px;
      outline: none;
      font-size: 15px;
      font-weight: 650;
      transition: 0.2s ease;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    input::placeholder { color: rgba(248,250,252,0.34); }
    input:focus { border-color: rgba(34,211,238,0.64); box-shadow: 0 0 0 5px rgba(34,211,238,0.11); }

    .message {
      display: none;
      margin-top: 16px;
      border-radius: 18px;
      padding: 14px;
      line-height: 1.45;
      font-size: 14px;
      border: 1px solid var(--border);
    }

    .message.show { display: block; }
    .message.error { background: rgba(251,113,133,0.12); border-color: rgba(251,113,133,0.3); color: #fecdd3; }
    .message.success { background: rgba(52,211,153,0.11); border-color: rgba(52,211,153,0.28); color: #bbf7d0; }
    .message.warn { background: rgba(251,191,36,0.11); border-color: rgba(251,191,36,0.28); color: #fde68a; }

    .sync-card {
      display: none;
      margin: 22px auto 0;
      width: min(780px, 100%);
      padding: 28px;
      border-radius: 32px;
      background: linear-gradient(135deg, rgba(139,92,246,0.92), rgba(34,211,238,0.72));
      color: white;
      box-shadow: 0 34px 100px rgba(139,92,246,0.25);
      position: relative;
      overflow: hidden;
    }

    .sync-card.show { display: block; animation: pop 0.36s cubic-bezier(.2,.9,.2,1.2) both; }

    @keyframes pop {
      from { opacity: 0; transform: translateY(16px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .sync-card::before {
      content: "👻";
      position: absolute;
      right: 28px;
      top: 22px;
      font-size: 58px;
      opacity: 0.2;
    }

    .sync-card h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.045em; }
    .sync-card p { margin: 0; max-width: 590px; color: rgba(255,255,255,0.78); line-height: 1.55; }

    .key-line { display: flex; align-items: center; gap: 10px; margin-top: 18px; }

    .key-code {
      flex: 1;
      padding: 17px;
      border-radius: 19px;
      background: rgba(255,255,255,0.13);
      border: 1px solid rgba(255,255,255,0.19);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: clamp(16px, 3vw, 24px);
      font-weight: 950;
      letter-spacing: 0.08em;
      overflow: auto;
      white-space: nowrap;
    }

    .hidden { display: none !important; }

    .dashboard { display: grid; gap: 20px; margin-bottom: 46px; }

    .dash-hero {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 22px;
      align-items: center;
      padding: 28px;
      background:
        radial-gradient(circle at 82% 18%, rgba(34,211,238,0.22), transparent 30%),
        radial-gradient(circle at 18% 0%, rgba(139,92,246,0.26), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.052));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(26px);
    }

    .dash-hero::after {
      content: "";
      position: absolute;
      right: -120px;
      top: -120px;
      width: 300px;
      height: 300px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.035);
      pointer-events: none;
    }

    .profile-row { display: flex; align-items: center; gap: 16px; min-width: 0; }

    .avatar {
      width: 76px;
      height: 76px;
      flex: 0 0 76px;
      border-radius: 26px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      font-size: 34px;
      font-weight: 950;
      box-shadow: 0 22px 56px rgba(139,92,246,0.28);
    }

    .profile-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 11px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: rgba(255,255,255,0.72);
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .profile-name { font-size: clamp(28px, 4vw, 48px); font-weight: 950; letter-spacing: -0.065em; line-height: 0.98; }
    .profile-email { color: var(--muted); font-size: 15px; margin-top: 8px; font-weight: 700; word-break: break-all; }

    .hero-actions-panel {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 10px;
      width: 280px;
    }

    .status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 15px;
      border-radius: 999px;
      font-weight: 950;
      font-size: 13px;
      background: rgba(52,211,153,0.12);
      color: #bbf7d0;
      border: 1px solid rgba(52,211,153,0.25);
      white-space: nowrap;
    }

    .status.warn {
      background: rgba(251,191,36,0.12) !important;
      color: #fde68a !important;
      border-color: rgba(251,191,36,0.25) !important;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .stat-card {
      position: relative;
      overflow: hidden;
      padding: 20px;
      min-height: 142px;
      border-radius: 28px;
      background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(24px);
    }

    .stat-card::after {
      content: "";
      position: absolute;
      right: -56px;
      bottom: -70px;
      width: 150px;
      height: 150px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(34,211,238,0.16), transparent 68%);
    }

    .stat-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      background: rgba(255,255,255,0.095);
      border: 1px solid rgba(255,255,255,0.12);
      font-size: 18px;
      margin-bottom: 14px;
    }

    .stat-label { color: var(--muted-2); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
    .stat-value { margin-top: 7px; font-size: 24px; line-height: 1.05; font-weight: 950; letter-spacing: -0.05em; position: relative; z-index: 1; }
    .stat-hint { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; position: relative; z-index: 1; }

    .dashboard-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
      gap: 20px;
      align-items: start;
    }

    .card {
      padding: 24px;
      border-radius: var(--radius);
      background: rgba(255,255,255,0.075);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(24px);
    }

    .card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
    }

    .section-title { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.045em; font-weight: 950; }
    .section-subtitle { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.5; }

    .progress-panel {
      padding: 20px;
      border-radius: 26px;
      background: rgba(255,255,255,0.055);
      border: 1px solid var(--border);
    }

    .progress-top {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }

    .progress-title { color: var(--muted); font-size: 13px; font-weight: 900; }
    .progress-days { font-size: 34px; font-weight: 950; letter-spacing: -0.06em; }
    .progress-date { color: var(--muted); font-size: 13px; font-weight: 800; text-align: right; }

    .progress-track {
      height: 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.09);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      box-shadow: 0 0 28px rgba(34,211,238,0.35);
      transition: width 0.4s ease;
    }

    .connection-card {
      position: relative;
      overflow: hidden;
      padding: 24px;
      border-radius: 30px;
      background: linear-gradient(135deg, rgba(139,92,246,0.88), rgba(34,211,238,0.62));
      box-shadow: 0 30px 90px rgba(139,92,246,0.20);
    }

    .connection-card::after {
      content: "NG";
      position: absolute;
      right: 18px;
      bottom: -22px;
      font-size: 92px;
      font-weight: 950;
      letter-spacing: -0.08em;
      color: rgba(255,255,255,0.10);
      pointer-events: none;
    }

    .connection-title {
      margin: 0;
      font-size: 25px;
      letter-spacing: -0.05em;
      font-weight: 950;
      position: relative;
      z-index: 1;
    }

    .connection-text {
      margin: 9px 0 0;
      color: rgba(255,255,255,0.76);
      font-size: 14px;
      line-height: 1.55;
      position: relative;
      z-index: 1;
    }

    .steps { display: grid; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }

    .step {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      padding: 11px;
      border-radius: 18px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.14);
      font-size: 13px;
      font-weight: 800;
      color: rgba(255,255,255,0.84);
    }

    .step b {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: rgba(255,255,255,0.16);
      color: #fff;
    }

    .copy-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      margin-top: 18px;
      position: relative;
      z-index: 1;
    }

    .copy-value {
      padding: 15px 16px;
      border-radius: 18px;
      background: rgba(0,0,0,0.16);
      border: 1px solid rgba(255,255,255,0.16);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-weight: 950;
      letter-spacing: 0.08em;
      white-space: nowrap;
      overflow: auto;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
    }

    .info {
      padding: 16px;
      border-radius: 22px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.055);
    }

    .info small { display: block; color: var(--muted-2); margin-bottom: 8px; font-weight: 800; }
    .info b { word-break: break-all; letter-spacing: -0.02em; }

    .quick-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }

    .mini-action {
      padding: 16px;
      border-radius: 22px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.055);
      cursor: pointer;
      transition: 0.22s ease;
      color: var(--text);
      text-align: left;
    }

    .mini-action:hover {
      transform: translateY(-2px);
      border-color: var(--border-strong);
      background: rgba(255,255,255,0.09);
    }

    .mini-action span { display: block; font-size: 22px; margin-bottom: 9px; }
    .mini-action b { display: block; font-size: 14px; letter-spacing: -0.02em; }
    .mini-action small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.35; }

    .plans-compact {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .plan-option {
      min-height: 142px;
      padding: 18px;
      border-radius: 24px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.055);
      cursor: pointer;
      transition: 0.22s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .plan-option:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.24); }
    .plan-option.active {
      border-color: rgba(34,211,238,0.5);
      background: linear-gradient(180deg, rgba(34,211,238,0.12), rgba(139,92,246,0.08));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    }

    .plan-option-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .plan-option-title { font-size: 22px; font-weight: 950; letter-spacing: -0.05em; line-height: 1; }

    .plan-option-badge {
      padding: 6px 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.09);
      border: 1px solid rgba(255,255,255,0.12);
      color: var(--muted);
      font-size: 10px;
      font-weight: 950;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .plan-option-price { margin-top: 18px; font-size: 34px; font-weight: 950; letter-spacing: -0.06em; }
    .plan-option-month { color: var(--muted); font-size: 13px; font-weight: 750; margin-top: 3px; }

    .telegram-box form { display: block; padding: 0; }

    .tg-status {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
      padding: 14px;
      border-radius: 20px;
      background: rgba(255,255,255,0.055);
      border: 1px solid var(--border);
    }

    .tg-status strong { display: block; font-size: 15px; }
    .tg-status span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 11px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 950;
      white-space: nowrap;
      background: rgba(251,191,36,0.12);
      color: #fde68a;
      border: 1px solid rgba(251,191,36,0.24);
    }

    .pill.ok {
      background: rgba(52,211,153,0.12);
      color: #bbf7d0;
      border-color: rgba(52,211,153,0.24);
    }

    .history-list { display: grid; gap: 10px; margin-top: 14px; }

    .history-item {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 13px;
      border-radius: 20px;
      background: rgba(255,255,255,0.052);
      border: 1px solid var(--border);
    }

    .history-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      background: rgba(255,255,255,0.09);
    }

    .history-title { font-weight: 900; letter-spacing: -0.02em; }
    .history-sub { margin-top: 4px; color: var(--muted); font-size: 13px; }
    .history-price { font-weight: 950; white-space: nowrap; }

    .divider { height: 1px; background: var(--border); margin: 20px 0; }


    .password-wrap {
      position: relative;
      display: grid;
      align-items: center;
    }

    .password-wrap input {
      padding-right: 58px;
    }

    .eye-btn {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      background: rgba(255,255,255,0.075);
      color: rgba(255,255,255,0.78);
      cursor: pointer;
      font-size: 16px;
      transition: 0.18s ease;
    }

    .eye-btn:hover {
      background: rgba(255,255,255,0.13);
      color: #fff;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 100000;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(0,0,0,0.62);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .modal-backdrop.show {
      display: grid;
      animation: show 0.22s ease both;
    }

    .modal-card {
      width: min(520px, 100%);
      padding: 24px;
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,0.14);
      background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(8,11,25,0.96));
      box-shadow: 0 34px 110px rgba(0,0,0,0.55);
    }

    .modal-card h3 {
      margin: 0 0 8px;
      font-size: 30px;
      line-height: 1;
      letter-spacing: -0.055em;
      font-weight: 950;
    }

    .modal-card p {
      margin: 0 0 18px;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }



    .code-modal {
      position: fixed;
      inset: 0;
      z-index: 1000000;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(0,0,0,0.64);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .code-modal.show {
      display: grid;
      animation: show 0.24s ease both;
    }

    .code-card {
      width: min(480px, 100%);
      padding: 26px;
      border-radius: 32px;
      border: 1px solid rgba(255,255,255,0.16);
      background:
        radial-gradient(circle at 90% 0%, rgba(34,211,238,0.16), transparent 34%),
        radial-gradient(circle at 0% 0%, rgba(139,92,246,0.22), transparent 38%),
        rgba(9,13,31,0.96);
      box-shadow: 0 34px 110px rgba(0,0,0,0.58);
    }

    .code-card h3 {
      margin: 0;
      font-size: 30px;
      line-height: 1;
      letter-spacing: -0.055em;
      font-weight: 950;
    }

    .code-card p {
      margin: 12px 0 18px;
      color: var(--muted);
      line-height: 1.55;
      font-size: 14px;
    }

    .code-modal-input {
      text-align: center;
      font-size: 34px;
      letter-spacing: 0.34em;
      font-weight: 950;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      padding-left: 0.34em;
    }

    .code-status {
      margin-top: 14px;
      min-height: 20px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 850;
    }

    .code-status.ok { color: #bbf7d0; }
    .code-status.error { color: #fecdd3; }
    .code-status.loading { color: #ddd6fe; }

    .success-icon {
      width: 62px;
      height: 62px;
      display: grid;
      place-items: center;
      margin-bottom: 16px;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(52,211,153,0.24), rgba(34,211,238,0.18));
      border: 1px solid rgba(52,211,153,0.24);
      font-size: 28px;
    }

    @media (max-width: 980px) {
      .plans-wrap, .mini-grid { grid-template-columns: repeat(2, 1fr); }
      .dashboard-grid { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .dash-hero { grid-template-columns: 1fr; }
      .hero-actions-panel { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 640px) {
      .wrap {
        width: min(100% - 22px, 1180px);
        padding-top: 205px;
      }
      .site-header {
        top: 12px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;

        width: min(100% - 22px, 1180px);
        grid-template-columns: 1fr;
        border-radius: 26px;
        align-items: stretch;
      }
      .brand { grid-column: auto; min-width: 0; font-size: 38px; }
      .nav { grid-column: auto; justify-self: stretch; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
      .nav button { padding: 11px 8px; font-size: 13px; }
      .hero { min-height: auto; padding-top: 28px; }
      h1 { font-size: 48px; }
      .auth-panel, .card, .dash-hero, .sync-card { padding: 18px; border-radius: 26px; }
      .plans-wrap, .mini-grid, .info-grid, .plans-compact, .stats-grid, .quick-actions { grid-template-columns: 1fr; }
      .hero-actions-panel { grid-template-columns: 1fr; }
      .plan { min-height: 320px; padding: 26px; }
      .plan small { font-size: 34px; max-width: 65%; }
      .price { font-size: 56px; }
      .plan-note { font-size: 15px; }
      .tabs { grid-template-columns: 1fr; }
      .key-line, .copy-box { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
      .btn.inline { width: 100%; }
      .profile-row { align-items: flex-start; }
      .avatar { width: 62px; height: 62px; flex-basis: 62px; border-radius: 22px; }
      .history-item { grid-template-columns: 42px minmax(0, 1fr); }
      .history-price { grid-column: 2; }
      .progress-top { align-items: flex-start; flex-direction: column; }
      .progress-date { text-align: left; }
    }


/* === NetGhost hard fixed header fix === */
html, body {
  overflow-x: hidden;
}

body {
  padding-top: 0;
}

.site-header {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  right: auto !important;
  transform: translate3d(-50%, 0, 0) !important;
  width: min(1180px, calc(100vw - 36px)) !important;
  z-index: 2147483647 !important;
  margin: 0 !important;
  will-change: transform;
  contain: layout paint;
}

.wrap {
  padding-top: 170px !important;
}

@media (max-width: 640px) {
  .site-header {
    top: 12px !important;
    left: 50% !important;
    right: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
    width: min(100vw - 22px, 1180px) !important;
    grid-template-columns: 1fr !important;
    border-radius: 26px !important;
  }

  .wrap {
    padding-top: 205px !important;
  }
}


/* === FINAL HEADER FIX === */
.site-header,
#topHeader.site-header {
  position: sticky !important;
  top: 18px !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: min(1180px, calc(100vw - 36px)) !important;
  margin: 18px auto 0 !important;
  z-index: 999999 !important;
}
.wrap { padding-top: 42px !important; }
@media (max-width: 640px) {
  .site-header, #topHeader.site-header {
    top: 12px !important;
    width: min(100vw - 22px, 1180px) !important;
    margin: 12px auto 0 !important;
    grid-template-columns: 1fr !important;
    border-radius: 26px !important;
  }
  .wrap { padding-top: 32px !important; }
}



/* === Account cleanup === */
.profile-telegram-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(251,191,36,0.12);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,0.24);
  font-size: 12px;
  font-weight: 950;
}

.profile-telegram-status.ok {
  background: rgba(52,211,153,0.12);
  color: #bbf7d0;
  border-color: rgba(52,211,153,0.24);
}

.stats-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 640px) {
  .quick-actions {
    grid-template-columns: 1fr !important;
  }
}



/* === Safe account cleanup === */
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.connection-text a,
.step a {
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.connection-text a:hover,
.step a:hover {
  border-bottom-color: #ffffff;
}

.dashboard {
  display: flex !important;
  flex-direction: column !important;
}

#renewCard {
  order: 2;
}

.dashboard-grid:has(#renewCard) {
  order: 2;
}

.dashboard-grid:first-of-type {
  order: 3;
}

.card:has(#historyList) {
  order: 5;
}

.info-grid {
  grid-template-columns: 1fr !important;
}

.quick-actions {
  grid-template-columns: 1fr !important;
}

/* === Telegram card restore + stable cabinet layout === */
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.connection-text a,
.step a {
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.connection-text a:hover,
.step a:hover {
  border-bottom-color: #ffffff;
}

.dashboard {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.dash-hero {
  grid-column: 1 / -1 !important;
  order: 1 !important;
}

.main-cabinet-grid,
.renew-grid {
  display: contents !important;
}

.subscription-card {
  display: none !important;
}

#renewCard {
  grid-column: 1 / 2 !important;
  order: 2 !important;
  height: 100% !important;
}

#telegramConnectionCard {
  grid-column: 2 / 3 !important;
  order: 3 !important;
  height: 100% !important;
}

#telegramConnectionCard.hidden {
  display: none !important;
}

.dashboard.telegram-linked #renewCard {
  grid-column: 1 / -1 !important;
}

.history-card,
.card:has(#historyList) {
  grid-column: 1 / -1 !important;
  order: 10 !important;
  width: 100% !important;
}

.history-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.info-grid {
  grid-template-columns: 1fr !important;
}

.quick-actions {
  grid-template-columns: 1fr !important;
}

@media (max-width: 980px) {
  .dashboard {
    grid-template-columns: 1fr !important;
  }

  #renewCard,
  #telegramConnectionCard,
  .history-card,
  .card:has(#historyList) {
    grid-column: 1 / -1 !important;
  }

  .history-list {
    grid-template-columns: 1fr !important;
  }
}

/* Поднимаем главный текст на главной */
#homeSection .hero {
  min-height: calc(100vh - 220px) !important;
  align-items: start !important;
  padding-top: 42px !important;
}

#homeSection .hero-inner {
  transform: translateY(-35px);
}

/* Поднимаем блок тарифов выше */
#tariffsSection .page-head {
  margin-top: 10px !important;
  margin-bottom: 26px !important;
  transform: translateY(-30px);
}

#tariffsSection .plans-wrap {
  margin-top: 0 !important;
  transform: translateY(-30px);
}
