/* ===================================
   SalamiPay - Premium Design System
   =================================== */

/* --- CSS Custom Properties --- */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52E0;
    --primary-light: #8B85FF;
    --secondary: #FF6B9D;
    --accent: #00D2FF;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;

    --dark-bg: #0A0E27;
    --dark-surface: #131837;
    --dark-card: #1A1F45;
    --dark-border: rgba(108, 99, 255, 0.15);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #FF6B9D 100%);
    --gradient-hero: linear-gradient(135deg, #0A0E27 0%, #1A1040 30%, #0D1B3E 60%, #0A0E27 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 31, 69, 0.8) 0%, rgba(19, 24, 55, 0.9) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-primary: 'Inter', 'Noto Sans Bengali', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}
a:hover {
    color: var(--secondary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* --- Navbar --- */
#mainNav {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1050;
}

#mainNav.scrolled {
    background: rgba(10, 14, 39, 0.97);
    box-shadow: var(--shadow-md);
}

.brand-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--glass-bg);
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(255, 107, 157, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, 3%) rotate(3deg); }
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 50%;
    left: 40%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
    color: white;
}

.btn-hero-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    color: white;
    transform: translateY(-3px);
}

/* Hero Illustration / Stats Cards */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: var(--gradient-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.hero-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-card-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
}

.hero-card-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Features Section --- */
.features-section {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    opacity: 0.2;
    filter: blur(15px);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- How It Works --- */
.howit-section {
    padding: 6rem 0;
    background: var(--dark-surface);
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Step connector line */
.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 4.25rem;
        left: calc(50% + 40px);
        width: calc(100% - 80px);
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        opacity: 0.3;
    }
}

/* --- Auth Pages --- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 3rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* --- Form Styles --- */
.form-floating > .form-control,
.form-floating > .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    height: 56px;
    padding-top: 1.625rem;
    transition: var(--transition);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    background: rgba(108, 99, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    color: var(--text-primary);
}

.form-floating > label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-light);
}

.form-select option {
    background: var(--dark-card);
    color: var(--text-primary);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
    color: white;
}

.btn-submit:hover::before {
    opacity: 1;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--primary-light);
    font-weight: 600;
}

/* ====================================
   Dashboard Layout — Sidebar System
   ==================================== */

/* -- Dashboard wrapper -- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--dark-bg);
}

/* -- Sidebar -- */
.dash-sidebar {
    width: 270px;
    min-height: 100vh;
    background: var(--dark-surface);
    border-right: 1px solid var(--dark-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    overflow-x: hidden;
}

.dash-sidebar::-webkit-scrollbar { width: 3px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 3px; }

/* Sidebar brand */
.sidebar-brand {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--dark-border);
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

/* Sidebar nav */
.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}

.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0.75rem 0.75rem 0.4rem;
    margin-top: 0.5rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.sidebar-nav-item i {
    width: 20px;
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-item:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    font-weight: 600;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: 0 3px 3px 0;
    background: var(--gradient-primary);
}

.sidebar-nav-badge {
    margin-left: auto;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar user profile */
.sidebar-user {
    padding: 1rem 1rem;
    border-top: 1px solid var(--dark-border);
    flex-shrink: 0;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-border);
    transition: var(--transition);
}

.sidebar-user-card:hover {
    background: rgba(108, 99, 255, 0.06);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-logout-btn:hover {
    color: var(--danger);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1039;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* -- Main content area -- */
.dash-main {
    flex: 1;
    margin-left: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-toggle:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--primary);
}

.topbar-greeting {
    flex: 1;
    min-width: 0;
}

.topbar-greeting h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-greeting p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

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

.topbar-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.topbar-action-btn:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Dashboard content */
.dash-content {
    padding: 1.5rem;
    flex: 1;
}

/* -- Dashboard Section -- */
.dashboard-section {
    min-height: auto;
    background: transparent;
    padding: 0;
}

/* Stat cards */
.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.stat-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard table */
.table-container {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-container .table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table-container .table thead th {
    background: rgba(108, 99, 255, 0.08);
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table-container .table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    font-size: 0.85rem;
}

.table-container .table tbody tr:hover {
    background: rgba(108, 99, 255, 0.04);
}

.table-container .table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-verified {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

/* Share link card */
.share-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.share-link-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
}

.share-link-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
}

.btn-copy {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    color: white;
}

/* -- Mobile Bottom Nav -- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(19, 24, 55, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--dark-border);
    padding: 0.4rem 0.5rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-nav-item.active {
    color: var(--primary-light);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 0 0 2px 2px;
}

.mobile-nav-item:hover {
    color: var(--primary-light);
}

/* Content section cards */
.dash-section-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dark-border);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dash-section-body {
    padding: 1.25rem;
}

/* MFS mini cards inside dashboard */
.mfs-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mfs-mini-card:hover {
    border-color: rgba(108, 99, 255, 0.25);
    background: rgba(108, 99, 255, 0.04);
}

.mfs-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mfs-mini-info {
    flex: 1;
    min-width: 0;
}

.mfs-mini-name {
    font-weight: 700;
    font-size: 0.85rem;
}

.mfs-mini-number {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.mfs-mini-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mfs-mini-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mfs-primary-star {
    color: var(--warning);
    font-size: 0.7rem;
}

/* ====================================
   Dashboard Responsive
   ==================================== */

/* Tablet: sidebar collapses, toggle visible */
@media (max-width: 991.98px) {
    .dash-sidebar {
        transform: translateX(-100%);
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }

    .dash-main {
        margin-left: 0;
    }

    .topbar-toggle {
        display: flex;
    }
}

/* Mobile: bottom nav appears */
@media (max-width: 767.98px) {
    .dash-content {
        padding: 1rem;
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: block;
    }

    .stat-card {
        padding: 1.1rem;
    }

    .stat-card-value {
        font-size: 1.3rem;
    }

    .stat-card-label {
        font-size: 0.65rem;
    }

    .dash-section-header {
        padding: 0.85rem 1rem;
    }

    .dash-section-body {
        padding: 1rem;
    }

    .table-container .table thead th {
        padding: 0.7rem 0.75rem;
        font-size: 0.68rem;
    }

    .table-container .table td {
        padding: 0.7rem 0.75rem;
        font-size: 0.8rem;
    }

    .share-link-box {
        flex-direction: column;
    }

    .share-link-box input {
        text-align: center;
        width: 100%;
    }

    .mfs-mini-card {
        padding: 0.7rem 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 359px) {
    .stat-card-value {
        font-size: 1.1rem;
    }

    .dash-content {
        padding: 0.75rem;
    }
}

/* --- Profile Page --- */
.profile-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 3rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.profile-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}

.profile-header {
    background: var(--gradient-primary);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    position: relative;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    position: relative;
}

.profile-username {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
}

.profile-mfs {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--dark-border);
}

.mfs-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
}

.mfs-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.profile-form {
    padding: 2rem;
}

.profile-form .form-floating {
    margin-bottom: 1rem;
}

.profile-form textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.profile-form .form-floating > textarea.form-control {
    height: auto;
    min-height: 80px;
}

/* --- Flash Messages --- */
.flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 90%;
    max-width: 500px;
}

.flash-container .alert {
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(20px);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: var(--success) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.alert-info {
    background: rgba(0, 210, 255, 0.15) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(0, 210, 255, 0.3) !important;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-surface);
    padding: 2rem 0;
    border-top: 1px solid var(--dark-border);
    position: relative;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Utilities --- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- 404 Page --- */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    padding-top: 80px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.error-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .auth-card {
        padding: 1.75rem;
        margin: 0 0.5rem;
    }

    .profile-card {
        margin: 0 0.5rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card-value {
        font-size: 1.4rem;
    }

    .table-container {
        border-radius: var(--radius-md);
    }

    .table-responsive {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 576px) {
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .share-link-box {
        flex-direction: column;
    }
    
    .share-link-box input {
        text-align: center;
        width: 100%;
    }
}

/* --- Page Transition --- */
.page-enter {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MFS specific colors */
.mfs-bkash { background: rgba(226, 19, 110, 0.15); color: #E2136E; }
.mfs-nagad { background: rgba(246, 146, 30, 0.15); color: #F6921E; }
.mfs-rocket { background: rgba(139, 45, 139, 0.15); color: #8B2D8B; }
.mfs-upay { background: rgba(11, 132, 87, 0.15); color: #0B8457; }
.mfs-other { background: rgba(108, 99, 255, 0.15); color: #6C63FF; }

/* Amount input styling */
.amount-display {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 0.5rem 0;
}

/* Success animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Toggle status button */
.btn-toggle-status {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-toggle-status:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
}
/* --- Profile Settings & Utilities --- */
.profile-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 2px solid var(--dark-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-upload-btn:hover {
    background: var(--primary-light);
    transform: scale(1.15);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.topbar-greeting h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0;
}

.topbar-greeting p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0;
}
