/* Market CSC Portal - Custom CSS */
/* Using with Tailwind CSS v3 CDN */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --dark: #0f172a;
    --sidebar-width: 280px;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
}

/* Auth Pages - Gradient Background */
.auth-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.auth-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite 2s;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Auth Card */
.auth-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.2);
}

/* Form Inputs */
.form-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.form-input::placeholder {
    color: #64748b;
}

.form-input-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input-light:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #15803d);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(22, 163, 74, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(220, 38, 38, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #b45309);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 12, 41, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 100vh;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    /*transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;*/
    /*overflow-y: auto;*/
    /*display: flex;*/
    flex-direction: column;
}


.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    margin: 2px 12px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #e2e8f0;
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px -3px rgba(37, 99, 235, 0.5);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
}
.main-content-inner {
    padding: 28px;
    position: relative;
}

/* Animation Keyframes */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.slide-up  { animation: slideUp 0.55s cubic-bezier(.4,0,.2,1) both; }
.fade-in   { animation: fadeIn 0.5s ease both; }

/* Top Navbar */
.top-navbar {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.1);
}

.stat-card.blue::before { background: linear-gradient(90deg, #2563EB, #3b82f6); }
.stat-card.green::before { background: linear-gradient(90deg, #16A34A, #22c55e); }
.stat-card.amber::before { background: linear-gradient(90deg, #D97706, #f59e0b); }
.stat-card.red::before { background: linear-gradient(90deg, #DC2626, #ef4444); }
.stat-card.purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 4px;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 24px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: badge-bounce 2s infinite;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

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

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    .main-content-inner {
        padding: 16px;
    }
    
    .top-navbar {
        border-radius: 12px;
        padding: 12px 16px;
    }
    
    .stat-card .stat-value {
        font-size: 22px;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide Up Animation */
.slide-up {
    animation: slideUp 0.4s ease-out;
}

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

/* Logo */
.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filter/Search Bar */
.search-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: #334155;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Action Buttons (small) */
.btn-sm {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

/* Select Dropdown */
.form-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Wallet Balance Card */
.wallet-card {
    background: linear-gradient(135deg, #2563EB, #1d4ed8, #1e40af);
    border-radius: 24px;
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.wallet-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
}

/* ========== CAPTCHA Display ========== */
.captcha-display {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.02) 3px,
        rgba(255,255,255,0.02) 6px
    );
    pointer-events: none;
}

.captcha-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(255,255,255,0.08);
    transform: rotate(-2deg);
    pointer-events: none;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #818cf8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(129, 140, 248, 0.3);
    user-select: none;
    position: relative;
    z-index: 1;
}

/* ========== Lowercase Input ========== */
.lowercase-input {
    text-transform: lowercase;
}

.lowercase-input::placeholder {
    text-transform: lowercase;
}

.form-input-light.lowercase-input {
    text-transform: lowercase;
}

/* ========== Enhanced Dashboard ========== */
.welcome-banner {
    background: linear-gradient(135deg, #1e40af, #3b82f6, #6366f1);
    border-radius: 24px;
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -60px;
    left: 30%;
    pointer-events: none;
}

.quick-action-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
}

.quick-action-card .action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1);
}

/* ========== Service Category Cards ========== */
.service-category {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-category:hover {
    box-shadow: 0 8px 30px -8px rgba(0,0,0,0.1);
}

.service-category-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s ease;
    user-select: none;
}

.service-category-header:hover {
    background: #f8fafc;
}

.service-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.service-category:hover .service-category-icon {
    transform: scale(1.05);
}

.service-category-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-category-arrow i {
    transition: transform 0.3s ease;
    color: #64748b;
    font-size: 14px;
}

.service-category.open .service-category-arrow {
    background: var(--primary);
}

.service-category.open .service-category-arrow i {
    transform: rotate(180deg);
    color: white;
}

.service-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.service-category.open .service-category-body {
    max-height: 600px;
    padding: 0 24px 24px;
}

.sub-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sub-service-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sub-service-item:last-child {
    margin-bottom: 0;
}

.sub-service-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.sub-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sub-service-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5);
}

.btn-history {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-history:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Service Badge */
.service-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.service-badge.active {
    background: #dcfce7;
    color: #166534;
}

.service-badge.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

/* ========== Mobile: Service Categories ========== */
@media (max-width: 640px) {
    .sub-service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sub-service-actions {
        width: 100%;
    }
    
    .sub-service-actions a,
    .sub-service-actions button {
        flex: 1;
        justify-content: center;
    }
    
    .welcome-banner {
        padding: 20px;
        border-radius: 16px;
    }
    
    .quick-action-card {
        padding: 14px;
    }
    
    .quick-action-card .action-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* ========== Professional Top Navbar ========== */
.pro-topbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
    padding: 0 24px;
    height: 68px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}
.pro-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pro-topbar-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}
.pro-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}
.pro-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.pro-breadcrumb a:hover { color: #2563eb; }
.pro-breadcrumb .separator { color: #cbd5e1; }
.pro-breadcrumb .current { color: #334155; font-weight: 600; }
.pro-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wallet-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    padding: 7px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    transition: all 0.2s;
    text-decoration: none;
}
.wallet-chip:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}
.wallet-chip .wallet-icon {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 11px;
}
.live-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.live-clock .clock-icon {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
}
.live-clock .clock-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
}
.live-clock .clock-time {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.live-clock .clock-seconds {
    color: #2563eb;
    font-size: 13px;
}
.notif-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.notif-btn:hover { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.notif-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 7px; height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.user-chip:hover { background: #f8fafc; border-color: #e2e8f0; }
.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}
.user-info .user-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.user-info .user-role {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hamburger-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}
.hamburger-btn:hover { background: #f8fafc; }
@media (max-width: 1024px) {
    .hamburger-btn { display: flex; }
}
@media (max-width: 768px) {
    .live-clock { display: none; }
    .pro-topbar-title { font-size: 14px; }
}
@media (max-width: 640px) {
    .pro-topbar { padding: 0 12px; height: 58px; gap: 8px; }
    .wallet-chip { padding: 6px 10px; font-size: 12px; }
    .wallet-chip .wallet-icon { width: 22px; height: 22px; font-size: 9px; }
    .wallet-chip span { display: none; }
    .user-chip { display: none; }
    .pro-breadcrumb { display: none; }
    .pro-topbar-title { font-size: 13px; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pro-topbar-right { gap: 6px; }
    #addMoneyTopbarBtn span { display: none !important; }
    #addMoneyTopbarBtn { padding: 8px 10px !important; }
}

/* ========== Liquid Glass UI - Premium ========== */

/* Keyframe Animations */
@keyframes glassShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes glassOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8px, -6px) scale(1.1); }
    66% { transform: translate(-4px, 4px) scale(0.95); }
}
@keyframes glassIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}
@keyframes glassGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ---------- Stats Cards ---------- */
.glass-stat {
    background: #ffffff;
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 20px;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(.34,1.56,.64,1);
    cursor: default;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}
.glass-stat.blue  { border-top: 3px solid #3b82f6; }
.glass-stat.red   { border-top: 3px solid #ef4444; }
.glass-stat.amber { border-top: 3px solid #f59e0b; }
.glass-stat.green { border-top: 3px solid #22c55e; }
/* Top shimmer bar */
.glass-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
    background-size: 200% 100%;
    animation: glassShimmer 3s ease-in-out infinite;
    pointer-events: none;
}
/* Floating orb */
.glass-stat::after {
    content: '';
    position: absolute;
    width: 90px; height: 90px;
    border-radius: 50%;
    opacity: 0.07;
    top: -15px; right: -15px;
    animation: glassOrbFloat 6s ease-in-out infinite;
    pointer-events: none;
    filter: blur(4px);
}
/* Inner glow highlight */
.glass-stat .glass-stat-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 60%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s;
}
.glass-stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
    background: #fff;
    border-color: rgba(203,213,225,0.5);
}
.glass-stat:hover .glass-stat-glow { opacity: 1; }
.glass-stat:hover::after { transform: translate(8px,-6px) scale(1.6); opacity: 0.12; }
/* Color variants - shimmer bar */
.glass-stat.blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd, #60a5fa, #2563eb); background-size: 200% 100%; }
.glass-stat.blue::after { background: radial-gradient(circle, #3b82f6, #2563eb); }
.glass-stat.red::before { background: linear-gradient(90deg, #dc2626, #f87171, #fca5a5, #f87171, #dc2626); background-size: 200% 100%; }
.glass-stat.red::after { background: radial-gradient(circle, #ef4444, #dc2626); }
.glass-stat.amber::before { background: linear-gradient(90deg, #d97706, #fbbf24, #fde68a, #fbbf24, #d97706); background-size: 200% 100%; }
.glass-stat.amber::after { background: radial-gradient(circle, #f59e0b, #d97706); }
.glass-stat.green::before { background: linear-gradient(90deg, #16a34a, #4ade80, #86efac, #4ade80, #16a34a); background-size: 200% 100%; }
.glass-stat.green::after { background: radial-gradient(circle, #22c55e, #16a34a); }
/* Stat icon */
.glass-stat-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.glass-stat:hover .glass-stat-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.glass-stat.blue .glass-stat-icon { animation: glassIconPulse 3s ease-in-out infinite; }
.glass-stat.red .glass-stat-icon { animation: glassIconPulse 3s ease-in-out 0.5s infinite; }
.glass-stat.amber .glass-stat-icon { animation: glassIconPulse 3s ease-in-out 1s infinite; }
.glass-stat.green .glass-stat-icon { animation: glassIconPulse 3s ease-in-out 1.5s infinite; }
.glass-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.glass-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}
.glass-stat:hover .glass-stat-value { color: #1e293b; }
.glass-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 10px;
    transition: all 0.3s;
}
.glass-stat:hover .glass-stat-trend { transform: translateX(2px); }

/* ---------- Quick Actions ---------- */
.glass-action {
    background: #ffffff;
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 20px;
    padding: 28px 20px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}
/* Aurora gradient sweep on hover */
.glass-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(37,99,235,0.04),
        rgba(139,92,246,0.04),
        rgba(236,72,153,0.04),
        rgba(34,197,94,0.04),
        transparent
    );
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 22px;
    pointer-events: none;
    animation: glassShimmer 4s ease-in-out infinite;
}
.glass-action:hover::before { opacity: 1; }
.glass-action:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
    background: #fff;
    border-color: rgba(203,213,225,0.5);
}
.glass-action-icon {
    width: 60px; height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px;
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.glass-action:hover .glass-action-icon {
    transform: scale(1.18) rotate(-8deg) translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.glass-action-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}
.glass-action:hover .glass-action-title { color: #1e40af; }
.glass-action-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}
.glass-action:hover .glass-action-sub { color: #64748b; }
.glass-action-arrow {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 30px; height: 30px;
    border-radius: 10px;
    background: rgba(37,99,235,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #2563eb;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.glass-action:hover .glass-action-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Glass Cards ---------- */
.glass-card {
    background: #ffffff;
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
}
.glass-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(203,213,225,0.7);
    transform: translateY(-2px);
}
.glass-card-head {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.glass-card-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.glass-card-head h3 .head-icon {
    width: 34px; height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.glass-card:hover .glass-card-head h3 .head-icon { transform: rotate(-5deg) scale(1.1); }
.glass-card-head a {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}
.glass-card-head a:hover { color: #1d4ed8; background: rgba(37,99,235,0.06); }
.glass-card-body { padding: 20px 24px; }
.glass-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(241,245,249,0.5));
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.glass-list-item:last-child { margin-bottom: 0; }
.glass-list-item:hover {
    background: linear-gradient(135deg, rgba(239,246,255,0.8), rgba(219,234,254,0.4));
    border-color: rgba(37,99,235,0.1);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.04);
}
.glass-list-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-right: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.glass-list-item:hover .glass-list-icon { transform: scale(1.1); }
.glass-empty {
    text-align: center;
    padding: 36px 20px;
}
.glass-empty-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(241,245,249,0.9), rgba(226,232,240,0.5));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    color: #cbd5e1;
    animation: glassGlow 3s ease-in-out infinite;
}
.glass-empty p { color: #94a3b8; font-size: 13px; font-weight: 600; }

/* ---------- Glass Transaction Rows ---------- */
.glass-txn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(241,245,249,0.5));
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.glass-txn-row:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.8));
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.glass-txn-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.glass-txn-row:hover .glass-txn-icon { transform: scale(1.1); }
.glass-txn-desc { font-size: 13px; font-weight: 600; color: #334155; }
.glass-txn-date { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.glass-txn-amt { font-size: 14px; font-weight: 800; }

/* ---------- Glass Responsive ---------- */
@media (max-width: 640px) {
    .glass-stat { padding: 18px 16px; border-radius: 20px; }
    .glass-stat-value { font-size: 22px; }
    .glass-stat-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
    .glass-action { padding: 20px 14px; border-radius: 18px; }
    .glass-action-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 15px; }
    .glass-card { border-radius: 20px; }
}

