/*
 * SMM Panel - Light Corporate Theme
 * Professional, clean, mobile-responsive design
 */

/* ========================================
   CSS Variables - Light Theme
   ======================================== */
:root {
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-dropdown: #ffffff;
    --bg-modal: #ffffff;
    --bg-table-header: #f1f5f9;
    --bg-table-row: #ffffff;
    --bg-table-row-alt: #f8fafc;
    --bg-table-hover: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Corporate Blue Accent */
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #60a5fa;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.1);
    --accent-lighter: rgba(37, 99, 235, 0.05);
    
    /* Status Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --danger-dark: #dc2626;
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    --info-dark: #2563eb;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Layout */
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --container-max: 1400px;
    
    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar - Blue Theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

/* Selection */
::selection {
    background: var(--accent-light);
    color: var(--accent-primary);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent-primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

/* ========================================
   Layout - Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
    background: var(--accent-light);
}

.nav-link.active {
    color: var(--accent-primary) !important;
    background: var(--accent-light);
}

/* Balance Badge in Navbar */
.balance-badge {
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-badge i {
    font-size: 1rem;
}

/* Add Funds Button */
.btn-add-funds {
    background: var(--accent-gradient);
    color: var(--text-inverse) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-funds:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-inverse) !important;
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
}

.notification-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.notification-btn:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: var(--text-inverse);
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 360px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1050;
    display: none;
}

.notification-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: var(--accent-lighter);
    border-left: 3px solid var(--accent-primary);
}

.notification-item .title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-item .text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.notification-item .time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
}

.user-btn .avatar {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.75rem;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1050;
    display: none;
    overflow: hidden;
}

.user-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.user-menu-header {
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.user-menu-header .name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-menu-header .email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.user-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.user-menu a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.user-menu .divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hamburger-btn:hover {
    background: var(--bg-secondary);
}

@media (max-width: 991.98px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar .desktop-only {
        display: none !important;
    }
}

/* ========================================
   Layout - Sidebar
   ======================================== */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 1020;
    padding: 1.5rem 0;
    transition: transform var(--transition-slow);
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 2px 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-nav a i {
    font-size: 1.125rem;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.sidebar-nav a:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.sidebar-nav a:hover i {
    color: var(--accent-primary);
}

.sidebar-nav a.active {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.sidebar-nav a.active i {
    color: var(--accent-primary);
}

.sidebar-nav .badge {
    margin-left: auto;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1015;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* ========================================
   Layout - Main Content
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    padding: 2rem;
    background: var(--bg-secondary);
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 1rem;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1,
.page-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.page-header h1 i,
.page-header h4 i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.page-header p {
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header i {
    color: var(--accent-primary);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon.primary {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.stat-card .stat-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-card .stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card .stat-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card .stat-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   Tables
   ======================================== */
.table {
    width: 100%;
    color: var(--text-primary);
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-table-header);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-table-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--bg-table-row);
}

.table-striped tbody tr:nth-of-type(even) {
    background: var(--bg-table-row-alt);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Forms
   ======================================== */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-select:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group-text {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn i {
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.btn-success {
    background: var(--success);
    color: var(--text-inverse);
}

.btn-success:hover {
    background: var(--success-dark);
    color: var(--text-inverse);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-inverse);
}

.btn-warning:hover {
    background: var(--warning-dark);
    color: var(--text-inverse);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
}

.btn-danger:hover {
    background: var(--danger-dark);
    color: var(--text-inverse);
}

.btn-info {
    background: var(--info);
    color: var(--text-inverse);
}

.btn-info:hover {
    background: var(--info-dark);
    color: var(--text-inverse);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 1px solid var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: var(--text-inverse);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: var(--text-inverse);
}

.btn-outline-warning {
    background: transparent;
    color: var(--warning);
    border: 1px solid var(--warning);
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: var(--text-inverse);
}

.btn-outline-info {
    background: transparent;
    color: var(--info);
    border: 1px solid var(--info);
}

.btn-outline-info:hover {
    background: var(--info);
    color: var(--text-inverse);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.btn-group-sm .btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.badge.bg-primary,
.bg-primary {
    background: var(--accent-light) !important;
    color: var(--accent-primary) !important;
}

.badge.bg-success,
.bg-success {
    background: var(--success-light) !important;
    color: var(--success) !important;
}

.badge.bg-warning,
.bg-warning {
    background: var(--warning-light) !important;
    color: var(--warning-dark) !important;
}

.badge.bg-danger,
.bg-danger {
    background: var(--danger-light) !important;
    color: var(--danger) !important;
}

.badge.bg-info,
.bg-info {
    background: var(--info-light) !important;
    color: var(--info) !important;
}

.badge.bg-secondary,
.bg-secondary {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.pending {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.status-badge.pending::before {
    background: var(--warning);
}

.status-badge.processing,
.status-badge.in_progress {
    background: var(--info-light);
    color: var(--info-dark);
}

.status-badge.processing::before,
.status-badge.in_progress::before {
    background: var(--info);
}

.status-badge.completed {
    background: var(--success-light);
    color: var(--success-dark);
}

.status-badge.completed::before {
    background: var(--success);
}

.status-badge.partial {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.status-badge.partial::before {
    background: #8b5cf6;
}

.status-badge.canceled,
.status-badge.cancelled {
    background: var(--danger-light);
    color: var(--danger);
}

.status-badge.canceled::before,
.status-badge.cancelled::before {
    background: var(--danger);
}

.status-badge.refunded {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.status-badge.refunded::before {
    background: var(--text-muted);
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.active::before {
    background: var(--success);
}

.status-badge.inactive {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.status-badge.inactive::before {
    background: var(--text-muted);
}

.status-badge.open {
    background: var(--info-light);
    color: var(--info);
}

.status-badge.open::before {
    background: var(--info);
}

.status-badge.answered {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.answered::before {
    background: var(--success);
}

.status-badge.closed {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.status-badge.closed::before {
    background: var(--text-muted);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-dark);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: var(--info-light);
    color: var(--info-dark);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========================================
   Modals
   ======================================== */
.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i {
    color: var(--accent-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* ========================================
   Dropdowns
   ======================================== */
.dropdown-menu {
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ========================================
   Tabs & Nav Pills
   ======================================== */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.nav-tabs .nav-link.active {
    color: var(--accent-primary);
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.nav-pills {
    gap: 0.5rem;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.nav-pills .nav-link.active {
    color: var(--text-inverse);
    background: var(--accent-gradient);
    border-color: transparent;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-link {
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.page-link:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
    border-color: var(--accent-primary);
}

.page-item.active .page-link {
    color: var(--text-inverse);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--bg-secondary);
    cursor: not-allowed;
}

/* ========================================
   Accordion
   ======================================== */
.accordion {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: -1px;
}

.accordion-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.accordion-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 0;
}

.accordion-button {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.accordion-button:hover {
    background: var(--bg-tertiary);
}

.accordion-button:not(.collapsed) {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.accordion-button::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    transition: transform var(--transition-fast);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.25rem;
    background: var(--bg-card);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.toast-header strong {
    color: var(--text-primary);
}

.toast-body {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   Progress Bars
   ======================================== */
.progress {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar.bg-success {
    background: var(--success) !important;
}

.progress-bar.bg-warning {
    background: var(--warning) !important;
}

.progress-bar.bg-danger {
    background: var(--danger) !important;
}

/* ========================================
   Tooltips
   ======================================== */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background: var(--text-primary);
    color: var(--text-inverse);
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    position: absolute;
    z-index: 1060;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   Empty States
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   Loading States
   ======================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   Mobile Menu (Offcanvas)
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1.5rem;
    background: var(--accent-gradient);
    color: var(--text-inverse);
}

.mobile-menu-header .brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-user {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-user .avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 1.125rem;
}

.mobile-menu-user .info .name {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-user .info .balance {
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu-section {
    margin-bottom: 1rem;
}

.mobile-menu-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem;
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-menu-nav a i {
    font-size: 1.125rem;
    width: 22px;
    text-align: center;
}

.mobile-menu-nav a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-menu-nav a.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.mobile-menu-overlay.show {
    display: block;
}

/* ========================================
   Service Selection (New Order Page)
   ======================================== */
.service-list {
    max-height: 600px;
    overflow-y: auto;
}

.service-category {
    margin-bottom: 0.5rem;
}

.service-category-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.service-category-header:hover {
    background: var(--bg-tertiary);
}

.service-category-header.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.service-category-header .count {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.service-category-header.active .count {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.service-items {
    display: none;
    padding: 0.5rem 0;
}

.service-items.show {
    display: block;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0.375rem 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.service-item:hover {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-sm);
}

.service-item.selected {
    border-color: var(--accent-primary);
    background: var(--accent-lighter);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.service-item .service-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.service-item .service-id {
    color: var(--accent-primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

.service-item .service-price {
    color: var(--success);
    font-weight: 700;
    float: right;
}

.service-item .service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.service-item .service-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-item .service-meta .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Order Form */
.order-form-card {
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
}

.order-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.order-summary .row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.order-summary .row:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--text-primary);
}

.order-summary .label {
    color: var(--text-secondary);
}

.order-summary .value {
    color: var(--text-primary);
    font-weight: 600;
}

.order-summary .total {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

/* ========================================
   Tickets / Support
   ======================================== */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.ticket-item:hover {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-sm);
}

.ticket-item .ticket-info {
    flex: 1;
}

.ticket-item .ticket-id {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.ticket-item .ticket-subject {
    font-weight: 600;
    color: var(--text-primary);
}

.ticket-item .ticket-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Ticket Messages */
.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.ticket-message {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
}

.ticket-message.user {
    background: var(--accent-light);
    border: 1px solid var(--accent-primary);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ticket-message.admin {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.ticket-message .sender {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ticket-message.user .sender {
    color: var(--accent-primary);
}

.ticket-message.admin .sender {
    color: var(--text-primary);
}

.ticket-message .content {
    color: var(--text-primary);
    line-height: 1.6;
}

.ticket-message .time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========================================
   Settings Page
   ======================================== */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.settings-section-header {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.settings-section-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-header h5 i {
    color: var(--accent-primary);
}

.settings-section-body {
    padding: 1.5rem 1.25rem;
}

/* ========================================
   Add Funds Page
   ======================================== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--accent-secondary);
}

.payment-method.selected {
    border-color: var(--accent-primary);
    background: var(--accent-lighter);
}

.payment-method i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.payment-method .name {
    font-weight: 600;
    color: var(--text-primary);
}

.payment-method .desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.amount-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.amount-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

/* ========================================
   Transaction History
   ======================================== */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
}

.transaction-icon.deposit {
    background: var(--success-light);
    color: var(--success);
}

.transaction-icon.order {
    background: var(--info-light);
    color: var(--info);
}

.transaction-icon.refund {
    background: var(--warning-light);
    color: var(--warning);
}

.transaction-icon.admin {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.transaction-info {
    flex: 1;
}

.transaction-info .desc {
    font-weight: 500;
    color: var(--text-primary);
}

.transaction-info .date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

/* ========================================
   Quick Stats Row
   ======================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   Filter Buttons
   ======================================== */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

/* ========================================
   Charts
   ======================================== */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.chart-header h5 {
    margin: 0;
    font-weight: 600;
}

/* ========================================
   Utilities
   ======================================== */
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: none !important; }

.bg-white { background: var(--bg-primary) !important; }
.bg-light { background: var(--bg-secondary) !important; }

.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

.fs-sm { font-size: 0.875rem !important; }
.fs-xs { font-size: 0.75rem !important; }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cursor-pointer { cursor: pointer; }

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 767.98px) {
    .d-mobile-none { display: none !important; }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .ticket-message {
        max-width: 95%;
    }
}

@media (max-width: 575.98px) {
    .quick-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.75rem;
    }
    
    .filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .sidebar,
    .mobile-menu,
    .hamburger-btn,
    .btn,
    .toast-container {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
