/* ========================================
   TOP UP GAMES - MAIN STYLESHEET
   Color: #E91E8C (Pink/Magenta)
   ======================================== */

:root {
    --pink: #FFC200; /* Valforum Gold */
    --pink-dark: #d4a000;
    --pink-light: #ffdc5c;
    --bg-dark: #0f0f0f; /* Darker background */
    --bg-card: #1c1c1c;
    --bg-card2: #242424;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #333333;
}

/* Base */
* { box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    background-image: url('../images/bg-valforum.png');
    background-repeat: repeat-y;
    background-size: cover;
    background-attachment: scroll;
    color: var(--text-primary);
    min-height: 100vh;
}
a { text-decoration: none; }

/* ==================
   NAVBAR
   ================== */
#mainNavbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 1030;
    transition: all 0.3s;
}
#mainNavbar.scrolled {
    background: rgba(26, 26, 46, 0.99);
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.15);
}
.logo-icon {
    width: 36px; height: 36px;
    background: var(--pink);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
}
.logo-text {
    font-weight: 800; font-size: 1.3rem;
    background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.search-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    border-right: none;
}
.search-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--pink);
    color: #fff;
    box-shadow: none;
}
.search-input::placeholder { color: var(--text-secondary); }

/* ==================
   BUTTONS
   ================== */
.btn-pink {
    background: var(--pink);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 8px;
}
.btn-pink:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}
.btn-outline-pink {
    border: 2px solid var(--pink);
    color: var(--pink);
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s;
}
.btn-outline-pink:hover {
    background: var(--pink);
    color: #fff;
    transform: translateY(-1px);
}
.text-pink { color: var(--pink) !important; }
.bg-pink { background-color: var(--pink) !important; }

/* ==================
   HERO SECTION
   ================== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23E91E8C" stroke-width="0.5" opacity="0.3"/></svg>') center/cover;
    pointer-events: none;
}
.hero-glow {
    position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(233,30,140,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title {
    font-size: 3rem; font-weight: 800;
    line-height: 1.2;
}
.hero-title span {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
}
.hero-stats {
    display: flex; gap: 30px; margin-top: 30px;
}
.hero-stat {
    text-align: center;
}
.hero-stat .number {
    font-size: 1.8rem; font-weight: 800; color: var(--pink);
}
.hero-stat .label {
    font-size: 0.8rem; color: var(--text-secondary);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(233,30,140,0.1);
    border: 1px solid rgba(233,30,140,0.3);
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.85rem; color: var(--pink-light);
    margin-bottom: 20px;
}

/* ==================
   GAME CARDS
   ================== */
.section-title {
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}
.section-title::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 80%;
    background: var(--pink);
    border-radius: 2px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--pink);
    box-shadow: 0 10px 30px rgba(233,30,140,0.25);
    color: inherit;
}
.game-card-img {
    height: 150px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.game-card-img::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
}
.game-card-body { padding: 12px 14px 14px; }
.game-card-title {
    font-weight: 700; font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card-publisher {
    font-size: 0.75rem; color: var(--text-secondary);
}
.game-card-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--pink);
    color: #fff; font-size: 0.65rem; font-weight: 600;
    padding: 2px 8px; border-radius: 50px;
}
.game-card-category {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff; font-size: 0.65rem;
    padding: 2px 8px; border-radius: 50px;
}

/* ==================
   PRODUCT PAGE
   ================== */
.game-detail-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.product-card {
    background: transparent;
    border: 1px solid var(--pink);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.product-card:hover, .product-card.selected {
    background: var(--pink);
    color: var(--bg-dark);
}
.product-card.selected::after {
    display: none;
}
.product-card:hover .product-price, .product-card.selected .product-price {
    color: var(--bg-dark);
}
.product-card:hover .product-name, .product-card.selected .product-name {
    color: var(--bg-dark);
}
.product-name { font-weight: 800; font-size: 0.9rem; color: #fff; }
.product-price { font-weight: 800; color: var(--pink); font-size: 1rem; }
.product-bonus { font-size: 0.72rem; color: var(--pink-light); }

/* ==================
   ORDER FORM
   ================== */
.order-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}
.form-control, .form-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
}
.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--pink);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(233,30,140,0.25);
}
.form-control::placeholder { color: var(--text-secondary); }
.form-select option { background: var(--bg-card); color: #fff; }
.form-label { font-weight: 500; color: var(--text-secondary); font-size: 0.9rem; }

/* ==================
   PAYMENT METHOD
   ================== */
.payment-method-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; gap: 12px;
}
.payment-method-card:hover, .payment-method-card.selected {
    border-color: var(--pink);
    background: rgba(233,30,140,0.08);
}
.payment-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* ==================
   TRANSACTION / STATUS
   ================== */
.transaction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}
.status-icon { font-size: 4rem; }
.status-pending .status-icon { color: #fbbf24; }
.status-success .status-icon { color: #4ade80; }
.status-failed .status-icon { color: #f87171; }

/* ==================
   FOOTER
   ================== */
.footer {
    background: #0d0d1f;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}
.footer-heading {
    color: var(--pink); font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.8rem; margin-bottom: 15px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }
.footer-contact-link { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
.footer-contact-link:hover { color: var(--pink-light); }
.social-link {
    width: 36px; height: 36px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.9rem; transition: all 0.3s;
}
.social-link:hover {
    background: var(--pink); border-color: var(--pink); color: #fff;
    transform: translateY(-2px);
}
.badge-payment {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 0.7rem;
    padding: 3px 8px; border-radius: 4px;
}

/* ==================
   AUTH PAGES
   ================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 20px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-logo {
    text-align: center; margin-bottom: 30px;
}
.auth-title {
    font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 6px;
}
.auth-subtitle {
    text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px;
}

/* ==================
   ADMIN PANEL
   ================== */
.admin-sidebar {
    width: 260px; min-height: 100vh;
    background: #0d0d1f;
    border-right: 1px solid var(--border-color);
    position: fixed; left: 0; top: 0; z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s;
}
.admin-sidebar .sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.admin-sidebar .sidebar-nav { padding: 15px 0; }
.admin-sidebar .nav-item { margin: 2px 10px; }
.admin-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: rgba(233,30,140,0.12);
    color: var(--pink);
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-dark);
}
.admin-topbar {
    background: #0d0d1f;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 99;
}
.admin-main { padding: 25px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    position: relative; overflow: hidden;
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.stat-card .stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-label { color: var(--text-secondary); font-size: 0.85rem; }
.stat-card::after {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.02);
}

/* Data Table */
.data-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}
.data-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.table-dark { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { background-color: transparent; border-bottom-color: var(--border-color); }
.table thead th { color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Breadcrumb */
.page-header {
    margin-bottom: 24px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }

/* Modal dark */
.modal-content { background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; }
.modal-header { border-bottom-color: var(--border-color); }
.modal-footer { border-top-color: var(--border-color); }
.btn-close-white { filter: invert(1); }

/* Badges */
.badge { font-weight: 500; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ==================
   UTILITIES
   ================== */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.divider-pink { border-color: var(--pink); opacity: 0.3; }
.gradient-text {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 15px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 1.6rem; }
    .auth-card { padding: 25px; }
    .order-form-card { padding: 16px; }
}
