/* ═══════════════════════════════════════════════════════════
   VPN8 — Complete stylesheet
   Light theme, indigo accent, Inter font
   Mobile-first, zero external dependencies
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */

:root {
    /* Core backgrounds */
    --bg:             #f5f6fa;
    --bg-darker:      #eef0f6;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f8f9fc;
    --bg-input:       #ffffff;
    --bg-surface:     #f0f1f7;

    /* Aliases */
    --surface:        var(--bg-surface);
    --border:         #e2e4ef;

    /* Text */
    --text:           #1e2030;
    --text-muted:     #6b7194;
    --text-dim:       #9da3c0;

    /* Primary accent — indigo (harmonizes with logo purple) */
    --accent:         #6366f1;
    --accent-hover:   #4f46e5;
    --accent-soft:    rgba(99, 102, 241, 0.08);
    --accent-border:  rgba(99, 102, 241, 0.25);

    /* Legacy aliases for JS/components that reference old names */
    --accent-1:  var(--accent);
    --accent-2:  var(--accent-hover);
    --pink:      var(--accent);
    --cyan:      var(--accent);
    --purple:    var(--accent);
    --blue:      #3b82f6;
    --green:     #10b981;
    --red:       #ef4444;
    --orange:    #f59e0b;

    /* Gradients */
    --gradient:           linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a78bfa 100%);
    --gradient-cta:       linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    --gradient-cta-hover: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    --gradient-hero:      linear-gradient(160deg, #f5f6fa 0%, #eef0f8 40%, #f0eef8 70%, #f5f6fa 100%);
    --gradient-card-border: none;

    /* Shadows */
    --shadow-card:      0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-btn:       0 1px 3px rgba(99, 102, 241, 0.15);
    --shadow-btn-hover: 0 4px 14px rgba(99, 102, 241, 0.25);
    --shadow-input:     0 0 0 3px rgba(99, 102, 241, 0.1);

    /* Shape */
    --radius-card:   16px;
    --radius-btn:    10px;
    --radius-input:  10px;
    --radius-badge:  8px;
    --radius-sm:     8px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Motion */
    --ease:   0.2s ease;
    --ease-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1100px;
    --section-gap:   80px;
    /* --sidebar-width removed: dashboard uses two-column grid now */
}

/* ── Reset & Base ─────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.9375rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

input, textarea, select {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
}

/* ── Utility ──────────────────────────────────────────────── */

.hidden { display: none !important; }

.text-center { text-align: center; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Container & Layout ───────────────────────────────────── */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.page-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--bg);
}

/* ── Logo ─────────────────────────────────────────────────── */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.logo-img {
    height: 32px;
    width: auto;
}

.auth-card-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card-logo .logo-box {
    font-size: 1.6rem;
    justify-content: center;
}

.auth-card-logo .logo-img {
    height: 40px;
}

/* ── Header ───────────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(245, 246, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--ease);
}

.header-nav a:hover { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    border: none;
    transition: background var(--ease);
    position: relative;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover { background: var(--bg-darker); }

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--ease);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    z-index: 99;
    padding: 12px 20px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--ease);
}

.mobile-menu a:hover {
    background: var(--bg-darker);
    color: var(--text);
}

@media (max-width: 640px) {
    .header-nav { display: none; }
    .header-actions #header-cta-btn { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--radius-btn);
    transition: all var(--ease-smooth);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent-border);
}

.btn-secondary:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    color: var(--text);
}

.btn-ghost {
    background: var(--bg-darker);
    color: var(--text-muted);
    padding: 10px 18px;
    border: 1.5px solid var(--text-dim);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.14);
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.3);
}

/* ── Loading spinner ──────────────────────────────────────── */

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

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.spinner-dark {
    border-color: rgba(99, 102, 241, 0.15);
    border-top-color: var(--accent);
}

.spinner-lg {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

/* ── Form elements ────────────────────────────────────────── */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    padding: 11px 14px;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-input);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-darker);
}

/* Password field wrapper */
.pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-wrap .form-input {
    padding-right: 48px;
}

.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1;
    padding: 4px;
    transition: color var(--ease);
    user-select: none;
}

.pw-toggle:hover { color: var(--text-muted); }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    transition: color var(--ease);
}

.form-hint.pw-hint-ok {
    color: var(--green);
}

.form-hint.pw-hint-err {
    color: var(--orange);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--red);
    min-height: 20px;
    opacity: 0;
    transition: opacity var(--ease);
}

.form-error.visible { opacity: 1; }

/* ── Cards ────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* Auth card */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-card);
}

.auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

/* Dashboard card */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.dash-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ── Auth links ───────────────────────────────────────────── */

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.auth-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.auth-links a:hover { color: var(--accent); }

.auth-divider {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8125rem;
    margin: 18px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Alerts ───────────────────────────────────────────────── */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.alert-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.alert-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

/* ── Status badges ────────────────────────────────────────── */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-badge::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.active::before { background: #10b981; }

.status-badge.trial {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.trial::before { background: #3b82f6; }

.status-badge.expired {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.status-badge.expired::before { background: #ef4444; }

.status-badge.none {
    background: var(--bg-darker);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.status-badge.none::before { background: var(--text-dim); }

/* ── Toggle switch ────────────────────────────────────────── */

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 26px;
    cursor: pointer;
    transition: background var(--ease);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.toggle input:disabled + .toggle-slider {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Subscription link box ────────────────────────────────── */

.sub-link-box {
    display: flex;
    align-items: stretch;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    overflow: hidden;
}

.sub-link-text {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
}

.sub-link-copy {
    padding: 10px 16px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    white-space: nowrap;
    border-radius: 0;
    font-family: inherit;
}

.sub-link-copy:hover {
    background: var(--accent-soft);
}

.sub-link-copy.copied {
    color: var(--green);
    background: rgba(16, 185, 129, 0.08);
    animation: flash-copied 0.3s ease;
}

@keyframes flash-copied {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ── Promo code block ─────────────────────────────────────── */

.promo-block {
    margin-top: 28px;
}

.promo-row {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.promo-row .form-input {
    flex: 1;
}

.promo-result {
    font-size: 0.8125rem;
    margin-top: 8px;
    text-align: center;
}

.promo-success { color: var(--green); }
.promo-error   { color: var(--red); }

/* ── Section base ─────────────────────────────────────────── */

.section {
    padding: var(--section-gap) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Features grid ────────────────────────────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--ease), box-shadow var(--ease-smooth);
}

.feature-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-soft);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Pricing ──────────────────────────────────────────────── */

/* Period tab switcher */
.pricing-tab-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Cards grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.pricing-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.pricing-label {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 1;
}

.pricing-tier {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Price display */
.pricing-price {
    margin-bottom: 20px;
}

.pricing-amount-large {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.pricing-amount-large .pricing-period-suffix {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-original {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-top: 2px;
}

/* Feature list */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-features li {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Legacy pricing-option rows (still used in some views) */
.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    gap: 12px;
    transition: border-color var(--ease);
}

.pricing-option:hover {
    border-color: var(--accent-border);
}

.pricing-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pricing-period {
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-savings {
    display: inline-block;
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.pricing-per-month {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.pricing-option-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pricing-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-currency {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Trial CTA block */
.trial-block {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.trial-block p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.875rem;
}

/* ── Benefits / Why grid ──────────────────────────────────── */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.benefit-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border-radius: 10px;
}

.benefit-text h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

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

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.8125rem;
    transition: color var(--ease);
}

.footer-links a:hover { color: var(--accent); }

/* ── Dashboard layout ─────────────────────────────────────── */

/* Header */
.dash-header {
    background: rgba(245, 246, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
}

.dash-header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-user-email {
    font-size: 0.8125rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

@media (max-width: 480px) {
    .dash-user-email { max-width: 100px; }
}
@media (max-width: 360px) {
    .dash-user-email { max-width: 80px; }
}

/* Sidebar */
/* ── Dashboard: two-column grid layout ───────────────────── */

.dash-layout {
    min-height: 100vh;
    padding-top: 60px;
}

.dash-main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.dash-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dash-col-left {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.dash-col-right {
    flex: 1;
    min-width: 0;
}

/* ── Dashboard tabs ──────────────────────────────────────── */

.dash-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dash-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: all var(--ease);
    font-family: inherit;
    white-space: nowrap;
}

.dash-tab:hover {
    color: var(--text);
}

.dash-tab.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-tab-panel {
    display: none;
}

.dash-tab-panel.active {
    display: block;
}

/* ── Telegram link inline (inside account block) ─────────── */

.tg-link-inline {
    margin-top: 12px;
    padding: 12px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tg-link-inline .tg-link-info span {
    font-size: 0.875rem;
    font-weight: 600;
}

.tg-link-inline .tg-link-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tg-linked-badge {
    color: var(--green) !important;
}

/* ── Promo inline (inside tariffs tab) ───────────────────── */

.promo-inline {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.dash-card-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

/* ── Help block links ────────────────────────────────────── */

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--ease);
    border: 1px solid var(--border);
    background: var(--bg-darker);
}

.help-link:hover {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.help-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Sub info rows ───────────────────────────────────────── */

.sub-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.sub-info-row:last-child { border-bottom: none; }

.sub-info-label { color: var(--text-muted); }
.sub-info-value { font-weight: 600; }

/* ── VPN Setup tab ───────────────────────────────────────── */

.setup-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.setup-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setup-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.setup-platform-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.setup-platform-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.setup-platform-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.setup-guide {
    padding: 14px;
    background: var(--bg-darker);
    border-radius: 10px;
}

.setup-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.setup-guide-step:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.setup-guide-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.setup-guide-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text);
}

.setup-guide-text a {
    color: var(--accent);
    font-weight: 500;
}

/* ── Checkout info banner ────────────────────────────────── */

.checkout-info-banner {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.checkout-info-banner.has-sub {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text);
}

.checkout-info-banner.has-sub strong {
    color: var(--accent);
}

/* ── Subscription progress bar ───────────────────────────── */

.sub-progress-bar {
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.sub-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--green, #22c55e), var(--green, #22c55e));
}

.sub-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #f59e0b);
}

.sub-progress-fill.critical {
    background: linear-gradient(90deg, var(--red, #e74c3c), var(--red, #e74c3c));
}

.sub-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── Pricing period rows (landing, inside cards) ─────────── */

.pricing-period-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.pricing-period-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: all var(--ease);
}

.pricing-period-row:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    color: var(--text);
}

.pricing-period-row.featured-period {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.pricing-period-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-period-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.pricing-period-save {
    font-size: 0.6875rem;
    color: var(--green);
    font-weight: 700;
}

/* ── Tablet responsive: dashboard ────────────────────────── */

@media (min-width: 769px) and (max-width: 1024px) {
    .dash-grid {
        gap: 16px;
    }
    .dash-col-left {
        width: 38%;
    }
    .dash-col-right {
        width: 60%;
    }
}

/* ── Mobile responsive: dashboard ────────────────────────── */

@media (max-width: 768px) {
    .dash-grid {
        flex-direction: column;
        overflow: hidden;
    }

    .dash-col-left {
        width: 100%;
        max-width: 100%;
        position: static;
    }

    .dash-col-right {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .dash-tab {
        padding: 9px 10px;
        font-size: 0.75rem;
    }

    .dash-card-title {
        margin-bottom: 10px;
    }

    .dash-card {
        padding: 16px;
    }

    .sub-link-text {
        max-width: calc(100vw - 160px);
    }

    .dash-card {
        overflow: hidden;
        word-break: break-word;
    }

    .dash-layout {
        padding-top: 70px;
    }
}

/* ── Skeleton loading ────────────────────────────────────── */

.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card-hover) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text-sm { height: 12px; margin-bottom: 6px; width: 60%; }
.skeleton-btn { height: 40px; width: 100%; margin-top: 12px; }

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Buy section (tariff selector) ───────────────────────── */

.buy-section {}

.tariff-group-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
    margin-top: 20px;
}

.tariff-group-title:first-child { margin-top: 0; }

.tariff-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.tariff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--ease);
    gap: 4px;
    font-family: inherit;
}

.tariff-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.tariff-btn.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
}

.tariff-btn-period {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.tariff-btn-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tariff-btn-discount {
    font-size: 0.6875rem;
    color: var(--green);
    font-weight: 700;
}

/* Trial option */
.trial-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--ease);
    margin-top: 20px;
    gap: 12px;
    font-family: inherit;
}

.trial-option:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.trial-option.selected {
    border-color: var(--accent);
    border-style: solid;
    background: var(--accent-soft);
}

.trial-option-text {
    text-align: left;
}

.trial-option-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.trial-option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.trial-option-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── Success page ─────────────────────────────────────────── */

.success-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-card);
    margin: 0 auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.success-spinner-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.success-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.success-info {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 16px;
    margin-bottom: 24px;
}

.success-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.success-info-row:last-child { border-bottom: none; }

.success-info-label { color: var(--text-muted); }
.success-info-value { font-weight: 600; }

/* Steps */
.step-block {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.step-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Client download grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

@media (min-width: 420px) {
    .client-grid { grid-template-columns: repeat(4, 1fr); }
}

.client-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    transition: border-color var(--ease), background var(--ease);
    text-decoration: none;
}

.client-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    color: var(--text);
}

.client-btn-icon { font-size: 1.4rem; }

/* Cabinet menu (legacy — still used if sidebar not present) */
.cab-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cab-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
}
.cab-menu-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    color: var(--text);
}
.cab-menu-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .cab-menu { grid-template-columns: 1fr; }
}

/* VPN Connect */
.vpn-connect-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.vpn-connect-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
}
.vpn-connect-step-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 2px;
}
.vpn-connect-step-text strong {
    color: var(--text);
}
.vpn-connect-store-link {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.vpn-connect-store-link:hover {
    background: var(--accent);
    color: #fff;
}
.vpn-connect-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    margin-top: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.vpn-connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn-hover);
    background: var(--accent-hover);
    color: #fff;
}

/* Telegram block */
.telegram-block {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
}

.telegram-block h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.telegram-block p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* QR placeholder */
.qr-placeholder {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ── Tariff banner on auth page ───────────────────────────── */

.tariff-banner {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.5;
}

.tariff-banner strong {
    color: var(--accent);
}

/* ── Retry button on payment timeout ─────────────────────── */

.retry-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.retry-btn:hover { opacity: 0.85; }

/* ── OTP form specifics ───────────────────────────────────── */

.otp-email-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.otp-email-hint strong {
    color: var(--text);
}

.otp-resend-row {
    text-align: center;
    margin-top: 14px;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: color var(--ease);
    font-family: inherit;
}

.otp-resend-btn:hover { color: var(--accent-hover); }

.otp-resend-btn:disabled {
    color: var(--text-dim);
    cursor: default;
}

/* ── Responsive tweaks ────────────────────────────────────── */

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .success-card {
        padding: 24px 20px;
    }

    .dash-card {
        padding: 20px 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn { width: 100%; justify-content: center; }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .tariff-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 360px) {
    .tariff-options {
        grid-template-columns: 1fr;
    }
}

/* ── Telegram link card ───────────────────────────────────── */

.tg-link-card {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tg-link-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.tg-link-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Auto-renew card ──────────────────────────────────────── */

.ar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ar-info {
    flex: 1;
}

.ar-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.ar-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── QR section ───────────────────────────────────────────── */

.qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.qr-section p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex: 1;
}

/* ── General loading state ────────────────────────────────── */

.loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ── Payment history ── */
.payments-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-darker);
    border-radius: 10px;
    gap: 12px;
}

.payment-row-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-amount {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.payment-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.payment-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.payment-status {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
}

.payment-ok {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.payment-pending {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.payment-fail {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
}

.payment-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ── Mobile: landing section spacing ──────────────────────── */
@media (max-width: 768px) {
    :root { --section-gap: 48px; }
    .section-header { margin-bottom: 28px; }
    .section-title { font-size: 1.375rem; }
}
