: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.5rem;
}

.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); }

.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); }

/* 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 */
    }
    
    .wallet-section { padding: 0 0.5rem; } /* Ensure wallet fits well */
    
    .stats-grid { grid-template-columns: 1fr; }
    
    /* 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; }

