:root {
    /* Primary Brand Colors - Coastal Corporate */
    --primary: #003B5C; /* Deep Pacific Blue */
    --primary-dark: #002A48; /* darker ocean depth */
    --accent: #C5A059; /* Coastal Gold for CTAs */
    /* used for hover states or secondary accents */
    --active-accent: #76A9C1; /* Soft Horizon Blue */

    /* Neutral / UI Colors - Light & Airy */
    --bg: #F8F9FA; /* White Sand */
    --card-bg: #FFFFFF;
    --text: #2D3436; /* Charcoal Slate */
    --text-muted: #6B7280;
    --border: #D1D5DB;

    /* Elite Banking System - Muted Palette */
    --glacier-blue: #0369A1;
    /* legacy backing variable now tied to primary-dark so templates using --navy continue working */
    --navy: var(--primary-dark);
    --platinum: #E2E8F0;
    --gold: #B48A32;
    /* More muted gold */
    --success-green: #15803D;
    /* Deeper green */
    --bg-gray: #F8FAFC;
    --section-gray: #F1F5F9;
    --border-light: rgba(15, 23, 42, 0.06);

    /* Professional Surfaces */
    --surface-paper: #FFFFFF;
    --surface-elevated: #F8FAFC;

    /* System - Compact Elite */
    --radius: 8px;
    --radius-sm: 4px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] {
    --primary: #38BDF8;
    --primary-dark: #0284C7;
    --accent: #38BDF8;
    --bg: #0F172A;
    /* Deep Navy */
    --card-bg: #1E293B;
    /* Slate Card */
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #334155;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Dashboard Specific Variables */
:root {
    --dashboard-bg: var(--bg);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;700&display=swap');

/* Hero gradient variables */
:root {
    --hero-start: #003B5C;
    --hero-end: #005B8E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Public Sans', 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'Roboto Mono', monospace !important;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.4;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

button,
.btn {
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    /* Compact */
    font-weight: 700;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--accent); /* Coastal Gold CTA */
    color: var(--text);
}

.btn-primary:hover {
    background-color: #b09245;
}

.btn-primary:hover {
    background-color: #168dbd;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px;
    /* Compact */
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.float {
    animation: float 6s ease-in-out infinite;
}

.slide-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

/* 🏗️ Elite Page Layouts */
.section-elite {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-gray);
}

.section-elite.alt {
    background: var(--section-gray);
}

.page-header-elite {
    text-align: center;
    margin-bottom: 80px;
}

.page-header-elite h1 {
    font-size: 3.5rem;
    color: var(--navy);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.page-header-elite p {
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.container-elite {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 🏔️ Elite Banking Components */
.card-elite {
    background: white;
    border: 1px solid var(--section-gray);
    border-radius: 20px;
    padding: 40px;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.card-elite:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
    border-color: var(--glacier-blue);
}

.icon-box-elite {
    width: 60px;
    height: 60px;
    background: rgba(3, 105, 161, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--glacier-blue);
    font-size: 1.8rem;
}

.badge-elite {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(3, 105, 161, 0.1);
    color: var(--glacier-blue);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(3, 105, 161, 0.1);
}

/* 🎬 Reveal Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: revealUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.reveal-delay-1 {
    animation-delay: 0.2s;
}

.reveal-delay-2 {
    animation-delay: 0.4s;
}

.reveal-delay-3 {
    animation-delay: 0.6s;
}

/* 🌌 Background Animations */
@keyframes bgIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(8deg);
    }
}

@keyframes bgIconSpin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.bg-snowflake {
    position: absolute;
    color: var(--glacier-blue);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    animation: bgIconFloat 15s infinite ease-in-out;
}

.bg-snowflake-spin {
    animation: bgIconSpin 40s infinite linear;
}

/* Grid & Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Section Styling */
section {
    padding: 120px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Carousel / Horizontal Scroll */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.carousel-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
    transition: 0.4s;
}

/* Tables */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
}

.premium-table th {
    background: #F8FAFC;
    padding: 12px 16px;
    /* Compact */
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.premium-table td {
    padding: 12px 16px;
    /* Compact */
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
    font-weight: 400;
    font-size: 0.85rem;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover td {
    background: rgba(0, 71, 171, 0.02);
}

/* Borders & Cards */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(to right, var(--primary), var(--accent)) 1;
}

.fancy-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
    border: 1px solid var(--border);
}

.fancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    z-index: -1;
    transition: 0.5s;
    opacity: 0.05;
}

.fancy-card:hover::before {
    height: 100%;
}

.fancy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-card {
    text-align: center;
}

.stat-card .number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.stat-card .label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

/* Premium Dashboard Additions */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    /* Reduced padding from 30px */
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 📱 Comprehensive Mobile Optimization System */
@media (max-width: 768px) {

    /* Base Typography & Spacing */
    :root {
        --radius: 16px;
    }

    body {
        font-size: 14px;
    }

    h1,
    h2 {
        letter-spacing: -1px !important;
    }

    /* Elite Headers */
    .page-header-elite h1 {
        font-size: 2.2rem !important;
    }

    .page-header-elite p {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    /* Section Spacing */
    section,
    .section-elite {
        padding: 60px 0 !important;
    }

    .container,
    .container-elite {
        padding: 0 20px !important;
    }

    /* Grid & Layout Adjustments */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-elite {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Dashboard Grid Stacking */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    aside {
        order: 2;
    }

    main {
        order: 1;
    }

    /* Card Scaling */
    .card-elite,
    .dashboard-card,
    .fancy-card {
        padding: 25px !important;
    }

    .balance-card .amount {
        font-size: 2rem !important;
    }

    /* Table Responsiveness */
    .premium-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .premium-table {
        min-width: 600px;
    }

    /* Carousel Items */
    .carousel-item {
        flex: 0 0 85% !important;
    }

    /* Form Elements */
    .form-input {
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS */
    }

    /* Icon Scales */
    .icon-box-elite {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    /* Stat Cards */
    .stat-card .number {
        font-size: 2.5rem !important;
    }

    /* Auth Page Adjustments */
    .auth-card {
        padding: 30px !important;
        box-shadow: none !important;
    }

    .mobile-show {
        display: block !important;
    }

    /* Utility Helpers */
    .mobile-hide {
        display: none !important;
    }

    .mobile-wrap {
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .mobile-full {
        width: 100% !important;
    }

    .mobile-center {
        text-align: center !important;
    }

    /* Footer Responsiveness */
    footer>div>div:last-child {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-header-elite h1 {
        font-size: 1.8rem !important;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-card {
        padding: 20px !important;
    }
}

/* Fix for horizontal scroll on some mobile browsers */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* GTranslate Widget Styling */
.gtranslate_wrapper {
    margin: 0 8px;
}

.gtranslate_wrapper a {
    display: inline-flex !important;
    align-items: center;
    transition: transform 0.2s;
}

.gtranslate_wrapper a:hover {
    transform: scale(1.1);
}

.gtranslate_wrapper img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .gtranslate_wrapper {
        margin: 0 4px;
    }
}

/* Navbar logo styling */
.site-logo {
    height: 60px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
}
.navbar-brand .site-logo {
    height: 60px;
    transition: height 0.3s ease;
}

.navbar-brand .site-logo {
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .site-logo {
        height: 60px;
        max-width: 180px;
    }
}

/* global hero image lightening */
.premium-hero .carousel-item img,
.premium-hero .carousel-item .bg-
{
    opacity: 0.6 !important;
    filter: brightness(1.15) !important;
}

/* 🔄 Premium Loading Animation System */

/* footer logo contrast fix */
.footer-logo img {
    filter: brightness(0) invert(1);
}
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* dark gradient using primary colors */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
    border: 2px solid var(--accent);
}

.loader-logo img {
    max-height: 80px;
    width: auto;
}

.loader-logo i {
    font-size: 2.5rem;
    color: var(--primary);
    animation: logoSpin 4s linear infinite;
}


/* logo icon color overridden above in loader-logo rule */

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border: 4px solid rgba(3, 105, 161, 0.1);
    border-top: 4px solid var(--glacier-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    animation: textPulse 2s ease-in-out infinite;
}

.loader-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    animation: subtextFade 1.5s ease-in-out infinite;
}

/* Loading Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes subtextFade {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Loading Dots Animation */
@keyframes dotFlashing {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* Inline Loader (for AJAX requests) */
.inline-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 167, 225, 0.2);
    border-top-color: var(--glacier-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

/* Skeleton Loading (for content placeholders) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Progress Bar Loader */
.progress-loader {
    width: 100%;
    height: 4px;
    background: rgba(3, 105, 161, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--glacier-blue);
    animation: progressSlide 1.5s ease-in-out infinite;
}

@keyframes progressSlide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ==========================================================================
   Elite USA Bank UI - Component Upgrades 2026
   ========================================================================== */

.elite-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.elite-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(3, 105, 161, 0.1) 0%, transparent 70%);
}

.hero-balance-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 8px;
    display: block;
}

.hero-balance-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-quick-stats {
    display: flex;
    gap: 24px;
}

.quick-stat-item i {
    color: var(--glacier-blue);
    margin-right: 8px;
}

.quick-stat-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* FICO / Credit Score Gauge */
.credit-score-widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 130px;
}

.gauge-chart {
    position: relative;
    width: 100px;
    height: 60px;
    margin: 0 auto 12px;
}

.gauge-level {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.gauge-label {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.6;
    text-transform: uppercase;
}

/* Elite Service Rail */
.elite-service-rail {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.service-item {
    flex: 1;
    min-width: 100px;
    background: var(--card-bg);
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--glacier-blue);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--bg);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.service-item:hover .service-icon {
    background: var(--glacier-blue);
    color: white;
}

.service-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

/* Insight Cards */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.insight-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.insight-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.insight-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.insight-trend {
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-up {
    color: var(--success-green);
}

.trend-down {
    color: var(--dash-danger);
}

/* Marketing / Feature Banner */
.elite-promo-banner {
    background: linear-gradient(90deg, #004a99 0%, #002244 100%);
    border-radius: 16px;
    padding: 24px 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.promo-content h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.promo-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.promo-btn {
    background: white;
    color: #004a99;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.3s;
}

.promo-btn:hover {
    background: var(--glacier-blue);
    color: white;
}

@media (max-width: 992px) {
    .elite-hero {
        grid-template-columns: 1fr;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .loader-logo {
        width: 60px;
        height: 60px;
    }

    .loader-logo i {
        font-size: 2rem;
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
    }

    .loader-text {
        font-size: 1.4rem;
    }

    .loader-subtext {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Elite USA Bank UI - Global Dashboard Styles (Compact)
   ========================================================================== */

:root {
    --dash-primary: #0F172A;
    --dash-accent: #0369A1;
    --dash-bg: #F4F7FA;
    --dash-card: #FFFFFF;
    --dash-text: #1E293B;
    --dash-muted: #64748B;
    --dash-border: #E2E8F0;
    --dash-success: #15803D;
    --dash-danger: #B91C1C;
}

[data-theme='dark'] {
    --dash-bg: #020617;
    --dash-card: #0f172a;
    --dash-text: #F1F5F9;
    --dash-accent: #38BDF8;
    --dash-border: rgba(255, 255, 255, 0.05);
    --dash-muted: #94A3B8;
}

.dashboard-wrapper {
    background: var(--dash-bg);
    min-height: 100vh;
    padding: 10px 0;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.welcome-section h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dash-text);
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.welcome-section p {
    color: var(--dash-muted);
    font-size: 0.8rem;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-widget {
    background: var(--dash-card);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-text);
    font-size: 0.7rem;
    font-weight: 600;
}

.date-widget i {
    color: var(--dash-accent);
}

.dashboard-card {
    background: var(--dash-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--dash-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Account Grid Compact */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.premium-card {
    height: 140px;
    border-radius: 12px;
    padding: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.account-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.card-middle .balance-amount {
    font-size: 1.6rem;
    font-weight: 800;
}

.acc-number {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Transactions & Split Layout */
.bottom-grid,
.analytics-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
}

.chart-container {
    height: 200px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--dash-border);
}

.tx-item:hover {
    background: rgba(30, 167, 225, 0.03);
}

.tx-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.tx-desc {
    font-weight: 700;
    font-size: 0.85rem;
}

.tx-date {
    font-size: 0.7rem;
    color: var(--dash-muted);
}

.tx-amount p {
    font-weight: 800;
    font-size: 0.85rem;
}

/* Transfer & Deposits Pages Page Layout */
.split-layout,
.transfer-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 12px;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Cards Layout */
.cards-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

@media (max-width: 1200px) {

    .bottom-grid,
    .analytics-row,
    .split-layout,
    .transfer-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Elite Compact */
.user-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    overflow: hidden;
    border: 2px solid var(--platinum);
}

.user-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.user-status {
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 700;
}

.nav-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    margin: 10px 0 5px 10px;
    opacity: 0.7;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.1s;
}

.nav-item.active {
    background: var(--surface-elevated);
    color: var(--navy);
    box-shadow: inset 3px 0 0 var(--glacier-blue);
}

.sidebar-widget {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
}

.sidebar-help {
    margin-top: auto;
    padding-top: 10px;
}

.help-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    border: 1px dashed var(--border);
}

/* ==========================================================================
   Elite Form & Interaction Styles
   ========================================================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dash-muted);
}

.input-with-icon,
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i,
.select-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--dash-accent);
    font-size: 0.85rem;
    opacity: 0.8;
}

.select-wrapper i.fa-chevron-down {
    left: auto;
    right: 12px;
    font-size: 0.7rem;
    pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-card);
    color: var(--dash-text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

.input-with-icon input {
    padding-left: 36px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--dash-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dash-accent);
}

.amount-field {
    height: 54px !important;
    font-size: 1.4rem !important;
    text-align: center;
    padding-left: 40px !important;
    border-width: 2px !important;
}

/* Alert Styles */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #DCFCE7;
}

/* Specialty Components */
.security-card {
    background: var(--dash-primary) !important;
    color: white !important;
    text-align: center;
}

.security-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-icon {
    width: 36px;
    height: 36px;
    background: var(--dash-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.security-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    margin-top: 8px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dash-muted);
}

.summary-item .value {
    color: var(--dash-text);
    font-weight: 800;
}

.status-ready {
    color: var(--dash-success);
    font-weight: 800;
}

.capture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}

.capture-box {
    border: 2px dashed var(--dash-border);
    border-radius: 12px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dash-bg);
    cursor: pointer;
    transition: 0.2s;
}

.capture-box:hover {
    border-color: var(--dash-accent);
    background: white;
}

.box-inner {
    text-align: center;
    color: var(--dash-muted);
}

.box-inner i {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
}

.box-inner span {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.rule-list {
    list-style: none;
    padding: 0;
}

.rule-list li {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dash-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-list li:last-child {
    border-bottom: none;
}

.rule-list li::before {
    content: '•';
    color: var(--dash-accent);
    font-weight: 900;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--dash-border);
}

.history-item:last-child {
    border-bottom: none;
}

.item-left strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dash-text);
}

.item-left span {
    font-size: 0.6rem;
    color: var(--dash-muted);
    font-weight: 700;
}

.item-right {
    text-align: right;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.status-tag.pending {
    background: #FFF7ED;
    color: #C2410C;
}

.status-tag.approved {
    background: #F0FDF4;
    color: #166534;
}

/* Buttons */
.btn-primary {
    background: var(--dash-accent);
    color: white;
    font-weight: 800;
    transition: 0.3s;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    padding: 0 20px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--dash-border) !important;
    color: var(--dash-text) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shadow-primary {
    box-shadow: 0 8px 20px -6px rgba(3, 105, 161, 0.4);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Elite Messaging System
   ========================================================================== */

.messages-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.thread-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    background: var(--dash-card);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--dash-border);
}

.group-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dash-muted);
    margin-bottom: 12px;
    display: block;
}

.filter-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-nav .nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dash-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.filter-nav .nav-item:hover,
.filter-nav .nav-item.active {
    background: var(--dash-bg);
    color: var(--dash-accent);
}

.security-notice {
    background: var(--dash-primary);
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.security-notice i {
    font-size: 1.5rem;
    color: var(--dash-accent);
    margin-bottom: 10px;
}

.security-notice h4 {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.security-notice p {
    font-size: 0.7rem;
    opacity: 0.7;
    line-height: 1.4;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thread-card {
    background: var(--dash-card);
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    transition: 0.2s;
}

.thread-card:hover {
    border-color: var(--dash-accent);
}

.thread-card.unread {
    border-left: 4px solid var(--dash-accent);
    background: rgba(3, 105, 161, 0.02);
}

.thread-card .card-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--dash-border);
}

.sender-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sender-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dash-bg);
    color: var(--dash-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid var(--dash-border);
}

.sender-avatar.me {
    background: var(--dash-primary);
    color: white;
}

.sender-avatar.system {
    background: var(--dash-accent);
    color: white;
}

.sender-meta strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sender-meta span {
    font-size: 0.7rem;
    color: var(--dash-muted);
}

.unread-tag {
    background: var(--dash-accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
}

.thread-card .card-body {
    padding: 15px;
}

.thread-card .card-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--dash-text);
}

.thread-card .card-actions {
    padding: 10px 15px;
    background: var(--dash-bg);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    gap: 15px;
}

.action-link {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--dash-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-link:hover {
    color: var(--dash-accent);
}

.action-link.danger:hover {
    color: var(--dash-danger);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-container {
    background: var(--dash-card);
    width: 500px;
    max-width: 95%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dash-muted);
    cursor: pointer;
}

.modal-form {
    padding: 20px;
}

.modal-form textarea {
    height: 120px;
    padding-top: 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ==========================================================================
   Elite Profile Metadata
   ========================================================================== */

.profile-layout {
    display: grid;
    gap: 20px;
}

.profile-hero {
    padding: 24px !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.avatar-manager {
    display: flex;
    gap: 30px;
    align-items: center;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: var(--dash-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #0f172a;
}

.profile-meta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: white;
}

.email-sub {
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-group {
    display: flex;
    gap: 10px;
}

.id-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge.verified {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.profile-details {
    padding: 0 !important;
    overflow: hidden;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.form-section {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.form-section .section-header i {
    color: var(--dash-accent);
    font-size: 1.1rem;
}

.form-section .section-header h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.static-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.readonly-note {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-actions {
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Profile Page Form Inputs Dark Theme */
.profile-details input[type="text"],
.profile-details input[type="email"],
.profile-details input[type="tel"],
.profile-details textarea,
.profile-details select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
}

.profile-details input[type="text"]:focus,
.profile-details input[type="email"]:focus,
.profile-details input[type="tel"]:focus,
.profile-details textarea:focus,
.profile-details select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--dash-accent);
    outline: none;
}

.profile-details input::placeholder,
.profile-details textarea::placeholder {
    color: #64748b;
}

.profile-details .form-group label {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.input-with-icon input {
    padding-left: 40px;
}

@media (max-width: 992px) {
    .messages-grid {
        grid-template-columns: 1fr;
    }

    .thread-sidebar {
        position: static;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Elite Virtual Cards
   ========================================================================== */

.virtual-card-item {
    min-height: 200px;
    perspective: 1000px;
}

.card-glass {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(3, 105, 161, 0.2), transparent 70%);
}

.virtual-card-item.frozen .card-glass {
    opacity: 0.6;
    filter: grayscale(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.brand {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.brand .light {
    font-weight: 300;
    opacity: 0.7;
}

.contactless {
    font-size: 1.2rem;
    opacity: 0.8;
}

.chip-row {
    margin-top: 15px;
    z-index: 1;
}

.card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
    border-radius: 4px;
    position: relative;
}

.card-chip::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0, 0, 0, 0.1) 4px, rgba(0, 0, 0, 0.1) 5px);
}

.number-row {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin: 20px 0;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.meta-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    z-index: 1;
}

.meta-item span {
    font-size: 0.5rem;
    font-weight: 800;
    opacity: 0.6;
    display: block;
    margin-bottom: 2px;
}

.meta-item p {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
}

.card-logo {
    margin-left: auto;
    font-size: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* 🦴 Skeleton Loaders & Micro-Animations */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    display: inline-block;
    position: relative;
    animation: shimmer 1.5s linear infinite forwards;
}

.dark .skeleton {
    background: #1e293b;
    background-image: linear-gradient(to right, #1e293b 0%, #334155 20%, #1e293b 40%, #1e293b 100%);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.reveal-delay-1 {
    animation-delay: 0.1s;
}

.reveal-delay-2 {
    animation-delay: 0.2s;
}

.reveal-delay-3 {
    animation-delay: 0.3s;
}


.card-desc span {
    font-size: 0.5rem;
    font-weight: 800;
    opacity: 0.6;
    display: block;
}

.card-desc strong {
    font-size: 0.85rem;
    color: var(--dash-accent);
}

.manage-btn {
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.manage-btn:hover {
    background: var(--dash-accent);
}

.frozen-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: var(--dash-danger);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border: 2px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--dash-bg);
    color: var(--dash-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.1rem;
}

.feature-card h4 {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.7rem;
    color: var(--dash-muted);
    line-height: 1.4;
}

.empty-state {
    text-align: center;
    padding: 60px 20px !important;
}

.empty-icon {
    font-size: 3rem;
    color: var(--dash-border);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--dash-muted);
    max-width: 400px;
    margin: 0 auto 25px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Elite Tables & Utilities
   ========================================================================== */

.table-responsive {
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    background: var(--dash-bg);
    padding: 10px 16px;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dash-muted);
    border-bottom: 1px solid var(--dash-border);
}

.premium-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--dash-border);
    vertical-align: middle;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(3, 105, 161, 0.1);
    color: var(--dash-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.user-details strong {
    display: block;
    color: var(--dash-text);
    font-weight: 700;
}

.user-details span {
    font-size: 0.7rem;
    color: var(--dash-muted);
}

.rail-info code {
    display: inline-block;
    background: var(--dash-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--dash-primary);
    font-size: 0.8rem;
}

.swift-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--dash-accent);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.bank-details strong {
    display: block;
    color: var(--dash-text);
    font-weight: 700;
}

.bank-details span {
    font-size: 0.7rem;
    color: var(--dash-success);
    font-weight: 800;
    text-transform: uppercase;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
}

.icon-btn.success {
    background: rgba(21, 128, 61, 0.1);
    color: var(--dash-success);
}

.icon-btn.success:hover {
    background: var(--dash-success);
    color: white;
}

.icon-btn.danger {
    background: rgba(185, 28, 28, 0.1);
    color: var(--dash-danger);
}

.icon-btn.danger:hover {
    background: var(--dash-danger);
    color: white;
}

.empty-table {
    text-align: center;
    padding: 40px !important;
    color: var(--dash-muted);
}

.empty-table i {
    font-size: 2.5rem;
    opacity: 0.2;
    margin-bottom: 10px;
}

.text-right {
    text-align: right;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ==========================================================================
   Elite Loans & Credit
   ========================================================================== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px !important;
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(3, 105, 161, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-accent);
    font-size: 1.1rem;
}

.stat-content span {
    font-size: 0.65rem;
    color: var(--dash-muted);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.stat-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--dash-text);
}

.notice-card {
    display: flex;
    gap: 15px;
    padding: 16px !important;
    background: #F0F9FF !important;
    border-color: #BAE6FD !important;
}

.notice-icon {
    color: var(--dash-accent);
    font-size: 1.2rem;
}

.notice-content h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0C4A6E;
}

.notice-content p {
    font-size: 0.8rem;
    color: #075985;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Elite KYC & Verification
   ========================================================================== */

.status-timeline {
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

.timeline-line {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dash-bg);
    border-radius: 2px;
    z-index: 1;
}

.line-progress {
    height: 100%;
    background: var(--dash-accent);
    border-radius: 2px;
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step .dot {
    width: 36px;
    height: 36px;
    background: white;
    border: 3px solid var(--dash-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.step span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dash-muted);
}

.step.active .dot {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
}

.step.active span {
    color: var(--dash-text);
}

.step.verified .dot {
    border-color: var(--dash-success);
    background: var(--dash-success);
    color: white;
}

.current-status-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--dash-bg);
    border-radius: 12px;
    border: 1px solid var(--dash-border);
}

.current-status-strip .status-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.doc-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.doc-option input {
    display: none;
}

.option-content {
    padding: 15px;
    background: var(--dash-bg);
    border: 2px solid var(--dash-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.option-content i {
    font-size: 1.2rem;
    color: var(--dash-muted);
}

.option-content span {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--dash-muted);
}

.doc-option input:checked+.option-content {
    border-color: var(--dash-accent);
    background: white;
}

.doc-option input:checked+.option-content i {
    color: var(--dash-accent);
}

.doc-option input:checked+.option-content span {
    color: var(--dash-text);
}

.drop-zone {
    position: relative;
    height: 160px;
    border: 2px dashed var(--dash-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    background: var(--dash-bg);
}

.drop-zone:hover {
    border-color: var(--dash-accent);
    background: rgba(3, 105, 161, 0.02);
}

.drop-zone h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.drop-zone p {
    font-size: 0.75rem;
    color: var(--dash-muted);
}

.drop-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.security-requirements {
    background: var(--dash-bg);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--dash-accent);
    margin: 20px 0;
}

.security-requirements ul {
    margin: 10px 0 0;
    padding-left: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.security-requirements li {
    font-size: 0.75rem;
    color: var(--dash-muted);
    font-weight: 600;
}

@media (max-width: 768px) {

    .doc-type-grid,
    .security-requirements ul {
        grid-template-columns: 1fr;
    }
}