/* ═══════════════════════════════════════════════════════
   LEOSAGITRADES — Design System
   ═══════════════════════════════════════════════════════ */

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg-deep: #030305;
    --bg-primary: #06070b;
    --bg-surface: #0b0c12;
    --bg-card: #101119;
    --bg-card-hover: #151620;
    --bg-elevated: #1a1b25;
    --border: #1a1c28;
    --border-light: #262838;
    --gold: #d4a33a;
    --gold-dark: #b58a22;
    --gold-light: #ecc05a;
    --gold-glow: rgba(212, 163, 58, 0.12);
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.12);
    --cyan: #2dd4bf;
    --discord: #5865F2;
    --green: #22c55e;
    --red: #ef4444;
    --text-1: #e4e4e8;
    --text-2: #8a8a94;
    --text-3: #4a4a55;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-sm: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; max-width: 100vw; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Noise grain overlay — applied via pseudo on html to avoid flex issues */
html::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

::selection {
    background: rgba(212, 163, 58, 0.25);
    color: var(--text-1);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════════════════════════════════════════════════
   WATERMARK TEXT
   ═══════════════════════════════════════════════════════ */

/* Background text wall — repeating brand name */
.bg-text-wall {
    position: fixed;
    top: -15%;
    left: 0;
    right: 0;
    bottom: -15%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    will-change: transform;
}

.bg-text-line {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(50px, 7vw, 90px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
    line-height: 1.6;
    flex-shrink: 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════
   CURSOR GLOW
   ═══════════════════════════════════════════════════════ */

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 163, 58, 0.045) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.4s;
    opacity: 0;
}

.cursor-glow.active { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 7, 11, 0.85);
    backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    padding: 12px 40px;
    background: rgba(6, 7, 11, 0.95);
    border-bottom-color: rgba(212, 163, 58, 0.08);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-1);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.85; color: var(--text-1); }

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 4px;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.nav-brand:hover .brand-mark { transform: rotate(0deg) scale(1.05); }

.brand-mark-letter {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #000;
    line-height: 1;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text-1);
    line-height: 1.4;
    overflow: visible;
}

.brand-text-accent {
    color: var(--gold);
}

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-link:hover { color: var(--text-1); }
.nav-logout { color: var(--text-3); }
.nav-logout:hover { color: var(--red); }
.nav-user { display: flex; align-items: center; gap: 10px; }

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    transition: border-color 0.2s;
}

.nav-avatar:hover { border-color: var(--gold); }

.nav-username {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    letter-spacing: 0.01em;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-gold {
    background: var(--gold);
    color: #000;
}
.btn-gold:hover {
    background: var(--gold-light);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 163, 58, 0.25);
}

.btn-discord { background: var(--discord); color: white; }
.btn-discord:hover {
    background: #4752c4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 163, 58, 0.04);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
}
.btn-purple:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--purple-glow);
}

.btn-glow { position: relative; overflow: visible; }
.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(18px);
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.3s;
}
.btn-glow:hover::after { opacity: 0.45; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════
   HERO — Landing Page
   ═══════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: 110px 20px 90px;
    position: relative;
    overflow: clip;
}

/* Gradient mesh background */
.hero-glow {
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 163, 58, 0.08) 0%, transparent 65%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    top: -50px;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.035) 0%, transparent 65%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite 2s;
}

/* Subtle dot grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(212, 163, 58, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 65%);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 7s ease-in-out infinite;
}

.particle:nth-child(1) { left: 12%; animation-delay: 0s; animation-duration: 9s; }
.particle:nth-child(2) { left: 28%; animation-delay: 1.2s; animation-duration: 7s; }
.particle:nth-child(3) { left: 42%; animation-delay: 2.8s; animation-duration: 8s; }
.particle:nth-child(4) { left: 58%; animation-delay: 0.6s; animation-duration: 10s; }
.particle:nth-child(5) { left: 72%; animation-delay: 2s; animation-duration: 7.5s; }
.particle:nth-child(6) { left: 88%; animation-delay: 3.5s; animation-duration: 8.5s; }
.particle:nth-child(7) { left: 33%; animation-delay: 4.2s; animation-duration: 6s; }
.particle:nth-child(8) { left: 65%; animation-delay: 1.8s; animation-duration: 9.5s; }

@keyframes particleFloat {
    0% { bottom: -3%; opacity: 0; transform: translateX(0) scale(1); }
    10% { opacity: 0.5; }
    50% { opacity: 0.2; transform: translateX(30px) scale(1.5); }
    90% { opacity: 0; }
    100% { bottom: 105%; opacity: 0; transform: translateX(-20px) scale(0.5); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid rgba(212, 163, 58, 0.25);
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(38px, 5.5vw, 58px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    padding-bottom: 4px;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Gold shimmer on text */
.shimmer {
    background: linear-gradient(
        110deg,
        var(--gold-dark) 0%,
        var(--gold) 25%,
        var(--gold-light) 45%,
        #fff 50%,
        var(--gold-light) 55%,
        var(--gold) 75%,
        var(--gold-dark) 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerMove 5s ease infinite;
}

@keyframes shimmerMove {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* ═══════════════════════════════════════════════════════
   PRICING SECTION
   ═══════════════════════════════════════════════════════ */

.pricing-section, .networks-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    overflow: clip;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 48px;
    font-size: 15px;
    font-weight: 400;
}

/* Pricing grid */
.pricing-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
    padding-top: 16px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.5s;
    transition-delay: var(--delay, 0s);
    overflow: visible;
}

.pricing-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.pricing-card > *:not(.card-shine):not(.pricing-badge):not(.corner-accent) {
    position: relative;
    z-index: 2;
}

/* Corner accent brackets */
.pricing-card::before,
.pricing-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--border-light);
    transition: border-color 0.3s, opacity 0.3s;
    opacity: 0.4;
    z-index: 3;
}

.pricing-card::before {
    top: 8px;
    left: 8px;
    border-top: 1.5px solid;
    border-left: 1.5px solid;
    border-color: inherit;
}

.pricing-card::after {
    bottom: 8px;
    right: 8px;
    border-bottom: 1.5px solid;
    border-right: 1.5px solid;
    border-color: inherit;
}

.pricing-card:hover::before,
.pricing-card:hover::after {
    border-color: var(--gold);
    opacity: 0.7;
}

.pricing-featured {
    border-color: rgba(212, 163, 58, 0.2);
    background: linear-gradient(180deg, rgba(212, 163, 58, 0.04) 0%, var(--bg-card) 50%);
    z-index: 2;
}

.pricing-featured:hover {
    box-shadow: 0 20px 56px rgba(212, 163, 58, 0.12);
}

/* Animated border on featured card */
.pricing-featured .card-border-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        var(--gold),
        var(--gold-dark),
        rgba(212, 163, 58, 0.15),
        var(--gold-light),
        var(--gold)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 5s linear infinite;
    z-index: 0;
}

@keyframes rotateBorder {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

@supports not (background: paint(something)) {
    .pricing-featured .card-border-glow {
        background: linear-gradient(45deg, var(--gold), var(--gold-dark), rgba(212, 163, 58, 0.15), var(--gold-light));
        background-size: 300% 300%;
        animation: gradientMove 4s ease infinite;
    }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card shine */
.card-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.tilt-card:hover .card-shine { opacity: 1; }

/* Badges */
.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 5;
}

.badge-popular { background: var(--gold); color: #000; }
.badge-value { background: var(--purple); color: white; }
.badge-savings { background: var(--green); color: white; }

/* Card content */
.pricing-period {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pricing-duration-label {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 18px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.pricing-dollar {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-2);
    margin-right: 2px;
}

.pricing-number {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.pricing-monthly { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }

.pricing-save {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 10px;
    min-height: 18px;
}

.pricing-save-empty {
    background: none;
    visibility: hidden;
    letter-spacing: 0.5px;
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-2);
}

.feature-check { font-weight: 700; font-size: 11px; flex-shrink: 0; }

.pricing-cta { margin-top: auto; }

/* Stagger entrance */
.pricing-slider .pricing-card {
    opacity: 0;
    transform: translateY(25px);
}

.reveal.visible .pricing-card {
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .pricing-featured {
    transform: scale(1.02);
}

/* Network pills */
.network-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.network-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
}

.network-pill:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.networks-note {
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

.network-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.network-pill:hover .network-dot {
    transform: scale(1.3);
    box-shadow: 0 0 6px currentColor;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════ */

.dash-hero {
    position: relative;
    padding: 52px 20px 36px;
    overflow: clip;
    border-bottom: 1px solid var(--border);
}

.dash-hero-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 58, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

.dash-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 2;
}

.dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 16px rgba(212, 163, 58, 0.15);
    transition: all 0.3s;
}

.dash-avatar:hover {
    box-shadow: 0 0 28px rgba(212, 163, 58, 0.3);
    transform: scale(1.04);
}

.dash-user-text { text-align: left; }

.dash-user-name {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
    line-height: 1.3;
}

.dash-user-tag {
    color: var(--text-3);
    font-size: 13px;
}

/* Dashboard content */
.dashboard {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.dash-section {
    margin-bottom: 48px;
    position: relative;
}

.dash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

/* Pending payment banner */
.pending-banner {
    background: var(--bg-card);
    border: 1px solid rgba(212, 163, 58, 0.2);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
}

.pending-banner-glow {
    position: absolute;
    top: -50%;
    left: -15%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(212, 163, 58, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pending-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.pending-info { display: flex; align-items: center; gap: 12px; }

.pending-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(212, 163, 58, 0.4);
}

.pending-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1px;
}

.pending-desc { font-size: 12px; color: var(--text-2); }

.pending-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Plan tabs */
.plan-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow: visible;
    padding-top: 12px;
    padding-bottom: 4px;
    flex-wrap: wrap;
}

.plan-tab {
    flex: 1;
    min-width: 110px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    color: var(--text-2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 68px;
}

.plan-tab:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.plan-tab.active {
    border-color: var(--gold);
    background: var(--gold-glow);
    color: var(--text-1);
    box-shadow: 0 2px 12px rgba(212, 163, 58, 0.08);
}

.plan-tab-featured { border-color: rgba(212, 163, 58, 0.2); }
.plan-tab-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }

.plan-tab-price {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.plan-tab.active .plan-tab-price { color: var(--gold); }

.plan-tab-permonth {
    display: block;
    font-size: 10px;
    color: var(--text-3);
    font-weight: 500;
    margin-top: 2px;
}

.plan-tab-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    padding: 2px 7px;
    background: var(--gold);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 2px;
    white-space: nowrap;
}

/* Plan detail card */
.plan-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: visible;
}

.plan-detail-card:hover {
    border-color: rgba(212, 163, 58, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Corner accents on plan detail card */
.plan-detail-card::before,
.plan-detail-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--border-light);
    transition: border-color 0.3s;
    opacity: 0.3;
    pointer-events: none;
}

.plan-detail-card::before {
    top: 8px;
    left: 8px;
    border-top: 1.5px solid;
    border-left: 1.5px solid;
    border-color: inherit;
}

.plan-detail-card::after {
    bottom: 8px;
    right: 8px;
    border-bottom: 1.5px solid;
    border-right: 1.5px solid;
    border-color: inherit;
}

.plan-detail-card:hover::before,
.plan-detail-card:hover::after {
    border-color: var(--gold);
    opacity: 0.5;
}

.plan-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    min-height: 64px;
}

.plan-detail-price-wrap { text-align: right; }

.plan-detail-name {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-detail-duration { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }

.plan-detail-price {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -1px;
    transition: color 0.3s;
}

.plan-detail-usdt { font-size: 13px; color: var(--text-3); text-align: right; }

.plan-detail-permonth {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 6px;
}

.plan-detail-saving {
    height: 28px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    box-sizing: content-box;
}

.saving-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.5px;
}

.saving-tag-neutral {
    background: rgba(138, 138, 148, 0.08);
    border-color: rgba(138, 138, 148, 0.15);
    color: var(--text-3);
}

.plan-detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 20px;
    margin-bottom: 26px;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-2);
}

.feature-check-sm {
    color: var(--gold);
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

/* Network select */
.network-select-section { margin-bottom: 22px; }

.select-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.network-options { display: flex; gap: 8px; }
.network-option { flex: 1; cursor: pointer; }
.network-option input { display: none; }

.network-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.network-short { color: var(--text-3); font-size: 10px; }

.network-option input:checked + .network-option-label {
    border-color: var(--gold);
    background: var(--gold-glow);
    color: var(--gold);
    box-shadow: 0 2px 10px rgba(212, 163, 58, 0.08);
}

.network-option input:checked + .network-option-label .network-short { color: var(--gold); }

.network-option-label:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

/* Gas fee tags */
.gas-loading {
    font-weight: 400;
    font-size: 9px;
    color: var(--text-3);
    letter-spacing: normal;
    text-transform: none;
}

.network-gas-tag {
    display: none;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.network-gas-tag.gas-loaded {
    display: inline-block;
    background: rgba(138, 138, 148, 0.08);
    color: var(--text-3);
}

.network-gas-tag.gas-best {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* USDT recommended + Card payment */
.usdt-recommended {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--green);
}

.recommended-icon { font-size: 14px; flex-shrink: 0; }

.payment-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.btn-card-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-card-pay:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-3);
    color: var(--text-1);
}

.card-icons { display: flex; align-items: center; flex-shrink: 0; }

.card-pay-note {
    text-align: center;
    font-size: 10px;
    color: var(--text-3);
    margin-top: 8px;
}

/* Subscription cards */
.sub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-left: 3px solid;
    transition: all 0.25s ease;
    position: relative;
}

.sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border-color: var(--border-light);
}

.sub-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    position: relative;
}

.sub-tier-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; }

.sub-status {
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sub-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.sub-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

.sub-card-body { padding: 12px 20px 18px; display: flex; gap: 28px; }

.sub-label {
    font-size: 10px;
    color: var(--text-3);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sub-value { font-size: 14px; font-weight: 600; }

/* Payment table */
.payment-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s;
}

.payment-table-card:hover { border-color: var(--border-light); }

.payment-table { width: 100%; border-collapse: collapse; }

.td-amount { color: var(--gold) !important; font-weight: 600; }

.payment-table th {
    text-align: left;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.payment-table td {
    padding: 13px 16px;
    font-size: 13px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.payment-table tr:hover td { background: rgba(212, 163, 58, 0.02); }

.status-badge {
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: rgba(212, 163, 58, 0.12); color: var(--gold); }
.status-confirmed { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.status-expired { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.status-cancelled { background: rgba(107, 114, 128, 0.12); color: var(--text-3); }

/* ═══════════════════════════════════════════════════════
   PAYMENT PAGE
   ═══════════════════════════════════════════════════════ */

.payment-page {
    max-width: 940px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-info-card, .payment-address-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}

/* Corner accents on payment cards */
.payment-info-card::before,
.payment-address-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    border-top: 1.5px solid var(--border-light);
    border-left: 1.5px solid var(--border-light);
    opacity: 0.3;
    pointer-events: none;
}

.payment-info-card::after,
.payment-address-card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-bottom: 1.5px solid var(--border-light);
    border-right: 1.5px solid var(--border-light);
    opacity: 0.3;
    pointer-events: none;
}

.payment-header { margin-bottom: 24px; }

.back-link {
    font-size: 12px;
    color: var(--text-3);
    display: inline-block;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--text-1); }

.payment-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.payment-tier-info { margin-bottom: 24px; }

.payment-tier-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

.payment-duration { font-size: 12px; color: var(--text-3); }
.payment-details { margin-bottom: 24px; }

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    color: var(--text-1);
}

.detail-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s infinite;
}

.status-indicator.confirmed { background: var(--green); animation: none; }
.status-indicator.expired { background: var(--red); animation: none; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.payment-steps { display: flex; flex-direction: column; gap: 10px; }

.step { display: flex; align-items: center; gap: 12px; padding: 8px 0; }

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

.step-text { font-size: 12px; color: var(--text-2); }

.qr-section { text-align: center; margin-bottom: 24px; }

.qr-wrapper {
    display: inline-block;
    padding: 14px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.qr-image { width: 170px; height: 170px; display: block; }
.qr-hint { font-size: 11px; color: var(--text-3); }
.address-section { margin-bottom: 18px; }

.address-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.address-box:hover {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 163, 58, 0.06);
}

.address-text {
    flex: 1;
    font-size: 11px;
    word-break: break-all;
    color: var(--text-1);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}
.copy-btn:hover { color: var(--gold); }

.amount-reminder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--gold-glow);
    border: 1px solid rgba(212, 163, 58, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.amount-label { font-size: 12px; color: var(--text-2); }

.amount-value {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
}

.network-warning {
    font-size: 11px;
    color: var(--text-3);
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.cancel-payment-btn {
    opacity: 0.6;
    font-size: 12px !important;
}

.cancel-payment-btn:hover {
    opacity: 1;
    border-color: var(--red) !important;
    color: var(--red) !important;
}

/* ═══════════════════════════════════════════════════════
   USDT PREFERENCE MODAL
   ═══════════════════════════════════════════════════════ */

.usdt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.usdt-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.usdt-modal {
    background: linear-gradient(165deg, rgba(22, 24, 32, 0.98), rgba(12, 13, 18, 0.99));
    border: 1px solid rgba(38, 161, 123, 0.2);
    border-radius: 20px;
    padding: 36px 32px 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 80px rgba(38, 161, 123, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.usdt-modal-overlay.show .usdt-modal {
    transform: translateY(0) scale(1);
}

.usdt-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.usdt-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.usdt-modal-icon {
    text-align: center;
    margin-bottom: 16px;
}

.usdt-modal-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.usdt-modal-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.usdt-modal-desc strong {
    color: #26a17b;
}

.usdt-modal-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.usdt-modal-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.usdt-modal-benefit:hover {
    background: rgba(255, 255, 255, 0.04);
}

.benefit-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.usdt-modal-benefit strong {
    color: var(--text);
}

.usdt-modal-comparison {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comparison-card {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-card-bad {
    background: rgba(239, 107, 107, 0.06);
    border: 1px solid rgba(239, 107, 107, 0.15);
}

.comparison-card-good {
    background: rgba(38, 161, 123, 0.08);
    border: 1px solid rgba(38, 161, 123, 0.2);
}

.comparison-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.comparison-price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.comparison-card-bad .comparison-price {
    color: #ef6b6b;
}

.comparison-card-good .comparison-price {
    color: #26a17b;
}

.comparison-note {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comparison-vs {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.usdt-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usdt-modal-btn-primary {
    width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 24px;
}

.usdt-modal-btn-secondary {
    width: 100%;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 10px 24px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

@media (max-width: 520px) {
    .usdt-modal {
        padding: 28px 20px 24px;
    }
    .usdt-modal-comparison {
        flex-direction: column;
        gap: 8px;
    }
    .comparison-vs {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════════════════════ */

.success-overlay, .expired-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 200;
}

.success-overlay.show, .expired-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.success-content, .expired-content {
    text-align: center;
    max-width: 380px;
    padding: 40px;
}

.success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--green);
    margin: 0 auto 18px;
}

.expired-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--red);
    margin: 0 auto 18px;
}

.success-content h2, .expired-content h2 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.success-content p, .expired-content p { color: var(--text-2); margin-bottom: 8px; font-size: 14px; }
.success-sub { font-size: 12px; color: var(--text-3) !important; margin-bottom: 24px !important; }

/* ═══════════════════════════════════════════════════════
   TOASTS & UTILITIES
   ═══════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    animation-fill-mode: forwards;
    border-left: 3px solid;
}

.toast-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.toast-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--red);
    color: var(--red);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut { to { opacity: 0; transform: translateY(-8px); } }

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

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

.shake { animation: shake 0.4s ease; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.text-danger { color: var(--red) !important; }
.main-content { flex: 1; overflow-x: hidden; max-width: 100vw; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.anim-fade-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.7s ease forwards;
}

.anim-fade-down {
    opacity: 0;
    transform: translateY(-15px);
    animation: fadeDown 0.5s ease forwards;
}

.anim-delay-1 { animation-delay: 0.12s; }
.anim-delay-2 { animation-delay: 0.24s; }
.anim-delay-3 { animation-delay: 0.36s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 40px 28px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 880px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.footer-brand-link:hover { opacity: 0.7; }

.footer-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--gold);
    border-radius: 3px;
    transform: rotate(-3deg);
}

.footer-logo-letter {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #000;
    line-height: 1;
}

.footer-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.4;
}

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

.footer-link {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy { font-size: 11px; color: var(--text-3); }

.footer-disclaimer {
    font-size: 10px;
    color: var(--text-3);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════
   TOS PAGE
   ═══════════════════════════════════════════════════════ */

.tos-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.tos-header {
    margin-bottom: 44px;
}

.tos-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 20px;
    transition: color 0.2s;
}
.tos-back:hover { color: var(--gold); }

.tos-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.tos-updated {
    font-size: 12px;
    color: var(--text-3);
}

.tos-section {
    margin-bottom: 32px;
}

.tos-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.tos-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.75;
}

.tos-text p {
    margin-bottom: 10px;
}

.tos-text ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.tos-text ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.tos-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
}

.tos-text strong {
    color: var(--text-1);
    font-weight: 600;
}

.tos-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

.tos-highlight {
    padding: 16px 18px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius);
    margin: 14px 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

.tos-highlight strong {
    color: var(--red);
}

/* ═══════════════════════════════════════════════════════
   TOS CHECKBOX GATE
   ═══════════════════════════════════════════════════════ */

.tos-gate {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tos-gate:hover {
    border-color: var(--border-light);
}

.tos-gate-check {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 3px;
    background: var(--bg-card);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s;
}

.tos-gate-check:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.tos-gate-check:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.tos-gate-label {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
    user-select: none;
}

.tos-gate-label a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.payment-actions-wrap {
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.payment-actions-wrap.locked {
    filter: blur(4px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════════════════
   COUPON / DISCOUNT
   ═══════════════════════════════════════════════════════ */

.coupon-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.coupon-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coupon-input {
    flex: 1;
    padding: 9px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}

.coupon-input::placeholder {
    text-transform: none;
    color: var(--text-3);
    letter-spacing: normal;
}

.coupon-input:focus { border-color: var(--gold); }
.coupon-input:disabled { opacity: 0.6; cursor: not-allowed; }

.coupon-apply-btn { white-space: nowrap; min-width: 72px; }

.coupon-feedback {
    margin-top: 8px;
    font-size: 12px;
    min-height: 18px;
}

.coupon-success { color: var(--green); font-weight: 500; }
.coupon-error { color: var(--red); font-weight: 500; }

.plan-detail-original-price {
    font-size: 16px;
    color: var(--text-3);
    text-decoration: line-through;
    text-align: right;
    margin-bottom: 2px;
}

.plan-detail-price.discounted { color: var(--green); }

.original-price-strike {
    text-decoration: line-through;
    color: var(--text-3);
    font-size: 0.85em;
    margin-right: 6px;
}

.discount-badge-sm {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    margin-left: 6px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* ── Tablet landscape (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
    .pricing-slider { grid-template-columns: repeat(2, 1fr); }
    .pricing-featured { transform: scale(1); }
    .pricing-featured:hover { transform: translateY(-4px); }
    .reveal.visible .pricing-featured { transform: scale(1); }
}

/* ── Tablet portrait / small laptops (≤768px) ────────── */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 14px 16px; }
    .navbar.scrolled { padding: 10px 16px; }
    .nav-links { gap: 12px; }
    .nav-link { font-size: 12px; }
    .nav-username { display: none; }
    .nav-avatar { width: 26px; height: 26px; }
    .brand-text { font-size: 15px; }
    .cursor-glow { display: none; }

    /* Hero */
    .hero { padding: 60px 16px 50px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; max-width: 400px; }
    .hero-badge { margin-bottom: 20px; }
    .hero-glow { width: 400px; height: 400px; top: -150px; }
    .hero-glow-2 { width: 250px; height: 250px; }

    /* Pricing — index page */
    .pricing-section, .networks-section { padding: 40px 16px; }
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 13px; margin-bottom: 32px; }
    .pricing-slider {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .pricing-featured, .reveal.visible .pricing-featured { transform: scale(1); }
    .pricing-featured:hover { transform: translateY(-4px); }
    .pricing-card { padding: 24px 20px 20px; }
    .pricing-number { font-size: 34px; }

    /* Dashboard hero */
    .dash-hero { padding: 36px 16px 24px; }
    .dash-avatar { width: 52px; height: 52px; }
    .dash-user-name { font-size: 20px; }
    .dash-user-tag { font-size: 12px; }

    /* Dashboard content */
    .dashboard { padding: 28px 16px 48px; }
    .dash-section { margin-bottom: 36px; }
    .dash-title { font-size: 18px; margin-bottom: 16px; }

    /* Plan tabs */
    .plan-tabs { gap: 5px; }
    .plan-tab { min-width: 0; padding: 10px 8px; min-height: 60px; }
    .plan-tab-name { font-size: 11px; }
    .plan-tab-price { font-size: 16px; }
    .plan-tab-permonth { font-size: 9px; }
    .plan-tab-badge { font-size: 6px; padding: 2px 5px; top: -6px; right: 4px; }

    /* Plan detail card */
    .plan-detail-card { padding: 22px 18px; }
    .plan-detail-top { flex-direction: column; gap: 8px; min-height: unset; }
    .plan-detail-price-wrap { text-align: left; }
    .plan-detail-name { font-size: 17px; }
    .plan-detail-price { font-size: 28px; }
    .plan-detail-features { grid-template-columns: 1fr; gap: 6px; }
    .plan-detail-saving { margin-bottom: 14px; padding-bottom: 14px; }

    /* Coupon */
    .coupon-section { padding-bottom: 14px; margin-bottom: 14px; }

    /* Network select */
    .network-options { flex-direction: column; }
    .network-option-label { padding: 14px 12px; font-size: 13px; min-height: 44px; }

    /* Pending banner */
    .pending-banner { padding: 14px 16px; }
    .pending-banner-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pending-actions { width: 100%; }
    .pending-actions .btn { flex: 1; }

    /* Sub cards */
    .sub-cards { grid-template-columns: 1fr; }
    .sub-card-body { gap: 16px; }

    /* Payment history table — horizontal scroll */
    .payment-table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .payment-table { min-width: 520px; }

    /* Payment page */
    .payment-page { padding: 24px 16px; }
    .payment-container { grid-template-columns: 1fr; }
    .payment-info-card, .payment-address-card { padding: 22px 18px; }
    .payment-header h2 { font-size: 18px; }
    .qr-image { width: 150px; height: 150px; }
    .qr-wrapper { padding: 12px; }
    .address-text { font-size: 10px; }
    .amount-value { font-size: 15px; }

    /* Success/expired overlays */
    .success-content, .expired-content { padding: 32px 24px; max-width: 320px; }
    .success-icon, .expired-icon { width: 56px; height: 56px; font-size: 24px; }

    /* Footer */
    .footer { padding: 24px 16px 20px; }
    .footer-top { flex-direction: column; gap: 12px; align-items: flex-start; }
    .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
    .footer-nav { gap: 16px; }

    /* TOS page */
    .tos-page { padding: 40px 16px 60px; }
    .tos-title { font-size: 26px; }
    .tos-header { margin-bottom: 32px; }
    .tos-section { margin-bottom: 24px; }
    .tos-highlight { padding: 14px 16px; }

    /* Toasts */
    .toast-container { top: 10px; right: 10px; left: 10px; }
    .toast { font-size: 12px; }

    /* Watermark */
    .watermark { display: none; }
}

/* ── Large phones (≤600px) ───────────────────────────── */
@media (max-width: 600px) {
    /* Plan tabs — 2x2 grid */
    .plan-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .plan-tab { min-width: unset; min-height: 64px; padding: 10px 10px; }
    .plan-tab-price { font-size: 17px; }
    .plan-tab-name { font-size: 12px; }

    /* USDT modal */
    .usdt-modal { padding: 28px 20px 24px; }
    .usdt-modal-title { font-size: 1.2rem; }
    .usdt-modal-benefit { padding: 8px 12px; font-size: 0.82rem; }
    .usdt-modal-comparison { gap: 8px; }
    .comparison-price { font-size: 1.15rem; }
}

/* ── Standard phones (≤480px) ────────────────────────── */
@media (max-width: 480px) {
    /* Hero */
    .hero { padding: 48px 14px 40px; }
    .hero-title { font-size: 28px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 24px; line-height: 1.6; }
    .hero-badge { font-size: 9px; letter-spacing: 2px; padding: 4px 12px; margin-bottom: 16px; }

    /* Buttons — larger touch targets */
    .btn-lg { padding: 14px 24px; font-size: 14px; min-height: 48px; }
    .btn-sm { padding: 10px 14px; font-size: 12px; min-height: 40px; }

    /* Navbar */
    .navbar { padding: 12px 14px; }
    .navbar.scrolled { padding: 10px 14px; }
    .brand-mark { width: 28px; height: 28px; }
    .brand-mark-letter { font-size: 16px; }
    .brand-text { font-size: 14px; }
    .nav-brand { gap: 8px; }
    .nav-links { gap: 8px; }
    .nav-link { font-size: 11px; }
    .nav-logout { font-size: 11px; }

    /* Dashboard */
    .dash-hero { padding: 28px 14px 20px; }
    .dash-hero-inner { gap: 14px; }
    .dash-avatar { width: 44px; height: 44px; }
    .dash-user-name { font-size: 18px; }
    .dashboard { padding: 20px 14px 40px; }
    .dash-title { font-size: 16px; }

    /* Plan detail card */
    .plan-detail-card { padding: 18px 14px; }
    .plan-detail-name { font-size: 16px; }
    .plan-detail-price { font-size: 26px; }
    .plan-detail-usdt { font-size: 11px; }
    .plan-detail-permonth { font-size: 12px; }
    .plan-feature-item { font-size: 12px; gap: 6px; }

    /* Network select — still stacked but bigger touch targets */
    .network-option-label { padding: 14px 14px; font-size: 13px; min-height: 48px; }

    /* Coupon */
    .coupon-input-wrap { flex-direction: column; }
    .coupon-apply-btn { width: 100%; min-height: 44px; }

    /* TOS gate */
    .tos-gate { padding: 14px 14px; gap: 10px; }
    .tos-gate-label { font-size: 11px; }
    .tos-gate-check { width: 20px; height: 20px; }

    /* Payment divider / card pay */
    .payment-divider { margin: 14px 0; }
    .btn-card-pay { padding: 14px 18px; font-size: 13px; min-height: 48px; }

    /* Pending banner */
    .pending-banner { padding: 12px 14px; }
    .pending-title { font-size: 13px; }
    .pending-desc { font-size: 11px; }

    /* Sub cards */
    .sub-card-header { padding: 14px 16px 10px; }
    .sub-card-body { padding: 10px 16px 14px; flex-wrap: wrap; gap: 12px; }

    /* Payment page */
    .payment-page { padding: 16px 12px; }
    .payment-info-card, .payment-address-card { padding: 18px 14px; }
    .payment-header h2 { font-size: 16px; }
    .payment-tier-name { font-size: 16px; }
    .detail-row { font-size: 12px; padding: 9px 0; }
    .detail-amount { font-size: 14px; }
    .step-text { font-size: 11px; }
    .qr-image { width: 140px; height: 140px; }
    .address-text { font-size: 9.5px; }
    .address-box { padding: 10px; }
    .amount-reminder { padding: 10px 12px; }
    .amount-label { font-size: 11px; }
    .amount-value { font-size: 14px; }
    .network-warning { font-size: 10px; padding: 8px 10px; }

    /* Footer */
    .footer { padding: 20px 14px 16px; }
    .footer-nav { gap: 12px; flex-wrap: wrap; }
    .footer-link { font-size: 11px; }
    .footer-copy { font-size: 10px; }
    .footer-disclaimer { font-size: 9px; }

    /* TOS page */
    .tos-page { padding: 28px 14px 48px; }
    .tos-title { font-size: 22px; }
    .tos-section-title { font-size: 15px; }
    .tos-text { font-size: 12px; }
    .tos-highlight { padding: 12px 14px; font-size: 12px; }

    /* USDT modal */
    .usdt-modal-overlay { padding: 12px; }
    .usdt-modal { padding: 24px 16px 20px; border-radius: 16px; }
    .usdt-modal-title { font-size: 1.1rem; }
    .usdt-modal-desc { font-size: 0.82rem; }
    .usdt-modal-benefit { padding: 8px 10px; font-size: 0.8rem; gap: 10px; }
    .usdt-modal-comparison { flex-direction: column; gap: 6px; }
    .comparison-vs { display: none; }
    .comparison-card { padding: 10px 12px; }
    .comparison-price { font-size: 1.15rem; }
    .usdt-modal-btn-primary { font-size: 0.88rem; padding: 14px 20px; }
    .usdt-modal-btn-secondary { font-size: 0.78rem; padding: 10px 16px; }

    /* Overlays */
    .success-content, .expired-content { padding: 28px 20px; max-width: 300px; }
    .success-content h2, .expired-content h2 { font-size: 18px; }
    .success-content p, .expired-content p { font-size: 13px; }
    .success-icon, .expired-icon { width: 50px; height: 50px; font-size: 22px; margin-bottom: 14px; }

    /* Pricing section */
    .pricing-section { padding: 32px 14px; }
    .section-subtitle { font-size: 12px; margin-bottom: 24px; }
    .pricing-card { padding: 20px 16px 18px; }
    .pricing-number { font-size: 30px; }
    .pricing-dollar { font-size: 14px; }
    .pricing-period { font-size: 15px; }
    .pricing-features li { font-size: 11px; gap: 6px; }

    /* Background text — smaller on mobile */
    .bg-text-line { font-size: clamp(36px, 10vw, 50px); }
}

/* ── Small phones (≤360px) ───────────────────────────── */
@media (max-width: 360px) {
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 12px; }
    .hero { padding: 40px 12px 32px; }

    .navbar { padding: 10px 12px; }
    .brand-text { font-size: 13px; }
    .brand-mark { width: 26px; height: 26px; }
    .brand-mark-letter { font-size: 14px; }

    .plan-tabs { grid-template-columns: 1fr 1fr; gap: 4px; }
    .plan-tab { padding: 8px 6px; min-height: 58px; }
    .plan-tab-price { font-size: 15px; }
    .plan-tab-name { font-size: 10px; }

    .plan-detail-card { padding: 16px 12px; }
    .plan-detail-price { font-size: 24px; }
    .plan-detail-name { font-size: 15px; }

    .dashboard { padding: 16px 12px 32px; }
    .dash-user-name { font-size: 16px; }

    .qr-image { width: 120px; height: 120px; }
    .address-text { font-size: 8.5px; }

    .pricing-slider { max-width: 100%; }
    .pricing-number { font-size: 28px; }

    .tos-title { font-size: 20px; }
    .tos-page { padding: 24px 12px 40px; }

    .footer { padding: 16px 12px 14px; }

    .usdt-modal { padding: 20px 14px 18px; }
    .usdt-modal-title { font-size: 1rem; }

    .success-content, .expired-content { padding: 24px 16px; max-width: 280px; }
}
