/* 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 {
    display: inline-flex;
    align-items: center;
    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);
}

.production-card {
    border-left: 4px solid var(--secondary);
}

.readiness-panel {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem;
}

.readiness-panel a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.documentation-hero {
    background: var(--gradient);
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
}

.documentation-hero p {
    opacity: 0.9;
}

.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;
}

.footer-attribution {
    margin: -0.65rem 0 0;
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* 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 */
.secret-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.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;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.api-key-display code,
.secret-value {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.secret-toggle-btn,
.copy-btn {
    cursor: pointer;
    color: var(--primary);
    background: white;
    border: 1px solid var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

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

.api-key-display .copy-btn,
.api-key-display .secret-toggle-btn {
    position: static;
    transform: none;
}

/* 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;
}

/* Public landing and authentication pages */
.home-hero {
    overflow: hidden;
    position: relative;
    padding: clamp(3rem, 7vw, 6rem) 0;
    color: white;
    background: radial-gradient(circle at 82% 18%, rgba(167, 139, 250, 0.52), transparent 28%), linear-gradient(120deg, #27226f 0%, #4f46e5 55%, #7368ef 100%);
}

.hero-eyebrow,
.section-eyebrow,
.auth-eyebrow {
    margin-bottom: 1rem;
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.hero-eyebrow i {
    margin-right: 0.4rem;
    color: #86efac;
}

.home-hero h1 {
    max-width: 640px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.hero-copy {
    max-width: 560px;
    margin-bottom: 1.75rem;
    color: #e0e7ff;
    font-size: 1.1rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions .btn {
    border-radius: 10px;
    padding: 0.8rem 1.25rem;
    font-weight: 600;
}

.hero-networks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    color: #c7d2fe;
    font-size: 0.8rem;
}

.hero-networks strong {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.3rem 0.7rem;
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}

.hero-visual > img {
    display: block;
    width: 100%;
    filter: drop-shadow(0 24px 45px rgba(20, 19, 73, 0.25));
}

.hero-visual-caption {
    position: absolute;
    right: 0;
    bottom: 7%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    color: #1f2937;
    background: white;
    box-shadow: 0 14px 35px rgba(30, 27, 75, 0.2);
}

.caption-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: #eef2ff;
}

.hero-visual-caption strong,
.hero-visual-caption small {
    display: block;
}

.hero-visual-caption strong {
    font-size: 0.85rem;
}

.hero-visual-caption small {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.72rem;
}

.caption-check {
    margin-left: 0.3rem;
    color: #10b981;
}

.platform-section,
.network-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading .section-eyebrow,
.home-cta .section-eyebrow,
.auth-card-heading .section-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--primary);
}

.section-heading h2,
.home-cta h2 {
    margin-bottom: 0.8rem;
    color: #172033;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.section-heading > p:last-child {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.platform-card {
    height: 100%;
    border: 1px solid #e7eaf2;
    border-radius: 18px;
    padding: 1.75rem;
    background: white;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.045);
}

.platform-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
    place-items: center;
    border-radius: 15px;
    color: var(--primary);
    background: #eef2ff;
    font-size: 1.25rem;
}

.platform-card h3 {
    margin-bottom: 0.65rem;
    color: #172033;
    font-size: 1.1rem;
    font-weight: 700;
}

.platform-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.network-section {
    background: #f1f3fb;
}

.network-card {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #e4e7f0;
    border-radius: 15px;
    padding: 1rem;
    background: white;
}

.network-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: var(--network-color);
    background: color-mix(in srgb, var(--network-color) 12%, white);
    font-size: 1.2rem;
}

.network-card h3 {
    margin: 0 0 0.2rem;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 700;
}

.network-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

.home-cta {
    padding: 3rem 0;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid #e4e7f0;
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: white;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.055);
}

.home-cta h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-cta-inner > div:first-child > p:last-child {
    margin: 0;
    color: #64748b;
}

.auth-container {
    display: flex;
    min-height: calc(100vh - 74px);
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem) 1.25rem;
    background: #f3f5fb;
}

.auth-layout {
    display: grid;
    width: min(1080px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    overflow: hidden;
    border: 1px solid #e4e7f0;
    border-radius: 24px;
    background: white;
    box-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
}

.auth-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    color: white;
    background: radial-gradient(circle at 83% 21%, rgba(167, 139, 250, 0.55), transparent 27%), linear-gradient(145deg, #29246f, #4f46e5 75%, #7167eb);
}

.auth-brand {
    display: inline-block;
    margin-bottom: 3rem;
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-panel h1 {
    max-width: 430px;
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.auth-panel-copy {
    max-width: 440px;
    margin-bottom: 1rem;
    color: #e0e7ff;
    line-height: 1.7;
}

.auth-illustration {
    display: block;
    width: min(100%, 440px);
    margin: 0.4rem auto 0;
}

.auth-benefits {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    color: #eef2ff;
    font-size: 0.88rem;
    list-style: none;
}

.auth-benefits i {
    margin-right: 0.4rem;
    color: #86efac;
}

.auth-card {
    align-self: center;
    width: 100%;
    max-width: none;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 0;
    box-shadow: none;
}

.auth-card-heading {
    margin-bottom: 1.8rem;
}

.auth-card-heading h2 {
    margin-bottom: 0.45rem;
    color: #172033;
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-card-heading > p:last-child {
    margin: 0;
    color: #64748b;
}

.auth-card .form-control {
    min-height: 46px;
    border-color: #d9deea;
    border-radius: 9px;
}

.auth-card .input-group .form-control {
    border-radius: 9px 0 0 9px;
}

.auth-card .input-group .btn {
    border-color: #d9deea;
    border-radius: 0 9px 9px 0;
}

.auth-card .btn-primary {
    min-height: 48px;
}

.auth-form-links {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.auth-form-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-form-links a:hover {
    text-decoration: underline;
}

.auth-signin-link {
    justify-content: center;
    margin-top: 1.25rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .auth-layout {
        max-width: 900px;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
    }

    .auth-panel {
        padding: 1.5rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-brand {
        margin-bottom: 1.5rem;
    }

    .auth-illustration {
        width: min(85%, 270px);
        margin: 0.5rem 0;
    }

    .home-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .auth-layout {
        max-width: 560px;
        grid-template-columns: 1fr;
    }

    .auth-panel {
        grid-row: 2;
    }

    .auth-card {
        grid-row: 1;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        padding-top: 3rem;
    }

    .hero-visual-caption {
        right: 0.2rem;
        bottom: 2%;
        gap: 0.5rem;
        padding: 0.55rem 0.65rem;
    }

    .hero-visual-caption small {
        max-width: 150px;
    }

    .auth-container {
        padding: 1rem 0.75rem;
    }

    .auth-panel,
    .auth-card {
        padding: 1.5rem;
    }

    .auth-illustration {
        width: 65%;
    }
}

.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;
}

/* Shared responsive safeguards */
main,
main > *,
main .row > [class*="col-"] {
    min-width: 0;
}

.btn {
    max-width: 100%;
    white-space: normal;
}

.btn-group {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.btn-group .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-layout .auth-card {
    margin: 0;
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar .navbar-collapse {
        padding-top: 0.5rem;
    }

    .navbar .navbar-nav {
        align-items: stretch;
    }

    .navbar .nav-link {
        margin: 0;
        padding: 0.65rem 0.25rem;
    }

    .navbar .navbar-nav > .nav-item > .btn {
        display: inline-flex;
        justify-content: center;
        margin: 0.35rem 0;
    }

    .documentation-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.65rem 0.75rem;
    }

    .navbar-brand {
        max-width: calc(100% - 3.5rem);
        align-items: flex-start;
        font-size: clamp(0.95rem, 4vw, 1.25rem);
        line-height: 1.25;
    }

    .navbar-brand i {
        flex: 0 0 auto;
        margin-top: 0.1rem;
    }

    .navbar .navbar-toggler {
        flex: 0 0 auto;
        padding: 0.35rem 0.55rem;
    }

    .auth-container {
        min-height: 0;
        align-items: flex-start;
    }

    .auth-layout {
        overflow: visible;
        border-radius: 18px;
    }

    .auth-panel,
    .auth-card {
        min-width: 0;
    }

    .auth-panel {
        border-radius: 0 0 18px 18px;
    }

    .auth-illustration {
        max-height: 220px;
        object-fit: contain;
        object-position: left center;
    }

    .auth-form-links {
        flex-wrap: wrap;
    }

    .hero-actions .btn,
    .home-cta .hero-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .home-cta .hero-actions {
        width: 100%;
    }

    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .navbar .container-fluid {
        padding-right: 0;
        padding-left: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .home-cta .hero-actions .btn {
        width: 100%;
    }

    .network-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.85rem;
    }

    .network-card p {
        line-height: 1.4;
    }

    .auth-container {
        padding: 0.75rem;
    }

    .auth-layout {
        border-radius: 14px;
    }

    .auth-card-heading {
        margin-bottom: 1.25rem;
    }

    .auth-card-heading h2 {
        font-size: 1.5rem;
    }

    .auth-form-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-signin-link {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .auth-panel {
        border-radius: 0 0 14px 14px;
    }

    .footer .row > div + div {
        margin-top: 1rem;
    }
}

.pin-auth-card {
    max-width: 480px;
}

.pin-shield {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: var(--primary);
    background: #eef2ff;
    font-size: 1.5rem;
}

.pin-title {
    margin-bottom: 0.6rem;
    color: #172033;
    font-size: 1.75rem;
    font-weight: 700;
}

.pin-entry {
    position: relative;
    margin-bottom: 0.5rem;
}

.pin-input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0.01;
    cursor: text;
}

.pin-slots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.35rem, 2vw, 0.65rem);
}

.pin-slot {
    display: grid;
    min-width: 0;
    aspect-ratio: 0.85;
    max-height: 66px;
    place-items: center;
    border: 1px solid #d9deea;
    border-radius: 10px;
    color: #172033;
    background: #fff;
    font-size: clamp(1.3rem, 7vw, 1.8rem);
    font-weight: 700;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pin-entry.has-focus .pin-slot.is-current,
.pin-entry:focus-within .pin-slot.is-current {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}

.pin-slot.is-filled {
    border-color: #a5b4fc;
    background: #f8f9ff;
}

.pin-entry:focus-within .pin-slot {
    border-color: #a5b4fc;
}

.pin-auth-card .form-text {
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .pin-auth-card {
        padding: 1.5rem 1.1rem;
    }

    .pin-slots {
        gap: 0.35rem;
    }

    .pin-slot {
        border-radius: 8px;
    }
}