/* BASE CSS */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #333;
    min-height: 100vh;
}

/* Navbar Styling */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Cards */
.card-custom {
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
}

.btn-google {
    background: white;
    border: 2px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 20px;
    margin-right: 10px;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* API Key Display */
.api-key-display {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    position: relative;
}

.copy-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary);
    background: white;
    border: 1px solid var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
}

/* Network Badges */
.network-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.network-mtn {
    background: #FFF3CD;
    color: #856404;
}

.network-airtel {
    background: #F8D7DA;
    color: #721C24;
}

.network-zamtel {
    background: #D4EDDA;
    color: #155724;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    position: relative;
}

.code-block .copy-code {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #333;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10B981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .auth-card {
        margin: 1rem;
        padding: 2rem;
    }
}

/* PROFILE SPECIFIC CSS */
.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-initials {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.timeline-item {
    position: relative;
    padding-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -15px;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item:last-child::before {
    display: none;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* WALLET SPECIFIC CSS */
/* Current Account Display */
.current-account-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.info-group {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.account-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bank-icon {
    background: #e0e7ff;
    color: #4F46E5;
}

.mobile-icon {
    background: #d1fae5;
    color: #10B981;
}

/* Balance Cards */
.balance-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.current-balance {
    border-left: 4px solid #4F46E5;
}

.pending-balance {
    border-left: 4px solid #F59E0B;
}

.total-earned {
    border-left: 4px solid #10B981;
}

/* Payout Date Circle */
.payout-date-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.payout-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.payout-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Countdown Timer */
.countdown-item {
    text-align: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 65px;
}

.countdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 500;
}

/* Summary Items */
.summary-item {
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.summary-item:hover {
    background: #f9fafb;
}

.summary-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Radio Cards */
.custom-radio-card {
    margin-bottom: 0;
}

.custom-radio-card .form-check-input {
    display: none;
}

.custom-radio-card .form-check-label {
    cursor: pointer;
}

.radio-card-content {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.custom-radio-card .form-check-input:checked+.form-check-label .radio-card-content {
    border-color: #4F46E5;
    background: #eef2ff;
}

.radio-card-content:hover {
    border-color: #4F46E5;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .sticky-sidebar {
        position: static;
    }

    .balance-card {
        margin-bottom: 1rem;
    }
}

/* PAYOUT SUMMARY SPECIFIC CSS */

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #f9f9f9;
}

.summary-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.summary-stat {
    font-size: 28px;
    font-weight: bold;
    color: #417690;
    margin: 10px 0;
}

.summary-stat.amount {
    font-size: 24px;
    color: #079e04;
}

.summary-stat.warning {
    color: #f57c00;
}

.summary-stat.danger {
    color: #d32f2f;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.detail-table thead {
    background-color: #417690;
    color: white;
}

.detail-table th,
.detail-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.detail-table tbody tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* STATS SPECIFIC CSS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #f9f9f9;
}

.stat-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    border-bottom: 3px solid #417690;
    padding-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #417690;
    margin: 10px 0 5px 0;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #417690;
    padding-bottom: 10px;
}

.s-currency {
    color: #079e04;
    font-weight: bold;
}

.p-currency {
    color: #f57c00;
    font-weight: bold;
}

.f-currency {
    color: #d32f2f;
    font-weight: bold;
}

/* USAGE STATS SPECIFIC CSS */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f0ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0.5rem 0;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.75em;
}

.network-mtn {
    background: #FFF3CD;
    color: #856404;
}

.network-airtel {
    background: #F8D7DA;
    color: #721C24;
}

.network-zamtel {
    background: #D4EDDA;
    color: #155724;
}

code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.btn-group .btn {
    font-size: 0.85rem;
}

/* QUICK ACTIONS */
.disable-link {
    pointer-events: none;
    opacity: 0.6;
}

.biz-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    justify-content: center;
    line-height: 1;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}