/**
 * ch-pages.css — Estilos específicos de página: hero, auth, rank, upgrade, etc.
 */

/* ════════════════════════════════════════════════════════════════════
   HERO (index.php)
   ════════════════════════════════════════════════════════════════════ */
.ch-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    margin-bottom: var(--sp-8);
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.08) 50%, rgba(6,182,212,0.06) 100%);
    border: 1px solid rgba(99,102,241,0.15);
}

.ch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(99,102,241,0.18), transparent 65%),
        radial-gradient(ellipse 50% 50% at 5% 100%, rgba(6,182,212,0.12), transparent 60%);
    pointer-events: none;
}

/* Animated orbs */
.ch-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: ch-orb-drift 8s ease-in-out infinite alternate;
}
.ch-hero__orb--1 { width: 300px; height: 300px; background: rgba(99,102,241,0.2); top: -100px; right: 10%; animation-duration: 9s; }
.ch-hero__orb--2 { width: 200px; height: 200px; background: rgba(6,182,212,0.15); bottom: -50px; left: 5%; animation-duration: 11s; animation-delay: -3s; }
.ch-hero__orb--3 { width: 150px; height: 150px; background: rgba(244,63,94,0.12); top: 20%; left: 40%; animation-duration: 7s; animation-delay: -5s; }

@keyframes ch-orb-drift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.15); }
}

.ch-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.ch-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--indigo-light);
    margin-bottom: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.ch-hero__eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 1px;
}

.ch-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
}

.ch-hero__title .line-accent {
    display: block;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ch-hero__desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: var(--sp-6);
    max-width: 500px;
}

.ch-hero__actions {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    align-items: center;
}

/* Stats row in hero */
.ch-hero__stats {
    display: flex;
    gap: var(--sp-6);
    flex-wrap: wrap;
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}

.ch-hero__stat {}
.ch-hero__stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.04em;
    line-height: 1;
}
.ch-hero__stat-label {
    font-size: 0.72rem;
    color: var(--text-5);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════
   FILTERS BAR (products.php)
   ════════════════════════════════════════════════════════════════════ */
.filter-bar {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-5);
}

.filter-bar__search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}
.filter-bar__search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--ease-fast);
}
.filter-bar__search input:focus {
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.filter-bar__search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-5);
    font-size: 0.8rem;
}

.filter-chips {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.filter-chips::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-4);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--ease-fast);
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-chip:hover { background: rgba(255,255,255,0.08); color: var(--text-2); border-color: rgba(255,255,255,0.12); }
.filter-chip.active {
    background: rgba(99,102,241,0.12);
    color: var(--indigo-light);
    border-color: rgba(99,102,241,0.3);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   AUTH PAGES (login / register)
   ════════════════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
    background-color: var(--bg-root);
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99,102,241,0.15) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6,182,212,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(139,92,246,0.06) 0%, transparent 55%);
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.auth-page::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(99,102,241,0.08);
    filter: blur(80px);
    top: -100px; left: -100px;
    animation: ch-orb-drift 10s ease-in-out infinite alternate;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(6,182,212,0.06);
    filter: blur(60px);
    bottom: -80px; right: -80px;
    animation: ch-orb-drift 13s ease-in-out infinite alternate-reverse;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(14,14,28,0.9);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 5vw, 2.5rem);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,0.06);
    position: relative;
    z-index: 1;
    animation: ch-slide-up 0.4s var(--ease-spring);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--sp-6);
}

.auth-logo__icon {
    width: 56px; height: 56px;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 900;
    font-family: var(--font-display);
    margin-bottom: var(--sp-3);
    box-shadow: 0 0 30px var(--indigo-glow);
    letter-spacing: -0.05em;
}

.auth-logo__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.04em;
    display: block;
}
.auth-logo__name span { color: var(--indigo-light); }

.auth-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--sp-1);
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-4);
    margin-bottom: var(--sp-6);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-5) 0;
    color: var(--text-5);
    font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: var(--sp-5);
    font-size: 0.85rem;
    color: var(--text-4);
}
.auth-footer a {
    color: var(--indigo-light);
    font-weight: 600;
    transition: color var(--ease-fast);
}
.auth-footer a:hover { color: var(--text-1); }

/* Google auth btn */
.btn-google {
    background: rgba(255,255,255,0.05);
    color: var(--text-2);
    border: 1px solid var(--border);
    gap: var(--sp-3);
    width: 100%;
    justify-content: center;
}
.btn-google:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.12);
}

/* Error / success alerts */
.alert {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert--error   { background: rgba(244,63,94,0.08);  border: 1px solid rgba(244,63,94,0.2);  color: #fda4af; }
.alert--success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: var(--emerald); }
.alert--info    { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); color: var(--indigo-light); }
.alert--warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: var(--amber); }

/* ════════════════════════════════════════════════════════════════════
   DASHBOARD - User Profile Header
   ════════════════════════════════════════════════════════════════════ */
.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    margin-bottom: var(--sp-6);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
}

.profile-header__avatar { flex-shrink: 0; }

.profile-header__info { flex: 1; min-width: 200px; }

.profile-header__name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.profile-header__email {
    font-size: 0.85rem;
    color: var(--text-4);
    margin-bottom: var(--sp-3);
}

.profile-header__tags {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.profile-header__rank-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════════
   DASHBOARD HERO (user/dashboard.php)
   ════════════════════════════════════════════════════════════════════ */
.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99,102,241,0.2);
    background: linear-gradient(135deg,
        rgba(99,102,241,0.1) 0%,
        rgba(139,92,246,0.08) 50%,
        rgba(6,182,212,0.05) 100%);
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--sp-8);
}
.dash-hero__bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: ch-orb-drift 10s ease-in-out infinite alternate;
}
.dash-hero__bg-orb--1 {
    width: 280px; height: 280px;
    background: rgba(99,102,241,0.18);
    top: -100px; right: 5%;
}
.dash-hero__bg-orb--2 {
    width: 180px; height: 180px;
    background: rgba(6,182,212,0.12);
    bottom: -60px; left: 10%;
    animation-duration: 13s; animation-delay: -4s;
}
.dash-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
}
.dash-hero__avatar-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
}
.dash-hero__rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.dash-hero__info {
    flex: 1;
    min-width: 180px;
}
.dash-hero__name {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-1);
}
.dash-hero__email {
    font-size: 0.85rem;
    color: var(--text-4);
    margin-bottom: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.dash-hero__tags {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}
.dash-hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   DASHBOARD BENTO GRID
   ════════════════════════════════════════════════════════════════════ */
.dash-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: var(--sp-4);
}
.dash-bento__tile {
    position: relative;
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--ease-fast);
    overflow: hidden;
    cursor: pointer;
}
.dash-bento__tile::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--ease-fast);
}
.dash-bento__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dash-bento__tile:hover::before { opacity: 1; }

.dash-bento__tile strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
}
.dash-bento__tile span {
    font-size: 0.75rem;
    color: var(--text-5);
    margin-top: 2px;
}
.dash-bento__tile-icon {
    font-size: 1.5rem;
    margin-bottom: var(--sp-2);
}

/* large tile spans 2 rows */
.dash-bento__tile--lg {
    grid-row: span 2;
    justify-content: flex-end;
}
.dash-bento__tile--lg .dash-bento__tile-icon {
    font-size: 2.5rem;
    margin-bottom: auto;
}
.dash-bento__tile--lg strong { font-size: 1.05rem; }
.dash-bento__tile--lg span  { font-size: 0.82rem; }

/* Color variants */
.dash-bento__tile--emerald {
    border-color: rgba(16,185,129,0.25);
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.04));
}
.dash-bento__tile--emerald::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(16,185,129,0.12), transparent 70%);
}
.dash-bento__tile--emerald .dash-bento__tile-icon { color: var(--emerald); }
.dash-bento__tile--emerald:hover { border-color: rgba(16,185,129,0.45); }

.dash-bento__tile--indigo {
    border-color: rgba(99,102,241,0.2);
}
.dash-bento__tile--indigo::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.1), transparent 70%);
}
.dash-bento__tile--indigo .dash-bento__tile-icon { color: var(--indigo-light); }
.dash-bento__tile--indigo:hover { border-color: rgba(99,102,241,0.4); }

.dash-bento__tile--gold {
    border-color: rgba(251,191,36,0.2);
}
.dash-bento__tile--gold::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(251,191,36,0.1), transparent 70%);
}
.dash-bento__tile--gold .dash-bento__tile-icon { color: var(--gold); }
.dash-bento__tile--gold:hover { border-color: rgba(251,191,36,0.4); }

.dash-bento__tile--cyan {
    border-color: rgba(6,182,212,0.2);
}
.dash-bento__tile--cyan::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.1), transparent 70%);
}
.dash-bento__tile--cyan .dash-bento__tile-icon { color: var(--cyan); }
.dash-bento__tile--cyan:hover { border-color: rgba(6,182,212,0.4); }

.dash-bento__tile--violet {
    border-color: rgba(139,92,246,0.2);
}
.dash-bento__tile--violet::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.1), transparent 70%);
}
.dash-bento__tile--violet .dash-bento__tile-icon { color: var(--violet); }
.dash-bento__tile--violet:hover { border-color: rgba(139,92,246,0.4); }

/* Settings tile */
.dash-bento__tile--settings {
    grid-column: span 2;
    flex-direction: column;
    cursor: default;
}
.dash-bento__tile--settings:hover { transform: none; box-shadow: none; }
.dash-settings-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.dash-settings-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
}
.dash-settings-links a {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-md);
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ease-fast);
}
.dash-settings-links a:hover {
    border-color: rgba(99,102,241,0.35);
    color: var(--indigo-light);
    background: rgba(99,102,241,0.08);
}
.dash-settings-links a i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* Responsive bento */
@media (max-width: 900px) {
    .dash-bento { grid-template-columns: repeat(2, 1fr); }
    .dash-bento__tile--lg { grid-row: span 1; }
    .dash-bento__tile--settings { grid-column: span 2; }
}
@media (max-width: 560px) {
    .dash-bento { grid-template-columns: 1fr; }
    .dash-bento__tile--settings { grid-column: span 1; }
    .dash-hero__cta { flex-direction: row; }
}

/* ════════════════════════════════════════════════════════════════════
   RANKING / LEADERBOARD
   ════════════════════════════════════════════════════════════════════ */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
    align-items: end;
}

.podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--ease-fast);
}
.podium-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); }

.podium-card--1 {
    border-color: rgba(251,191,36,0.25);
    background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(245,158,11,0.03));
}
.podium-card--2 { background: linear-gradient(135deg, rgba(148,163,184,0.05), var(--bg-card)); }
.podium-card--3 { background: linear-gradient(135deg, rgba(205,127,50,0.05), var(--bg-card)); }

.podium-medal {
    font-size: 1.8rem;
    margin-bottom: var(--sp-3);
    display: block;
}

.podium-rank {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    font-family: var(--font-display);
}
.podium-card--1 .podium-rank { background: rgba(251,191,36,0.2); color: var(--gold); }
.podium-card--2 .podium-rank { background: rgba(148,163,184,0.2); color: #cbd5e1; }
.podium-card--3 .podium-rank { background: rgba(205,127,50,0.2);  color: #d97706; }

.podium-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: var(--sp-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-amount {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.03em;
}
.podium-card--1 .podium-amount { color: var(--gold); }

.rank-table-row {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    transition: background var(--ease-fast);
}
.rank-table-row:hover { background: rgba(255,255,255,0.03); }

.rank-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-5);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.rank-num--top3 { color: var(--indigo-light); }

/* ════════════════════════════════════════════════════════════════════
   UPGRADE / PLANS
   ════════════════════════════════════════════════════════════════════ */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    transition: all var(--ease-fast);
    position: relative;
    overflow: hidden;
}

.plan-card--featured {
    border-color: rgba(99,102,241,0.4);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
}

.plan-card--featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.35);
    box-shadow: var(--shadow-md), 0 0 30px rgba(99,102,241,0.08);
}

.plan-card__badge {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
}

.plan-card__icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.plan-card__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-1);
}

.plan-card__threshold {
    font-size: 0.85rem;
    color: var(--text-4);
}

.plan-card__price-big {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -0.05em;
}

.plan-card__perks {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.plan-perk {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.85rem;
    color: var(--text-3);
}
.plan-perk i { color: var(--emerald); font-size: 0.75rem; flex-shrink: 0; }
.plan-perk--locked i { color: var(--text-5); }
.plan-perk--locked { color: var(--text-5); }

/* ════════════════════════════════════════════════════════════════════
   PAYMENT METHODS (balance.php)
   ════════════════════════════════════════════════════════════════════ */
.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
    cursor: pointer;
    transition: all var(--ease-normal);
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(99,102,241,0.07),
        transparent 60%
    );
    opacity: var(--spot-op, 0);
    transition: opacity 0.2s;
    pointer-events: none;
}

.method-card:hover {
    border-color: rgba(99,102,241,0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.06);
}

.method-card__icon {
    font-size: 2.2rem;
    margin-bottom: var(--sp-3);
    display: block;
    line-height: 1;
}

.method-card__name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: var(--sp-1);
}

.method-card__desc {
    font-size: 0.76rem;
    color: var(--text-4);
    line-height: 1.5;
}

.method-card__badge-pos {
    position: absolute;
    top: var(--sp-2);
    right: var(--sp-2);
}

/* ════════════════════════════════════════════════════════════════════
   PURCHASES (user/purchases.php)
   ════════════════════════════════════════════════════════════════════ */
.purchase-item {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--border-subtle);
    align-items: flex-start;
    transition: background var(--ease-fast);
}
.purchase-item:last-child { border-bottom: none; }
.purchase-item:hover { background: rgba(255,255,255,0.02); }

.purchase-item__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.purchase-item__body { flex: 1; min-width: 0; }

.purchase-item__name {
    font-weight: 700;
    color: var(--text-1);
    font-size: 0.875rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-item__meta {
    font-size: 0.75rem;
    color: var(--text-4);
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.purchase-item__price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-1);
    font-size: 0.9rem;
    flex-shrink: 0;
    text-align: right;
}

/* ════════════════════════════════════════════════════════════════════
   TOPUP / RECHARGE HISTORY
   ════════════════════════════════════════════════════════════════════ */
.topup-row {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    transition: background var(--ease-fast);
}
.topup-row:hover { background: rgba(255,255,255,0.025); }

.topup-row__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.topup-row__dot--green { background: var(--emerald); box-shadow: 0 0 6px var(--emerald-glow); }
.topup-row__dot--yellow { background: var(--amber); }
.topup-row__dot--red  { background: var(--rose); }

/* ════════════════════════════════════════════════════════════════════
   SERVICES / SMM (servicios_smm.php)
   ════════════════════════════════════════════════════════════════════ */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: all var(--ease-fast);
}
.service-card:hover {
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.service-card__name {
    font-weight: 700;
    color: var(--text-1);
    font-size: 0.9rem;
}

.service-card__desc {
    font-size: 0.8rem;
    color: var(--text-4);
    line-height: 1.5;
}

.service-card__price {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--emerald);
    margin-top: auto;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE FINAL LAYER
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ch-hero { border-radius: var(--radius-lg); }
    .podium { grid-template-columns: 1fr; gap: var(--sp-3); }
    .ch-hero__stats { gap: var(--sp-4); }
    .profile-header { gap: var(--sp-4); }
}

@media (max-width: 640px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar__search { max-width: none; }
}

/* ════════════════════════════════════════════════════════════════════
   CH-PAGE-HEADER (balance.php, etc.)
   ════════════════════════════════════════════════════════════════════ */
.ch-page-header {
    margin-bottom: var(--sp-8);
}
.ch-page-header__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--indigo-light);
    margin-bottom: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.ch-page-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--sp-3);
    line-height: 1.2;
}
.ch-page-header__sub {
    font-size: 0.95rem;
    color: var(--text-4);
    max-width: 560px;
    line-height: 1.6;
}
.ch-gradient {
    background: linear-gradient(135deg, var(--indigo-light) 0%, var(--violet) 60%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ════════════════════════════════════════════════════════════════════
   PROXY & CLOUD PAGES (proxy_iphone.php, ldcloud_new.php)
   ════════════════════════════════════════════════════════════════════ */

/* nx-main / nx-shell: extra <main> wrapper those pages add — make it transparent */
.nx-main, .nx-shell {
    width: 100%;
}
.nx-main.nx-shell {
    display: block;
}

.proxy-page { width: 100%; }
.proxy-container { max-width: 1100px; margin: 0 auto; }

/* ── Header banner ── */
.proxy-header {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    margin-bottom: var(--sp-8);
    background: linear-gradient(135deg,
        rgba(99,102,241,0.12) 0%,
        rgba(139,92,246,0.1) 50%,
        rgba(6,182,212,0.06) 100%);
    border: 1px solid rgba(99,102,241,0.2);
    text-align: center;
}
.proxy-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(99,102,241,0.15), transparent 65%),
        radial-gradient(ellipse 50% 50% at 5% 100%, rgba(6,182,212,0.10), transparent 60%);
    pointer-events: none;
}
.proxy-header > * { position: relative; z-index: 1; }
.proxy-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #e0e7ff 0%, var(--indigo-light) 50%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-3);
}
.proxy-header p {
    color: var(--text-3);
    font-size: 0.95rem;
    max-width: 620px;
    margin: 0 auto var(--sp-3);
    line-height: 1.6;
}
.proxy-header .nx-proxy-instal-hint {
    font-size: 0.8rem;
    color: var(--text-4);
    margin: 0 auto var(--sp-4);
    max-width: 620px;
}
.proxy-header .nx-proxy-instal-hint a {
    color: var(--indigo-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.balance-display {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: var(--radius-full);
    padding: var(--sp-2) var(--sp-5);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--emerald);
    font-family: var(--font-mono);
    margin-top: var(--sp-2);
}

/* ── Empty State ── */
.nx-proxy-empty {
    text-align: center;
    padding: var(--sp-16) var(--sp-6);
    color: var(--text-4);
}
.nx-proxy-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-3);
    margin-bottom: var(--sp-3);
}
.nx-proxy-empty p { font-size: 0.9rem; line-height: 1.6; }
.nx-proxy-empty code {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--indigo-light);
}

/* ── Products Grid ── */
.products-grid-bypass {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-5);
    margin-bottom: var(--sp-8);
}

/* ── Product Card ── */
.product-card-bypass {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: all var(--ease-fast);
    overflow: hidden;
}
.product-card-bypass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.08), transparent 70%);
    pointer-events: none;
}
.product-card-bypass:hover {
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.15), var(--shadow-lg);
}
.product-icon-bypass {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
    border: 1px solid rgba(99,102,241,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--indigo-light);
}
.product-name-bypass {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
    line-height: 1.3;
}
.product-desc-bypass {
    font-size: 0.8rem;
    color: var(--text-4);
    margin: 0;
    line-height: 1.5;
}
.product-price-bypass {
    margin-top: auto;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--border);
}
.price-main-bypass {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--emerald) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product-stock-bypass {
    font-size: 0.78rem;
    color: var(--text-5);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}
.product-stock-bypass i { color: var(--amber); }

/* ── Buy Button ── */
.btn-buy-bypass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease-fast);
    letter-spacing: 0.02em;
}
.btn-buy-bypass:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
    filter: brightness(1.1);
}
.btn-buy-bypass:active { transform: translateY(0); filter: brightness(0.95); }

/* ── Admin Card ── */
.admin-card-bypass {
    background: rgba(239,68,68,0.06);
    border: 1px dashed rgba(239,68,68,0.3);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    text-align: center;
}
.admin-icon-bypass {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(239,68,68,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--rose);
}
.admin-card-bypass h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-2); margin: 0; }
.admin-card-bypass p  { font-size: 0.78rem; color: var(--text-5); margin: 0; }
.btn-admin-bypass {
    padding: var(--sp-2) var(--sp-5);
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ea580c, #ec4899);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter var(--ease-fast);
}
.btn-admin-bypass:hover { filter: brightness(1.12); }

/* ── History Section ── */
.nx-proxy-history-wrap { margin-top: var(--sp-8); }
.nx-proxy-history-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.nx-proxy-instal-hint {
    font-size: 0.82rem;
    color: var(--text-4);
    line-height: 1.5;
    margin-bottom: var(--sp-3);
}
.nx-proxy-instal-hint a {
    color: var(--indigo-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-4);
}
.purchase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    transition: border-color var(--ease-fast);
}
.purchase-card:hover { border-color: rgba(99,102,241,0.25); }
.purchase-card strong { color: var(--text-1); font-size: 0.9rem; }
.nx-proxy-mode {
    font-size: 0.82rem;
    color: var(--text-3);
    word-break: break-all;
    line-height: 1.4;
}
.nx-proxy-meta {
    font-size: 0.78rem;
    color: var(--text-5);
    font-family: var(--font-mono);
}
.nx-proxy-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}
.nx-proxy-status.status-approved {
    background: rgba(16,185,129,0.12);
    color: var(--emerald);
    border: 1px solid rgba(16,185,129,0.2);
}
.nx-proxy-status.status-pending {
    background: rgba(245,158,11,0.12);
    color: var(--amber);
    border: 1px solid rgba(245,158,11,0.2);
}

/* ── Proxy Modal Overlay ── */
.proxy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
}
.proxy-modal.show,
.proxy-modal[aria-hidden="false"] {
    display: flex;
}
.proxy-modal-content {
    background: var(--bg-2);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--radius-xl);
    padding: var(--sp-8) var(--sp-6);
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(99,102,241,0.1);
    animation: ch-modal-in 0.22s ease;
}
@keyframes ch-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.proxy-modal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.nx-proxy-modal-intro {
    font-size: 0.88rem;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: var(--sp-3);
}
.nx-proxy-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
}
/* Modal inputs */
.proxy-modal-content input[type="text"],
.proxy-modal-content input[type="number"] {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 0.95rem;
    margin-bottom: var(--sp-3);
    box-sizing: border-box;
    transition: border-color var(--ease-fast);
}
.proxy-modal-content input:focus {
    outline: none;
    border-color: var(--indigo-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ── Modal Buttons ── */
.btn-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    width: 100%;
    padding: var(--sp-3) var(--sp-5);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease-fast);
    margin-top: var(--sp-2);
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.4;
}
.btn-modal.btn-confirm {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
    color: #fff;
}
.btn-modal.btn-confirm:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.btn-modal.btn-cancel {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-3);
}
.btn-modal.btn-cancel:hover {
    border-color: var(--rose);
    color: var(--rose);
}

/* ── Result Panel ── */
.nx-proxy-result { text-align: center; }
.nx-proxy-result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto var(--sp-4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
}
.nx-proxy-result--success .nx-proxy-result-icon {
    background: rgba(16,185,129,0.15);
    color: var(--emerald);
    border: 2px solid rgba(16,185,129,0.3);
}
.nx-proxy-result--error .nx-proxy-result-icon {
    background: rgba(239,68,68,0.12);
    color: var(--rose);
    border: 2px solid rgba(239,68,68,0.25);
}
.nx-proxy-result h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--sp-2);
}
.nx-proxy-result-msg {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.5;
    margin-bottom: var(--sp-4);
}
.nx-proxy-result-balance {
    font-size: 0.82rem;
    color: var(--text-4);
    font-family: var(--font-mono);
    margin-bottom: var(--sp-3);
}
/* Help image (ldcloud) */
.help-img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto var(--sp-4);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .products-grid-bypass,
    .purchases-grid { grid-template-columns: 1fr; }
    .proxy-modal-content { padding: var(--sp-6) var(--sp-4); }
    .proxy-header { padding: var(--sp-6) var(--sp-4); }
}

/* ════════════════════════════════════════════════════════════════════
   GLOBAL MODALS (recharge, etc.) — preserve functionality
   ════════════════════════════════════════════════════════════════════ */
#globalRechargeModal,
#minRechargeModal {
    z-index: var(--z-modal) !important;
}
