/* =====================================================
   HAZAL BETLIVE - Ana Stil Dosyası
   Modern, Premium, Gradient Tasarım
   ===================================================== */

/* CSS Variables */
:root {
    /* Ana Renkler */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --secondary-dark: #db2777;

    /* Gradient'ler */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    --gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Renkler */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Nötr Renkler */
    --dark: #1e293b;
    --dark-lighter: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Boyutlar */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Geçişler */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
    min-height: 100vh;
}

/* =====================================================
   AUTH PAGES (Login, Register)
   ===================================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card.wide {
    max-width: 520px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: var(--gray-500);
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form Stilleri */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-group .form-control {
    padding-left: 2.75rem;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--white);
}

.btn-warning {
    background: var(--gradient-warning);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-whatsapp:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Alert/Flash Mesajlar */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-error,
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    padding: 0 1rem;
}

/* Package Selection */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-option {
    position: relative;
}

.package-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.package-card:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.package-option input:checked+.package-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.package-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.package-title {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   PAYMENT INFO PAGE
   ===================================================== */

.payment-wrapper {
    min-height: 100vh;
    padding: 2rem;
    background: var(--gradient-dark);
    position: relative;
}

.payment-container {
    max-width: 600px;
    margin: 0 auto;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-header h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: rgba(255, 255, 255, 0.7);
}

.payment-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.payment-amount {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.payment-amount-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.payment-amount-value {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
}

.bank-info {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-info-label {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.bank-info-value {
    color: var(--gray-800);
    font-weight: 600;
    text-align: right;
}

.payment-code-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px dashed #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-code-label {
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.payment-code-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #92400e;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.payment-note {
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem;
    color: #1e40af;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success,
.bg-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #065f46 !important;
}

.badge-danger,
.bg-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #991b1b !important;
}

.badge-warning,
.bg-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #92400e !important;
}

.badge-info,
.bg-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #1e40af !important;
}

.badge-secondary,
.bg-secondary {
    background: var(--gray-200) !important;
    color: var(--gray-700) !important;
}

.badge-primary,
.bg-primary {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #3730a3 !important;
}

.badge-dark,
.bg-dark {
    background: var(--dark) !important;
    color: var(--white) !important;
}

/* =====================================================
   ADMIN PANEL
   ===================================================== */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gradient-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand:hover {
    color: var(--primary-light);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-lg);
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-100);
}

.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-content {
    padding: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* Admin Card */
.admin-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* =====================================================
   USER PANEL
   ===================================================== */

.user-wrapper {
    min-height: 100vh;
    background: var(--gray-100);
}

.user-header {
    background: var(--gradient-primary);
    padding: 1.5rem 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-header-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.user-nav a:hover,
.user-nav a.active {
    color: var(--white);
}

.user-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.user-balance-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.user-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.balance-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Coupon Cards */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.coupon-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.coupon-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coupon-title {
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.coupon-body {
    padding: 1.25rem;
}

.coupon-match {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--gray-200);
}

.coupon-match:last-child {
    border-bottom: none;
}

.coupon-match-name {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.coupon-match-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.coupon-footer {
    padding: 1.25rem;
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
}

.coupon-stat {
    text-align: center;
}

.coupon-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.coupon-stat-value {
    font-weight: 700;
    color: var(--gray-800);
}

/* =====================================================
   FORM UTILITIES
   ===================================================== */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
}

.pagination a {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    background: var(--gray-50);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-500);
}

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

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-primary {
    color: var(--primary);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 992px) {
    .admin-sidebar {
        width: 0;
        overflow: hidden;
    }

    .admin-sidebar.show {
        width: 260px;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .user-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .coupon-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   PROFESSIONAL BETTING DASHBOARD
   ===================================================== */

/* Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Balance Hero Card */
.balance-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.balance-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

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

.balance-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.balance-actions {
    display: flex;
    gap: 1rem;
}

.balance-action-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.balance-action-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.balance-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.balance-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-stat {
    text-align: center;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-title i {
    color: var(--primary);
}

/* Coupon Cards - Betting Style */
.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-coupon-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.bet-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bet-coupon-card.status-won {
    border-left: 4px solid var(--success);
}

.bet-coupon-card.status-lost {
    border-left: 4px solid var(--danger);
}

.bet-coupon-card.status-pending {
    border-left: 4px solid var(--warning);
}

.coupon-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}

.coupon-name {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 1rem;
}

.coupon-status {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-status.won {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.coupon-status.lost {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

.coupon-status.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    animation: pulse 2s infinite;
}

.coupon-matches {
    padding: 0.75rem 1.25rem;
    background: var(--gray-50);
    max-height: 200px;
    overflow-y: auto;
}

.match-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.85rem;
}

.match-row:last-child {
    border-bottom: none;
}

.match-name {
    font-weight: 500;
    color: var(--gray-700);
}

.match-prediction {
    color: var(--primary);
    font-weight: 600;
}

.match-odds {
    font-weight: 700;
    color: var(--success);
}

.coupon-footer {
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: white;
}

.coupon-stat {
    text-align: center;
}

.coupon-stat-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.coupon-stat-value.highlight {
    color: var(--success);
    font-size: 1.25rem;
}

/* Available Coupons - Betting Panel */
.betting-panel {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.betting-panel-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.betting-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.betting-panel-header p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.betting-coupon-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.betting-coupon-item:hover {
    background: var(--gray-50);
}

.betting-coupon-item:last-child {
    border-bottom: none;
}

.betting-coupon-title {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.betting-coupon-title .live-badge {
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    animation: pulse 1.5s infinite;
}

.betting-matches-preview {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.betting-odds-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.betting-odds-label {
    font-size: 0.8rem;
    color: #92400e;
}

.betting-odds-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #92400e;
}

.betting-input-group {
    display: flex;
    gap: 0.5rem;
}

.betting-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.betting-input:focus {
    outline: none;
    border-color: var(--primary);
}

.betting-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.betting-submit:hover {
    transform: scale(1.05);
}

.potential-win {
    text-align: center;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    margin-top: 0.75rem;
}

.potential-win-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.potential-win-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success);
}

/* Sidebar Panel */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Winners Ticker */
.winners-ticker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-xl);
    padding: 1rem;
    color: white;
}

.winners-ticker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.winners-ticker-header i {
    animation: pulse 1s infinite;
}

.winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.winner-item:last-child {
    border-bottom: none;
}

.winner-name {
    opacity: 0.9;
}

.winner-amount {
    font-weight: 700;
}

/* Withdraw History */
.withdraw-panel {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.withdraw-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.withdraw-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.withdraw-list {
    max-height: 300px;
    overflow-y: auto;
}

.withdraw-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-50);
}

.withdraw-item:last-child {
    border-bottom: none;
}

.withdraw-info {
    display: flex;
    flex-direction: column;
}

.withdraw-amount {
    font-weight: 700;
    color: var(--gray-800);
}

.withdraw-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--gray-600);
    margin: 0 0 0.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Bet Modal */
.bet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bet-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bet-modal {
    background: white;
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.bet-modal-overlay.active .bet-modal {
    transform: scale(1) translateY(0);
}

.bet-modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bet-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.bet-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.bet-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 1rem;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {

    .admin-sidebar,
    .admin-header,
    .btn,
    .no-print {
        display: none !important;
    }

    .admin-main {
        margin-left: 0;
    }
}