/* ========================================
   CROSSFIRE TOKEN SHOP — Design System
   Dark Gaming Theme with Neon Accents
   Mobile / Tablet / PC Responsive
   ======================================== */

/* ──── CSS Variables ──── */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #232a3d;
    --bg-input: #0d1117;
    --border: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(0, 200, 150, 0.4);

    --text-primary: #f0f4f8;
    --text-secondary: #8b95a5;
    --text-muted: #5a6577;

    --accent: #00c896;
    --accent-glow: rgba(0, 200, 150, 0.3);
    --accent-dim: rgba(0, 200, 150, 0.12);
    --accent2: #6366f1;
    --accent2-glow: rgba(99, 102, 241, 0.3);

    --danger: #f43f5e;
    --warning: #f59e0b;
    --success: #10b981;
    --fb-blue: #1877f2;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', monospace;

    --nav-h: 64px;
    --header-h: 56px;
    --max-w: 520px;
}

/* ──── Reset & Base ──── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* ──── SPLASH ──── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-icon {
    font-size: 3.5rem;
    animation: pulse-scale 1.5s infinite;
}

.splash-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 8px;
}

.splash-sub {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.splash-loader {
    width: 180px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
    margin: 32px auto 0;
    overflow: hidden;
}

.splash-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    animation: splash-load 1.8s ease-in-out forwards;
}

@keyframes splash-load {
    to {
        width: 100%;
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ──── APP CONTAINER ──── */
.app {
    max-width: var(--max-w);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: var(--bg-primary);
}

/* ──── HEADER ──── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-icon {
    font-size: 1.3rem;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent);
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.header-balance:hover {
    background: rgba(0, 200, 150, 0.2);
    transform: scale(1.03);
}

.menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s;
}

/* ──── BANNER ──── */
.banner {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1040 0%, #0d1f3c 40%, #0a2a2a 70%, #1a1040 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--bg-primary) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--danger), #e11d48);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    animation: pulse-scale 2s infinite;
}

.banner-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 20%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.banner-price strong {
    color: var(--accent);
    font-size: 1.2rem;
}

.banner-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.banner-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 6s infinite;
}

.p1 {
    top: 30%;
    right: 15%;
}

.p2 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
    background: var(--accent2);
}

.p3 {
    top: 20%;
    right: 35%;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
}

.p4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
    width: 2px;
    height: 2px;
    background: var(--warning);
}

.p5 {
    top: 45%;
    right: 40%;
    animation-delay: 4s;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.8;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ──── MAIN CONTENT ──── */
.main-content {
    padding: 16px 16px calc(var(--nav-h) + 20px);
}

.view {
    display: none;
    animation: fade-in 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──── SECTION HEADER ──── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
}

.section-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 10px;
    border-radius: 12px;
}

.section-link {
    font-size: 0.8rem;
    color: var(--accent);
    cursor: pointer;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.7;
}

/* ──── TRUST BADGES ──── */
.trust-badges {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.trust-item {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-icon {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* ──── PACKAGES GRID ──── */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.package-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.package-card:hover,
.package-card:active {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.package-card.popular {
    border-color: rgba(0, 200, 150, 0.3);
}

.package-card.best-value {
    border-color: rgba(99, 102, 241, 0.3);
}

.package-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #00a87a);
    color: #000;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
}

.best-value .package-badge {
    background: linear-gradient(135deg, var(--accent2), #818cf8);
    color: #fff;
}

.package-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.package-card:hover .package-glow,
.package-card.popular .package-glow {
    opacity: 1;
}

.best-value .package-glow {
    background: radial-gradient(circle at 50% 0%, var(--accent2-glow) 0%, transparent 70%);
}

.best-value:hover .package-glow {
    opacity: 1;
}

.package-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.package-amount {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.package-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.package-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.package-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* ──── GLASS CARD ──── */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.glass-card-inner {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 16px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-title svg {
    color: var(--accent);
}

/* ──── ESTIMATED TIME BOX ──── */
.est-time-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.est-time-icon {
    font-size: 1.5rem;
}

.est-time-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.est-time-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--warning);
}

/* ──── ORDER VIEW ──── */
.order-card {
    margin-bottom: 16px;
}

.order-summary {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-product-icon {
    font-size: 1.8rem;
}

.order-product-info {
    flex: 1;
}

.order-product-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-product-rate {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.order-product-total {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ──── FORM ELEMENTS ──── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

.est-hint {
    color: var(--warning);
    font-weight: 600;
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

.form-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.08);
}

.form-input.centered {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.08);
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

.input-action {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.input-action:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

.referral-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 44px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(0, 200, 150, 0.1);
}

.qty-input {
    flex: 1;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
    font-family: var(--font-body);
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.payment-methods {
    display: flex;
    gap: 8px;
}

.payment-option {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.payment-option input {
    display: none;
}

.payment-option.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.payment-icon {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.order-total-bar {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 5px 0;
}

.total-row.discount {
    color: var(--success);
}

.total-row.time-row {
    color: var(--warning);
    font-size: 0.8rem;
}

.total-row.grand {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 6px;
}

.total-row.grand span:last-child {
    color: var(--accent);
}

/* ──── BUTTONS ──── */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), #00a87a);
    color: #000;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.pulse-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ──── CONFIRMATION / PRANK VIEW ──── */
.confirm-card {
    text-align: center;
    padding: 28px 20px;
}

.confirm-check {
    margin-bottom: 16px;
}

.confirm-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--success);
    border-radius: 50%;
    color: var(--success);
}

.check-anim {
    animation: check-draw 0.6s ease 0.3s both;
}

@keyframes check-draw {
    from {
        stroke-dashoffset: 40;
        stroke-dasharray: 40;
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        stroke-dasharray: 40;
        opacity: 1;
    }
}

.confirm-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.confirm-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.confirm-details {
    margin-bottom: 20px;
    text-align: left;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row span {
    color: var(--text-secondary);
}

.confirm-row strong {
    color: var(--text-primary);
}

.confirm-row .accent {
    color: var(--accent);
}

.confirm-row .mono {
    font-family: var(--font-display);
    letter-spacing: 2px;
    color: var(--accent);
    font-size: 0.9rem;
}

.confirm-row.highlight {
    background: rgba(245, 158, 11, 0.06);
    margin: 0 -16px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.confirm-row.highlight strong {
    color: var(--warning);
}

/* PRANK BOX */
.prank-box {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.03) 100%);
    border: 1px solid rgba(24, 119, 242, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.prank-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.prank-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.prank-msg strong {
    color: var(--accent);
}

.prank-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--fb-blue);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.prank-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    color: #fff;
}

.fb-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(24, 119, 242, 0.12);
    color: var(--fb-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(24, 119, 242, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.fb-link-btn:hover {
    background: rgba(24, 119, 242, 0.2);
    color: var(--fb-blue);
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-actions .btn-primary,
.confirm-actions .btn-secondary {
    flex: 1;
}

/* TX CTA box */
.tx-cta-box {
    text-align: center;
    padding: 16px;
    margin-top: 12px;
}

.tx-cta-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ──── TRANSACTION VIEW ──── */
.tx-card {
    margin-bottom: 14px;
}

.tx-status-banner {
    text-align: center;
    padding: 20px;
    margin: -20px -20px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.tx-status-banner.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.tx-status-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.tx-status-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tx-status-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-input);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    display: block;
}

.info-value.est-highlight {
    color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.tx-status-line {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-tag {
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-tag.processing {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-tag.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-tag.pending {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent2);
}

.ref-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--accent);
}

.message-box {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-height: 40px;
}

.message-box.admin {
    border-left: 3px solid var(--accent2);
    color: var(--text-muted);
    font-style: italic;
}

/* ──── ORDER HISTORY ROW ──── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.order-row:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.order-row-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.order-row-info {
    flex: 1;
}

.order-row-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.order-row-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.order-row-right {
    text-align: right;
}

.order-row-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
}

.order-row-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.order-row-status.completed {
    color: var(--success);
}

.order-row-status.processing {
    color: var(--warning);
}

.order-row-status.pending {
    color: var(--accent2);
}

/* ──── WALLET VIEW ──── */
.wallet-hero {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 200, 150, 0.08) 100%);
    border-color: rgba(0, 200, 150, 0.15);
    margin-bottom: 16px;
}

.wallet-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    margin: 4px 0;
}

.wallet-tokens {
    margin-top: 8px;
}

.token-count {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.token-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-action-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.wallet-action-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.topup-btn {
    border-color: rgba(0, 200, 150, 0.25);
    background: rgba(0, 200, 150, 0.05);
}

.topup-btn:hover {
    background: rgba(0, 200, 150, 0.1);
}

.wa-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot.buy {
    background: var(--accent);
}

.activity-dot.draw {
    background: var(--accent2);
}

.activity-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ──── PRIZE DRAW ──── */
.prize-hero {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

.prize-icon-big {
    font-size: 3rem;
    margin-bottom: 8px;
}

.prize-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
}

.prize-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.prize-pool {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.prize-pool-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-pool-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent2);
}

.prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prize-item {
    text-align: center;
    padding: 16px 10px;
}

.prize-item-icon {
    font-size: 1.5rem;
}

.prize-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.prize-item-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2px;
}

.prize-item-odds {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.draw-result {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fade-in 0.3s;
}

.draw-result.hidden {
    display: none !important;
}

.draw-result-content {
    text-align: center;
    padding: 30px;
    max-width: 280px;
    animation: scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.draw-result-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.draw-result-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

@keyframes scale-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ──── MODAL ──── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-w);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    animation: slide-up 0.3s ease;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    flex: 1;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ──── SIDE MENU ──── */
.side-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    animation: slide-left 0.3s ease;
}

@keyframes slide-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.menu-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.menu-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.menu-id {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.menu-list {
    list-style: none;
    flex: 1;
    padding: 8px 0;
}

.menu-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.menu-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
}

.menu-list li svg {
    color: var(--text-muted);
}

.menu-list li:hover svg {
    color: var(--accent);
}

.menu-divider {
    height: 1px !important;
    padding: 0 !important;
    margin: 4px 20px !important;
    background: var(--border) !important;
    cursor: default !important;
}

.menu-footer {
    padding: 16px 20px;
    font-size: 0.65rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    text-align: center;
}

/* ──── BOTTOM NAV ──── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-w);
    height: var(--nav-h);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 99;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}

.nav-item svg {
    transition: transform 0.2s;
}

.nav-item:hover svg {
    transform: translateY(-1px);
}

/* ──── TOAST ──── */
.toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    z-index: 400;
    box-shadow: var(--shadow-md);
    animation: toast-in 0.3s ease;
    white-space: nowrap;
}

@keyframes toast-in {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ──── SCROLLBAR ──── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 2px;
}

/* ════════════════════════════════════════
   RESPONSIVE: TABLET (≥ 600px)
   ════════════════════════════════════════ */
@media (min-width: 600px) {
    :root {
        --max-w: 560px;
        --header-h: 60px;
    }

    .banner {
        height: 180px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-price {
        font-size: 1rem;
    }

    .banner-price strong {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 20px 20px calc(var(--nav-h) + 24px);
    }

    .packages-grid {
        gap: 12px;
    }

    .package-card {
        padding: 20px 10px;
    }

    .package-amount {
        font-size: 1.6rem;
    }

    .glass-card {
        padding: 24px;
    }

    .form-input {
        padding: 12px 16px;
    }

    .form-textarea {
        padding: 12px 16px;
    }

    .trust-badges {
        padding: 16px;
        gap: 12px;
    }

    .trust-item {
        font-size: 0.7rem;
    }

    .trust-icon {
        font-size: 1.3rem;
    }

    .order-row {
        padding: 16px;
    }

    .nav-item {
        font-size: 0.65rem;
    }

    .nav-item svg {
        width: 22px;
        height: 22px;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE: DESKTOP (≥ 768px)
   ════════════════════════════════════════ */
@media (min-width: 768px) {
    :root {
        --max-w: 640px;
    }

    body {
        display: flex;
        justify-content: center;
    }

    .app {
        box-shadow: -1px 0 0 var(--border), 1px 0 0 var(--border);
    }

    .banner {
        height: 200px;
    }

    .banner-content {
        padding: 28px;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .packages-grid {
        gap: 14px;
    }

    .package-card {
        padding: 22px 12px;
        border-radius: var(--radius-lg);
    }

    .package-amount {
        font-size: 1.7rem;
    }

    .package-icon {
        font-size: 1.7rem;
    }

    .info-grid {
        gap: 14px;
    }

    .info-value {
        padding: 10px 14px;
    }

    .prank-box {
        padding: 24px;
    }

    .prank-msg {
        font-size: 0.95rem;
    }

    .wallet-hero {
        padding: 36px 24px;
    }

    .wallet-amount {
        font-size: 2.5rem;
    }

    .confirm-card {
        padding: 32px 28px;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE: LARGE DESKTOP (≥ 1024px)
   ════════════════════════════════════════ */
@media (min-width: 1024px) {
    :root {
        --max-w: 480px;
    }

    body {
        background: linear-gradient(135deg, #060810 0%, #0a0e17 50%, #060810 100%);
    }

    .app {
        margin-top: 0;
        box-shadow:
            -1px 0 0 var(--border),
            1px 0 0 var(--border),
            0 0 80px rgba(0, 200, 150, 0.03);
    }

    .header {
        background: rgba(10, 14, 23, 0.95);
    }

    .bottom-nav {
        border-radius: 0;
    }
}

/* ────────────────────────────────────────
   RESPONSIVE: SMALL PHONES (< 360px)
   ──────────────────────────────────────── */
@media (max-width: 359px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-methods {
        flex-wrap: wrap;
    }

    .trust-badges {
        flex-wrap: wrap;
    }

    .trust-item {
        flex: 0 0 calc(50% - 4px);
    }

    .banner-title {
        font-size: 1.3rem;
    }

    .confirm-actions {
        flex-direction: column;
    }
}