/* =====================================================
   ServerKur.tr - Main Stylesheet
   CSS Custom Properties + Bootstrap 5
   Light & Dark Theme Support
   ===================================================== */

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

/* --- CSS VARIABLES / DESIGN TOKENS --- */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Primary Palette */
    --primary: #6f42c1;
    --primary-dark: #5a32a3;
    --primary-light: #8b6dd1;
    --primary-soft: rgba(111, 66, 193, 0.12);
    --accent: #0d6efd;
    --accent-soft: rgba(13, 110, 253, 0.12);
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6f42c1 0%, #0d6efd 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-hero: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* ================================
   LIGHT THEME
   ================================ */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --bg-sidebar: #f8f9fa;
    --bg-navbar: rgba(255, 255, 255, 0.95);
    --bg-topbar: #1a1a2e;
    --border-color: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --shadow-card: 0 2px 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    --shadow-card-hover: 0 8px 24px rgba(111,66,193,.15), 0 0 0 1px rgba(111,66,193,.2);
    --footer-bg: #1a1a2e;
    --footer-text: rgba(255,255,255,.7);
}

/* ================================
   DARK THEME (DEFAULT)
   ================================ */
[data-theme="dark"] {
    --bg-primary: #0d0d1a;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1e1e35;
    --bg-sidebar: #12121f;
    --bg-navbar: rgba(13, 13, 26, 0.95);
    --bg-topbar: #050510;
    --border-color: rgba(255,255,255,.08);
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
    --shadow-card: 0 2px 8px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05);
    --shadow-card-hover: 0 8px 24px rgba(111,66,193,.3), 0 0 0 1px rgba(111,66,193,.4);
    --footer-bg: #050510;
    --footer-text: rgba(255,255,255,.6);
}

/* ================================
   GLOBAL RESET & BASE
   ================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color .3s ease, color .3s ease;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color .2s;
}

a:hover { color: var(--primary); }

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

/* ================================
   TOP BAR
   ================================ */
.top-bar {
    background: var(--bg-topbar);
    padding: 6px 0;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.top-bar a {
    color: rgba(255,255,255,.7);
    transition: color .2s;
}

.top-bar a:hover { color: #fff; }

.top-bar-right {
    align-items: center;
    font-size: .9rem;
}

/* ================================
   NAVBAR
   ================================ */
.main-navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: all .3s ease;
    box-shadow: var(--shadow-sm);
}

.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

/* Brand */
.brand-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary) !important;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(111,66,193,.4);
}

/* Game Nav */
.game-nav .nav-link {
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}

.game-nav .nav-link:hover,
.game-nav .nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-light);
}

.game-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-count {
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: .7rem;
    font-weight: 600;
}

/* User Menu */
.user-menu {
    color: var(--text-primary) !important;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    margin-right: 6px;
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
}

.dropdown-item {
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .875rem;
    transition: all .2s;
}

.dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary-light);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 4px 0;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    background: var(--gradient-hero);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(111,66,193,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(111,66,193,.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(111,66,193,.2);
    border: 1px solid rgba(111,66,193,.4);
    color: #c4b5fd;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px;
    padding: 12px 32px;
    backdrop-filter: blur(10px);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: .7rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.15);
}

/* ================================
   FILTER BAR
   ================================ */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
}

.badge.bg-primary-soft {
    background: var(--primary-soft) !important;
    color: var(--primary-light) !important;
}

.badge.bg-warning-soft {
    background: rgba(255,193,7,.12) !important;
    color: #ffc107 !important;
}

/* ================================
   GAME PILLS
   ================================ */
.game-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 500;
    transition: all .2s;
    cursor: pointer;
}

.game-pill:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-1px);
}

.game-pill.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(111,66,193,.4);
}

/* ================================
   PACKAGE CARDS
   ================================ */
.package-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: pointer;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity .3s;
}

.package-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(111,66,193,.3);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card.featured {
    border-color: rgba(255,193,7,.4);
    box-shadow: 0 0 0 1px rgba(255,193,7,.2), var(--shadow-md);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,193,7,.03) 100%);
}

.package-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 10px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(255,193,7,.4);
}

.package-card-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Firm Logo */
.firm-logo-wrap {
    flex-shrink: 0;
}

.firm-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px;
}

.firm-logo-placeholder {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Package Info */
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.game-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 4px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.package-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.package-link {
    color: var(--text-primary);
    text-decoration: none;
}

.package-link:hover { color: var(--primary-light); }

.firm-name {
    font-size: .8rem;
    color: var(--text-secondary);
}

.firm-name a {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.firm-name a:hover { color: var(--primary-light); }

/* Price */
.package-price-block {
    flex-shrink: 0;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.package-period {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Specs */
.package-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-item i {
    font-size: .8rem;
    color: var(--primary-light);
}

.spec-item.text-success i {
    color: var(--success);
}

/* Footer */
.package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.rating-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
}

.rating-mini .text-muted { font-size: .78rem; }

.click-count {
    font-size: .78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: all .2s;
}

.btn-whatsapp:hover {
    background: #1ea952;
    color: #fff;
    transform: scale(1.04);
}

/* Stars */
.stars { display: inline-flex; gap: 2px; }
.bi-star-fill.text-warning { color: #ffc107 !important; }
.bi-star-half.text-warning { color: #ffc107 !important; }
.bi-star.text-secondary { color: var(--text-muted) !important; }

/* ================================
   SIDEBAR
   ================================ */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.widget-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.game-list-widget {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s;
    border: 1px solid transparent;
}

.game-list-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.game-list-item.active {
    background: var(--primary-soft);
    color: var(--primary-light);
    border-color: rgba(111,66,193,.3);
}

.game-dot-lg {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Firm CTA Widget */
.firm-cta-widget {
    background: linear-gradient(135deg, rgba(111,66,193,.1), rgba(13,110,253,.1));
    border-color: rgba(111,66,193,.2);
}

/* ================================
   AD ZONES
   ================================ */
.ad-zone {
    position: relative;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: .65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 1;
}

.ad-placeholder-728 {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: .85rem;
}

.ad-placeholder-300 {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
    padding: 20px;
}

/* ================================
   AUTH PAGES
   ================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: .9rem;
}

/* ================================
   FORM ELEMENTS
   ================================ */
.form-control, .form-select, .form-check-input {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: .9rem;
    transition: all .2s;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(111,66,193,.25) !important;
    border-color: var(--primary) !important;
    background: var(--bg-card) !important;
}

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

.form-label {
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-group-text {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 10px;
    transition: all .2s;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(111,66,193,.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(111,66,193,.4);
}

.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary-light) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary) !important;
    color: var(--primary-light) !important;
}

/* ================================
   PACKAGE DETAIL PAGE
   ================================ */
.package-detail-hero {
    background: var(--gradient-hero);
    padding: 50px 0;
}

.package-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .2s;
}

.spec-card:hover {
    border-color: rgba(111,66,193,.3);
    box-shadow: var(--shadow-sm);
}

.spec-card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.spec-card-label {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.spec-card-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Review card */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.reviewer-name {
    font-weight: 600;
    font-size: .9rem;
}

.review-date {
    font-size: .75rem;
    color: var(--text-muted);
}

/* ================================
   FIRM / PANEL PAGES
   ================================ */
.panel-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-bottom: 32px;
}

.panel-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.panel-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s;
    border: 1px solid transparent;
}

.panel-nav-link:hover,
.panel-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-light);
    border-color: rgba(111,66,193,.2);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(255,193,7,.15);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,.3);
}

.status-badge.approved {
    background: rgba(25,135,84,.15);
    color: #198754;
    border: 1px solid rgba(25,135,84,.3);
}

.status-badge.rejected {
    background: rgba(220,53,69,.15);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.3);
}

/* Stats Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all .3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: .8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table > thead > tr > th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

.table > tbody > tr > td {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    vertical-align: middle;
    font-size: .875rem;
}

.table-hover > tbody > tr:hover > td {
    background: var(--bg-secondary);
}

/* ================================
   ADMIN LAYOUT
   ================================ */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 120px);
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 24px 12px;
    flex-shrink: 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.admin-main {
    flex: 1;
    padding: 32px;
    min-width: 0;
}

.admin-nav-group {
    margin-bottom: 24px;
}

.admin-nav-group-title {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s;
    margin-bottom: 2px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-light);
}

.admin-nav-link .badge {
    margin-left: auto;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-bottom: 24px;
}

/* ================================
   CONTACT PAGE
   ================================ */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ================================
   EMPTY STATE
   ================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    transition: all .2s;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.9);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: rgba(255,255,255,.9);
}

.footer-game-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1rem;
}

.footer-contact a {
    color: rgba(255,255,255,.6);
}

.footer-contact a:hover { color: #fff; }

.footer-divider {
    border-color: rgba(255,255,255,.06);
    margin: 40px 0 20px;
}

.footer-bottom {
    padding-bottom: 24px;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    gap: 4px;
    margin-top: 32px;
}

.page-link {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    border-radius: 8px !important;
    padding: 8px 14px;
    font-weight: 500;
    transition: all .2s;
}

.page-link:hover {
    background: var(--primary-soft) !important;
    color: var(--primary-light) !important;
    border-color: rgba(111,66,193,.3) !important;
}

.page-item.active .page-link {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(111,66,193,.3);
}

/* ================================
   ALERT OVERRIDES
   ================================ */
.alert {
    border-radius: 12px;
    border: 1px solid;
    font-size: .875rem;
}

.alert-success {
    background: rgba(25,135,84,.12);
    border-color: rgba(25,135,84,.3);
    color: #4ade80;
}

.alert-danger {
    background: rgba(220,53,69,.12);
    border-color: rgba(220,53,69,.3);
    color: #f87171;
}

.alert-warning {
    background: rgba(255,193,7,.12);
    border-color: rgba(255,193,7,.3);
    color: #fbbf24;
}

.alert-info {
    background: rgba(13,110,253,.12);
    border-color: rgba(13,110,253,.3);
    color: #60a5fa;
}

[data-theme="light"] .alert-success { color: #166534; }
[data-theme="light"] .alert-danger { color: #991b1b; }
[data-theme="light"] .alert-warning { color: #92400e; }
[data-theme="light"] .alert-info { color: #1e40af; }

/* ================================
   CARDS / MISC
   ================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.card-header {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 16px 20px;
}

.card-body { padding: 20px; }

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.package-card {
    animation: fadeInUp .4s ease both;
}

.package-card:nth-child(1) { animation-delay: .05s; }
.package-card:nth-child(2) { animation-delay: .1s; }
.package-card:nth-child(3) { animation-delay: .15s; }
.package-card:nth-child(4) { animation-delay: .2s; }
.package-card:nth-child(5) { animation-delay: .25s; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 991px) {
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-layout { flex-direction: column; }
    .admin-main { padding: 20px; }

    .package-header { flex-direction: column; }
    .package-price-block { text-align: left !important; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-stats { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
    .stat-divider { display: none; }
    .package-card-inner { flex-direction: column; }
    .firm-logo-wrap { align-self: flex-start; }
    .package-specs { gap: 6px; }
    .auth-card { padding: 24px 16px; }
    .filter-bar { padding: 10px; }
}

@media (max-width: 576px) {
    .game-pills { gap: 6px; }
    .game-pill { font-size: .75rem; padding: 5px 10px; }
    .hero-section { padding: 40px 0 30px; }
    .hero-stats { display: none; }
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(111,66,193,.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ================================
   LOADING SKELETON
   ================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
}

/* ================================
   TINYMCE OVERRIDE
   ================================ */
.tox-tinymce {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
}
