/* ==========================================================================
   T-REX TOP UP - ULTRA LUXURY PRO GAMING FINTECH DESIGN SYSTEM (WOW EDITION)
   High-End Aesthetics • Glassmorphism • Shimmer Animations • 3D Accents
   ========================================================================== */

:root {
    --trex-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --trex-font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    
    /* Backgrounds & Surfaces */
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-subtle: #F8FAFC;
    --bg-dark-obsidian: #0B0F19;
    --bg-dark-surface: #111827;
    --bg-dark-card: #151D30;
    
    /* Luxury 24K Gold Palettes */
    --gold-primary: #F59E0B;
    --gold-hover: #D97706;
    --gold-dark: #B45309;
    --gold-light: #FDE68A;
    --gold-subtle: #FFFDF5;
    --gold-border: #FCD34D;
    --gold-glow: rgba(245, 158, 11, 0.28);
    --gold-gradient: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
    --gold-shimmer: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    
    /* Neon Cyber Emerald */
    --emerald-primary: #10B981;
    --emerald-dark: #059669;
    --emerald-subtle: #ECFDF5;
    --emerald-border: #A7F3D0;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    
    /* Electric Cyan */
    --cyan-primary: #0EA5E9;
    --cyan-subtle: #F0F9FF;
    --cyan-border: #BAE6FD;
    --cyan-glow: rgba(14, 165, 233, 0.2);
    
    /* Rich Slate Spectrum */
    --slate-950: #020617;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    
    --rose-600: #E11D48;
    --rose-50: #FFF1F2;
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    /* Elevated Luxury Shadows */
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 4px 10px -4px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 20px 35px -8px rgba(15, 23, 42, 0.1), 0 6px 15px -3px rgba(15, 23, 42, 0.04);
    --shadow-gold: 0 10px 30px -5px rgba(245, 158, 11, 0.4);
    --shadow-dark-card: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--trex-font);
    background-color: var(--bg-page);
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 100% 15%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 0% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    padding-bottom: 74px;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--trex-font-heading);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.trex-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
}

/* TOPBAR */
.trex-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

.trex-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
}

.trex-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.trex-brand:hover {
    transform: scale(1.02);
}

.trex-logo-frame {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, #0F172A, #020617);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 15px rgba(245, 158, 11, 0.2);
}

.trex-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trex-brand-info {
    display: flex;
    flex-direction: column;
}

.trex-brand-name {
    font-family: var(--trex-font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.trex-brand-name span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trex-brand-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--emerald-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trex-brand-tag::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--emerald-primary);
    box-shadow: 0 0 8px var(--emerald-primary);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.trex-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trex-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-600);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.trex-nav-item:hover {
    color: var(--slate-950);
    background: var(--slate-100);
    transform: translateY(-1px);
}

.trex-nav-item-wa {
    color: #065F46;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.trex-nav-item-wa:hover {
    background: #D1FAE5;
    color: #047857;
}

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

.trex-btn-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate-700);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.trex-btn-link:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

.trex-btn-primary-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
}

.trex-btn-primary-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
}

.trex-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--slate-800);
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.trex-user-badge:hover {
    border-color: var(--gold-border);
    transform: translateY(-1px);
}

.trex-user-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--gold-glow);
}

.trex-admin-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.trex-admin-nav-pill:hover {
    background: #FDE68A;
    transform: translateY(-1px);
}

.trex-logout-icon-btn {
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.trex-logout-icon-btn:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

/* HERO SLIDER */
.trex-hero-section {
    padding: 14px 0 6px;
}

.trex-slider-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--slate-950);
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    aspect-ratio: 3 / 1;
    max-height: 280px;
    min-height: 140px;
}

.trex-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.trex-banner-slide {
    min-width: 100%;
    height: 100%;
}

.trex-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.trex-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trex-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.trex-slider-arrow:hover {
    background: var(--gold-primary);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}

.trex-slider-arrow.prev { left: 12px; }
.trex-slider-arrow.next { right: 12px; }

.trex-slider-pills {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.promo-dot {
    width: 22px;
    height: 5px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active {
    width: 36px;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* TRUST BAR */
.trex-trust-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    margin-top: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.trex-trust-pill {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    background: #FFFFFF !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trex-trust-pill:hover {
    border-color: var(--gold-border) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.15) !important;
}

.trex-trust-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #FFFDF5 0%, #FEF3C7 100%) !important;
    border: 1.5px solid var(--gold-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px var(--gold-glow) !important;
}

.trex-trust-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.trex-trust-title {
    font-family: var(--trex-font-heading) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: var(--slate-900) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.trex-trust-sub {
    font-size: 11px !important;
    color: var(--slate-500) !important;
    margin-top: 1px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* WORKSPACE LAYOUT */
.trex-workspace {
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 44px;
}

.trex-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 80px;
}

.trex-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trex-card {
    background: #FFFFFF;
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    position: relative;
}

.trex-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.trex-step-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-family: var(--trex-font-heading);
    font-weight: 900;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--gold-glow);
    border: 1.5px solid #FFFFFF;
}

.trex-card-heading {
    font-size: 17px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
}

.trex-input-field {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    font-family: var(--trex-font);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--slate-900);
    background: #F8FAFC;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.trex-input-field:focus {
    background: #FFFFFF;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.18);
}

.trex-input-row {
    display: flex;
    gap: 10px;
}

.trex-btn-verify {
    height: 46px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--trex-font-heading);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
}

.trex-btn-verify:hover {
    background: var(--gold-gradient);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--gold-glow);
}

.trex-account-verified-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border: 1.5px solid var(--emerald-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 14px;
    box-shadow: 0 4px 14px var(--emerald-glow);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.trex-verified-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: var(--emerald-primary);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    overflow: hidden;
}

.trex-verified-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trex-verified-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.trex-verified-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--emerald-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trex-verified-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trex-verified-meta {
    font-size: 12px;
    color: var(--slate-600);
}

/* LOCKED PLACEHOLDER */
.trex-locked-placeholder {
    background: #FFFFFF;
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-md);
    padding: 44px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    box-shadow: var(--shadow-xs);
}

.trex-locked-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-subtle);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1.5px solid var(--gold-border);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.trex-locked-title {
    font-family: var(--trex-font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.trex-locked-desc {
    font-size: 13px;
    color: var(--slate-500);
    max-width: 400px;
    line-height: 1.55;
}

/* COIN GRID */
.trex-coin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.trex-coin-card {
    position: relative;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    user-select: none;
    box-shadow: var(--shadow-xs);
}

.trex-coin-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.trex-coin-card.selected {
    border-color: var(--gold-primary);
    background: linear-gradient(180deg, #FFFDF8 0%, #FFFBEB 100%);
    box-shadow: 0 0 0 2.5px rgba(245, 158, 11, 0.25), 0 8px 20px -2px var(--gold-glow);
}

.trex-coin-popular-tag {
    position: absolute;
    top: -9px;
    right: 10px;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px var(--gold-glow);
}

.trex-coin-header {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.trex-coin-amount {
    font-family: var(--trex-font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
}

.trex-coin-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-dark);
    margin-top: 4px;
}

.trex-coin-check-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--gold-glow);
}

.trex-coin-card.selected .trex-coin-check-icon {
    display: flex;
}

/* CUSTOM COIN INPUT */
.trex-custom-coin-box {
    background: #F8FAFC;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.trex-custom-coin-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.trex-custom-coin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.trex-custom-coin-suffix {
    position: absolute;
    right: 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--slate-400);
    pointer-events: none;
}

/* QUICK ADD PRECISION SEGMENTED GRID */
.trex-quick-add-wrapper {
    margin-top: 14px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.trex-quick-add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.trex-quick-add-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trex-quick-add-title svg {
    color: var(--gold-primary);
}

.trex-btn-reset-coin {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-400);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.trex-btn-reset-coin:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

.trex-quick-chips-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.trex-quick-chip-btn {
    height: 38px;
    background: #F8FAFC;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--trex-font-heading);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    user-select: none;
}

.trex-quick-chip-btn .chip-plus {
    color: var(--gold-primary);
    font-weight: 900;
    font-size: 13px;
}

.trex-quick-chip-btn:hover {
    background: #FFFDF8;
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px var(--gold-glow);
}

.trex-quick-chip-btn:active {
    transform: scale(0.95);
    background: #FEF3C7;
    border-color: var(--gold-hover);
}

/* PAYMENT METHODS */
.trex-payment-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trex-pay-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: var(--shadow-xs);
}

.trex-pay-card:hover:not(.disabled) {
    border-color: var(--gold-border);
    background: var(--slate-50);
    transform: translateY(-1px);
}

.trex-pay-card:has(input:checked):not(.disabled),
.trex-pay-card.active:not(.disabled) {
    border-color: var(--gold-primary);
    background: linear-gradient(180deg, #FFFDF8 0%, #FFFBEB 100%);
    box-shadow: 0 0 0 2.5px rgba(245, 158, 11, 0.2), 0 4px 12px var(--gold-glow);
}

.trex-pay-card.disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    pointer-events: none !important;
    user-select: none !important;
}

.trex-pay-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.trex-pay-body {
    flex: 1;
    min-width: 0;
}

.trex-pay-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--slate-900);
}

.trex-pay-desc {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 2px;
}

.trex-pay-badge-instant {
    padding: 4px 10px;
    background: #ECFDF5;
    border: 1px solid var(--emerald-border);
    color: var(--emerald-dark);
    font-size: 11px;
    font-weight: 800;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.trex-pay-badge-va {
    padding: 4px 10px;
    background: #EFF6FF;
    border: 1px solid var(--cyan-border);
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 800;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.trex-pay-badge-locked {
    padding: 4px 10px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #64748B;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.trex-va-container {
    background: #F8FAFC;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 2px;
    margin-bottom: 6px;
    animation: fadeInScale 0.25s ease-out;
}

.trex-va-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.trex-va-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: var(--shadow-xs);
}

.trex-va-chip:hover {
    border-color: var(--gold-border);
    background: #FFFDF8;
    transform: translateY(-1px);
}

.trex-va-chip.active,
.trex-va-chip:has(input:checked) {
    border-color: var(--gold-primary);
    background: #FFFBEB;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.trex-bank-logo-badge {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--trex-font-heading);
    font-weight: 900;
    font-size: 10.5px;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-bca { background: #005EAA; }
.badge-mandiri { background: #003366; }
.badge-bri { background: #00529C; }
.badge-bni { background: #E55300; }
.badge-permata { background: #00875A; }
.badge-cimb { background: #7A0019; }

/* CHECKOUT SUMMARY (OBSIDIAN DARK GLASS) */
.trex-checkout-summary {
    background: linear-gradient(145deg, #0B0F19 0%, #151D30 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #FFFFFF;
    box-shadow: var(--shadow-dark-card);
    position: relative;
    overflow: hidden;
}

.trex-checkout-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), #FBBF24, #10B981, var(--cyan-primary));
}

.trex-summary-title {
    font-family: var(--trex-font-heading);
    font-size: 17px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trex-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--slate-300);
    margin-bottom: 10px;
}

.trex-summary-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 14px 0;
}

.trex-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.trex-total-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--slate-200);
}

.trex-total-amount {
    font-family: var(--trex-font-heading);
    font-size: 24px;
    font-weight: 900;
    color: #FCD34D;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.trex-btn-checkout {
    width: 100%;
    height: 52px;
    background: var(--gold-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--trex-font-heading);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trex-btn-checkout::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: var(--gold-shimmer);
    transform: skewX(-25deg);
    animation: shimmer-swipe 2.8s infinite;
}

@keyframes shimmer-swipe {
    0% { left: -100%; }
    40%, 100% { left: 200%; }
}

.trex-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.6);
}

.trex-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--slate-400);
    margin-top: 12px;
}

/* MOBILE STICKY CHECKOUT BAR */
.trex-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.trex-mobile-bar-info {
    display: flex;
    flex-direction: column;
}

.trex-mobile-bar-koin {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
}

.trex-mobile-bar-total {
    font-family: var(--trex-font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #FCD34D;
    line-height: 1.1;
}

.trex-mobile-bar-btn {
    height: 42px;
    padding: 0 18px;
    background: var(--gold-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--trex-font-heading);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* HOW IT WORKS */
.trex-how-it-works {
    background: #FFFFFF;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 48px 0;
    margin-bottom: 36px;
}

.trex-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 28px;
}

.trex-section-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--slate-900);
}

.trex-section-desc {
    font-size: 13.5px;
    color: var(--slate-500);
    margin-top: 4px;
}

.trex-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.trex-process-card {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.trex-process-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gold-border);
}

.trex-process-num {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--slate-950);
    color: var(--gold-primary);
    font-family: var(--trex-font-heading);
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 2px 8px var(--gold-glow);
}

.trex-process-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 6px;
}

.trex-process-text {
    font-size: 12.5px;
    color: var(--slate-600);
    line-height: 1.5;
}

/* FOOTER */
.trex-footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: 44px 0 24px;
    margin-top: auto;
    border-top: 1px solid var(--slate-800);
}

.trex-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.trex-footer-brand-title {
    font-family: var(--trex-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.trex-footer-brand-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trex-footer-desc {
    font-size: 13px;
    line-height: 1.55;
    max-width: 380px;
    color: var(--slate-400);
}

.trex-footer-heading {
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.trex-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trex-footer-link {
    font-size: 13px;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.15s ease;
}

.trex-footer-link:hover {
    color: #FFFFFF;
}

.trex-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--slate-500);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .trex-workspace {
        grid-template-columns: 1fr;
    }
    .trex-col-left {
        position: static;
    }
    .trex-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .trex-nav-menu {
        display: none;
    }
    .trex-trust-bar {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 2px 0 6px !important;
        margin: 8px 0 12px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .trex-trust-bar::-webkit-scrollbar {
        display: none !important;
    }
    .trex-trust-pill {
        flex: 0 0 auto !important;
        padding: 6px 12px !important;
        border-radius: var(--radius-full) !important;
        gap: 6px !important;
        background: #FFFFFF !important;
        border: 1px solid var(--slate-200) !important;
    }
    .trex-trust-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 12px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .trex-trust-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--slate-800) !important;
    }
    .trex-trust-sub {
        display: none !important;
    }
    
    .trex-coin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trex-va-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trex-steps-row {
        grid-template-columns: 1fr;
    }
    .trex-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .trex-topbar {
        height: 64px;
    }
    .trex-container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .trex-topbar-inner {
        gap: 6px;
    }
    .trex-brand {
        gap: 10px;
    }
    .trex-logo-frame {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .trex-brand-name {
        font-size: 16px;
    }
    .trex-brand-tag {
        font-size: 9.5px;
    }
    .trex-auth-actions {
        gap: 6px;
    }
    .trex-btn-link {
        padding: 5px 8px;
        font-size: 12px;
    }
    .trex-btn-primary-dark {
        padding: 6px 12px;
        font-size: 12px;
        height: 32px;
        white-space: nowrap;
    }
    .trex-user-badge {
        padding: 3px 8px 3px 3px;
        font-size: 11.5px;
        max-width: 105px;
    }
    .trex-user-name-text {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .trex-admin-nav-pill {
        padding: 4px 8px;
        font-size: 11px;
    }
    .trex-logout-icon-btn {
        padding: 4px;
    }
}

@media (max-width: 600px) {
    .trex-quick-chips-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .trex-quick-chip-btn {
        height: 34px;
        font-size: 11px;
        border-radius: 6px;
    }
    .trex-quick-chip-btn .chip-plus {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .trex-quick-chips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
