/**
 * =====================================================
 * GAME DEMO PORTAL - CASINO / SLOTS THEME
 * Deep black · Gold · Neon · Luxury lobby feel
 * =====================================================
 */

:root {
    --gold: #f5c542;
    --gold-dark: #c9a227;
    --gold-light: #ffe08a;
    --crimson: #e63946;
    --neon-pink: #ff2d95;
    --neon-cyan: #00f5d4;
    --neon-purple: #9b5de5;
    --bg-deep: #07060b;
    --bg-dark: #0d0b14;
    --bg-card: #14111f;
    --bg-card-hover: #1c1829;
    --bg-elevated: #1a1628;
    --border-subtle: rgba(245, 197, 66, 0.12);
    --border-gold: rgba(245, 197, 66, 0.35);
    --text-primary: #f8f5ef;
    --text-secondary: #9a92a8;
    --text-muted: #6b6378;
    --success: #00c853;
    --danger: #ff3d57;
    --warning: #ffb300;
    --radius: 14px;
    --shadow-gold: 0 0 24px rgba(245, 197, 66, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(155, 93, 229, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(245, 197, 66, 0.04), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 45, 149, 0.05), transparent);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-dark), #5c4a1a);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* NAVBAR */
.main-navbar {
    background: rgba(7, 6, 11, 0.92) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.7rem 0;
    z-index: 1030;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    -webkit-text-fill-color: var(--gold);
    filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.5));
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
    background: rgba(245, 197, 66, 0.08);
}

.balance-badge {
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.15), rgba(201, 162, 39, 0.1));
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 0.35rem 1rem !important;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold) !important;
    box-shadow: 0 0 12px rgba(245, 197, 66, 0.1);
}

.time-badge {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 24px;
    padding: 0.35rem 1rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--success) !important;
}

.avatar-sm {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.search-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    border-radius: 10px 0 0 10px !important;
    min-width: 180px;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.12) !important;
    color: #fff !important;
}

.btn-search {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    border: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: #1a1200 !important;
    font-weight: 700;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    border: none !important;
    color: #1a1200 !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(245, 197, 66, 0.3);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(245, 197, 66, 0.45);
    filter: brightness(1.08);
    color: #1a1200 !important;
}

.btn-outline-primary {
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    background: transparent !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: rgba(245, 197, 66, 0.12) !important;
    color: var(--gold-light) !important;
    box-shadow: 0 0 16px rgba(245, 197, 66, 0.2);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.btn-play {
    background: linear-gradient(135deg, #ff2d95, #e63946, #c9184a) !important;
    border: none;
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.85rem 2.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(255, 45, 149, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 36px rgba(255, 45, 149, 0.55);
    color: #fff !important;
}
.btn-play:hover::before { left: 120%; }

.btn-warning {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    border: none !important;
    color: #1a1200 !important;
    font-weight: 700;
}

/* GAME CARDS - Casino portrait style */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-card);
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(160deg, rgba(245,197,66,0.3), transparent 40%, transparent 60%, rgba(255,45,149,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
    z-index: 3;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 197, 66, 0.12);
}
.game-card:hover::before { opacity: 1; }

.game-card .card-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1528, #0d0b14);
}

.game-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.game-card:hover .card-img-wrapper img { transform: scale(1.1); }

.game-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
    z-index: 2;
    pointer-events: none;
}
.game-card:hover .card-img-wrapper::after { left: 130%; }

.game-card .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.badge-free {
    background: linear-gradient(135deg, #00c853, #009624);
    color: #fff;
}
.badge-premium {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1200;
}
.badge-hot {
    background: linear-gradient(135deg, #ff2d95, #e63946);
    color: #fff;
    animation: hot-pulse 1.5s ease infinite;
}
.badge-new {
    background: linear-gradient(135deg, #9b5de5, #7b2cbf);
    color: #fff;
}

@keyframes hot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(255, 45, 149, 0); }
}

.game-card .card-body {
    padding: 0.85rem 1rem 1rem;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
}

.game-card .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.game-card .card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.game-card .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 11, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.game-card:hover .play-overlay { opacity: 1; }

.play-overlay .play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1200;
    font-size: 1.3rem;
    box-shadow: 0 4px 24px rgba(245, 197, 66, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s;
}
.game-card:hover .play-overlay .play-btn { transform: scale(1); }

/* HERO */
.hero-banner {
    position: relative;
    min-height: 320px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 45%, #0d0a14 100%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 197, 66, 0.1), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 45, 149, 0.1), transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(155, 93, 229, 0.12), transparent 45%);
    z-index: 1;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--neon-pink), var(--gold), transparent);
    z-index: 3;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,6,11,0.95) 0%, rgba(7,6,11,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 20px rgba(245, 197, 66, 0.2));
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.hero-content .badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #1a1200 !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: none;
    box-shadow: 0 0 16px rgba(245, 197, 66, 0.3);
}

/* SECTION */
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.section-title i {
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(245, 197, 66, 0.4));
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-gold), transparent);
    margin-left: 0.5rem;
}

/* PACKAGE CARDS */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.package-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}
.package-card:hover::before { opacity: 1; }

.package-card.featured {
    border-color: var(--border-gold);
    background: linear-gradient(180deg, rgba(245, 197, 66, 0.08), var(--bg-card));
    box-shadow: var(--shadow-card), 0 0 40px rgba(245, 197, 66, 0.1);
}
.package-card.featured::before { opacity: 1; }

.package-card .package-badge {
    position: absolute;
    top: 14px;
    right: -28px;
    background: linear-gradient(135deg, var(--neon-pink), var(--crimson));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 2.2rem;
    transform: rotate(45deg);
    letter-spacing: 0.06em;
    box-shadow: 0 2px 10px rgba(255, 45, 149, 0.4);
}

.package-price {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.75rem 0;
}

.package-duration {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

/* AUTH */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card), 0 0 60px rgba(245, 197, 66, 0.06);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--neon-pink), var(--gold));
}

.auth-card h2 { font-weight: 800; margin-bottom: 0.4rem; }

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.12) !important;
    color: #fff !important;
}

.form-control::placeholder { color: var(--text-muted) !important; }

.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.input-group-text {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-muted) !important;
}

/* PROFILE */
.profile-header {
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.08), rgba(155, 93, 229, 0.06));
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.35);
}

/* FOOTER */
.site-footer {
    background: #05040a;
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-brand {
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-divider { border-color: var(--border-subtle); margin: 2rem 0 0; }
.social-links a { color: var(--text-secondary); transition: all 0.2s; }
.social-links a:hover { color: var(--gold); transform: translateY(-3px); filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.4)); }

/* CHAT */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1050; }

.chat-toggle-btn {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none; color: #1a1200; font-size: 1.4rem;
    box-shadow: 0 4px 24px rgba(245, 197, 66, 0.45);
    cursor: pointer; transition: all 0.3s; position: relative;
}
.chat-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(245, 197, 66, 0.6); }

.chat-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--crimson); color: #fff; font-size: 0.7rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.chat-box {
    position: absolute; bottom: 72px; right: 0;
    width: 360px; height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-gold);
    display: flex; flex-direction: column; overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.1), rgba(0, 0, 0, 0.3));
    padding: 0.85rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--gold);
}

.chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.75rem;
}

.chat-msg { display: flex; gap: 0.5rem; animation: fadeIn 0.3s ease; }
.chat-msg .msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--border-gold);
}
.chat-msg .msg-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 12px; padding: 0.5rem 0.75rem; max-width: 80%;
}
.chat-msg .msg-user { font-size: 0.75rem; font-weight: 700; color: var(--gold); margin-bottom: 0.15rem; }
.chat-msg .msg-text { font-size: 0.85rem; word-break: break-word; }
.chat-msg .msg-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }

.chat-input-area {
    display: flex; gap: 0.5rem; padding: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.25);
}
.chat-input-area input { flex: 1; }

/* TABLES */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-subtle);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(245, 197, 66, 0.05);
}

/* ALERTS */
.alert { border-radius: 12px; border: 1px solid transparent; }
.alert-success { background: rgba(0, 200, 83, 0.1); border-color: rgba(0, 200, 83, 0.25); color: #69f0ae; }
.alert-danger, .alert-error { background: rgba(255, 61, 87, 0.1); border-color: rgba(255, 61, 87, 0.25); color: #ff8a9a; }
.alert-warning { background: rgba(255, 179, 0, 0.1); border-color: rgba(255, 179, 0, 0.25); color: #ffd54f; }
.alert-info { background: rgba(0, 245, 212, 0.08); border-color: rgba(0, 245, 212, 0.2); color: #80ffea; }

/* DROPDOWN */
.dropdown-menu-dark {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    padding: 0.4rem;
}
.dropdown-menu-dark .dropdown-item {
    border-radius: 8px; font-size: 0.9rem; padding: 0.5rem 0.85rem; color: var(--text-secondary);
}
.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(245, 197, 66, 0.1); color: var(--gold);
}
.dropdown-divider { border-color: var(--border-subtle) !important; }

/* PAGINATION */
.page-link {
    background: var(--bg-card) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    border-radius: 8px !important;
    margin: 0 2px;
}
.page-link:hover {
    background: rgba(245, 197, 66, 0.1) !important;
    color: var(--gold) !important;
    border-color: var(--border-gold) !important;
}
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    border-color: transparent !important;
    color: #1a1200 !important;
    font-weight: 700;
}

/* BADGES */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #1a1200 !important;
}
.badge.bg-success { background: linear-gradient(135deg, #00c853, #009624) !important; }
.badge.bg-danger { background: linear-gradient(135deg, #ff2d95, #e63946) !important; }
.badge.bg-warning { background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important; color: #1a1200 !important; }

/* UTILS */
.main-content { flex: 1; padding: 1.5rem 0 3rem; }
.text-primary { color: var(--gold) !important; }
.bg-card { background: var(--bg-card) !important; }
.border-subtle { border-color: var(--border-subtle) !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.45s ease; }

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

.sticky-top.bg-card {
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
    .hero-banner { height: 300px; border-radius: 14px; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-overlay { padding: 1.5rem; }
    .chat-box { width: calc(100vw - 32px); right: -8px; height: 60vh; }
    .search-form { width: 100%; margin: 0.5rem 0; }
    .search-input { min-width: auto; width: 100%; }
}

.spinner-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 6, 11, 0.85);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.spinner-border-primary { color: var(--gold) !important; }

.btn-close { filter: invert(1) brightness(1.5); }
.form-check-input:checked {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 66, 0.2) !important;
    border-color: var(--gold) !important;
}


/* ===== Game card icon bo góc ===== */
.game-card .card-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
}
.game-card .card-img-wrapper img {
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.game-card {
    border-radius: 18px;
}

/* ===== Hero banner mobile fix ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    height: auto;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 40%, #0d0a14 100%);
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1.5rem;
    min-height: 280px;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .hero-banner {
        min-height: 220px;
        border-radius: 14px;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-overlay {
        min-height: 220px;
        padding: 1.25rem 1rem;
    }
    .hero-content h1 {
        font-size: 1.45rem !important;
        line-height: 1.25;
    }
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
}

/* ===== VIP ===== */
.vip-badge-lg {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(245,197,66,.12);
    border: 2px solid var(--vip-color, #f5c542);
    color: var(--vip-color, #f5c542);
    font-size: 1.5rem;
}
.vip-progress {
    height: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    overflow: hidden;
}
.vip-progress .progress-bar {
    background: linear-gradient(90deg, #f5c542, #ff2d95);
}
.vip-card {
    border: 1px solid rgba(255,255,255,.06);
    transition: .2s;
}
.vip-card-active {
    border-color: var(--vip-color, #f5c542);
    box-shadow: 0 0 0 1px var(--vip-color, #f5c542);
}
.card-panel {
    background: var(--bg-card, #14111f);
    border: 1px solid rgba(245,197,66,.1);
    border-radius: 16px;
}
.text-gold { color: var(--gold, #f5c542) !important; }

/* Navbar logo image */
.navbar-brand img.site-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 8px;
}

/* Player bar balance */
.player-balance-chip {
    background: rgba(0,200,83,.12);
    border: 1px solid rgba(0,200,83,.35);
    color: #00c853;
    border-radius: 99px;
    padding: .25rem .75rem;
    font-weight: 600;
    font-size: .9rem;
}

/* API access and giftcode surfaces */
.eyebrow { font-size: .7rem; letter-spacing: .12em; font-weight: 700; }
.api-page-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; padding:2rem; border:1px solid rgba(0,180,216,.22); border-radius:16px; background:linear-gradient(135deg, rgba(0,180,216,.12), rgba(20,17,31,.75)); }
.api-hero-copy { max-width:680px; }
.api-hero-meta { display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; justify-content:flex-end; }
.api-stat-value { display:block; color:var(--gold); font-size:1.35rem; font-weight:800; line-height:1; }
.api-stat-label { display:block; margin-top:.35rem; color:var(--text-secondary); font-size:.72rem; white-space:nowrap; }
.api-key-panel { padding:1.35rem; border:1px solid rgba(245,197,66,.36); border-radius:14px; background:linear-gradient(135deg, rgba(245,197,66,.1), rgba(20,17,31,.8)); }
.api-key-panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem; }
.api-key-shell { display:flex; align-items:center; gap:.75rem; width:100%; min-width:0; padding:.85rem 1rem; border:1px solid rgba(255,255,255,.15); border-radius:10px; background:#09080e; }
.api-key-value { display:block; min-width:0; flex:1; color:#ffe08a; font-size:.9rem; line-height:1.55; overflow-wrap:anywhere; word-break:break-word; white-space:normal; }
.api-package-card { display:flex; flex-direction:column; padding:1.35rem; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(20,17,31,.82); box-shadow:0 12px 28px rgba(0,0,0,.12); transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.api-package-card:hover { transform:translateY(-3px); border-color:rgba(0,180,216,.5); box-shadow:0 18px 34px rgba(0,0,0,.2); }
.api-package-card.is-featured { border-color:rgba(245,197,66,.42); }
.api-provider-logo { width:34px; height:34px; flex:0 0 34px; object-fit:contain; border-radius:9px; background:rgba(255,255,255,.08); padding:5px; }
.api-provider-fallback { display:inline-flex; align-items:center; justify-content:center; color:var(--gold); }
.api-package-specs { display:grid; gap:.55rem; padding:.85rem 0; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.api-package-specs div { display:flex; justify-content:space-between; gap:1rem; font-size:.82rem; }
.api-package-specs span { color:var(--text-secondary); }
.api-package-specs strong { text-align:right; font-weight:600; }
.api-package-price { color:var(--gold); font-size:1.45rem; font-weight:800; }
.api-docs-section { padding:1.5rem; border-top:1px solid rgba(0,180,216,.2); }
.api-doc-steps { display:grid; gap:1rem; margin:1.5rem 0 0; padding:0; list-style:none; }
.api-doc-steps li { display:flex; align-items:flex-start; gap:.8rem; }
.api-doc-steps li > span { color:var(--gold); font-weight:800; font-size:.75rem; padding-top:.15rem; }
.api-doc-steps strong, .api-doc-steps small { display:block; }
.api-doc-steps small { color:var(--text-secondary); margin-top:.2rem; }
.api-doc-code { padding:1.1rem; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:#09080e; }
.api-doc-code-title { display:flex; justify-content:space-between; align-items:center; color:#f8f5ef; font-size:.85rem; }
.api-doc-code pre { margin:.75rem 0 0; white-space:pre-wrap; overflow-wrap:anywhere; color:#bfefff; font-size:.78rem; }
.giftcode-hero { padding:1.5rem; border:1px solid rgba(0,180,216,.2); border-radius:14px; background:rgba(20,17,31,.75); }
.giftcode-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px; color:#071018; background:#90e0ef; font-size:1.15rem; }
.giftcode-tip { display:flex; align-items:center; gap:.7rem; height:100%; padding:1rem; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(20,17,31,.55); }
.giftcode-tip i { font-size:1.1rem; }
.admin-stat-card { display:flex; flex-direction:column; gap:.35rem; padding:1rem 1.15rem; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(20,17,31,.65); }
.admin-stat-card strong { color:var(--gold); font-size:1.4rem; }
.child-empty-state { padding:4rem 1.5rem; text-align:center; border:1px dashed rgba(255,255,255,.16); border-radius:14px; background:rgba(20,17,31,.55); }
.child-empty-state i { display:block; margin-bottom:1rem; color:#00b4d8; font-size:2rem; }
.child-empty-state h3 { font-size:1.2rem; }
.child-empty-state p { color:var(--text-secondary); }
.child-dashboard-card { display:flex; flex-direction:column; padding:1.25rem; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(20,17,31,.75); }
.child-form-card { padding:1.35rem; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(20,17,31,.72); }
.child-form-heading { display:flex; align-items:flex-start; gap:.75rem; }
.child-form-heading > span { color:#00b4d8; font-size:.75rem; font-weight:800; letter-spacing:.06em; }
.child-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.child-card-grid > div, .child-metric-card, .pricing-list > div, .revenue-summary-grid > div { padding:.8rem; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(0,0,0,.14); }
.child-card-grid span, .child-card-grid strong, .child-card-grid small, .child-metric-card span, .child-metric-card strong, .child-metric-card small, .pricing-list span, .pricing-list strong, .revenue-summary-grid span, .revenue-summary-grid strong { display:block; }
.child-card-grid span, .child-metric-card span, .pricing-list span, .revenue-summary-grid span { color:var(--text-secondary); font-size:.72rem; }
.child-card-grid strong, .child-metric-card strong { margin-top:.25rem; font-size:.84rem; }
.child-card-grid small, .child-metric-card small { margin-top:.3rem; color:var(--text-secondary); font-size:.7rem; }
.child-metric-card { min-height:105px; }
.child-metric-card strong { font-size:.9rem; }
.status-pill { display:inline-flex; align-items:center; padding:.35rem .65rem; border-radius:999px; font-size:.7rem; font-weight:700; white-space:nowrap; }
.status-pending_dns, .status-verifying { color:#ffdf8a; background:rgba(255,179,0,.14); border:1px solid rgba(255,179,0,.34); }
.status-provisioning { color:#bfefff; background:rgba(0,180,216,.14); border:1px solid rgba(0,180,216,.34); }
.status-active { color:#a7f3c2; background:rgba(0,200,83,.14); border:1px solid rgba(0,200,83,.34); }
.status-failed, .status-suspended { color:#ffb6c0; background:rgba(255,61,87,.14); border:1px solid rgba(255,61,87,.34); }
.dns-action-banner { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.25rem; padding:1rem 1.15rem; border:1px solid rgba(0,180,216,.35); border-radius:12px; background:rgba(0,180,216,.1); }
.dns-action-banner code { display:inline-block; padding:.35rem .55rem; color:#bfefff; background:#09080e; border-radius:6px; }
.business-option { padding:1rem; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:rgba(0,0,0,.12); }
.business-option > label { display:flex; align-items:flex-start; gap:.65rem; cursor:pointer; }
.business-option > label span, .business-option > label strong, .business-option > label small { display:block; }
.business-option > label small { margin-top:.2rem; color:var(--text-secondary); }
.business-detail { margin-top:.8rem; padding-top:.8rem; border-top:1px solid rgba(255,255,255,.08); font-size:.8rem; }
.dns-instruction { padding:1rem; border:1px solid rgba(245,197,66,.25); border-radius:10px; background:rgba(245,197,66,.08); }
.dns-instruction code { display:block; margin:.35rem 0; color:#ffe08a; font-size:1.2rem; overflow-wrap:anywhere; }
.revenue-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.revenue-summary-grid strong { margin-top:.25rem; color:var(--gold); }
.pricing-list { display:grid; gap:.7rem; }
.pricing-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
.pricing-list strong { margin-top:.25rem; font-size:.85rem; }
.child-log-list { display:grid; gap:1rem; }
.child-log-list > div { display:flex; gap:.65rem; }
.child-log-list strong, .child-log-list small { display:block; }
.child-log-list small { margin-top:.2rem; color:var(--text-secondary); }
.log-dot { flex:0 0 9px; width:9px; height:9px; margin-top:.35rem; border-radius:50%; background:#90a4ae; }
.log-success { background:#00c853; }.log-warning { background:#ffb300; }.log-error { background:#ff3d57; }.log-info { background:#00b4d8; }
.admin-filter-bar { display:grid; grid-template-columns:minmax(0,2fr) minmax(170px,1fr) minmax(170px,1fr) auto; gap:.65rem; }
@media (max-width: 768px) {
    .dns-action-banner { align-items:flex-start; flex-direction:column; }
    .dns-action-banner form, .dns-action-banner .btn { width:100%; }
    .revenue-summary-grid, .pricing-list { grid-template-columns:1fr; }
    .admin-filter-bar { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
    .api-page-hero { align-items:flex-start; flex-direction:column; padding:1.25rem; }
    .api-hero-meta { justify-content:flex-start; gap:1rem; }
    .api-key-panel-heading { flex-direction:column; }
    .api-key-shell { align-items:flex-start; flex-direction:column; }
    .api-key-shell .btn { width:100%; }
    .api-docs-section { padding:1.25rem 0; }
}


/* ========== GAME ICON STYLE (app) ========== */
.game-icon-link { display: block; }
.game-icon-card {
    text-align: center;
    transition: transform .2s;
}
.game-icon-card:hover { transform: translateY(-4px); }
.game-icon-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    background: #1a1528;
    border: 1px solid rgba(245,197,66,.15);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.game-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.game-icon-card:hover .game-icon-wrap img { transform: scale(1.06); }
.game-icon-name {
    margin-top: .55rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-primary, #f8f5ef);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}
.icon-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .45rem;
    border-radius: 6px;
    letter-spacing: .03em;
}
.icon-badge.top-right { left: auto; right: 8px; }
.icon-badge.badge-free { background: #00c853; color: #fff; }
.icon-badge.badge-premium { background: linear-gradient(135deg,#f5c542,#e0a800); color: #1a1200; }
.icon-badge.badge-hot { background: #ff2d95; color: #fff; }
.icon-badge.badge-new { background: #9b5de5; color: #fff; }
.icon-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: .2s;
    z-index: 2;
}
.game-icon-card:hover .icon-play { opacity: 1; }
.icon-play i {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c542, #e0a800);
    color: #1a1200;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(245,197,66,.5);
}

/* Also force old game-card square if still used */
.game-card .card-img-wrapper {
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
}

/* ========== HERO MOBILE NO CROP ========== */
.hero-banner {
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    overflow: visible !important;
}
.hero-overlay {
    position: relative !important;
    min-height: 260px !important;
    height: auto !important;
    padding: 2rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(90deg, rgba(10,8,20,.88) 0%, rgba(10,8,20,.45) 70%, transparent 100%);
}
.hero-content {
    max-width: 560px;
    width: 100%;
}
.hero-content h1 {
    word-break: break-word;
}
@media (max-width: 768px) {
    .hero-banner {
        min-height: 0 !important;
        border-radius: 14px !important;
        margin-bottom: 1.25rem;
    }
    .hero-overlay {
        min-height: 0 !important;
        padding: 1.25rem 1rem !important;
        background: linear-gradient(180deg, rgba(10,8,20,.75), rgba(10,8,20,.92));
    }
    .hero-content h1 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }
    .hero-content p {
        font-size: .88rem !important;
        margin-bottom: .85rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-content .btn { padding: .45rem 1rem; font-size: .88rem; }
    .hero-content .mt-4 { margin-top: .75rem !important; flex-wrap: wrap; gap: .5rem !important; }
}

/* ========== NAV MENU FIX ========== */
.main-navbar .navbar-nav {
    align-items: center;
    flex-wrap: wrap;
}
.main-navbar .nav-link {
    white-space: nowrap;
    padding: .45rem .7rem !important;
}
.main-navbar .navbar-collapse {
    align-items: center;
}
@media (max-width: 991px) {
    .main-navbar .navbar-nav {
        padding-top: .5rem;
        gap: .15rem;
    }
    .main-navbar .nav-link {
        padding: .55rem .75rem !important;
    }
    .main-navbar .balance-badge,
    .main-navbar .dropdown {
        margin-top: .25rem;
    }
}

/* Player balance chip */
.player-balance-chip {
    background: rgba(0,200,83,.12);
    border: 1px solid rgba(0,200,83,.35);
    color: #00c853;
    border-radius: 99px;
    padding: .3rem .75rem;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}
