/* ==========================================================================
   BÖCEK BET - Master Mobile-First Casino CSS Design System
   Matches User's F12 Screenshot 100% Perfectly
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@600;700;800;900&display=swap');

:root {
    --bg-dark: #080a0f;
    --bg-card: rgba(16, 21, 34, 0.95);
    --bg-card-hover: rgba(24, 30, 46, 0.98);
    --bg-glass: rgba(12, 15, 24, 0.95);
    
    --gold: #ffd700;
    --gold-dark: #d4af37;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --gold-border: rgba(255, 215, 0, 0.35);
    
    --primary: #00c8ff;
    --primary-glow: rgba(0, 200, 255, 0.35);
    --purple: #9d4edd;
    --emerald: #10b981;
    --danger: #ef4444;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-sub: #cbd5e1;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-gold: 0 0 18px rgba(255, 215, 0, 0.25);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.35;
    padding-bottom: 70px;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(0, 200, 255, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 8px;
    position: relative;
}

/* Header */
header {
    background: rgba(8, 10, 15, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gold-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 6px 0;
}

header .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 38px;
    width: 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid var(--gold-border);
    font-size: 10.5px;
    font-weight: 700;
    transition: var(--transition);
    color: var(--text-main);
}

.nav-btn:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: var(--gold);
}

.nav-btn i { font-size: 11px; color: var(--gold); }

/* ==========================================================================
   🎰 1. ULTRA-MINİMAL 3 MAKARA BÖCEK BET SLOT (Ekran Görüntüsü İle Birebir)
   ========================================================================== */
.slot-machine-wrapper {
    background: linear-gradient(180deg, #0e121b 0%, #06080c 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    margin: 8px 0 12px 0;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.slot-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--gold-glow);
}

.slot-3d-stage {
    position: relative;
    margin: 0 auto 4px auto;
    max-width: 550px;
}

.slot-reels-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #000;
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    padding: 4px;
}

.slot-reel.reel-sponsor {
    background: linear-gradient(180deg, #182030 0%, #0f1522 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.slot-reel.reel-bonus {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15) 0%, #101522 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.slot-reel.reel-code {
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.15) 0%, #101522 100%);
    border: 1px solid rgba(0, 200, 255, 0.35);
}

.slot-reel {
    border-radius: 10px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slot-reel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2px;
}

.slot-reel-item img {
    max-height: 34px;
    width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.slot-reel-item .reel-text {
    font-weight: 900;
    font-size: 11px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
}

.slot-reel-item .reel-sub {
    font-size: 8.5px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
}

.slot-spin-btn-action {
    background: linear-gradient(135deg, var(--gold) 0%, #ff9900 100%);
    color: #000;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 5px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.slot-spin-btn-action:hover {
    transform: scale(1.03);
}

/* Minimalist Sade Sonuç Kutusu (Görseldeki Gibi) */
.slot-result-box {
    display: none;
    margin-top: 6px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    animation: fadeIn 0.3s ease;
}

.slot-result-box.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slot-result-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    font-weight: 900;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* ==========================================================================
   📱 2. MOBİL-FIRST DİKEY KARE KART SPONSOR DÜZENİ (Ekran Görüntüsü İle Birebir)
   ========================================================================== */
.ozel-siteler-banner {
    width: 100%;
    background: rgba(12, 15, 24, 0.9);
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
    padding: 4px 0;
    overflow: hidden;
}

.ozel-siteler-slider { display: flex; overflow: hidden; width: 100%; }

.slider-content {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.slider-content:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.site-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.site-item img { height: 20px; width: auto; object-fit: contain; }

.giris-btn {
    background: var(--gold);
    color: #000;
    font-weight: 800;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
}

/* Category Title Wrapper */
.category-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 10px 0;
    position: relative;
    width: 100%;
}

.category-title {
    position: relative;
    display: inline-block;
    padding: 4px 18px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, rgba(26, 32, 46, 0.95) 0%, rgba(12, 15, 24, 1) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* YAN YANA KARE KART GRID DÜZENİ (Ekran Görüntüsündeki Birebir Yapı) */
.premium-sponsors-grid,
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    .premium-sponsors-grid,
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Dikey Kare Sponsor Kartı (Görseldeki Gibi Yıldız Üstte, Buton Altta Tam Genişlik) */
.premium-card, .vip-card, .diamond-card, .normal-card {
    background: linear-gradient(180deg, rgba(16, 21, 34, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 12px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 115px;
    position: relative;
    transition: var(--transition);
}

.premium-card {
    border-color: var(--gold-border);
}

.premium-card:hover, .vip-card:hover, .diamond-card:hover, .normal-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 14px var(--gold-glow);
    transform: translateY(-1.5px);
}

.star-badge-top {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--gold);
}

.vip-card { border-color: rgba(157, 78, 221, 0.4); }
.diamond-card { border-color: rgba(0, 200, 255, 0.4); }

.card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    flex: 1;
}

.card-img {
    height: 38px;
    max-width: 100px;
    object-fit: contain;
}

.card-subtext {
    font-size: 9.5px;
    color: var(--gold);
    font-weight: 800;
    line-height: 1.15;
    margin: 2px 0 6px 0;
}

.card-action-btn {
    width: 100%;
    padding: 5px 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    font-weight: 900;
    font-size: 11px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.badge-icon { position: absolute; top: 4px; right: 6px; font-size: 11px; }

/* Promo Banners Grid */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
}

.promo-banner {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gold-border);
    display: block;
}

.promo-banner img { width: 100%; height: auto; display: block; }

/* Advantages Section */
.advantages-section { margin: 20px 0 10px 0; }
.advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }

.advantage-card {
    background: rgba(18, 22, 32, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}

.advantage-icon { font-size: 20px; color: var(--gold); margin-bottom: 4px; }
.advantage-title { font-size: 11.5px; font-weight: 800; margin-bottom: 2px; }
.advantage-desc { font-size: 9.5px; color: var(--text-muted); line-height: 1.2; }

/* Bottom Sticky Banner Bar */
.bottom-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 10, 15, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--gold);
    padding: 5px 0;
    z-index: 999;
}

.bottom-sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.bottom-sticky-info { display: flex; align-items: center; gap: 6px; }
.bottom-sticky-info img { height: 24px; width: auto; object-fit: contain; }

.bottom-sticky-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    font-weight: 800;
    font-size: 10.5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* Pop-up Overlay Modal */
.popup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.popup-modal-overlay.active { opacity: 1; pointer-events: all; }

.popup-content {
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 400px;
    padding: 14px;
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

.popup-img { width: 100%; max-height: 150px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 6px; }
.popup-title { font-size: 15px; font-weight: 800; color: var(--gold); margin-bottom: 2px; }
.popup-sub { color: var(--text-muted); font-size: 10.5px; margin-bottom: 8px; }

.popup-btn {
    display: block;
    width: 100%;
    padding: 7px 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    font-weight: 900;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
}

/* Footer */
footer {
    background: rgba(8, 10, 15, 0.95);
    border-top: 1px solid var(--gold-border);
    padding: 14px 0;
    margin-top: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 10.5px;
}

/* Admin Styles */
.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    background: #0f141e;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 360px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 35px var(--gold-glow);
}

.admin-login-card img {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 10px;
}

.admin-login-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
}

.admin-login-sub {
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 14px;
}

.admin-login-input {
    width: 100%;
    background: rgba(12, 15, 24, 0.9);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.admin-login-btn {
    width: 100%;
    padding: 9px 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    font-weight: 900;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 12px;
    cursor: pointer;
}

.admin-login-error {
    color: var(--danger);
    font-size: 10.5px;
    font-weight: 700;
    margin-top: 8px;
    display: none;
}

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: #0b0e14; border-right: 1px solid var(--gold-border); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.admin-brand { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-border); }
.admin-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.admin-menu-item { padding: 7px 9px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 600; font-size: 11.5px; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: var(--transition); }
.admin-menu-item:hover, .admin-menu-item.active { background: rgba(255, 215, 0, 0.12); color: var(--gold); border-left: 3px solid var(--gold); }
.admin-main { flex: 1; padding: 15px; background: var(--bg-dark); overflow-y: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-border); }
.admin-title { font-size: 17px; font-weight: 800; color: var(--gold); }
.admin-card { background: rgba(18, 22, 32, 0.85); border: 1px solid var(--gold-border); border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px; }

.admin-spec-info-box {
    background: rgba(255, 215, 0, 0.06);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-spec-info-box i { font-size: 20px; color: var(--gold); }

.admin-spec-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--text-sub);
}

.admin-spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.admin-category-filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cat-tab-btn {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-tab-btn:hover, .cat-tab-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.admin-table { width: 100%; border-collapse: collapse; margin-top: 5px; }
.admin-table th, .admin-table td { padding: 5px 7px; text-align: left; border-bottom: 1px solid var(--gold-border); font-size: 10.5px; }
.admin-table th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 8.5px; }
.table-img { width: 40px; height: 22px; object-fit: contain; border-radius: 4px; background: rgba(255, 255, 255, 0.05); }
.status-badge { padding: 2px 5px; border-radius: var(--radius-pill); font-size: 8.5px; font-weight: 700; }
.status-active { background: rgba(16, 185, 129, 0.2); color: var(--emerald); }
.status-inactive { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.action-btn-group { display: flex; gap: 3px; }
.btn-sm { padding: 3px 5px; border-radius: var(--radius-sm); font-size: 9.5px; font-weight: 600; cursor: pointer; border: none; }
.btn-edit { background: rgba(255, 215, 0, 0.2); color: var(--gold); }
.btn-delete { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.form-group { display: flex; flex-direction: column; gap: 2px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 9.5px; font-weight: 600; color: var(--text-sub); }
.form-control { background: rgba(12, 15, 24, 0.9); border: 1px solid var(--gold-border); border-radius: var(--radius-sm); padding: 5px 7px; color: #fff; font-size: 10.5px; }

/* Mobile Layout Optimization */
@media (max-width: 768px) {
    .premium-sponsors-grid,
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .bottom-sticky-content { flex-direction: row; justify-content: space-between; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
}
