:root {
    --primary-color: #1e293b; /* Slate 800 */
    --primary-dark: #0f172a; /* Slate 900 */
    --secondary-color: #3b82f6; /* Blue 500 */
    --secondary-hover: #2563eb; /* Blue 600 */
    --accent-color: #0ea5e9; /* Sky 500 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --text-dark: #334155;
    --bg-body: #f1f5f9;
    --surface: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --radius-sm: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif; /* Cleaner font stack */
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; }

/* --- Navbar --- */
.navbar {
    background-color: var(--primary-color); /* Blue/Slate Header */
    padding: 0.75rem 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #ffffff;
}

.navbar .container {
    display: flex; 
    justify-content: flex-start; /* Button on left */
    align-items: center;
    padding: 0 1.5rem;
    position: relative; /* For absolute centering of logo */
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo i {
    color: #38bdf8;
    font-size: 1.5rem;
}

.nav-links {
    display: flex; /* Always flex but hidden by transform */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100vh;
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 5rem 1rem 2rem 1rem; /* Top padding clears the header/button area */
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    
    /* Animation magic */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050; /* Above regular content but below nav button if z-indexed higher */
    overflow-y: auto;
}

.nav-links.active {
    transform: translateX(0);
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    margin-bottom: 0;
}

.nav-links a:last-child {
    margin-top: auto;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.nav-toggle-btn {
    display: block; 
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    margin-right: auto;
    position: relative;
    z-index: 1100; /* Ensure button stays on top of the sidebar */
}

/* User Dropdown */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.profile-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: var(--hover-shadow);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    z-index: 1001;
    overflow: hidden;
    animation: fadeIn 0.1s ease;
}

.profile-dropdown:hover .dropdown-content { display: block; }

.dropdown-header {
    padding: 1rem;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--secondary-color);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- Dashboard Specific Design --- */
.dashboard-container {
    padding: 2rem 0;
    animation: slideUp 0.4s ease-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.dashboard-header .date-display {
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Wallet Modern */
.wallet-section {
    display: block; /* Changed from grid to block for full width */
    margin-bottom: 2.5rem;
}

.wallet-card-new {
    background: linear-gradient(135deg, var(--primary-dark), #334155);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(30, 41, 59, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.wallet-card-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wallet-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wallet-balance h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.toggle-balance-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-balance-btn:hover {
    background: rgba(255,255,255,0.3);
}

.wallet-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: white;
    color: var(--primary-dark);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-blue-light { background-color: #dbeafe; color: var(--secondary-color); }
.bg-green-light { background-color: #dcfce7; color: var(--success-color); }

.stat-info h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.stat-info span { font-size: 0.85rem; color: var(--text-muted); }

/* Services Grid New */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.service-card-new {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column; /* Changed to column for better small fit */
    align-items: flex-start;
    gap: 0.8rem;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.service-card-new:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.service-card-new:hover .card-icon {
    background-color: var(--secondary-color);
    color: white;
}

.card-content {
    width: 100%;
}

.card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--border-color);
    transition: var(--transition);
}

.service-card-new:hover .card-arrow {
    color: var(--secondary-color);
    transform: translateX(3px);
}

/* Auth Pages (Enhanced) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--hover-shadow);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
}

.auth-card h2 { text-align: center; color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-card p.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-dark); }
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Input with Icon */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    height: 56px !important;
    font-size: 1rem !important;
}

.input-with-icon input::placeholder {
    color: #9ca3af;
}

.input-with-icon input:focus {
    background: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-with-icon .password-toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.1rem;
    z-index: 10;
    pointer-events: all;
}

.input-with-icon .password-toggle-icon:hover {
    color: #6b7280;
}

/* PIN Boxes */
.pin-boxes {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.pin-box {
    width: 64px !important;
    height: 64px !important;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 600;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    padding: 0 !important;
}

.pin-box:focus {
    background: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Checkbox styling */
.checkbox-group input[type=\"checkbox\"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.btn-full {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
    background-color: var(--secondary-color);
    color: white;
}
.btn-full:hover { background-color: var(--secondary-hover); }

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.alert { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem; /* Reduce padding for mobile */
    }
    
    /* Full screen auth pages on mobile */
    body:has(.auth-wrapper) .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    body:has(.auth-wrapper) {
        padding: 0;
        margin: 0;
    }
    
    body:has(.auth-wrapper) .navbar {
        display: none !important;
    }
    
    body:has(.auth-wrapper) footer {
        display: none !important;
    }
    
    .wallet-section { padding: 0 0.5rem; } /* Ensure wallet fits well */
    
    .stats-grid { grid-template-columns: 1fr; }
    
    /* Full screen auth form on mobile */
    .auth-wrapper {
        min-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch;
    }
    
    .auth-card {
        max-width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 2rem 1.5rem !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
    }
    
    .input-with-icon input {
        height: 52px !important;
        font-size: 1rem !important;
    }
    
    .pin-box {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.25rem !important;
    }
    
    .pin-boxes {
        gap: 0.5rem;
    }
    
    .btn-full {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .auth-footer p {
        text-align: center;
        color: var(--text-muted);
        font-size: 0.9rem;
    }
    
    .auth-footer a {
        color: var(--secondary-color);
        font-weight: 600;
    }
    
    /* Nav links styles handled globally now for mobile-first/all-mobile design */
    /* Removed forced 1fr for services-grid-new to allow 2 columns */
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Pages / Form Container --- */
.form-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease-out;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mod-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mod-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    background-color: #f8fafc;
}

.mod-card.active {
    border-color: var(--secondary-color);
    background-color: #eff6ff;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.mod-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: #e0f2fe;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mod-title {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* --- Verification Selection Grids --- */
.verify-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.type-card:hover, .type-card.active {
    border-color: var(--secondary-color);
    background-color: #eff6ff;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.type-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.type-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    display: block;
}

/* --- Slip Selection --- */
.slip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.slip-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.slip-card:hover, .slip-card.active {
    border-color: var(--secondary-color); /* Highlight color */
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-bottom-color: var(--secondary-color);
}

.slip-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.slip-price {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* --- CAC Form Styling --- */
.cac-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.file-upload-block {
    border: 1px dashed var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    background: #f8fafc;
}

.btn-add-director {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Landing Page Modern Design --- */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: radial-gradient(circle at top right, #334155, var(--primary-dark));
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    color: #38bdf8;
    backdrop-filter: blur(5px);
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

/* Services Landing */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-body);
}

.services-grid-landing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-landing {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card-landing:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.bg-blue { background: #eff6ff; color: var(--secondary-color); }
.bg-purple { background: #f3e8ff; color: #a855f7; }
.bg-green { background: #dcfce7; color: var(--success-color); }

.service-card-landing h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.service-card-landing p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.link-arrow {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover { gap: 0.75rem; }

/* Stats Landing */
.stats-section {
    background: var(--surface);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid-landing {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-color);
    display: none;
}

/* Responsive Landing */
@media (min-width: 768px) {
    .stat-divider { display: block; }
}

@media (max-width: 768px) {
    .hero-section { padding: 4rem 0 6rem; }
    .hero-section h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-lg { width: 100%; text-align: center; justify-content: center; }
    .stats-grid-landing { flex-direction: column; }
}

/* Preloader */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Modern translucent bg */
    backdrop-filter: blur(8px); /* Glassmorphism effect */
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: none; /* Hide logo in modern spinner view to keep it clean, or keep it */
}

.loader-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

/* Modern Cycle Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(59, 130, 246, 0.1); /* Light track */
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    border-right-color: var(--accent-color); 
    animation: spin 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.spinner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--secondary-color);
    animation: spin-reverse 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}


.btn-processing { opacity: 0.7; pointer-events: none; cursor: wait; }

/* Result Card */
.result-card { background: white; border-radius: 12px; padding: 2rem; box-shadow: var(--card-shadow); text-align: left; animation: fadeIn 0.5s ease-out; }
.result-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; }
.result-header h3 { color: var(--primary-color); font-size: 1.25rem; }
.result-header p { color: var(--success-color); font-weight: 600; font-size: 0.9rem; }
.result-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px dashed #e2e8f0; }
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; text-transform: capitalize; }
.result-row .value { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; text-align: right; word-break: break-word; max-width: 60%; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Transaction History List --- */
.transaction-list {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.transaction-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background-color: #f8fafc;
}

.trx-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.trx-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}

.trx-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trx-amount-status {
    text-align: right;
}

.trx-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.trx-amount.debit { color: var(--danger-color); }
.trx-amount.credit { color: var(--success-color); }

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.success { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fef9c3; color: #854d0e; }
.status-badge.failed { background: #fee2e2; color: #991b1b; }
.status-badge.processing { background: #dbeafe; color: #1e40af; }


/* Password Toggle Styles */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper input {
    padding-right: 40px !important;
}
.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1rem;
   z-index: 10;
}
.password-toggle-icon:hover {
    color: var(--secondary-color);
}

/* Dashboard Image Icons */
.card-icon {
    padding: 0;
    overflow: hidden;
}
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.service-card-new:hover .card-icon img {
    opacity: 0.9;
}
}

/* --- Modern Landing Page --- */
.landing-page { overflow-x: hidden; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: radial-gradient(circle at top right, #f8fafc, #eff6ff);
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.wobble-vertical { animation: wobble 3s ease-in-out infinite; }
@keyframes wobble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--primary-dark);
}
.btn-glass:hover { background: white; }

.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.stat-pill {
    text-align: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.stat-val { display: block; font-weight: 800; font-size: 1.5rem; color: var(--secondary-color); }
.stat-lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}
.blob-1 { top: -10%; right: -5%; width: 400px; height: 400px; background: #bfdbfe; }
.blob-2 { bottom: 0%; left: -5%; width: 300px; height: 300px; background: #ddd6fe; }

/* Modern Services Grid */
.services-section { padding: 5rem 0; position: relative; }

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card-modern {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: #bfdbfe;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.bg-blue-light { background: #eff6ff; }
.bg-purple-light { background: #f3e8ff; }
.bg-orange-light { background: #fff7ed; }
.text-blue { color: #2563eb; }
.text-purple { color: #9333ea; }
.text-orange { color: #ea580c; }
.text-yellow-400 { color: #facc15; }

.service-card-modern h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card-modern p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.feature-list i { color: var(--success-color); font-size: 0.8rem; }

/* Steps Section */
.steps-section { background: var(--primary-dark); color: white; padding: 5rem 0; }
.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .steps-grid { flex-direction: column; align-items: center; text-align: center; }
    .step-line { display: none; }
    .hero-title { font-size: 2.5rem; }
}

.step-item { flex: 1; position: relative; z-index: 2; }
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    line-height: 1;
}
.step-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-item p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-top: 3rem; 
}

/* --- Desktop Responsive Fixes --- */
@media (min-width: 992px) {
    .navbar .container {
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-toggle-btn {
        display: none;
    }

    .nav-links {
        position: static;
        transform: translate(0);
        height: auto;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        padding: 0;
        overflow: visible;
        margin-left: auto;
    }

    .nav-links li {
        margin: 0 0.5rem;
    }
    
    .nav-links a {
        color: rgba(255,255,255,0.8);
        padding: 0.5rem 1rem;
        margin-bottom: 0;
        width: auto;
        font-size: 0.9rem;
    }
    
    .nav-links a:last-child {
        margin-top: 0;
    }

    .nav-links a:hover, .nav-links a.active {
        color: #ffffff;
        background-color: rgba(255,255,255,0.1);
    }
    
    .auth-buttons {
        display: flex;
        flex-direction: row;
        width: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: 1.5rem;
        padding-left: 1.5rem;
        border-left: 1px solid rgba(255,255,255,0.15);
        gap: 0.75rem;
    }

    .logo {
        position: static;
        transform: translate(0);
        left: auto;
        margin-right: 2rem;
    }

    .dropdown-content {
        top: 100%;
        width: 200px;
    }
}
/* === Service Page Responsive Grids === */
.verify-type-grid, .mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-card, .mod-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.type-card i, .mod-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.type-card:hover, .type-card.active, .mod-card:hover, .mod-card.active {
    border-color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.slip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.slip-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.slip-card:hover, .slip-card.active {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

.slip-title, .mod-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.slip-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.mod-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .verify-type-grid, .mod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .type-card, .mod-card {
        padding: 1rem 0.5rem;
    }
    
    .type-card i, .mod-icon i {
        font-size: 1.5rem;
    }
    
    .type-card span, .mod-title {
        font-size: 0.85rem;
    }
    
    .slip-card {
        padding: 1rem 0.5rem;
    }
    
    .mod-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .verify-type-grid, .mod-grid {
        grid-template-columns: 1fr;
    }
    
    .slip-grid {
        grid-template-columns: 1fr;
    }
}
/* --- NEW SIDEBAR LAYOUT --- */
.user-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}

.user-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.user-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.menu-item:hover {
    color: var(--primary-color);
    background-color: #f0f9ff;
}

.menu-item.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.menu-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 1rem 0;
}

.user-topbar {
    background: white;
    height: 64px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.user-content-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.user-info-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.user-details .role {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .user-sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    }
    
    .user-sidebar.show {
        transform: translateX(0);
    }
    
    .user-main {
        margin-left: 0;
        width: 100%;
    }
}

