/* =====================================================================
   NEXUS — Premium FiveM Script Store Template for Tebex
   Dark / Cyan-Blue premium UI
   Upload this file as an Asset named: style.css
   ===================================================================== */

:root {
    --accent: #00d9ff;
    --accent-2: #3b82f6;
    --bg: #101113;
    --bg-2: #16171a;
    --card: rgba(26, 27, 31, 0.8);
    --card-solid: #1a1b1f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f2f3f5;
    --text-dim: #9a9fa8;
    --success: #2dd4a7;
    --danger: #ff5470;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 10px; /* buttons: slightly rounded, near-square */
    --font-display: 'Archivo', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow: 0 10px 32px rgba(0, 0, 0, 0.35);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #101113; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2b30; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3b40; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page { position: relative; z-index: 1; min-height: 60vh; }

/* ============ BACKGROUND FX ============ */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.08; }
.bg-glow-1 { width: 560px; height: 560px; background: var(--accent); top: -220px; left: 8%; }
.bg-glow-2 { width: 480px; height: 480px; background: var(--accent-2); top: 30%; right: -160px; opacity: 0.12; }

/* ============ TOAST ============ */
.toast {
    position: fixed; top: 88px; right: 24px; z-index: 999;
    display: flex; align-items: center; gap: 12px;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow), var(--glow);
    max-width: 420px;
    animation: toastIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.toast i:first-child { font-size: 18px; color: var(--accent); }
.toast-success i:first-child { color: var(--success); }
.toast-danger i:first-child, .toast-error i:first-child { color: var(--danger); }
.toast-close { background: none; border: none; color: var(--text-dim); cursor: pointer; margin-left: 6px; }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ NAVBAR ============ */
.navbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.38), rgba(5, 8, 15, 0));
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    box-shadow: none;
    backdrop-filter: blur(6px);
}
.nav-inner { display: flex; align-items: center; gap: 30px; height: 90px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }
.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px; color: #101113; font-size: 17px;
    box-shadow: var(--glow);
}
.brand-name {
    font-family: var(--font-display); font-weight: 700; font-size: 19px;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
    position: relative;
    padding: 10px 14px; border-radius: 6px; white-space: nowrap;
    color: var(--text-dim); font-weight: 800; font-size: 12.5px;
    letter-spacing: 0.09em; text-transform: uppercase;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.12); margin: 0 4px; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.basket-btn { position: relative; }
.basket-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center;
    background: var(--accent); color: #101113;
    border-radius: 20px; font-size: 11px; font-weight: 800;
    box-shadow: var(--glow);
}

.user-chip {
    display: flex; align-items: center; gap: 9px;
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px;
    font-size: 13px; font-weight: 600;
}
.user-chip > i { color: var(--accent); }
.user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout { color: var(--text-dim); transition: color 0.2s; }
.user-logout:hover { color: var(--danger); }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); width: 40px; height: 40px;
    cursor: pointer; font-size: 16px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: var(--radius-pill);
    font-family: var(--font-body); font-weight: 800; font-size: 13.5px;
    letter-spacing: 0.04em; text-transform: uppercase;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: #ffffff;
    color: #101113;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { background: #f2f3f5; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(0, 217, 255, 0.06); }
.btn-danger { background: rgba(255, 84, 112, 0.12); border-color: rgba(255, 84, 112, 0.35); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 84, 112, 0.22); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; font-size: 16px; }

/* ============ SECTION HELPERS ============ */
.section { padding: 72px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 12px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px;
}
.section-tag::before, .section-tag::after { content: ""; width: 26px; height: 1px; background: var(--border-strong); }
.section-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.2; }
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

/* ============ HERO ============ */
.hero { padding: 96px 0 72px; text-align: center; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 10px 22px;
    font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(0, 217, 255, 0); }
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(38px, 6vw, 64px);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.01em;
    max-width: 850px; margin: 0 auto;
}
.hero-title .grad {
    background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(0, 217, 255, 0.35));
}
.hero-sub { color: var(--text-dim); font-size: 17px; max-width: 620px; margin: 22px auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 68px; }
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px; text-align: center;
    backdrop-filter: blur(10px);
    transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.stat-value {
    font-family: var(--font-display); font-size: 32px; font-weight: 700;
    color: var(--accent); text-shadow: 0 0 24px rgba(0, 217, 255, 0.4);
}
.stat-label { color: var(--text-dim); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

/* ============ CATEGORY CARDS ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-card {
    position: relative; overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cat-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px 160px at 20% 0%, rgba(0, 217, 255, 0.10), transparent 70%);
    opacity: 0; transition: opacity 0.3s;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow), var(--glow); }
.cat-card:hover::before { opacity: 1; }
.cat-icon {
    width: 52px; height: 52px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(59, 130, 246, 0.14));
    border: 1px solid var(--border-strong);
    border-radius: 13px; font-size: 21px; color: var(--accent);
    margin-bottom: 18px;
}
.cat-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.cat-desc { color: var(--text-dim); font-size: 13.5px; margin-bottom: 18px; min-height: 20px; }
.cat-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; }
.cat-link i { transition: transform 0.2s; }
.cat-card:hover .cat-link i { transform: translateX(4px); }

/* ============ FEATURES (WHY US) ============ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.feature-icon {
    width: 46px; height: 46px; display: grid; place-items: center;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border-strong);
    border-radius: 12px; color: var(--accent); font-size: 18px;
    margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 13.5px; }

/* ============ DISCORD CTA ============ */
.cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(26, 27, 31, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px 34px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    opacity: 0.85;
}
.cta-panel::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 180px;
    right: -120px;
    top: -80px;
    background: rgba(0, 217, 255, 0.08);
    filter: blur(42px);
    pointer-events: none;
}
.cta-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(125, 140, 255, 0.35);
    color: #8d9bff;
    font-size: 32px;
    box-shadow: inset 0 0 22px rgba(88, 101, 242, 0.1), 0 10px 28px rgba(0, 0, 0, 0.24);
}
.cta-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.cta-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cta-panel p {
    color: var(--text-dim);
    max-width: 620px;
    font-size: 14.5px;
    margin: 0;
}
.cta-panel .btn {
    position: relative;
    z-index: 1;
    min-height: 50px;
    padding-inline: 28px;
}

/* ============ STORE DESCRIPTION / PROSE ============ */
.prose { color: var(--text-dim); font-size: 15px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); font-family: var(--font-display); margin: 22px 0 10px; }
.prose p { margin-bottom: 12px; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 12px 22px; }
.prose img { border-radius: var(--radius-sm); margin: 10px 0; }
.prose strong { color: var(--text); }

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* ============ PAGE HEADER (category/package) ============ */
.page-head { padding: 136px 0 8px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }
.page-title { font-family: var(--font-display); font-size: 38px; font-weight: 700; }
.page-desc { color: var(--text-dim); margin-top: 10px; max-width: 700px; }

/* ============ PACKAGE CARDS ============ */
.script-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -18px 0 30px;
}
.script-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.script-tab:hover {
    border-color: var(--border-strong);
    color: var(--text);
    transform: translateY(-1px);
}
.script-tab.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #101113;
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.1);
}
.script-tab i { font-size: 13px; }
.category-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 220px;
    padding: 34px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.category-empty i {
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 12px;
}
.category-empty h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 6px;
}
.category-empty p {
    color: var(--text-dim);
    font-size: 13.5px;
}
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.pkg-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pkg-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow), var(--glow); }
.pkg-media {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(150deg, #1c1d21, #131417);
    display: grid; place-items: center;
}
.pkg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pkg-card:hover .pkg-media img { transform: scale(1.06); }
.pkg-media-placeholder { font-size: 40px; color: rgba(0, 217, 255, 0.25); }
.pkg-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--danger); color: #fff;
    font-size: 12px; font-weight: 800; border-radius: 7px; padding: 4px 10px;
    box-shadow: 0 4px 14px rgba(255, 84, 112, 0.4);
}
.pkg-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.pkg-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.pkg-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent); }
.pkg-price-old { color: var(--text-dim); text-decoration: line-through; font-size: 14px; }
.pkg-actions { display: flex; gap: 10px; }
.pkg-actions .btn { flex: 1; }

/* List display type */
.pkg-list { display: flex; flex-direction: column; gap: 16px; }
.pkg-row {
    display: flex; align-items: center; gap: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: border-color 0.25s, transform 0.2s;
}
.pkg-row:hover { border-color: var(--border-strong); transform: translateX(4px); }
.pkg-row .pkg-media { width: 130px; aspect-ratio: 16/10; flex-shrink: 0; border-radius: var(--radius-sm); }
.pkg-row .pkg-name { flex: 1; }
.pkg-row .pkg-actions { flex-shrink: 0; }

/* ============ PACKAGE DETAIL ============ */
.pkg-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.pkg-detail-media {
    position: sticky; top: 96px;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(150deg, #1c1d21, #131417);
    aspect-ratio: 16 / 10; display: grid; place-items: center;
}
.pkg-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-detail-info h1 { font-family: var(--font-display); font-size: 32px; line-height: 1.15; margin-bottom: 16px; }
.pkg-buy-box {
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 24px; margin: 22px 0;
    box-shadow: var(--glow);
}
.pkg-buy-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pkg-buy-price .now { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent); }
.pkg-buy-price .was { color: var(--text-dim); text-decoration: line-through; font-size: 17px; }
.pkg-buy-price .save {
    background: rgba(255, 84, 112, 0.14); color: var(--danger);
    font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 9px;
}
.pkg-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; color: var(--text-dim); font-size: 13px; }
.pkg-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pkg-meta i { color: var(--accent); }

/* ============ BASKET / CHECKOUT ============ */
.checkout-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.basket-table { width: 100%; border-collapse: collapse; }
.basket-table th {
    text-align: left; padding: 12px 14px;
    color: var(--text-dim); font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.basket-table td { padding: 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.basket-table tr:last-child td { border-bottom: none; }
.basket-item-name { font-weight: 700; }
.qty-input {
    width: 64px; text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px; color: var(--text);
    padding: 9px 6px; font-weight: 700; font-family: var(--font-body);
}
.qty-input:focus { outline: none; border-color: var(--border-strong); }

.summary-box { position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--text-dim); font-size: 14px; }
.summary-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 16px 0 4px; margin-top: 10px;
    border-top: 1px solid var(--border);
}
.summary-total .label { font-weight: 700; }
.summary-total .value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent); }

.coupon-form { display: flex; gap: 10px; margin-top: 18px; }
.coupon-form input {
    flex: 1; background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    padding: 12px 14px; font-family: var(--font-body); font-size: 14px;
}
.coupon-form input:focus { outline: none; border-color: var(--border-strong); }
.coupon-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(45, 212, 167, 0.1);
    border: 1px solid rgba(45, 212, 167, 0.35);
    color: var(--success);
    border-radius: 8px; padding: 7px 12px;
    font-size: 13px; font-weight: 700; margin: 10px 8px 0 0;
}
.coupon-chip a { color: var(--success); opacity: 0.8; }
.coupon-chip a:hover { opacity: 1; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 52px; color: rgba(0, 217, 255, 0.22); margin-bottom: 20px; }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--text-dim); margin-bottom: 26px; }

/* ============ FORMS (login / options) ============ */
.auth-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 150px 0 80px;
}
.auth-card {
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: 20px; padding: 40px 36px; text-align: center;
    box-shadow: var(--shadow), var(--glow);
    backdrop-filter: blur(14px);
}
.auth-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(59, 130, 246, 0.14));
    border: 1px solid var(--border-strong);
    border-radius: 18px; font-size: 26px; color: var(--accent);
}
.auth-card h1 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.auth-card > p { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.auth-scene {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 118px 24px 80px;
    background:
        linear-gradient(180deg, rgba(16, 17, 19, 0.72), rgba(16, 17, 19, 0.34) 42%, rgba(16, 17, 19, 0.9)),
        radial-gradient(860px 280px at 50% 12%, rgba(0, 217, 255, 0.075), transparent 72%),
        var(--bg);
}
.auth-floor {
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -4%;
    height: 82%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(620px) rotateX(58deg);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(to top, #000 26%, transparent 98%);
    mask-image: linear-gradient(to top, #000 26%, transparent 98%);
    opacity: 0.9;
}
.auth-wrap-login {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-width: 560px;
    padding: 0;
    text-align: center;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 74px;
    color: rgba(242, 243, 245, 0.74);
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
}
.auth-brand img {
    max-width: 210px;
    max-height: 70px;
    object-fit: contain;
    opacity: 0.82;
    filter: grayscale(1) brightness(1.35);
}
.auth-card-login {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.auth-card-login h1 {
    font-size: clamp(42px, 6vw, 62px);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
}
.auth-card-login > p {
    max-width: 520px;
    margin: 0 auto 42px;
    color: rgba(242, 243, 245, 0.58);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;
}
.auth-card-login .btn {
    width: auto;
    min-width: 282px;
    min-height: 64px;
    border-radius: 999px;
    padding: 0 38px;
    font-size: 15px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.36);
}
.auth-card-login form {
    max-width: 360px;
    margin: 0 auto;
}
.auth-card-login .form-group {
    margin-bottom: 18px;
}

.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.form-control {
    width: 100%; background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    padding: 13px 15px; font-family: var(--font-body); font-size: 14px;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12); }
select.form-control { appearance: none; cursor: pointer; }
.input-suffix { display: flex; }
.input-suffix .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-suffix .suffix {
    display: grid; place-items: center; padding: 0 16px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border); border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 700; color: var(--accent); font-size: 13px;
}

/* ============ SIDEBAR MODULES ============ */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.modules-grid:empty { display: none; }
.module {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(10px);
}
.module-head {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    margin-bottom: 16px;
}
.module-head i { color: var(--accent); }
.module p { color: var(--text-dim); font-size: 13.5px; }

.progress {
    height: 12px; border-radius: 8px; overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}
.progress-bar {
    height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.5);
    transition: width 0.6s;
}
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); margin-top: 8px; font-weight: 600; }

.module-payment { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.module-payment:last-child { border-bottom: none; }
.module-payment .avatar {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border);
    display: grid; place-items: center; color: var(--accent); font-size: 13px;
    flex-shrink: 0;
}
.module-payment .who { flex: 1; min-width: 0; }
.module-payment .who .name { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-payment .who .what { color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-payment .amount { color: var(--accent); font-weight: 800; font-size: 13px; }

.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status-dot.on { background: var(--success); box-shadow: 0 0 10px rgba(45, 212, 167, 0.7); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 10px rgba(255, 84, 112, 0.7); }

.topdonor { display: flex; align-items: center; gap: 14px; }
.topdonor img { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--border-strong); object-fit: cover; }
.topdonor .name { font-weight: 800; font-size: 15px; }
.topdonor .spent { color: var(--accent); font-size: 13px; font-weight: 700; }

.featured-pkg-media { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/9; background: #17181b; }
.featured-pkg-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FOOTER ============ */
.footer {
    position: relative; z-index: 1;
    margin-top: 90px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    background: transparent;
    backdrop-filter: none;
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px; padding: 56px 0 40px;
}
.footer-col h4 {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
    margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-desc { color: var(--text-dim); font-size: 13.5px; margin-top: 16px; max-width: 300px; }
.pay-icons { display: flex; gap: 12px; font-size: 26px; color: var(--text-dim); flex-wrap: wrap; }
.footer-secure { color: var(--text-dim); font-size: 12.5px; margin-top: 14px; }
.footer-secure i { color: var(--success); margin-right: 5px; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim); font-size: 12.5px;
}
.tebex-legal-footer {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 24px;
    color: rgba(154, 159, 168, 0.72) !important;
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    font-family: var(--font-body) !important;
    font-size: 11.5px !important;
    line-height: 1.7 !important;
    text-align: center !important;
}
.tebex-legal-footer a,
.tebex-legal-footer .tebex-legal-link {
    display: inline-flex;
    margin: 0 8px;
    color: rgba(242, 243, 245, 0.74) !important;
    font-size: 11.5px !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.18s, opacity 0.18s;
}
.tebex-legal-footer a:hover,
.tebex-legal-footer .tebex-legal-link:hover {
    color: var(--accent) !important;
    opacity: 1;
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ HERO IMAGE + SKYLINE ============ */
.hero {
    position: relative; overflow: hidden;
    background-size: cover; background-position: center 30%;
}
.hero .container { position: relative; z-index: 2; }
.hero.has-image { padding: 130px 0 96px; border-bottom: 1px solid var(--border); }
.hero.has-image .hero-title { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7); }
.hero-skyline {
    position: absolute; left: 0; right: 0; bottom: -2px; height: 190px;
    z-index: 1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 V150 h35 v-38 h28 v52 h24 V88 h34 v22 h20 v58 h28 V58 h14 V38 h10 v20 h16 v104 h34 v-66 h38 v66 h24 V108 h30 v-38 h24 v126 h38 V78 h20 V48 h12 v30 h18 v92 h28 v-58 h34 v58 h24 V68 h30 v102 h38 v-38 h28 v38 h24 V98 h34 v72 h28 V52 h14 V32 h10 v20 h18 v118 h34 v-52 h28 v52 h38 v-86 h30 v86 h34 V118 h28 v82 Z' fill='%23081120'/%3E%3C/svg%3E") bottom center / 1200px 190px repeat-x;
    filter: drop-shadow(0 -6px 30px rgba(0, 217, 255, 0.10));
}
.hero-skyline::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(2px 2px at 12% 62%, rgba(0,217,255,0.85), transparent 100%),
        radial-gradient(2px 2px at 23% 74%, rgba(0,217,255,0.6), transparent 100%),
        radial-gradient(2px 2px at 37% 58%, rgba(255,200,90,0.7), transparent 100%),
        radial-gradient(2px 2px at 48% 70%, rgba(0,217,255,0.7), transparent 100%),
        radial-gradient(2px 2px at 61% 64%, rgba(255,200,90,0.55), transparent 100%),
        radial-gradient(2px 2px at 72% 76%, rgba(0,217,255,0.65), transparent 100%),
        radial-gradient(2px 2px at 86% 60%, rgba(0,217,255,0.8), transparent 100%),
        radial-gradient(2px 2px at 94% 72%, rgba(255,200,90,0.6), transparent 100%);
    animation: windows 4s ease-in-out infinite alternate;
}
@keyframes windows { from { opacity: 0.5; } to { opacity: 1; } }

/* ============ PACKAGE PLACEHOLDER & CATEGORY TAG ============ */
.pkg-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: 100%; height: 100%; justify-content: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 20%, rgba(0, 217, 255, 0.1), transparent 65%),
        linear-gradient(150deg, #1c1d21, #131417);
    background-size: 26px 26px, 26px 26px, auto, auto;
}
.pkg-placeholder i {
    font-size: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 16px rgba(0, 217, 255, 0.45));
}
.pkg-placeholder span {
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
}
.pkg-cat-tag {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); background: rgba(0, 217, 255, 0.07);
    border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px;
}

/* =====================================================================
   RAINMAD-STYLE REDESIGN COMPONENTS
   ===================================================================== */

/* ---- Nav dropdowns (subcategories + currency) ---- */
.nav-drop { position: relative; }
.nav-caret { font-size: 9px; margin-left: 4px; opacity: 0.6; transition: transform 0.2s; }
.nav-drop:hover .nav-caret { transform: rotate(180deg); }
.nav-drop-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 8px; z-index: 200;
    box-shadow: var(--shadow), var(--glow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu {
    opacity: 1; visibility: visible; transform: none;
}
.nav-drop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav-drop-right .nav-drop-menu { left: auto; right: 0; min-width: 110px; max-height: 320px; overflow-y: auto; }
.nav-drop-item {
    display: block; padding: 9px 12px; border-radius: 7px;
    color: var(--text-dim); font-size: 13.5px; font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.nav-drop-item:hover { background: rgba(0, 217, 255, 0.08); color: var(--text); }
.nav-drop-item.active { color: var(--accent); background: rgba(0, 217, 255, 0.06); }
.nav-currency { font-size: 12.5px; letter-spacing: 0.04em; }
.nav-link-ext i { font-size: 10px; opacity: 0.6; }

/* ---- Hero split layout ---- */
.hero-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; text-align: left; }
.hero-split .hero-title { margin: 0; }
.hero-split .hero-sub { margin: 22px 0 36px; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.side-card:hover { transform: translateX(6px); border-color: var(--border-strong); box-shadow: var(--glow); }
.side-card-static:hover { transform: none; box-shadow: none; }
.side-card-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(59, 130, 246, 0.14));
    border: 1px solid var(--border-strong);
    border-radius: 13px; font-size: 20px; color: var(--accent);
}
.side-card-discord .side-card-icon { background: rgba(88, 101, 242, 0.16); border-color: rgba(88, 101, 242, 0.45); color: #7d8cff; }
.side-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.side-card-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
.side-card-sub { color: var(--text-dim); font-size: 12.5px; }
.side-card-arrow { color: var(--text-dim); font-size: 13px; transition: transform 0.2s, color 0.2s; }
.side-card:hover .side-card-arrow { transform: translateX(4px); color: var(--accent); }

/* ---- Video showcase ---- */
.video-panel {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: 22px; padding: 28px;
    box-shadow: var(--glow);
    backdrop-filter: blur(12px);
}
.video-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-info h2 { font-family: var(--font-display); font-size: 26px; margin: 12px 0; line-height: 1.2; }
.video-info p { color: var(--text-dim); margin-bottom: 22px; }

/* ---- Framework tags & popular ribbon ---- */
.fw-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fw-tags:empty { display: none; }
.fw-tags span {
    font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); background: rgba(0, 217, 255, 0.07);
    border: 1px solid var(--border); border-radius: 5px; padding: 3px 8px;
}
.pkg-popular {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #101113; font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em;
    border-radius: 7px; padding: 5px 10px;
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.45);
}

/* ---- Reviews marquee ---- */
.reviews-section { overflow: hidden; }
.marquee { position: relative; width: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 55s linear infinite; padding: 4px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
    width: 360px; flex-shrink: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(8px);
}
.review-card:hover { border-color: var(--border-strong); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
    width: 42px; height: 42px; border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border-strong);
    color: var(--accent); font-size: 16px;
}
.review-name { font-weight: 800; font-size: 14px; }
.review-stars { color: #ffc857; font-size: 12px; letter-spacing: 2px; }
.review-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }

/* ---- FAQ accordion ---- */
.faq-wrap { max-width: 780px; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--glow); }
.faq-item summary {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
    color: var(--accent); opacity: 0.85; flex-shrink: 0;
}
.faq-item summary i { margin-left: auto; color: var(--text-dim); font-size: 13px; transition: transform 0.25s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq-body { padding: 0 22px 20px 62px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }

/* ---- Welcome coupon popup ---- */
.welcome-popup {
    position: fixed; bottom: 24px; left: 24px; z-index: 998;
    width: 300px; text-align: center;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: 18px; padding: 26px 22px 22px;
    box-shadow: var(--shadow), var(--glow);
    animation: popIn 0.45s cubic-bezier(0.21, 1.02, 0.73, 1);
}
@keyframes popIn { from { transform: translateY(30px) scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.welcome-close {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.05); border: none;
    color: var(--text-dim); cursor: pointer;
}
.welcome-close:hover { color: var(--text); }
.welcome-emoji { font-size: 34px; margin-bottom: 8px; }
.welcome-popup h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.welcome-popup p { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.welcome-code {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px dashed var(--border-strong);
    border-radius: 10px; padding: 11px 20px;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    color: var(--accent); cursor: pointer; letter-spacing: 0.08em;
    transition: background 0.2s;
}
.welcome-code:hover { background: rgba(0, 217, 255, 0.14); }
.welcome-hint { display: block; margin-top: 9px; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: var(--text-dim); }

/* ---- Footer socials ---- */
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
    width: 38px; height: 38px; display: grid !important; place-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px; font-size: 15px; padding: 0 !important;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-socials a:hover { border-color: var(--border-strong); color: var(--accent); transform: translateY(-3px); }

/* ---- Package media gallery ---- */
.pkg-gallery { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.pkg-gallery .pkg-detail-media { position: static; }
.gallery-slide { display: none; width: 100%; height: 100%; }
.gallery-slide.active { display: block; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide iframe { width: 100%; height: 100%; border: 0; }
.pkg-gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
    position: relative; width: 92px; aspect-ratio: 16 / 10;
    border-radius: 9px; overflow: hidden; cursor: pointer; padding: 0;
    border: 2px solid var(--border); background: #17181b;
    opacity: 0.6; transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 14px rgba(0, 217, 255, 0.35); }
.thumb-play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 14px;
}
.thumb-play i { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }

/* ---- Rainmad-style modules: Top Customer ---- */
.avatar-letter {
    display: grid; place-items: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(59, 130, 246, 0.2));
    color: var(--accent);
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase;
}
.topdonor-hero { text-align: center; padding: 6px 0 4px; }
.topdonor-ring {
    position: relative; width: 84px; height: 84px; margin: 0 auto 14px;
    border-radius: 50%; overflow: visible;
    border: 2px solid var(--border-strong);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.3);
}
.topdonor-ring img, .topdonor-ring .avatar-letter {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; font-size: 30px;
}
.topdonor-crown {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; display: grid; place-items: center;
    background: linear-gradient(135deg, #ffc857, #ff9f43);
    border-radius: 50%; color: #3a2500; font-size: 12px;
    box-shadow: 0 4px 12px rgba(255, 200, 87, 0.5);
}
.topdonor-label { font-size: 10px; font-weight: 900; letter-spacing: 0.24em; color: var(--text-dim); margin-bottom: 5px; }
.topdonor-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.topdonor-total { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.topdonor-total b { color: var(--accent); }

/* ---- Rainmad-style modules: Recent Payments strip ---- */
.modules-grid .module-payments { grid-column: 1 / -1; }
.payments-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.payments-head .module-head {
    margin-bottom: 4px;
    font-size: 18px;
}
.payments-head p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
}
.payments-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.payment-chip {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-height: 98px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.payment-chip::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
    opacity: 0.8;
}
.payment-chip::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -54px;
    top: -54px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.08);
    filter: blur(10px);
    pointer-events: none;
}
.payment-chip:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}
.payment-chip .avatar-letter {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 13px; font-size: 17px;
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 18px rgba(0, 217, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.25);
}
.payment-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.payment-name { font-weight: 900; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-pkg { color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-pkg-item + .payment-pkg-item::before { content: ", "; }
.payment-pkg:has(.payment-pkg-item) .payment-pkg-fallback { display: none; }
.payment-price {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 2px;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(0, 217, 255, 0.07);
    border: 1px solid rgba(0, 217, 255, 0.16);
    color: var(--accent);
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

/* ---- Rainmad-style centered hero ---- */
.hero-center-layout {
    text-align: center;
    min-height: 760px;
    padding: 126px 0 166px;
    display: flex;
    align-items: center;
}
.hero.hero-center-layout.has-image {
    min-height: 800px;
    padding: 140px 0 176px;
}
.hero-centered { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-title-big {
    text-transform: uppercase;
    font-weight: 900;
    font-size: clamp(46px, 7vw, 86px);
    letter-spacing: 0.005em;
    line-height: 1.04;
    max-width: none; /* let the headline stretch on one line like rainmad */
}
.hero-center-layout .hero-sub {
    margin: 28px auto 40px;
    max-width: 700px;
    font-size: 18.5px;
}
.hero-center-layout .hero-cta { justify-content: center; margin-top: 42px; }
.hero-center-layout .btn-lg {
    min-height: 54px;
    padding: 16px 34px;
    font-size: 15.5px;
}

/* Perspective grid floor (like the reference) */
.hero-floor {
    position: absolute; left: -10%; right: -10%; bottom: 0; height: 56%;
    z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(600px) rotateX(58deg);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 95%);
    mask-image: linear-gradient(to top, #000 30%, transparent 95%);
}

/* Side character art (uploaded via template options) */
.hero-art {
    position: absolute; bottom: 0; z-index: 1;
    height: 88%; max-width: 31vw; object-fit: contain; object-position: bottom;
    pointer-events: none; opacity: 0.9;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.hero-art-l { left: -1.5vw; }
.hero-art-r { right: -1.5vw; transform: scaleX(-1); }

/* Discord chip (centered, with live member count) */
.discord-chip {
    display: inline-flex; align-items: center; gap: 17px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 16px 28px;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.discord-chip:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--glow); }
.discord-chip-icon {
    width: 50px; height: 50px; display: grid; place-items: center;
    background: rgba(88, 101, 242, 0.16);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 50%; color: #7d8cff; font-size: 22px;
}
.discord-chip-body { display: flex; flex-direction: column; text-align: left; gap: 2px; }
.discord-chip-body .t { font-size: 11.5px; font-weight: 900; letter-spacing: 0.2em; color: var(--text-dim); }
.discord-chip-body .s { font-weight: 800; font-size: 16px; }
.discord-chip-body .s b { color: var(--accent); }

/* ---- Recent Payments own section (relocated by JS) ---- */
.payments-section-full {
    padding: 86px 0 96px;
    background: transparent;
}
#payments-slot .module-payments {
    position: relative;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}
#payments-slot .module-payments::before,
#payments-slot .module-payments::after { display: none; }
#payments-slot .payments-head,
#payments-slot .payments-strip {
    position: relative;
    z-index: 1;
}
#payments-slot .payments-head {
    display: block;
    margin: 0 0 58px;
    text-align: center;
}
#payments-slot .payments-head h2 {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}
#payments-slot .payments-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
    max-width: 1120px;
    margin: 0 auto;
}
#payments-slot .payment-chip {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 82px;
    padding: 17px 20px;
    background: rgba(26, 27, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
#payments-slot .payment-chip::before {
    display: none;
}
#payments-slot .payment-chip::after {
    width: 180px;
    height: 100%;
    right: -90px;
    top: 0;
    border-radius: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.06));
    filter: none;
}
#payments-slot .payment-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 255, 0.24);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 22px rgba(0, 217, 255, 0.08);
}
#payments-slot .payment-chip .avatar-letter {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.28);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.22), rgba(59, 130, 246, 0.16));
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    box-shadow: inset 0 0 18px rgba(0, 217, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.28);
}
#payments-slot .payment-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}
#payments-slot .payment-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text);
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#payments-slot .payment-pkg {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#payments-slot .payment-price {
    grid-column: auto;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 38px;
    margin: 0;
    padding: 0 15px;
    border-radius: var(--radius-sm);
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

/* ---- Homepage featured skeleton loader ---- */
.pkg-skeleton {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    overflow: hidden;
}
.pkg-skeleton .sk-media { aspect-ratio: 16/10; }
.pkg-skeleton .sk-line { height: 14px; border-radius: 6px; margin: 14px 18px; }
.pkg-skeleton .sk-line.short { width: 40%; }
.pkg-skeleton .sk-media, .pkg-skeleton .sk-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(0,217,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- Redesign responsive ---- */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero-split .hero-cta { justify-content: center; }
    .video-panel { grid-template-columns: 1fr; }
    .welcome-popup { left: 16px; right: 16px; width: auto; }
    .hero.hero-center-layout { min-height: 680px; padding: 100px 0 132px; }
    .hero.hero-center-layout.has-image { min-height: 700px; padding: 112px 0 140px; }
    .hero-art { display: none; }
    #payments-slot .payments-strip { grid-template-columns: 1fr; max-width: 780px; }
}
@media (max-width: 560px) {
    .nav-inner { height: 76px; }
    .nav-links { top: 76px; }
    .hero.hero-center-layout { min-height: 620px; padding: 82px 0 108px; }
    .hero.hero-center-layout.has-image { min-height: 640px; padding: 92px 0 112px; }
    .hero-title-big { font-size: clamp(38px, 12vw, 52px); }
    .hero-center-layout .hero-sub { font-size: 16px; margin: 22px auto 30px; }
    .discord-chip { padding: 13px 18px; gap: 12px; }
    .discord-chip-icon { width: 42px; height: 42px; font-size: 19px; }
    .discord-chip-body .t { font-size: 10px; }
    .discord-chip-body .s { font-size: 14px; }
    .hero-center-layout .btn-lg { min-height: 48px; padding: 13px 22px; font-size: 13px; }
    .cta-panel {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 16px;
        padding: 24px;
    }
    .cta-icon {
        width: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 26px;
    }
    .cta-panel .btn {
        width: 100%;
    }
    .payments-section-full { padding: 56px 0 66px; }
    #payments-slot .payments-head { margin-bottom: 34px; }
    #payments-slot .payment-chip {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }
    #payments-slot .payment-price {
        grid-column: 2;
        justify-self: start;
        min-width: 0;
        height: 34px;
        margin-top: 5px;
    }
}
@media (max-width: 820px) {
    .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 22px; display: none; }
    .nav-drop.open .nav-drop-menu { display: block; }
    .nav-links .nav-drop { display: flex; flex-direction: column; }
}

/* ============ RESPONSIVE ============ */
.d-mobile { display: none; }

@media (max-width: 1024px) {
    .pkg-detail { grid-template-columns: 1fr; }
    .pkg-gallery {
        position: static !important;
        top: auto;
        z-index: auto;
        width: 100%;
        margin-bottom: 24px;
    }
    .pkg-detail-media { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
    .summary-box { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
        position: absolute; top: 90px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(5, 8, 15, 0.97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        padding: 14px 20px 20px;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 13px 14px; }
    .nav-inner { gap: 12px; }
    .brand { min-width: 0; }
    .brand-name { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-logo { max-width: 42vw; object-fit: contain; }
    .nav-actions { gap: 8px; margin-left: auto; }
    .nav-actions .nav-drop,
    .nav-actions .user-chip,
    .nav-actions > a[href="/login"] {
        display: none;
    }
    .basket-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        flex: 0 0 42px;
    }
    .nav-toggle { display: grid; place-items: center; }
    .nav-toggle {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        background: rgba(255, 255, 255, 0.04);
    }
    .d-mobile { display: flex; }
    .d-desktop { display: none !important; }
    .user-name { display: none; }
    .stats { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .hero { padding: 64px 0 48px; }
    .page-title { font-size: 30px; }
    .basket-table th:nth-child(3), .basket-table td:nth-child(3) { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .pkg-row { flex-wrap: wrap; }
    .pkg-detail {
        width: 100%;
        min-width: 0;
        gap: 24px;
    }
    .pkg-detail > * {
        min-width: 0;
    }
    .pkg-detail-media {
        width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 10;
        max-height: 46vh;
        overflow: hidden;
    }
    .pkg-gallery .pkg-detail-media {
        position: relative;
        display: block;
    }
    .gallery-slide,
    .gallery-slide.active {
        width: 100%;
        height: 100%;
    }
    .gallery-slide img,
    .gallery-slide iframe {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: 46vh;
        object-fit: cover;
    }
    .pkg-gallery-thumbs {
        position: relative;
        z-index: 1;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-thumb {
        flex: 0 0 78px;
        width: 78px;
        max-width: 78px;
    }
    .pkg-detail-info,
    .pkg-buy-box,
    .panel.prose {
        min-width: 0;
        width: 100%;
    }
    .pkg-buy-price {
        flex-wrap: wrap;
        gap: 8px 10px;
    }
    .pkg-buy-price .now {
        font-size: 28px;
        overflow-wrap: anywhere;
    }
    .pkg-meta {
        gap: 10px;
    }
    .pkg-meta span {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }
    .pkg-detail-info .btn,
    .pkg-buy-box .btn {
        white-space: normal;
        min-width: 0;
    }
    .prose,
    .prose * {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 560px) {
    .nav-links { top: 76px; }
    .auth-wrap { padding: 112px 0 56px; }
    .auth-card { padding: 32px 24px; }
    .auth-scene { padding: 96px 20px 58px; }
    .auth-wrap-login { padding: 0; }
    .auth-brand { margin-bottom: 52px; font-size: 28px; }
    .auth-brand img { max-width: 170px; max-height: 56px; }
    .auth-card-login { padding: 0; }
    .auth-card-login h1 { font-size: 42px; margin-bottom: 20px; }
    .auth-card-login > p { font-size: 15.5px; line-height: 1.65; margin-bottom: 34px; }
    .auth-card-login .btn { width: 100%; min-width: 0; min-height: 56px; }
    .brand-logo { max-width: 48vw; }
    .brand-name { max-width: 48vw; font-size: 16px; }
    .nav-actions { gap: 7px; }
    .basket-btn,
    .nav-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .pkg-detail-media {
        aspect-ratio: 16 / 11;
        max-height: 38vh;
        border-radius: var(--radius-sm);
    }
    .gallery-slide img,
    .gallery-slide iframe {
        max-height: 38vh;
    }
    .pkg-detail-info h1 {
        font-size: 26px;
        overflow-wrap: anywhere;
    }
    .pkg-buy-box {
        padding: 18px;
        margin: 18px 0;
    }
    .pkg-buy-price .now {
        font-size: 24px;
    }
    .gallery-thumb {
        flex-basis: 70px;
        width: 70px;
        max-width: 70px;
    }
}
