@import "services-compact.css";

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

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

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    background-color: var(--bg-page, #060b14);
    color: var(--text-primary, #f1f5f9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 64px; /* Space for compact mobile bottom bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container — Compact Native Mobile App Shell (OPay / PalmPay Viewport) */
.container {
    width: 100%;
    max-width: 412px; /* Standard compact mobile screen width */
    margin: 0 auto;
    padding: 0 0.75rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container.admin-container,
.admin-container,
body.is-admin-page .container {
    max-width: 1100px;
}

/* Header & Top Navigation (Compact OPay / PalmPay Style) */
.top-nav {
    background-color: var(--nav-bg, #070d18);
    color: var(--nav-text, #ffffff);
    border-bottom: 1px solid var(--border-color, #1e3a5f);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    width: 100%;
    overflow-x: hidden;
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 0.65rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--accent-primary, #10b981);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    flex-shrink: 0;
}

.brand-title-group h1 {
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-subtitle-text {
    font-size: 0.73rem;
    opacity: 0.9;
    font-weight: 650;
    display: block;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .brand-subtitle-text {
        display: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.nav-compact-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 30px;
    white-space: nowrap;
}

.nav-icon-circle-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.wallet-pill-compact {
    display: flex;
    align-items: center;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 9999px;
    padding: 0.15rem 0.45rem;
    gap: 0.25rem;
    height: 30px;
    flex-shrink: 0;
}

.wallet-pill-lbl {
    font-size: 0.68rem;
    color: var(--text-secondary, #94a3b8);
}

.wallet-pill-amt {
    color: var(--accent-primary, #10b981);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.wallet-pill-add {
    background: var(--accent-primary, #10b981);
    color: #fff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
}

.notif-badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 360px) {
    .hide-on-xs {
        display: none !important;
    }
}

.theme-dropdown-popover {
    display: none;
    position: absolute;
    right: 0;
    top: 115%;
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 12px;
    padding: 0.4rem;
    min-width: 195px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 100;
}

.theme-dropdown-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    padding: 0.2rem 0.45rem 0.35rem;
    border-bottom: 1px solid var(--border-color, #334155);
    margin-bottom: 0.25rem;
}

.theme-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    text-decoration: none;
    transition: background 0.15s ease;
}

.theme-dropdown-link.active {
    font-weight: 800;
    color: var(--accent-primary, #10b981);
    background: var(--accent-light, rgba(255,255,255,0.08));
}

.theme-active-tag {
    font-size: 0.6rem;
    background: var(--accent-primary, #10b981);
    color: #fff;
    padding: 1px 5px;
    border-radius: 9999px;
}

/* Wallet Card (Compact OPay / PalmPay Style) */
.wallet-card {
    background: var(--wallet-gradient, linear-gradient(135deg, #15803d 0%, #166534 100%));
    color: #ffffff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 0.65rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
}

.wallet-card::after {
    content: '';
    position: absolute;
    right: -15px;
    top: -15px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

@media (min-width: 640px) {
    .wallet-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.wallet-balance-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.wallet-balance-value {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wallet-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Buttons (Compact Mobile Proportions) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--btn-primary-bg, #10b981);
    color: var(--btn-primary-text, #ffffff);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color, #334155);
    color: var(--text-primary, #ffffff);
}
.btn-outline:hover {
    border-color: var(--accent-primary, #10b981);
    color: var(--accent-primary, #10b981);
}

/* Search & Filters */
.search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .search-filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-input {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-primary, #f1f5f9);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--border-focus, #10b981);
}

.category-chips {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--bg-surface, #1e293b);
    color: var(--text-secondary, #94a3b8);
    border: 1px solid var(--border-color, #334155);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.chip-btn.active, .chip-btn:hover {
    background: var(--accent-light, rgba(16, 185, 129, 0.15));
    color: var(--accent-primary, #10b981);
    border-color: var(--accent-primary, #10b981);
}

/* Service Cards Grid (All 22 Services) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 540px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow, 0 3px 10px rgba(0,0,0,0.06));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow, 0 8px 24px rgba(0,0,0,0.2));
    border-color: var(--border-focus, #10b981);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light, rgba(16, 185, 129, 0.15));
    color: var(--accent-primary, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-primary, #10b981);
}

.service-card-desc {
    font-size: 0.825rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #334155);
}

.service-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-primary, #10b981);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface, #1e293b);
    border-top: 1px solid var(--border-color, #334155);
    z-index: 40;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    color: var(--text-secondary, #94a3b8);
    gap: 0.2rem;
    padding: 0.3rem 0.5rem;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--accent-primary, #10b981);
}

/* Forms & Tables */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary, #f1f5f9);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-surface-elevated, #0f172a);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-primary, #f1f5f9);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--border-focus, #10b981);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #334155);
}

.data-table th {
    background: var(--bg-surface-elevated, #0f172a);
    color: var(--text-secondary, #94a3b8);
    font-weight: 700;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}


/* NIN/BVN service-page safety and mobile layout fixes */
svg, img, video, canvas {
    max-width: 100%;
}
svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
button, input, select, textarea {
    font: inherit;
}
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
    max-width: 100%;
}
input[type="radio"], input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}
button {
    cursor: pointer;
}
main, .container, .service-page, .max-w-4xl {
    min-width: 0;
}
table {
    width: 100%;
    border-collapse: collapse;
}
@media (max-width: 640px) {
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    input:not([type="radio"]):not([type="checkbox"]), select, textarea {
        width: 100%;
        min-height: 38px;
    }
    input[type="radio"], input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
        flex-shrink: 0 !important;
    }
    button {
        min-height: 38px;
    }
    .mobile-bottom-nav {
        z-index: 100;
    }
}

/* ==============================================================================
   MOBILE FINTECH COMPONENTS (OPAY & PALMPAY COMPACT PROPORTIONS)
   ============================================================================== */

/* Quick Theme Switcher Pill Bar */
.theme-quick-switch-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.35rem;
    margin-bottom: 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.theme-quick-switch-bar::-webkit-scrollbar {
    display: none;
}

.theme-switch-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 750;
    padding: 2px 7px;
    border-radius: 9999px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.1s ease;
}

.theme-switch-pill:active {
    transform: scale(0.95);
}

/* Top Action Pills (Add Money & My Accounts) */
.top-fintech-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin: 0.35rem 0 0.65rem;
}

.btn-fintech-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: #0056d6;
    color: #ffffff;
    font-weight: 750;
    font-size: 0.76rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    height: 36px;
    min-height: 36px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 86, 214, 0.22);
    transition: transform 0.15s ease;
    white-space: nowrap;
}

.btn-fintech-primary:active {
    transform: scale(0.97);
}

.btn-fintech-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: #eef4ff;
    color: #0056d6;
    font-weight: 750;
    font-size: 0.76rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    height: 36px;
    min-height: 36px;
    text-decoration: none;
    border: 1px solid #dbeafe;
    transition: transform 0.15s ease;
    white-space: nowrap;
}

.btn-fintech-secondary:active {
    transform: scale(0.97);
}

/* Announcement Card (Megaphone alert) */
.announcement-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02);
    position: relative;
}

.announcement-icon-bubble {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon-bubble svg,
.announcement-icon-bubble i {
    width: 14px !important;
    height: 14px !important;
}

.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-body strong {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.announcement-body p {
    font-size: 0.66rem;
    color: #64748b;
    margin: 1px 0 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0 2px;
}

/* Services Container Card (4-Column Squircle Grid) */
.services-section-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.65rem 0.45rem 0.75rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.services-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    padding: 0 0.15rem;
}

.services-section-header h2 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.services-section-header .section-action-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0056d6;
    text-decoration: none;
}

/* 4-Column Squircle Icon Grid (Compact OPay & PalmPay proportions) */
.services-squircle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem 0.2rem;
    align-items: start;
    justify-items: center;
}

.squircle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 76px;
    padding: 0.1rem 0;
    transition: transform 0.15s ease;
}

.squircle-item:active {
    transform: scale(0.93);
}

.squircle-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f1f5f9;
    color: #0056d6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.squircle-icon-box svg,
.squircle-icon-box i {
    width: 18px !important;
    height: 18px !important;
}

.squircle-label {
    font-size: 0.62rem;
    font-weight: 650;
    color: var(--text-primary, #1e293b);
    line-height: 1.15;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 74px;
    min-height: 2.3em;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

/* Global Virtual Card Promo Banner */
.global-card-promo {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.promo-text-side {
    flex: 1;
    z-index: 2;
    min-width: 0;
}

.promo-text-side h3 {
    font-size: 1.02rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.promo-text-side p {
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 0.45rem;
    line-height: 1.25;
}

.btn-promo-get {
    display: inline-block;
    background: #0056d6;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
}

.promo-card-graphic {
    flex-shrink: 0;
    width: 95px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #0c4a6e 100%);
    color: #ffffff;
    padding: 6px 8px;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(2deg);
}

.mini-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.mini-card-chip {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    background: #e2e8f0;
    opacity: 0.9;
}

.mini-card-num {
    font-family: monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Bottom Navigation Dock (Compact OPay & PalmPay proportions) */
.fintech-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.04);
}

.fintech-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.fintech-nav-item.active {
    color: #0056d6;
    font-weight: 800;
}

.fintech-nav-icon-wrap {
    width: 38px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fintech-nav-icon-wrap svg,
.fintech-nav-icon-wrap i {
    width: 18px !important;
    height: 18px !important;
}

.fintech-nav-item.active .fintech-nav-icon-wrap {
    background: #e0edff;
    color: #0056d6;
}


/* Clear service identity and mobile-friendly status review cards */
.recent-activity-row{display:flex;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--border-color,#334155);text-decoration:none;color:inherit;min-width:0;transition:background .15s ease}
.recent-activity-row:last-child{border-bottom:0}
.recent-activity-row:hover{background:rgba(148,163,184,.08)}
.recent-activity-icon{width:44px;height:44px;flex:0 0 44px;border-radius:13px;background:rgba(234,179,8,.14);color:#facc15;display:grid;place-items:center}
.recent-activity-icon svg{width:21px;height:21px}
.recent-activity-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.recent-activity-main strong{font-size:.92rem;font-weight:850;color:var(--text-primary,#f8fafc);overflow-wrap:anywhere}
.recent-activity-main small{font-size:.72rem;color:var(--text-secondary,#94a3b8);overflow-wrap:anywhere}
.recent-status{font-style:normal;font-size:.67rem;font-weight:900;letter-spacing:.035em;width:max-content;padding:4px 8px;border-radius:20px}
.recent-status.is-done{color:#34d399;background:rgba(16,185,129,.15)}
.recent-status.is-pending{color:#fbbf24;background:rgba(245,158,11,.15)}
.recent-status.is-failed{color:#fb7185;background:rgba(239,68,68,.15)}
.recent-activity-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:0 0 auto;text-align:right}
.recent-activity-side strong{font-size:.92rem;font-weight:900;color:var(--text-primary,#f8fafc);white-space:nowrap}
.recent-activity-side small{font-size:.62rem;font-weight:900;color:#facc15;white-space:nowrap}
.recent-activity-side b{font-size:1rem}
.recent-empty{padding:28px 18px;text-align:center;color:var(--text-secondary,#94a3b8);font-size:.88rem;line-height:1.6}
@media(max-width:420px){.recent-activity-row{gap:9px;padding:12px 10px}.recent-activity-icon{width:38px;height:38px;flex-basis:38px}.recent-activity-main strong{font-size:.82rem}.recent-activity-main small{font-size:.66rem}.recent-activity-side strong{font-size:.8rem}.recent-activity-side small{font-size:.57rem}}


/* Clear, labelled account actions in the mobile top bar */
.nav-actions { min-width: 0; }
.nav-action-link {
    min-width: 54px; min-height: 42px; padding: 4px 7px; border-radius: 11px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; position: relative; flex: 0 0 auto; text-decoration: none;
    font-size: 10px; line-height: 1.05; font-weight: 800; white-space: nowrap;
    color: var(--nav-text, #fff);
}
.nav-action-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.nav-action-link span { display: block; }
.nav-action-link .notif-badge-dot { top: -3px; right: 1px; width: auto; min-width: 16px;
    height: 16px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.nav-logout-link { color: #ff7777; }
@media (max-width: 520px) {
    .top-nav-inner { gap: 6px; }
    .nav-actions { gap: 3px; overflow-x: auto; overflow-y: visible; max-width: 49vw;
        scrollbar-width: none; padding: 3px 2px; }
    .nav-actions::-webkit-scrollbar { display: none; }
    .nav-action-link { min-width: 49px; padding-left: 4px; padding-right: 4px; font-size: 9px; }
    .wallet-pill-compact { gap: 3px; padding-left: 6px; padding-right: 6px; }
    .wallet-pill-lbl { display: none; }
}
@media (max-width: 380px) {
    .brand-logo-badge { width: 36px; height: 36px; }
    .brand-title-group h1 { font-size: .88rem; }
    .brand-subtitle-text { font-size: .62rem; }
    .nav-actions { max-width: 47vw; }
}

/* =====================================================================
   SS VERIFY — Premium dashboard header / account summary (5 themes)
   The same component structure adapts to the active admin-selected theme.
   ===================================================================== */
.top-nav{background:linear-gradient(115deg,var(--accent-primary,#075bd8),color-mix(in srgb,var(--accent-primary,#075bd8) 72%,#111827));border-bottom:1px solid color-mix(in srgb,var(--accent-primary,#075bd8) 65%,#fff);box-shadow:0 7px 22px rgba(15,35,65,.13);}
.top-nav-inner{min-height:66px;gap:8px;padding-top:8px;padding-bottom:8px;}
.brand-wrapper{gap:8px;text-decoration:none;flex:1 1 auto;}
.brand-title-group h1{font-size:1.02rem;line-height:1.1;font-weight:900;letter-spacing:-.025em;color:#fff!important;margin:0;}
.brand-subtitle-text{font-size:.68rem;color:rgba(255,255,255,.82)!important;font-weight:650;letter-spacing:.035em;}
.ss-drawer-toggle{width:42px;height:42px;flex-basis:42px;margin-right:2px;border-radius:13px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);box-shadow:none;}
.ss-drawer-toggle span{background:#fff;width:19px;}
.nav-actions{gap:7px;}
.wallet-pill-compact{height:42px;min-width:0;padding:0 7px 0 12px;gap:7px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.68);border-radius:999px;text-decoration:none;box-shadow:0 3px 12px rgba(0,0,0,.08);}
.wallet-pill-amt{font-size:.79rem;color:#17447b!important;font-weight:900;}
.wallet-pill-add{width:23px;height:23px;font-size:1rem;background:var(--accent-primary,#075bd8);color:#fff;}
.nav-notification-card,.nav-profile-pill{height:46px;min-width:48px;padding:4px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;border-radius:15px;text-decoration:none;color:#fff!important;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);font-size:.59rem;font-weight:800;line-height:1.05;white-space:nowrap;}
.nav-notification-card svg,.nav-profile-pill svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;}
.nav-notification-card .notif-badge-dot{display:flex;top:-5px;right:-4px;width:19px;height:19px;font-size:.65rem;border:2px solid var(--accent-primary,#075bd8);}
.nav-profile-pill{min-width:52px;background:rgba(255,255,255,.18);}
.nav-admin-pill{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.45);}
.nav-logout-link{display:none!important;}
.dashboard-identity-card{margin:14px 0 12px;padding:14px;border-radius:22px;background:var(--bg-surface,#fff);border:1px solid var(--border-color,#e2e8f0);box-shadow:0 9px 26px rgba(15,35,65,.075);color:var(--text-primary,#0f172a);}
.dashboard-agent-row{display:flex;align-items:center;gap:10px;min-width:0;}
.dashboard-agent-avatar{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--accent-primary,#075bd8) 13%,var(--bg-surface,#fff));color:var(--accent-primary,#075bd8);}
.dashboard-agent-avatar svg{width:23px;height:23px;}
.dashboard-agent-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto;}
.dashboard-eyebrow{font-size:.67rem;font-weight:750;color:var(--text-secondary,#64748b);line-height:1.15;}
.dashboard-agent-copy>strong{font-size:.95rem;line-height:1.2;font-weight:900;color:var(--text-primary,#0f172a);overflow-wrap:anywhere;}
.dashboard-verified-tag{display:flex;align-items:center;gap:3px;font-size:.61rem;font-weight:800;color:#059669;}
.dashboard-verified-tag svg{width:13px;height:13px;}
.dashboard-balance-block{padding-left:12px;border-left:1px solid var(--border-color,#e2e8f0);display:flex;flex-direction:column;gap:3px;min-width:100px;}
.dashboard-balance-block>strong{font-size:1.02rem;line-height:1.1;font-weight:950;letter-spacing:-.025em;color:var(--accent-primary,#075bd8);white-space:nowrap;}
.dashboard-balance-caption{font-size:.57rem;color:var(--text-secondary,#64748b);font-weight:650;}
.dashboard-balance-eye{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--accent-primary,#075bd8) 12%,var(--bg-surface,#fff));color:var(--accent-primary,#075bd8);text-decoration:none;}
.dashboard-balance-eye svg{width:18px;height:18px;}
.dashboard-identity-card .top-fintech-actions{margin:12px 0 0;gap:9px;}
.dashboard-identity-card .btn-fintech-primary,.dashboard-identity-card .btn-fintech-secondary{height:44px;min-height:44px;border-radius:13px;font-size:.79rem;font-weight:850;gap:7px;}
.dashboard-identity-card .btn-fintech-primary{background:var(--accent-primary,#075bd8);box-shadow:0 5px 13px color-mix(in srgb,var(--accent-primary,#075bd8) 22%,transparent);}
.dashboard-identity-card .btn-fintech-secondary{background:color-mix(in srgb,var(--accent-primary,#075bd8) 8%,var(--bg-surface,#fff));border:1px solid color-mix(in srgb,var(--accent-primary,#075bd8) 17%,var(--border-color,#e2e8f0));color:var(--accent-primary,#075bd8);}
.dashboard-identity-card .btn-fintech-primary svg,.dashboard-identity-card .btn-fintech-secondary svg{width:17px;height:17px;}
.announcement-card{border-radius:16px;padding:11px 12px;margin:0 0 13px;background:var(--bg-surface,#fff);border:1px solid var(--border-color,#e2e8f0);box-shadow:0 4px 14px rgba(15,35,65,.045);}
.announcement-icon-bubble{width:36px;height:36px;border-radius:12px;background:color-mix(in srgb,var(--accent-primary,#075bd8) 12%,var(--bg-surface,#fff));color:var(--accent-primary,#075bd8);}
.announcement-icon-bubble svg{width:19px!important;height:19px!important;}
.announcement-body strong{font-size:.8rem;color:var(--text-primary,#0f172a);}
.announcement-body p{font-size:.69rem;color:var(--text-secondary,#64748b);}
.announcement-close{font-size:1.15rem;color:var(--text-secondary,#64748b);}
@media(max-width:390px){.top-nav-inner{gap:5px}.brand-title-group h1{font-size:.91rem}.brand-subtitle-text{font-size:.6rem}.ss-drawer-toggle{width:37px;height:37px;flex-basis:37px}.wallet-pill-compact{height:39px;padding:0 5px 0 8px;gap:4px}.wallet-pill-amt{font-size:.69rem}.wallet-pill-add{width:20px;height:20px}.nav-notification-card,.nav-profile-pill{height:41px;min-width:39px;padding:3px 5px;font-size:.52rem;border-radius:12px}.nav-notification-card svg,.nav-profile-pill svg{width:18px;height:18px}.dashboard-identity-card{padding:11px;border-radius:18px}.dashboard-agent-avatar{width:39px;height:39px;flex-basis:39px}.dashboard-agent-copy>strong{font-size:.85rem}.dashboard-balance-block{padding-left:8px;min-width:88px}.dashboard-balance-block>strong{font-size:.9rem}.dashboard-balance-eye{width:31px;height:31px;flex-basis:31px}}
@media(max-width:340px){.brand-subtitle-text{display:none}.nav-notification-label{display:none}.nav-notification-card,.nav-profile-pill{min-width:34px}.dashboard-balance-eye{display:none}.dashboard-balance-block{margin-left:auto}}
/* Theme refinements: keep the reference layout while allowing all five palettes. */
body.theme-cyber_dark .top-nav{background:linear-gradient(115deg,#080b12,#202027);border-color:#51451b;}
body.theme-premium_purple .top-nav{background:linear-gradient(115deg,#210b50,#6414a4);border-color:#7c3aed;}
body.theme-ocean_blue .top-nav{background:linear-gradient(115deg,#063b78,#087fc0);border-color:#38bdf8;}
body.theme-luxury_gold .top-nav{background:linear-gradient(115deg,#090909,#28200b);border-color:#b9912f;}
body.theme-cyber_dark .dashboard-identity-card,body.theme-premium_purple .dashboard-identity-card,body.theme-luxury_gold .dashboard-identity-card{box-shadow:0 10px 28px rgba(0,0,0,.24);}
