/* Google Fonts - Vazirmatn (Modern Persian Font) */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette - Purple & Blue Harmony */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --success-light: #34d399;
    --error-color: #ef4444;
    --error-light: #f87171;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --info-color: #06b6d4;
    --info-light: #22d3ee;
    
    /* Neutral Colors */
    --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;
    
    --background: linear-gradient(135deg, #f6f8fc 0%, #eef2ff 100%);
    --surface: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 30px -5px rgba(99, 102, 241, 0.3);
    
    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--text-primary);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
}

/* Headers */
.user-header,
.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 24px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.user-header::before,
.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-link,
.logout-btn {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-link:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-weight: 500;
    border: 2px solid transparent;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: white;
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(20px);
}

.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 1.875rem;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

.login-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

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

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

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

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.card-body {
    padding: 28px;
}

.card-footer {
    padding: 20px 28px;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-colored);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
}

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

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}

.stat-card:hover::before {
    top: -20%;
    right: -20%;
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
}

.stat-card.success:hover {
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.4);
}

.stat-card.error {
    background: linear-gradient(135deg, var(--error-color), var(--error-light));
    box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.3);
}

.stat-card.error:hover {
    box-shadow: 0 20px 40px -10px rgba(239, 68, 68, 0.4);
}

.stat-card.pending {
    background: linear-gradient(135deg, var(--info-color), var(--info-light));
    box-shadow: 0 10px 30px -5px rgba(6, 182, 212, 0.3);
}

.stat-card.pending:hover {
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.4);
}

.stat-card.primary {
    background: linear-gradient(135deg, var(--secondary-color), #a78bfa);
    box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.3);
}

.stat-card.primary:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4);
}

.stat-card.balance {
    background: linear-gradient(135deg, var(--warning-color), var(--warning-light));
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.3);
}

.stat-card.balance:hover {
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.4);
}

.stat-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.stat-info {
    flex: 1;
    z-index: 1;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Small Stats Grid */
.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card-small {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
}

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

.stat-card-small.success {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.stat-card-small.error {
    border-color: var(--error-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
}

.stat-card-small.pending {
    border-color: var(--info-color);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.02));
}

.stat-card-small strong {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.stat-card-small span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Remember Me Checkbox */
.remember-me-section {
    margin-bottom: 20px;
    text-align: right;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-base);
    user-select: none;
}

.remember-me-label:hover {
    color: var(--primary-color);
}

.remember-me-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 4px;
    transition: all var(--transition-base);
}

.remember-me-checkbox:hover {
    transform: scale(1.1);
}

.remember-me-text {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--surface);
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-700);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), var(--info-light));
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2, var(--info-color));
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 18px 32px;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

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

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: var(--error-color);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    border-color: var(--info-color);
    color: #0e7490;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table thead {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.table th {
    padding: 16px;
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.95rem;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr {
    transition: all var(--transition-fast);
}

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.badge-failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.badge-pending {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

/* Recharge Container */
.recharge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 240px);
    padding: 48px 24px;
}

.recharge-box {
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 560px;
    width: 100%;
    border: 1px solid var(--gray-200);
}

.recharge-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 800;
}

.recharge-box .subtitle {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1rem;
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    font-family: 'Vazirmatn', sans-serif;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.amount-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-colored);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-icon {
    font-size: 1.75rem;
}

/* Features Highlight */
.features-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
}

.feature-item .feature-icon {
    font-size: 1.5rem;
}

.feature-item span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Countries Section */
.countries-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.countries-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.country-flag {
    font-size: 1.2rem;
    padding: 6px;
    border-radius: var(--radius);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.country-flag:hover {
    transform: scale(1.2);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.country-flag::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 1000;
}

.country-flag:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--surface);
    margin: 5% auto;
    padding: 36px;
    border-radius: var(--radius-xl);
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-2xl);
}

.modal-close {
    position: absolute;
    left: 24px;
    top: 24px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

.detail-row {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row strong {
    display: inline-block;
    min-width: 160px;
    color: var(--text-primary);
    font-weight: 600;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    padding: 14px;
    border-radius: var(--radius);
    margin-top: 10px;
    color: #991b1b;
    font-weight: 500;
}

.response-data {
    background: var(--gray-50);
    padding: 14px;
    border-radius: var(--radius);
    margin-top: 10px;
    overflow-x: auto;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 14px;
    font-weight: 700;
}

.info-box ul {
    padding-right: 24px;
}

.info-box li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Settings Section */
.settings-section {
    margin: 24px 0;
}

.settings-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.settings-section hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 36px 0;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    text-align: center;
    padding: 40px 24px;
    margin-top: 80px;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    text-decoration: none;
    padding: 12px 28px;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-weight: 600;
    margin: 20px 0;
    font-size: 1.05rem;
}

.footer-link:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 32px auto;
}

.footer-bottom {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-content h1 {
        font-size: 1.3rem;
    }

    .admin-nav {
        width: 100%;
        justify-content: center;
    }

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

    .recharge-box {
        padding: 24px 16px;
    }
    
    .main-title {
        font-size: 1.4rem !important;
        line-height: 1.8;
        margin-bottom: 10px;
    }
    
    .subtitle {
        font-size: 0.85rem !important;
        line-height: 1.6;
    }

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

    .features-highlight {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    .feature-item {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .feature-icon {
        font-size: 1.2rem;
    }

    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .amount-button {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 10% 16px;
        padding: 24px 16px;
    }

    .countries-grid {
        gap: 8px;
        max-width: 600px;
    }

    .country-flag {
        font-size: 1rem;
        padding: 4px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .remember-me-label {
        font-size: 0.85rem;
    }
    
    .remember-me-checkbox {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .user-header {
        padding: 15px 0;
    }
    
    .header-content h1 {
        font-size: 1.1rem;
    }
    
    .admin-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .login-box {
        padding: 24px 16px;
    }

    .card-body {
        padding: 16px;
    }

    .table {
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 8px 6px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .recharge-box {
        padding: 20px 12px;
        margin: 15px 0;
    }
    
    .main-title {
        font-size: 1.1rem !important;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 0.75rem !important;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .features-highlight {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .feature-item {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
    
    .feature-icon {
        font-size: 1rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .amount-button {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .form-help {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .alert {
        padding: 12px;
        font-size: 0.85rem;
    }

    .countries-grid {
        gap: 6px;
        max-width: 340px;
    }

    .country-flag {
        font-size: 0.85rem;
        padding: 3px;
    }
    
    .site-footer {
        padding: 25px 15px 15px;
    }
    
    .footer-content {
        gap: 12px;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 5% 10px;
        padding: 20px 12px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .remember-me-label {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .remember-me-checkbox {
        width: 16px;
        height: 16px;
    }

    .countries-section {
        padding: 24px 0;
    }
    
    /* تاریخ تولد responsive */
    .form-group div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .form-group select {
        width: 100% !important;
        margin-bottom: 5px;
    }
}

/* Input with clear button fix */
input[type="tel"],
input[type="text"],
input[type="number"] {
    padding-left: 40px !important; /* فضای کافی برای دکمه X */
}

input[type="tel"]::-webkit-search-cancel-button,
input[type="text"]::-webkit-search-cancel-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* دکمه clear مرورگر را استایل بدهیم */
input[type="tel"]::-webkit-clear-button,
input[type="text"]::-webkit-clear-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.card,
.stat-card,
.alert {
    animation: fadeIn 0.6s ease;
}

/* Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}
