/* ============================================================
   INTERNATIONAL PREMIUM THEME — User Frontend Styles
   Mobile-First · Fintech-Grade · Global Standard Design
   All original class names preserved — zero logic changes
   ============================================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0b1220;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #f4f7fb;
    --card: #ffffff;
    --border: #e2e8f0;
    --sidebar-w: 264px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.05);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.06), 0 12px 32px rgba(15,23,42,0.08);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);
    --shadow-primary: 0 8px 24px rgba(37,99,235,0.28);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
::selection { background: rgba(37,99,235,0.15); color: var(--primary-dark); }

/* Custom scrollbar — international premium feel */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, filter 0.2s;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s var(--ease);
}
.btn:hover::after { left: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,185,129,0.35); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,0.25); }
.btn-warning:hover { transform: translateY(-2px); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.25); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(239,68,68,0.35); }
.btn-outline-primary {
    background: rgba(37,99,235,0.06);
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 12px; }

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.form-control, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
    background: #fbfcfe;
    transition: all 0.25s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    color: var(--text);
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}
.form-check label { margin-bottom: 0; font-weight: 500; cursor: pointer; font-size: 13px; }

/* ============ ALERTS ============ */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13.5px;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideDown 0.35s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; border: 1px solid #93c5fd; }
.alert-dismissible { padding-right: 44px; position: relative; }
.btn-close {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.06);
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.btn-close:hover { opacity: 1; background: rgba(0,0,0,0.12); transform: translateY(-50%) rotate(90deg); }

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: var(--font-main);
}
.badge.bg-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 2px 6px rgba(16,185,129,0.3); }
.badge.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.badge.bg-info { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; box-shadow: 0 2px 6px rgba(6,182,212,0.3); }
.badge.bg-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.badge.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,0.3); }
.badge.bg-secondary { background: #64748b; color: #fff; }
.badge.bg-dark { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; }

/* ============ AUTH PAGES — Premium Split Design ============ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at top left, rgba(37,99,235,0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(6,182,212,0.12), transparent 50%),
        linear-gradient(135deg, #0b1220 0%, #1e3a8a 50%, #2563eb 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,0.25), transparent 70%);
    top: -200px; right: -150px;
    animation: float 8s ease-in-out infinite;
}
.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
    bottom: -150px; left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}
.auth-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    width: 100%;
    max-width: 400px;
    padding: 36px 28px;
    animation: slideUp 0.5s var(--ease);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.5);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { max-height: 64px; margin: 0 auto 12px; object-fit: contain; }
.auth-logo h2 {
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo p { color: var(--text-muted); margin: 6px 0 0; font-size: 12.5px; }
.auth-card h3 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.auth-footer a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ============ DASHBOARD LAYOUT ============ */
.dashboard-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top right, rgba(37,99,235,0.04), transparent 40%),
        var(--bg);
}

/* Sidebar — Premium Dark Glass */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, #0b1220 0%, #111c33 50%, #0f1e3d 100%);
    color: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 32px rgba(11,18,32,0.2);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.sidebar.open { transform: translateX(0); }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,18,32,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}
.sidebar-overlay.show { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(37,99,235,0.15), transparent);
    position: relative;
}
.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.5), transparent);
}
.sidebar-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-header h3 i {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-header p { font-size: 11.5px; opacity: 0.6; margin: 4px 0 0; letter-spacing: 0.3px; }
.sidebar-nav { padding: 12px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 2px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-left: none;
    transition: all 0.25s var(--ease);
    position: relative;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(37,99,235,0.25), rgba(37,99,235,0.08));
    color: #fff;
    border-left: none;
    transform: translateX(2px);
}
.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -12px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 22px;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(96,165,250,0.6);
}
.sidebar-nav a i {
    width: 22px;
    margin-right: 12px;
    font-size: 15px;
    text-align: center;
    opacity: 0.9;
}
.sidebar-nav a.active i { color: var(--primary-light); }

/* Top Header — Glass Sticky */
.top-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px;
    box-shadow: 0 1px 0 rgba(15,23,42,0.06), 0 4px 20px rgba(15,23,42,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 60px;
    border-bottom: 1px solid rgba(226,232,240,0.8);
}
.mobile-menu-btn {
    background: rgba(37,99,235,0.08);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.mobile-menu-btn:hover { background: rgba(37,99,235,0.15); transform: scale(1.05); }
.header-user { display: flex; align-items: center; gap: 12px; }
.user-info { text-align: right; }
.user-info .username { font-weight: 700; font-size: 13.5px; color: var(--text); }
.user-info .balance {
    font-size: 11.5px;
    color: var(--success);
    font-weight: 800;
    background: rgba(16,185,129,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 2px;
}
.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    border: 2px solid #fff;
}

/* Content Area */
.content-area { padding: 18px 16px; max-width: 1400px; margin: 0 auto; }
.page-header { margin-bottom: 20px; }
.page-header h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    color: var(--text);
}
.page-header p { color: var(--text-muted); margin: 4px 0 0; font-size: 13px; }

/* ============ WELCOME / HERO BOX — Premium Gradient Card ============ */
.welcome-box {
    background:
        radial-gradient(ellipse at top right, rgba(6,182,212,0.3), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(99,102,241,0.3), transparent 50%),
        linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    color: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(37,99,235,0.35);
    border: 1px solid rgba(255,255,255,0.15);
}
.welcome-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    border-radius: 50%;
}
.welcome-box::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(6,182,212,0.3), transparent 70%);
    border-radius: 50%;
}
.welcome-box > * { position: relative; z-index: 2; }
.welcome-box h2 { font-size: 22px; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.welcome-box p { opacity: 0.9; font-size: 13.5px; margin: 0; }
.welcome-box .balance-display {
    font-size: 36px;
    font-weight: 900;
    margin: 18px 0 6px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.welcome-box .user-id { opacity: 0.8; font-size: 12px; margin-bottom: 18px; letter-spacing: 0.3px; }
.welcome-box .btn {
    width: auto;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    font-weight: 700;
}
.welcome-box .btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* ============ STATS GRID — Premium Cards ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow);
    border-left: none;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(37,99,235,0.06), transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.2); }
.stat-card.success { border-top-color: var(--success); }
.stat-card.warning { border-top-color: var(--warning); }
.stat-card.info { border-top-color: var(--accent); }
.stat-card.danger { border-top-color: var(--danger); }
.stat-card .stat-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.05));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,0.1);
}
.stat-card.success .stat-icon { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05)); color: var(--success); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.15); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05)); color: var(--warning); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.15); }
.stat-card.info .stat-icon { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05)); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(6,182,212,0.15); }
.stat-card.danger .stat-icon { background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05)); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(239,68,68,0.15); }
.stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
.stat-card .stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ============ CARDS ============ */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(180deg, #fbfcfe, #fff);
}
.card-header h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
.card-header h4 i { color: var(--primary); }
.card-body { padding: 20px; }

/* ============ SERVICE SELECTOR ============ */
.service-selector { margin-bottom: 20px; }
.service-selector-label {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-selector-label i { color: var(--primary); }
.service-dropdown { position: relative; }
.service-dropdown-btn {
    width: 100%;
    padding: 14px 16px;
    background: #fbfcfe;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s var(--ease);
    font-weight: 500;
}
.service-dropdown-btn:hover, .service-dropdown-btn.open {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}
.service-dropdown-btn .placeholder { color: #94a3b8; }
.service-dropdown-btn .selected-service { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.service-dropdown-btn .selected-service img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.service-dropdown-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: dropIn 0.25s var(--ease);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.service-dropdown-list.show { display: block; }
.service-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.service-option:last-child { border-bottom: none; }
.service-option:hover { background: linear-gradient(90deg, rgba(37,99,235,0.05), transparent); }
.service-option img {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.service-option .service-icon-fa {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37,99,235,0.25);
}
.service-option-info { flex: 1; min-width: 0; }
.service-option-name { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.service-option-meta { font-size: 11.5px; color: var(--text-muted); }
.service-option-price {
    font-weight: 800;
    color: var(--success);
    font-size: 14px;
    flex-shrink: 0;
    background: rgba(16,185,129,0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Service Details */
.service-details {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 14px;
    display: none;
    border: 1px solid var(--border);
}
.service-details.show { display: block; animation: fadeInUp 0.35s var(--ease); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.service-details-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.service-details-header img {
    width: 60px; height: 60px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    box-shadow: var(--shadow);
}
.service-details-header .service-icon-fa {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.service-details-name { font-size: 17px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.service-details-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--success);
    letter-spacing: -0.02em;
}
.service-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.service-detail-item {
    background: #fff;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.service-detail-item:hover { border-color: rgba(37,99,235,0.3); transform: translateY(-1px); }
.service-detail-item .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 700;
}
.service-detail-item .value { font-size: 13.5px; font-weight: 700; color: var(--text); }
.amount-display {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(6,182,212,0.08));
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    margin: 14px 0;
    border: 1px dashed rgba(16,185,129,0.3);
}
.amount-display .label {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.amount-display .value {
    font-size: 28px;
    font-weight: 900;
    color: var(--success);
    letter-spacing: -0.02em;
}

/* ============ TABLES ============ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.table th, .table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.table th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(37,99,235,0.03); }

/* ============ PAYMENT METHODS ============ */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.payment-method {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    background: #fff;
    position: relative;
    overflow: hidden;
}
.payment-method::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.04), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.payment-method:hover, .payment-method.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37,99,235,0.05), #fff);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.12);
}
.payment-method:hover::before, .payment-method.selected::before { opacity: 1; }
.payment-method.selected { border-width: 2px; }
.payment-method.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 6px; right: 6px;
    width: 20px; height: 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-method .method-icon {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--primary);
    position: relative;
}
.payment-method .method-name { font-weight: 700; font-size: 11.5px; position: relative; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.empty-state h4 { margin: 0 0 8px; color: var(--text); font-size: 16px; font-weight: 700; }
.empty-state p { font-size: 13px; }

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s var(--ease);
    font-family: var(--font-main);
}
.page-item .page-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,0.12); }
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ============ LOADING ============ */
.loading-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ NOTIFICATIONS ============ */
.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}
.notification-item:hover { background: rgba(37,99,235,0.03); }
.notification-item.unread { background: rgba(37,99,235,0.04); border-left: 3px solid var(--primary); }
.notification-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
    color: var(--primary);
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-primary { color: var(--primary) !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.d-none { display: none !important; }
.w-100 { width: 100%; }
.fw-bold { font-weight: 700; }

/* ============ DESKTOP / TABLET ============ */
@media (min-width: 768px) {
    body { font-size: 14.5px; }
    .sidebar { transform: translateX(0); }
    .sidebar-overlay { display: none !important; }
    .mobile-menu-btn { display: none; }
    .main-content { margin-left: var(--sidebar-w); }
    .top-header { padding: 14px 28px; }
    .content-area { padding: 28px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .auth-card { padding: 40px 36px; max-width: 440px; }
    .payment-methods { grid-template-columns: repeat(3, 1fr); }
    .card-body { padding: 24px; }
    .card-header { padding: 18px 24px; }
    .welcome-box { padding: 36px 32px; }
    .welcome-box h2 { font-size: 28px; }
    .welcome-box .balance-display { font-size: 44px; }
    .service-details-grid { grid-template-columns: repeat(4, 1fr); }
    .table { font-size: 13.5px; }
    .table th, .table td { padding: 14px 16px; }
    .page-header h1 { font-size: 26px; }
}
@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(5, 1fr); }
    .content-area { padding: 32px; }
}
/* ============ SMALL MOBILE ============ */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .payment-methods { grid-template-columns: 1fr 1fr; }
    .service-details-grid { grid-template-columns: 1fr 1fr; }
    .btn { padding: 11px 14px; font-size: 12.5px; }
    .welcome-box .balance-display { font-size: 28px; }
    .auth-card { padding: 28px 20px; }
}
/* ============ PRINT & REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   COMPACT SIZING OVERRIDE — matched to Login Page scale
   Dimensions only (font/padding/margin/size). Colors & layout unchanged.
   ============================================================ */
html { font-size: 12px !important; }
body { font-size: 12px !important; line-height: 1.5 !important; }
h1 { font-size: 17px !important; }
h2 { font-size: 15px !important; }
h3 { font-size: 13.5px !important; }
h4 { font-size: 12.5px !important; }
h5 { font-size: 11.5px !important; }
h6 { font-size: 10.5px !important; }
small, .small { font-size: 10px !important; }
p { font-size: 11.5px !important; }

/* Buttons */
.btn { padding: 8px 12px !important; font-size: 11.5px !important; gap: 5px !important; border-radius: 7px !important; }
.btn i { font-size: 11px !important; }
.btn-sm { padding: 6px 10px !important; font-size: 10.5px !important; border-radius: 6px !important; }
.btn-lg { padding: 11px 18px !important; font-size: 13px !important; border-radius: 9px !important; }
.btn-primary { font-size: 12px !important; padding: 9px 12px !important; }

/* Forms */
.form-group { margin-bottom: 9px !important; }
.form-group label { font-size: 9.5px !important; margin-bottom: 4px !important; letter-spacing: 0.5px !important; }
.form-group label i { font-size: 9px !important; margin-right: 4px !important; }
.form-control, .form-select, input.form-control, textarea.form-control, select.form-select {
    padding: 8px 10px !important; font-size: 12px !important; border-radius: 7px !important;
}
.form-select { padding-right: 30px !important; background-position: right 10px center !important; background-size: 10px !important; }
.form-control::placeholder { font-size: 11px !important; }
.form-check input[type="checkbox"] { width: 15px !important; height: 15px !important; }
.form-check label { font-size: 11.5px !important; }

/* Alerts */
.alert { padding: 7px 10px !important; font-size: 11px !important; margin-bottom: 9px !important; gap: 6px !important; border-radius: 7px !important; }
.alert i { font-size: 11px !important; }
.btn-close { width: 20px !important; height: 20px !important; font-size: 11px !important; right: 8px !important; }

/* Badges */
.badge { padding: 3px 8px !important; font-size: 9px !important; letter-spacing: 0.3px !important; }

/* Auth / payment pages (success / failed / processing / status / charge) */
.auth-wrapper { padding: 10px !important; }
.auth-card { max-width: 340px !important; padding: 16px 15px !important; border-radius: 12px !important; }
.auth-logo { margin-bottom: 12px !important; }
.auth-logo img { max-height: 44px !important; margin-bottom: 8px !important; }
.auth-logo h2 { font-size: 15px !important; margin: 0 !important; }
.auth-logo p, .auth-logo .subtitle { font-size: 10.5px !important; margin-top: 3px !important; }
.auth-card h3 { font-size: 14px !important; margin-bottom: 12px !important; }
.auth-footer { font-size: 10.5px !important; margin-top: 10px !important; padding-top: 9px !important; }
.auth-title { margin-bottom: 10px !important; padding-bottom: 8px !important; }
.auth-title h3 { font-size: 12.5px !important; }

/* Charge page specific */
.auth-wrapper .auth-card { max-width: 340px !important; }
.logo-box, .auth-logo .logo-box { width: 56px !important; height: 56px !important; padding: 8px !important; border-radius: 12px !important; margin-bottom: 8px !important; }
.logo-box i, .auth-logo .logo-box i { font-size: 24px !important; }
.amount-display { padding: 10px 14px !important; margin-bottom: 12px !important; border-radius: 7px !important; }
.amount-display .label { font-size: 9.5px !important; letter-spacing: 0.3px !important; }
.amount-display .value { font-size: 16px !important; }
.instructions-box { padding: 10px 12px !important; margin-bottom: 12px !important; border-radius: 7px !important; }
.instructions-title { font-size: 10.5px !important; margin-bottom: 8px !important; gap: 6px !important; }
.instructions-title i { width: 20px !important; height: 20px !important; font-size: 9.5px !important; border-radius: 6px !important; }
.instruction-steps li { font-size: 10.5px !important; padding: 5px 0 5px 26px !important; }
.instruction-steps li::before { width: 18px !important; height: 18px !important; font-size: 9px !important; top: 4px !important; }
.instruction-steps li .highlight { font-size: 10px !important; padding: 1px 5px !important; }

/* Success / processing big inline icons */
.auth-card [style*="width: 100px"], .auth-card [style*="width:100px"] { width: 64px !important; height: 64px !important; margin-bottom: 14px !important; }
.auth-card [style*="font-size: 48px"], .auth-card [style*="font-size:48px"] { font-size: 30px !important; }
.auth-card [style*="width: 80px"], .auth-card [style*="width:80px"] { width: 52px !important; height: 52px !important; border-width: 4px !important; }
.auth-card [style*="margin: 30px 0"] { margin: 16px 0 !important; }
.auth-card [style*="margin-top: 25px"], .auth-card [style*="margin-top:25px"] { margin-top: 14px !important; }
.auth-card [style*="margin-top: 20px"], .auth-card [style*="margin-top:20px"] { margin-top: 10px !important; }

/* Dashboard layout */
.sidebar { width: 200px !important; }
.sidebar-header { padding: 12px 14px !important; }
.sidebar-header h3 { font-size: 14px !important; gap: 8px !important; }
.sidebar-header h3 i { font-size: 14px !important; }
.sidebar-header p { font-size: 9.5px !important; margin-top: 2px !important; }
.sidebar-nav { padding: 8px 0 !important; }
.sidebar-nav a { padding: 8px 14px !important; margin: 1px 10px !important; font-size: 11.5px !important; border-radius: 8px !important; gap: 8px !important; }
.sidebar-nav a i { width: 18px !important; margin-right: 8px !important; font-size: 13px !important; }
.sidebar-nav a.active::before { height: 18px !important; left: -10px !important; }
.top-header { padding: 8px 12px !important; min-height: 46px !important; }
.mobile-menu-btn { font-size: 16px !important; padding: 6px 9px !important; border-radius: 8px !important; }
.header-user { gap: 8px !important; }
.user-info .username { font-size: 11.5px !important; }
.user-info .balance { font-size: 10px !important; padding: 2px 7px !important; margin-top: 1px !important; }
.user-avatar { width: 30px !important; height: 30px !important; font-size: 11px !important; border-width: 1.5px !important; }
.content-area { padding: 12px !important; }
.page-header { margin-bottom: 12px !important; }
.page-header h1 { font-size: 16px !important; }
.page-header p { font-size: 11px !important; margin-top: 2px !important; }

/* Cards & tables */
.card { border-radius: 10px !important; }
.card-body { padding: 12px !important; }
.card-title { font-size: 13px !important; margin-bottom: 8px !important; }
.table { font-size: 11px !important; }
.table th, .table td { padding: 6px 8px !important; }
.detail-grid { gap: 10px !important; }
.mb-4 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 8px !important; }
.mt-3 { margin-top: 8px !important; }
.mt-4 { margin-top: 12px !important; }
.p-3 { padding: 10px !important; }
.p-4 { padding: 12px !important; }

/* Pagination & misc */
.pagination { gap: 4px !important; }
.page-link { padding: 5px 9px !important; font-size: 11px !important; }
.dropdown-menu { font-size: 11.5px !important; min-width: 140px !important; }
.dropdown-item { padding: 6px 12px !important; font-size: 11px !important; }
.modal-content { border-radius: 12px !important; }
.modal-header { padding: 10px 14px !important; }
.modal-title { font-size: 13px !important; }
.modal-body { padding: 12px 14px !important; font-size: 11.5px !important; }
.modal-footer { padding: 10px 14px !important; }
.nav-tabs .nav-link { font-size: 11px !important; padding: 7px 12px !important; }
.list-group-item { padding: 8px 12px !important; font-size: 11.5px !important; }
.accordion-button { padding: 9px 12px !important; font-size: 11.5px !important; }
.accordion-body { padding: 10px 12px !important; font-size: 11px !important; }
.tooltip { font-size: 10px !important; }
.popover { font-size: 11px !important; }
