/* =============================================
    IDFIXER - Modern CSS Framework
   Mobile-First Responsive Design
   ============================================= */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #0891b2;
    --info-light: #cffafe;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Cascadia Code', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s ease;
    --sidebar-width: 260px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: var(--gray-900); font-weight: 700; line-height: 1.3; }

/* ===================== UTILITIES ===================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== GRID ===================== */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===================== CARD ===================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 { font-size: 1.1rem; margin: 0; }
.card-body { padding: 1.5rem; }
.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50, #fafafa);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--gray-200); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #047857; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0.5rem; border-radius: 50%; width: 36px; height: 36px; }
.btn-icon i { margin: 0; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}
.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--danger); }
.form-select {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E") no-repeat right 0.75rem center/1rem;
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-text { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.25rem; }
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-text {
    padding: 0.625rem 0.875rem;
    background: var(--gray-200);
    border: 1.5px solid var(--gray-300);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
}
.input-group-text + .form-control { border-radius: 0 var(--radius) var(--radius) 0; }

/* ===================== ALERTS ===================== */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--success-light); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-light); color: #155e75; border-color: #a5f3fc; }
.alert-dismissible { position: relative; padding-right: 3rem; }
.alert-dismiss {
    position: absolute; right: 1rem; top: 0.875rem;
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; opacity: 0.6; color: inherit;
}
.alert-dismiss:hover { opacity: 1; }

/* ===================== TABLES ===================== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50, #fafafa); }

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}
.badge-success { background: var(--success-light); color: #065f46; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #155e75; }
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }

/* ===================== HEADER / NAVBAR ===================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--gray-900); }
.navbar-brand i { font-size: 1.5rem; }
.navbar-nav {
    display: none;
    gap: 0.25rem;
}
.navbar-nav a {
    padding: 0.5rem 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
    color: var(--primary);
    background: rgba(37,99,235,0.08);
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--gray-700);
    border-radius: var(--radius);
}
.navbar-toggle:hover { background: var(--gray-100); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}
.mobile-nav.active { display: block; }
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    font-size: 1rem;
}
.mobile-nav a:hover, .mobile-nav a.active {
    background: rgba(37,99,235,0.08);
    color: var(--primary);
}
.mobile-nav a i { width: 20px; text-align: center; }
.mobile-nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

@media (min-width: 768px) {
    .navbar-nav { display: flex; }
    .navbar-toggle.mobile-only { display: none; }
}

/* ===================== SIDEBAR LAYOUT (Dashboard) ===================== */
.app-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 900;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 1rem 0;
}
.sidebar.active { transform: translateX(0); }
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 899;
}
.sidebar-overlay.active { display: block; }

.sidebar-section {
    padding: 0.5rem 1rem;
}
.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.sidebar-link.active {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
}
.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sidebar-link .badge {
    margin-left: auto;
}

.main-content {
    flex: 1;
    padding: 1.5rem 1rem;
    margin-left: 0;
    min-width: 0;
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
    .sidebar-overlay { display: none !important; }
    .main-content {
        margin-left: var(--sidebar-width);
    }
    .main-content { padding: 2rem; }
    #sidebarToggle { display: none; }
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.page-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.page-breadcrumb a { color: var(--primary); }
.page-breadcrumb span { color: var(--gray-400); }

/* ===================== STAT CARDS ===================== */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.purple { background: #ede9fe; color: #6d28d9; }
.stat-icon.orange { background: #fff7ed; color: #ea580c; }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.125rem; }
.stat-info p { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

/* ===================== SERVICE CARDS ===================== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}
.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}
.service-card h4 { font-size: 0.95rem; margin-bottom: 0.375rem; }
.service-card p { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.service-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 8px;
}
.service-card .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===================== WALLET CARD ===================== */
.wallet-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.wallet-card::before {
    content: '';
    position: absolute;
    right: -20%;
    top: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.wallet-card::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.wallet-card-label { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.5rem; }
.wallet-card-balance { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; position: relative; z-index: 1; }
.wallet-card-actions { display: flex; gap: 0.5rem; position: relative; z-index: 1; }
.wallet-card-actions .btn {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}
.wallet-card-actions .btn:hover {
    background: rgba(255,255,255,0.3);
    color: var(--white);
}

/* ===================== NOTIFICATION DROPDOWN ===================== */
.notification-bell {
    position: relative;
    cursor: pointer;
}
.notification-count {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    z-index: 1001;
    margin-top: 0.5rem;
}
.notification-dropdown.active { display: block; }
.notification-dropdown-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.notification-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}
.notification-item:hover { background: var(--gray-50, #fafafa); }
.notification-item.unread { background: #f0f7ff; }
.notification-item-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.125rem; }
.notification-item-message { font-size: 0.8rem; color: var(--gray-500); }
.notification-item-time { font-size: 0.7rem; color: var(--gray-400); margin-top: 0.25rem; }

/* ===================== USER MENU ===================== */
.user-menu {
    position: relative;
}
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font-primary);
}
.user-menu-trigger:hover { background: var(--gray-100); }
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.user-menu-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    display: none;
}
.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    z-index: 1001;
    margin-top: 0.5rem;
    padding: 0.375rem;
}
.user-menu-dropdown.active { display: block; }
.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.user-menu-dropdown a:hover { background: var(--gray-100); }
.user-menu-dropdown a i { width: 18px; color: var(--gray-500); }
.user-menu-dropdown .divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.25rem 0;
}
.user-menu-dropdown .text-danger:hover { background: var(--danger-light); color: var(--danger); }

@media (min-width: 768px) {
    .user-menu-name { display: block; }
}

/* ===================== AUTH PAGES ===================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
}
.auth-card-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card-logo h1 {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 800;
}
.auth-card-logo p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}
.auth-footer a { font-weight: 600; }

/* Google Sign-In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.btn-google:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-google svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.auth-divider span {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================== LANDING PAGE ===================== */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.hero-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}
.hero-actions .btn-white {
    background: var(--white);
    color: var(--primary);
}
.hero-actions .btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}
.hero-actions .btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.hero-actions .btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.features-section {
    padding: 4rem 1rem;
}
.features-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.features-section .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
}
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.feature-card:hover { background: var(--white); box-shadow: var(--shadow-md); }
.feature-card-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); }

/* ===================== FOOTER ===================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 1rem 1.5rem;
}
.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: var(--gray-400); font-size: 0.875rem; }
.footer a:hover { color: var(--white); }
.footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .hero h1 { font-size: 3rem; }
}

/* ===================== RESULT BOX ===================== */
.result-box {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--gray-200);
}
.result-box.success { border-color: #a7f3d0; background: var(--success-light); }
.result-box.error { border-color: #fecaca; background: var(--danger-light); }
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--gray-600); font-weight: 500; }
.result-value { font-weight: 600; color: var(--gray-900); text-align: right; }

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}
.pagination a:hover { background: var(--gray-100); }
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ===================== MODAL ===================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-backdrop.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.25rem; color: var(--gray-500);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--gray-100); }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===================== LOADING ===================== */
.spinner {
    width: 20px; height: 20px;
    border: 2.5px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
}

/* Modern Full-Page Loader */
.page-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
[data-theme="dark"] .page-loader {
    background: rgba(17,24,39,0.92);
}
.page-loader-spinner {
    position: relative;
    width: 56px; height: 56px;
}
.page-loader-spinner::before,
.page-loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}
.page-loader-spinner::before {
    inset: 0;
    border: 3px solid var(--gray-200);
}
[data-theme="dark"] .page-loader-spinner::before {
    border-color: var(--gray-700);
}
.page-loader-spinner::after {
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin 0.7s ease-in-out infinite;
}
.page-loader-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    animation: loaderPulse 1.5s ease-in-out infinite;
}
.page-loader-text {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.02em;
}
[data-theme="dark"] .page-loader-text {
    color: var(--gray-400);
}
.page-loader-dots::after {
    content: '';
    animation: loaderDots 1.5s steps(3,end) infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.6; }
}
@keyframes loaderDots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

/* Sidebar Dropdown */
.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.sidebar-dropdown-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.sidebar-dropdown-toggle .sidebar-chevron {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    color: var(--gray-400);
}
.sidebar-dropdown-toggle.open .sidebar-chevron {
    transform: rotate(90deg);
}
.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}
.sidebar-dropdown-menu.open {
    max-height: 500px;
}
.sidebar-dropdown-menu .sidebar-link {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
}
[data-theme="dark"] .sidebar-dropdown-toggle {
    color: var(--gray-300);
}
[data-theme="dark"] .sidebar-dropdown-toggle:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h4 { color: var(--gray-700); margin-bottom: 0.375rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1rem; }

/* ===================== TAB NAV ===================== */
.tab-nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-500);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
}
.tab-nav-item:hover { color: var(--gray-700); }
.tab-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content { display: none; padding: 1.5rem 0; }
.tab-content.active { display: block; }

/* ===================== RESPONSIVE FINE-TUNING ===================== */

/* Admin detail grid (service-view expandable rows) */
.detail-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) {
    .detail-grid { grid-template-columns: 1fr !important; }
}

/* --- Mobile phones (up to 767px) --- */
@media (max-width: 767px) {
    /* Navbar */
    .navbar-inner { padding: 0 0.75rem; }
    .navbar-brand { font-size: 1.1rem; gap: 0.35rem; }
    .navbar-brand i { font-size: 1.2rem; }
    .navbar-brand .badge { font-size: 0.5rem !important; padding: 1px 4px !important; }
    .navbar-actions { gap: 0.25rem; }
    .dark-mode-toggle { width: 32px; height: 32px; font-size: 0.85rem; }

    /* Sidebar */
    .sidebar { width: 280px; }

    /* Main content */
    .main-content { padding: 1rem 0.75rem; }

    /* Grid - stack on mobile, keep 2 cols for stats */
    .grid-2 { grid-template-columns: 1fr !important; }
    .grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }

    /* Stat cards */
    .stat-card { padding: 1rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .stat-info h3 { font-size: 1.25rem; }
    .stat-info p { font-size: 0.75rem; }

    /* Cards */
    .card-header { padding: 1rem; flex-wrap: wrap; gap: 0.5rem; }
    .card-header h3 { font-size: 0.95rem; }
    .card-body { padding: 1rem; }

    /* Tables - horizontal scroll */
    .table-responsive { margin: 0; padding: 0; }
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 0.5rem 0.6rem; white-space: nowrap; }
    .table th { font-size: 0.7rem; }

    /* Page header */
    .page-header h1 { font-size: 1.25rem; }
    .page-header p { font-size: 0.8rem; }
    .page-breadcrumb { font-size: 0.75rem; }

    /* Buttons row */
    .d-flex.gap-2 { flex-wrap: wrap; }
    .btn { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
    .btn-sm { font-size: 0.75rem; padding: 0.35rem 0.6rem; }

    /* Forms */
    .form-control { font-size: 0.875rem; }
    .form-label { font-size: 0.85rem; }

    /* Wallet */
    .wallet-card-balance { font-size: 1.5rem; }

    /* Service cards */
    .service-card { padding: 0.75rem; }
    .service-card-icon { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 0.5rem; }
    .service-logo-img { width: 42px; height: 42px; margin-bottom: 0.5rem; }
    .service-card h4 { font-size: 0.75rem; }
    .service-card p { font-size: 0.7rem; margin-bottom: 0.5rem; }
    .service-card .price { font-size: 0.8rem; }

    /* Result box */
    .result-row { flex-direction: column; gap: 0.15rem; }
    .result-value { text-align: left; }

    /* Pagination */
    .pagination a, .pagination span { padding: 0.375rem 0.625rem; font-size: 0.8rem; }

    /* PIN inputs */
    .pin-input { width: 44px !important; height: 44px !important; font-size: 1.1rem; }

    /* Modal */
    .modal { max-width: 95vw; }
    .modal-header { padding: 1rem; }
    .modal-body { padding: 1rem; }
    .modal-footer { padding: 0.75rem 1rem; flex-wrap: wrap; }

    /* Admin service-view detail expansion (override inline 2-col grid) */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Auth */
    .auth-card { padding: 1.5rem; }

    /* Hero */
    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }

    /* Alerts */
    .alert { font-size: 0.85rem; padding: 0.75rem 1rem; }

    /* File inputs in service detail */
    input[type="file"] { font-size: 0.75rem !important; max-width: 100%; }

    /* Charts container */
    canvas { max-width: 100%; }

    /* Admin sidebar info box */
    .sidebar [style*="padding:1rem"] { padding: 0.75rem !important; }
}

/* --- Small phones (up to 380px) --- */
@media (max-width: 380px) {
    .navbar-brand { font-size: 0.95rem; }
    .navbar-brand .badge { display: none !important; }
    .main-content { padding: 0.75rem 0.5rem; }
    .card-header { padding: 0.75rem; }
    .card-body { padding: 0.75rem; }
    .stat-card { padding: 0.75rem; gap: 0.5rem; }
    .stat-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .stat-info h3 { font-size: 1.1rem; }
    .pin-input { width: 40px !important; height: 40px !important; font-size: 1rem; }
    .btn { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
    .sidebar { width: 260px; }
}

/* --- Tablet range (640px to 1023px) --- */
@media (min-width: 640px) and (max-width: 1023px) {
    .main-content { padding: 1.5rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== ANIMATION ===================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===================== PRINT ===================== */
@media print {
    .sidebar, .navbar, .no-print { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===================== PIN INPUT ===================== */
.pin-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.5rem 0;
}
.pin-input-group.pin-input-inline {
    justify-content: flex-start;
}
.pin-input {
    width: 52px !important;
    height: 52px !important;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0;
    border-radius: var(--radius-lg);
    letter-spacing: 0;
    caret-color: var(--primary);
}
.pin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===================== SERVICE VARIANT CARDS ===================== */
.variant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .variant-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
.variant-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}
.variant-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
}
.variant-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.13);
}
.variant-card-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.variant-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}
.variant-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===================== DARK MODE TOGGLE ===================== */
.dark-mode-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

/* ===================== DARK MODE ===================== */
[data-theme="dark"] {
    --gray-900: #f9fafb;
    --gray-800: #f3f4f6;
    --gray-700: #e5e7eb;
    --gray-600: #d1d5db;
    --gray-500: #9ca3af;
    --gray-400: #6b7280;
    --gray-300: #4b5563;
    --gray-200: #374151;
    --gray-100: #1f2937;
    --white: #111827;
    --dark: #f9fafb;
}
[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}
[data-theme="dark"] .navbar {
    background: #1e293b;
    border-bottom-color: #334155;
}
[data-theme="dark"] .sidebar {
    background: #1e293b;
    border-right-color: #334155;
}
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .card-header {
    border-bottom-color: #334155;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control:focus {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}
[data-theme="dark"] select.form-control {
    background-color: #0f172a;
    color: #e2e8f0;
}
[data-theme="dark"] .table th {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .table td {
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .table tr:hover td {
    background: rgba(51, 65, 85, 0.3);
}
[data-theme="dark"] .sidebar-link {
    color: #94a3b8;
}
[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-link.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}
[data-theme="dark"] .sidebar-section-title {
    color: #64748b;
}
[data-theme="dark"] .btn-secondary {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}
[data-theme="dark"] .btn-secondary:hover {
    background: #475569;
}
[data-theme="dark"] .alert {
    border-color: #334155;
}
[data-theme="dark"] .alert-info {
    background: rgba(8, 145, 178, 0.15);
    border-color: #0891b2;
}
[data-theme="dark"] .empty-state i,
[data-theme="dark"] .empty-state p {
    color: #64748b;
}
[data-theme="dark"] .wallet-card {
    background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
}
[data-theme="dark"] .service-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .service-card:hover {
    border-color: #60a5fa;
}
[data-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .page-header p,
[data-theme="dark"] .page-header .page-breadcrumb span {
    color: #94a3b8;
}
[data-theme="dark"] .notification-dropdown {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .notification-dropdown-header {
    border-bottom-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .notification-item:hover {
    background: #0f172a;
}
[data-theme="dark"] .user-menu-dropdown {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .user-menu-dropdown a {
    color: #cbd5e1;
}
[data-theme="dark"] .user-menu-dropdown a:hover {
    background: #0f172a;
}
[data-theme="dark"] .divider {
    border-color: #334155;
}
[data-theme="dark"] .navbar-brand {
    color: #60a5fa;
}
[data-theme="dark"] .navbar-brand span {
    color: #60a5fa;
}
[data-theme="dark"] .sidebar-wallet .wallet-mini-balance {
    color: #e2e8f0;
}
[data-theme="dark"] .dark-mode-toggle {
    background: #334155 !important;
    color: #fbbf24;
}
[data-theme="dark"] .result-box {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .result-row {
    border-bottom-color: #334155;
}
[data-theme="dark"] .result-label {
    color: #94a3b8;
}
[data-theme="dark"] .result-value {
    color: #e2e8f0;
}
[data-theme="dark"] .modal .modal-header {
    border-bottom-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .modal .modal-body {
    color: #cbd5e1;
}
[data-theme="dark"] .modal .modal-footer {
    border-top-color: #334155;
}
[data-theme="dark"] .modal {
    background: #1e293b;
}
[data-theme="dark"] code {
    background: #0f172a;
    color: #f472b6;
}
[data-theme="dark"] .badge-secondary {
    background: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .input-group-text {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .sidebar-overlay {
    background: rgba(0,0,0,0.6);
}
[data-theme="dark"] .pin-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .variant-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .variant-card:hover {
    border-color: var(--primary);
}
[data-theme="dark"] .variant-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.12);
}
[data-theme="dark"] .variant-card-name {
    color: #e2e8f0;
}
