/* ================================================================
   CRP Portal — Custom Theme (Green/White USDT Theme)
   ================================================================ */

/* ---------------------------------------------------------------
   Global — Green accent overrides
   --------------------------------------------------------------- */
.btn-primary {
    --phoenix-btn-bg: #10b981;
    --phoenix-btn-border-color: #10b981;
    --phoenix-btn-hover-bg: #059669;
    --phoenix-btn-hover-border-color: #059669;
    --phoenix-btn-active-bg: #047857;
    --phoenix-btn-active-border-color: #047857;
}

a.text-primary, .text-primary {
    color: #10b981 !important;
}

.bg-primary {
    background-color: #10b981 !important;
}

.bg-primary-subtle {
    background-color: rgba(16, 185, 129, 0.12) !important;
}

.text-primary {
    color: #10b981 !important;
}

/* ---------------------------------------------------------------
   Auth Pages — Left Panel (Tether USDT Visual)
   --------------------------------------------------------------- */

.portal-visual-panel {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #065f46 70%, #022c22 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Particle canvas */
.usdt-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hexagon grid background overlay */
.usdt-hex-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(30deg, #34d399 12%, transparent 12.5%, transparent 87%, #34d399 87.5%, #34d399),
        linear-gradient(150deg, #34d399 12%, transparent 12.5%, transparent 87%, #34d399 87.5%, #34d399),
        linear-gradient(30deg, #34d399 12%, transparent 12.5%, transparent 87%, #34d399 87.5%, #34d399),
        linear-gradient(150deg, #34d399 12%, transparent 12.5%, transparent 87%, #34d399 87.5%, #34d399),
        linear-gradient(60deg, #34d39977 25%, transparent 25.5%, transparent 75%, #34d39977 75%, #34d39977),
        linear-gradient(60deg, #34d39977 25%, transparent 25.5%, transparent 75%, #34d39977 75%, #34d39977);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* ---- USDT Coin — Central Animated Element ---- */

.usdt-coin-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 320px;
    height: 320px;
    z-index: 3;
}

/* Glow rings behind the coin */
.usdt-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.usdt-glow-ring-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
    animation: usdtPulseGlow 3s ease-in-out infinite;
}

.usdt-glow-ring-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
    animation: usdtPulseGlow 3s ease-in-out infinite 0.5s;
}

.usdt-glow-ring-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
    animation: usdtPulseGlow 3s ease-in-out infinite 1s;
}

@keyframes usdtPulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
}

/* Orbiting rings with dots */
.usdt-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(52, 211, 153, 0.2);
    transform-origin: center;
}

.usdt-orbit-1 {
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -90px;
    border-color: rgba(52, 211, 153, 0.25);
    animation: usdtOrbitSpin 8s linear infinite;
}

.usdt-orbit-2 {
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
    border-color: rgba(52, 211, 153, 0.15);
    animation: usdtOrbitSpin 14s linear infinite reverse;
    border-style: dashed;
}

.usdt-orbit-3 {
    width: 310px;
    height: 310px;
    margin-top: -155px;
    margin-left: -155px;
    border-color: rgba(52, 211, 153, 0.08);
    animation: usdtOrbitSpin 20s linear infinite;
}

.usdt-orbit-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.8), 0 0 24px rgba(52, 211, 153, 0.4);
}

@keyframes usdtOrbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Main coin */
.usdt-coin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    animation: usdtCoinFloat 4s ease-in-out infinite;
}

.usdt-coin-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(52,211,153,0.3) 0%, rgba(6,78,59,0.9) 60%, rgba(2,44,34,1) 100%);
    box-shadow:
        0 0 30px rgba(16,185,129,0.4),
        0 0 60px rgba(16,185,129,0.2),
        0 0 100px rgba(16,185,129,0.1),
        inset 0 0 30px rgba(52,211,153,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(52,211,153,0.35);
    position: relative;
    overflow: hidden;
}

.usdt-tether-logo {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 0 8px rgba(52,211,153,0.5));
}

/* Shine sweep on coin */
.usdt-coin-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    transform: skewX(-20deg);
    border-radius: 50%;
    animation: usdtShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes usdtShine {
    0%   { left: -100%; }
    40%  { left: 150%; }
    100% { left: 150%; }
}

@keyframes usdtCoinFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%      { transform: translate(-50%, -50%) translateY(-12px); }
}

/* ---- Floating Tickers ---- */

.usdt-ticker {
    position: absolute;
    z-index: 4;
    background: rgba(2, 44, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: usdtTickerFloat 5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.usdt-ticker-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(167, 243, 208, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.usdt-ticker-value {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.usdt-ticker-change {
    font-size: 0.7rem;
    font-weight: 700;
}

.usdt-ticker-change.positive {
    color: #34d399;
}

.usdt-ticker-1 { top: 14%; left: 8%; animation-delay: 0s; }
.usdt-ticker-2 { top: 22%; right: 8%; animation-delay: 1.2s; }
.usdt-ticker-3 { bottom: 28%; left: 6%; animation-delay: 2.4s; }

@keyframes usdtTickerFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---- Floating symbols ---- */

.usdt-float-particle {
    position: absolute;
    z-index: 2;
    font-weight: 900;
    opacity: 0;
    animation: usdtSymbolRise 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(16,185,129,0.5);
    pointer-events: none;
}

.usdt-float-particle-1 { font-size: 2.2rem; color: rgba(52,211,153,0.3); bottom: 10%; left: 20%; animation-delay: 0s; }
.usdt-float-particle-2 { font-size: 1.5rem; color: rgba(52,211,153,0.2); bottom: 5%; right: 25%; animation-delay: 1.6s; }
.usdt-float-particle-3 { font-size: 1.8rem; color: rgba(52,211,153,0.25); bottom: 15%; left: 45%; animation-delay: 3.2s; }
.usdt-float-particle-4 { font-size: 1.3rem; color: rgba(52,211,153,0.2); bottom: 8%; right: 12%; animation-delay: 4.8s; }
.usdt-float-particle-5 { font-size: 1.6rem; color: rgba(52,211,153,0.15); bottom: 12%; left: 65%; animation-delay: 6.4s; }

@keyframes usdtSymbolRise {
    0%   { opacity: 0; transform: translateY(0) scale(0.8); }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-300px) scale(1.1) rotate(15deg); }
}

/* ---- Scan line effect ---- */

.usdt-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(52,211,153,0.5) 50%, transparent 100%);
    z-index: 5;
    animation: usdtScanMove 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(16,185,129,0.3);
}

@keyframes usdtScanMove {
    0%   { top: -2px; }
    100% { top: 100%; }
}

/* ---- Title styles ---- */

.usdt-title-glow {
    color: #34d399;
    text-shadow: 0 0 30px rgba(52,211,153,0.5), 0 0 60px rgba(52,211,153,0.2);
    animation: usdtTitlePulse 3s ease-in-out infinite;
}

.usdt-title-sub {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.75em;
}

@keyframes usdtTitlePulse {
    0%, 100% { text-shadow: 0 0 30px rgba(52,211,153,0.5), 0 0 60px rgba(52,211,153,0.2); }
    50%      { text-shadow: 0 0 40px rgba(52,211,153,0.7), 0 0 80px rgba(52,211,153,0.35); }
}

/* Visual content overlay */
.portal-visual-content {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 6;
    padding: 0 2rem;
}

.portal-visual-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.portal-visual-subtitle {
    color: rgba(167, 243, 208, 0.85);
    font-size: 0.9rem;
    font-weight: 400;
    max-width: 360px;
    margin: 0 auto;
}

/* Stat badges */
.portal-stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(209, 250, 229, 0.9);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------------
   Auth Forms — Green button styling
   --------------------------------------------------------------- */

.portal-auth-panel .btn-portal-primary {
    background-color: #10b981;
    border-color: #10b981;
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.portal-auth-panel .btn-portal-primary:hover {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

.portal-auth-panel .btn-portal-primary:active {
    background-color: #047857;
    border-color: #047857;
}

.portal-auth-panel a.portal-link {
    color: #10b981;
    text-decoration: none;
}

.portal-auth-panel a.portal-link:hover {
    color: #059669;
    text-decoration: underline;
}

/* Form icon focus ring green */
.portal-auth-panel .form-icon-container .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.15);
}

/* ---------------------------------------------------------------
   Top Navbar — Fintech Style
   --------------------------------------------------------------- */

.portal-topnav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    height: 56px;
}

.portal-topnav > .container {
    height: 100%;
}

/* ---- Brand ---- */
.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: 2rem;
}

.portal-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.portal-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
}

.portal-brand-sub {
    font-weight: 400;
    color: #9ca3af;
}

/* ---- Main nav links ---- */
.portal-nav-main {
    gap: 0;
    height: 100%;
}

.portal-nav-main .nav-item {
    display: flex;
    align-items: stretch;
}

.portal-nav-main .nav-link {
    font-size: 0.8725rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0 0.75rem;
    border-radius: 0;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    letter-spacing: -0.006em;
    white-space: nowrap;
}

.portal-nav-main .nav-link .uil {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.portal-nav-main .nav-link:hover {
    color: #111827;
    background: transparent;
}

.portal-nav-main .nav-link:hover .uil {
    opacity: 1;
}

.portal-nav-main .nav-link.active {
    color: #10b981;
    font-weight: 600;
    border-bottom-color: #10b981;
    background: transparent;
}

.portal-nav-main .nav-link.active .uil {
    opacity: 1;
}

/* ---- Right-side nav ---- */
.portal-nav-right {
    gap: 0.25rem;
}

/* ---- Notification icon button ---- */
.portal-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.15s ease;
    padding: 0;
}

.portal-icon-btn .uil {
    font-size: 1.15rem;
}

.portal-icon-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.portal-notif-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #fff;
}

/* ---- Notification dropdown ---- */
.portal-notif-dropdown {
    min-width: 22rem;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    animation: portalDropFade 0.15s ease-out;
}

.portal-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.portal-notif-mark-all {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
}

.portal-notif-mark-all:hover {
    color: #059669;
}

.portal-notif-body {
    padding: 0.25rem;
}

.portal-notif-footer {
    border-top: 1px solid #f3f4f6;
    text-align: center;
    padding: 0.625rem 1rem;
}

.portal-notif-footer a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
}

.portal-notif-footer a:hover {
    color: #059669;
}

/* ---- Admin impersonation badge ---- */
.portal-admin-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #ea580c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.portal-admin-view-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.portal-admin-view-text {
    line-height: 1;
}

/* ---- Wallet navbar badge ---- */
.portal-wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #10b981;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1;
}

.portal-wallet-badge:hover {
    background: rgba(16, 185, 129, 0.06);
    color: #059669;
}

.portal-wallet-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.portal-wallet-amount {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.portal-wallet-currency {
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Nav divider ---- */
.portal-nav-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 0.375rem;
}

/* ---- User avatar ---- */
.portal-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.portal-avatar-md {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
}

/* ---- User trigger ---- */
.portal-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.375rem;
    border-radius: 8px;
    transition: background 0.15s ease;
    cursor: pointer;
    line-height: 1;
}

.portal-user-trigger::after {
    display: none; /* hide default caret */
}

.portal-user-trigger:hover {
    background: #f3f4f6;
}

.portal-user-info {
    line-height: 1;
}

.portal-user-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.006em;
}

.portal-caret {
    font-size: 1rem;
    color: #9ca3af;
    margin-left: -0.125rem;
}

/* ---- User dropdown ---- */
.portal-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 0.25rem !important;
    min-width: 16rem;
    animation: portalDropFade 0.15s ease-out;
}

@keyframes portalDropFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.portal-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.portal-dropdown-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.portal-dropdown-email {
    display: block;
    font-size: 0.6875rem;
    color: #9ca3af;
    line-height: 1.3;
}

.portal-dropdown-divider {
    margin: 0.25rem 0;
    border-color: #f3f4f6;
    opacity: 1;
}

.portal-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    transition: background 0.12s ease;
}

.portal-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.portal-dropdown-item:active,
.portal-dropdown-item.active {
    background: #f3f4f6;
    color: #111827;
}

.portal-dropdown-icon {
    font-size: 1.05rem;
    color: #9ca3af;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.portal-dropdown-icon-green {
    color: #10b981;
}

.portal-dropdown-wallet-val {
    font-weight: 700;
    color: #10b981;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}

.portal-dropdown-wallet-val small {
    font-size: 0.625rem;
    font-weight: 500;
    color: #9ca3af;
}

.portal-dropdown-logout {
    color: #ef4444;
}

.portal-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
}

.portal-dropdown-logout .portal-dropdown-icon {
    color: #ef4444;
}

/* ---- Language switcher in dropdown ---- */
.portal-dropdown-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portal-dropdown-lang-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.portal-lang-btns {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.portal-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.12s ease;
    line-height: 1;
}

.portal-lang-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.portal-lang-btn.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* ---- Mobile hamburger ---- */
.portal-toggler {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.portal-toggler-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #6b7280;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.portal-toggler:hover .portal-toggler-bar {
    background: #111827;
}

/* ---- Mobile responsive ---- */
@media (max-width: 991.98px) {
    .portal-topnav {
        height: auto;
        padding: 0.5rem 0;
    }

    .portal-nav-main {
        padding: 0.75rem 0;
        gap: 0;
        border-top: 1px solid #f3f4f6;
        margin-top: 0.5rem;
    }

    .portal-nav-main .nav-item {
        display: block;
    }

    .portal-nav-main .nav-link {
        padding: 0.625rem 0.75rem;
        border-radius: 8px;
        border-bottom: none;
        margin-bottom: 0;
    }

    .portal-nav-main .nav-link.active {
        background: rgba(16, 185, 129, 0.06);
        border-bottom: none;
    }

    .portal-nav-right {
        padding: 0.5rem 0;
        border-top: 1px solid #f3f4f6;
        gap: 0;
    }

    .portal-dropdown {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin-left: 0.5rem;
    }

    .portal-dropdown-header {
        margin: 0;
    }

    .portal-nav-divider {
        display: none;
    }

    .portal-notif-dropdown {
        position: fixed !important;
        left: 1rem !important;
        right: 1rem !important;
        top: auto !important;
        width: auto !important;
        min-width: 0;
    }
}

/* ---------------------------------------------------------------
   Dashboard Cards — Green accents
   --------------------------------------------------------------- */

.portal-stat-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portal-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.portal-stat-card .stat-icon.bg-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.portal-stat-card .stat-icon.bg-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.portal-stat-card .stat-icon.bg-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.portal-stat-card .stat-icon.bg-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

/* ---------------------------------------------------------------
   Utility
   --------------------------------------------------------------- */

.portal-content {
    padding-top: 1rem;
}

/* Password strength meter */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.password-strength.weak    { background: #ef4444; width: 33%; }
.password-strength.medium  { background: #f59e0b; width: 66%; }
.password-strength.strong  { background: #10b981; width: 100%; }

/* ---------------------------------------------------------------
   Notifications
   --------------------------------------------------------------- */

/* ---- Notification cards ---- */
.notification-card {
    border: none;
    border-radius: 0.75rem;
    border-left: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.notification-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.notification-card.unread {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.notification-card.unread:hover {
    background: rgba(16, 185, 129, 0.06);
}

/* ---- Notification icon container ---- */
.notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-icon.ni-green {
    background: rgba(16, 185, 129, 0.10);
    color: #10b981;
}

.notification-icon.ni-blue {
    background: rgba(59, 130, 246, 0.10);
    color: #3b82f6;
}

.notification-icon.ni-amber {
    background: rgba(245, 158, 11, 0.10);
    color: #f59e0b;
}

.notification-icon.ni-purple {
    background: rgba(139, 92, 246, 0.10);
    color: #8b5cf6;
}

.notification-icon.ni-red {
    background: rgba(239, 68, 68, 0.10);
    color: #ef4444;
}

/* ---- Date group headers ---- */
.notification-date-group {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    padding: 0.25rem 0;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.notification-date-group:first-child {
    margin-top: 0;
}

/* ---- Empty state ---- */
.notification-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.notification-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

/* ---- Navbar dropdown notification items ---- */
.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: inherit;
    white-space: normal;
    border-radius: 8px;
    margin: 0.125rem 0.25rem;
    transition: background 0.12s ease;
}

.notif-dropdown-item:hover {
    background: #f3f4f6;
    color: inherit;
    text-decoration: none;
}

.notif-dropdown-item.notif-unread {
    background: rgba(16, 185, 129, 0.04);
}

.notif-dropdown-item.notif-unread:hover {
    background: rgba(16, 185, 129, 0.08);
}

.notif-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: #10b981;
    margin-top: 0.4rem;
}

.notif-dot.dot-read {
    background: transparent;
}

/* ---- Mark all btn ---- */
.btn-mark-all {
    color: #10b981;
    border-color: #10b981;
    transition: all 0.2s ease;
}

.btn-mark-all:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* ---- Pagination improved ---- */
.portal-pagination .page-item .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    min-width: 2rem;
    text-align: center;
    font-size: 0.8125rem;
    border: none;
    color: #6b7280;
    transition: all 0.15s ease;
}

.portal-pagination .page-item .page-link:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.portal-pagination .page-item.active .page-link {
    background: #10b981;
    color: #fff;
}

.portal-pagination .page-item.disabled .page-link {
    background: transparent;
    color: #d1d5db;
}

/* ---------------------------------------------------------------
   Dashboard — Welcome Header & Profile Completion
   --------------------------------------------------------------- */

.portal-welcome-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.01));
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 0.75rem;
}

.portal-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.portal-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.6s ease;
}

/* ---------------------------------------------------------------
   Dashboard — Quick Action Cards
   --------------------------------------------------------------- */

.portal-quick-action {
    padding: 1rem;
    border-radius: 0.625rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    text-align: center;
}

.portal-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.portal-qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portal-qa-icon.bg-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.portal-qa-icon.bg-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.portal-qa-icon.bg-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.portal-qa-icon.bg-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.portal-qa-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #31374a;
    margin-bottom: 0.125rem;
}

.portal-qa-desc {
    font-size: 0.7rem;
}

/* ---------------------------------------------------------------
   Documents — Payment Gateway Selection
   --------------------------------------------------------------- */
.payment-gw-label {
    transition: border-color 0.2s, background-color 0.2s;
}

.payment-gw-label.selected {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.12);
    color: #748194;
    margin-bottom: 0;
    line-height: 1.3;
}

/* ---------------------------------------------------------------
   Dashboard — Onboarding Card
   --------------------------------------------------------------- */

.portal-onboarding-card {
    border: 1px solid rgba(16, 185, 129, 0.15);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, #fff 100%);
}

.portal-onboarding-step {
    padding: 1.25rem 1rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    position: relative;
}

.portal-onboarding-step:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.portal-onboarding-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.portal-onboarding-icon {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------
   Dashboard — Commission Tier Card
   --------------------------------------------------------------- */

.portal-tier-card {
    border: 1px solid rgba(16, 185, 129, 0.12);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), #fff);
}

.portal-tier-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.625rem;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ---------------------------------------------------------------
   Dashboard — Chart Cards
   --------------------------------------------------------------- */

.portal-chart-card {
    border: none;
    border-radius: 0.75rem;
}

/* ---------------------------------------------------------------
   Dashboard — Responsive
   --------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .portal-welcome-header {
        padding: 1rem;
    }

    .portal-quick-action {
        padding: 0.75rem;
    }

    #chart-trend,
    #chart-donut {
        height: 220px !important;
    }
}


/* ---------------------------------------------------------------
   FAQ Page — Professional Accordion & Search Styling
   --------------------------------------------------------------- */

/* Search input */
.faq-search-input {
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}

.faq-search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.10);
    background: #fff;
}

.faq-search-input::placeholder {
    color: #b0b8c4;
}

/* Q badge in accordion button */
.faq-q-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.10);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Accordion container */
.faq-accordion .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px !important;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-accordion .accordion-item:hover {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

/* Accordion button */
.faq-accordion .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
    background: transparent;
    border-radius: 10px !important;
    transition: background 0.15s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(16, 185, 129, 0.04);
    color: inherit;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) .faq-q-badge {
    background: #10b981;
    color: #fff;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    transition: transform 0.25s ease;
}

/* Answer body */
.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin-left: 1.25rem;
    border-left: 3px solid rgba(16, 185, 129, 0.20);
    color: #5a6777;
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Hero card subtle animations */
.faq-hero {
    border-radius: 0.75rem;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .faq-search-input {
        font-size: 0.88rem;
    }

    .faq-accordion .accordion-button {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 1rem;
        margin-left: 0.75rem;
        font-size: 0.85rem;
    }

    .faq-q-badge {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 0.65rem;
    }
}
