@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 100 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazirmatn/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazirmatn/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lalezar';
    src: url('fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Vazirmatn', sans-serif;
}

@font-face {
    font-family: 'bootstrap-icons';
    src: url('lib/bootstrap-icons/font/fonts/bootstrap-icons.woff2') format('woff2'),
         url('lib/bootstrap-icons/font/fonts/bootstrap-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.bi, [class^="bi-"], [class*=" bi-"] {
    font-family: 'bootstrap-icons' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --secondary-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --tertiary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --text-main: #1e3c72;
    --text-muted: #555;
    --radius-lg: 24px;
    --radius-md: 16px;
}

body {
    background-color: transparent !important;
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

html {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

/* --- Layout System --- */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10; /* Restored to original */
    height: auto !important;
}

.main-content-v3 {
    flex: 1;
    padding: 8px 30px 30px 30px; /* Even more reduced top padding for tighter look */
    width: 100%;
}

/* --- Glass Navbar (Top Horizontal) --- */
.glass-navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.6) !important; /* Darker glass for premium look */
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000; /* Stays below menu-overlay but above content */
    direction: rtl !important;
}

.nav-brand-v3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.nav-brand-v3 i {
    color: #00f2fe;
    filter: drop-shadow(0 0 8px #00f2fe);
}

.nav-links-v3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.nav-link-v3 {
    padding: 10px 22px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    border: 1px solid transparent;
}

.nav-link-v3 i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.nav-link-v3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-link-v3.active {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.nav-profile-v3 {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* --- Finance & Input Styles --- */
.p-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.p-input-container .input-icon {
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: #00f2fe;
    opacity: 0.8;
}

.p-finance-input-v2 {
    width: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darker background for more "input" feel */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 18px 60px 18px 20px;
    color: #ffffff !important;
    font-size: 2rem; /* Slightly larger */
    font-weight: 900;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-align: left;
    direction: ltr;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); /* Inner shadow for depth */
}

.p-finance-input-v2:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #00f2fe;
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.6), 0 0 25px rgba(0, 242, 254, 0.2);
}

.p-finance-input-v2::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 400;
    direction: rtl;
    text-align: right;
    text-shadow: none;
}

/* Helper Utilities */
.x-small { font-size: 0.75rem !important; }

@media (max-width: 768px) {
    .pagesize-select-v2 {
        display: none !important;
    }
}

.q-chip-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.q-chip-v2:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    transform: translateY(-2px);
}

.cyber-btn-v3 {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none !important;
    color: #000000 !important;
    text-shadow: none;
    transition: all 0.3s ease;
}

.cyber-btn-v3:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4) !important;
}

.cyber-btn-v3-danger {
    background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%);
    border: none !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.cyber-btn-v3-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(248, 7, 89, 0.4) !important;
}

.info-step-v2 .step-icon {
    font-size: 1.5rem;
    color: #00f2fe;
    opacity: 0.9;
}

.info-step-v2 p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-logout-v4 {
    background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%);
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    min-width: 50px !important;
    height: 50px !important;
    width: 50px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 1.05rem !important;
}

.btn-logout-v4:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(248, 7, 89, 0.5) !important;
    filter: brightness(1.1) !important;
}

.btn-logout-v4 i {
    font-size: 1.6rem !important;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* --- Premium Notifications (SweetAlert Style) --- */
.parseh-alert-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.parseh-alert-container.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.parseh-alert {
    width: 420px;
    background: #ffffff;
    border-radius: 35px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.parseh-alert-container.show .parseh-alert {
    transform: scale(1);
}

.alert-icon {
    font-size: 5.5rem;
    margin-bottom: 5px;
}

.alert-title {
    font-size: 1.8rem;
    font-weight: 950;
    color: #1e3c72;
    margin: 0;
}

.alert-message {
    font-size: 1.1rem;
    color: #444;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.alert-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 60px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
    cursor: pointer;
}

.alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
    filter: brightness(1.1);
}

/* --- Responsive Mobile Dashboard Cards --- */
@media (max-width: 768px) {
    .main-content-v3 {
        padding: 5px 10px 10px 10px !important;
    }

    .cyber-wallet-cash, .cyber-wallet-voucher, .cyber-wallet-credit, .cyber-wallet-clock {
        min-height: 80px !important; /* Increased height for better look */
        height: 80px !important;
        margin-bottom: 8px !important; /* Closer but distinct cards */
        border-radius: 18px !important;
        background: rgba(0,0,0,0.4) !important; /* Darker for better contrast */
    }

    .cyber-wallet-cash .cyber-content, 
    .cyber-wallet-voucher .cyber-content, 
    .cyber-wallet-credit .cyber-content, 
    .cyber-wallet-clock .cyber-content {
        flex-direction: row !important; /* Icon RIGHT, Text LEFT in RTL flow */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
        height: 100% !important;
        display: flex !important;
    }

    .cyber-wallet-cash i, 
    .cyber-wallet-voucher i, 
    .cyber-wallet-credit i, 
    .cyber-wallet-clock i {
        font-size: 1.8rem !important;
        margin: 0 !important;
        order: 2 !important; /* Force icon to the RIGHT */
        color: #00f2fe !important;
        filter: drop-shadow(0 0 5px rgba(0,242,254,0.3));
    }

    /* Text group on the LEFT */
    .cyber-wallet-cash .cyber-content > div:not(.wallet-icon-v5),
    .cyber-wallet-voucher .cyber-content > div:not(.wallet-icon-v5),
    .cyber-wallet-credit .cyber-content > div:not(.wallet-icon-v5),
    .cyber-wallet-clock .cyber-content > div:not(.wallet-icon-v5) {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: right !important;
        gap: 2px !important;
    }

    .cyber-wallet-cash h5, 
    .cyber-wallet-voucher h5, 
    .cyber-wallet-credit h5, 
    .cyber-wallet-clock h5 {
        font-size: 0.85rem !important;
        margin: 0 !important;
        opacity: 0.6;
    }

    .cyber-wallet-cash h2, 
    .cyber-wallet-voucher h2, 
    .cyber-wallet-credit h2 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        font-weight: 900 !important;
    }
}

/* --- Cyber Glass & Neon Borders (Ultimate Creativity) --- */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    to { --angle: 360deg; }
}

.cyber-card {
    position: relative;
    border-radius: var(--cyber-radius, 30px);
    padding: var(--cyber-border-width, 4px);
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    height: 100%;
}

.cyber-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200vw; /* Massive size prevents corner clipping on wide boxes */
    height: 200vw;
    background: conic-gradient(from var(--angle), transparent 0%, var(--glow-1, #00f2fe) 15%, var(--glow-2, #4facfe) 30%, transparent 45%);
    animation: spin-border 4s linear infinite;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.cyber-card::after {
    content: '';
    position: absolute;
    inset: var(--cyber-border-width, 4px);
    background: var(--card-bg, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: calc(var(--cyber-radius, 30px) - var(--cyber-border-width, 4px));
    z-index: -1;
}

.cyber-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Clock & Time Display */
.clock-text-v2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.date-text-v2 {
    font-size: 1rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .clock-text-v2 {
        font-size: 1.8rem;
    }
    .date-text-v2 {
        font-size: 0.9rem;
    }
}

/* Search & Sort UI Improvements - Enhanced Visibility */
.search-box-v2, .sort-select-v2, .pagesize-select-v2 {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    border-radius: 12px !important;
    padding: 4px 15px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.search-box-v2:focus-within, .sort-select-v2:focus-within, .pagesize-select-v2:focus-within {
    border-color: #00f2fe !important;
    background: rgba(0, 242, 254, 0.1) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.search-box-v2 i, .sort-select-v2 i, .pagesize-select-v2 i {
    color: #00f2fe;
    font-size: 1.1rem;
}

/* Hamburger Menu Visibility Fix */
.hamburger-v4 {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 100001;
    margin-right: 15px;
}

.hamburger-v4 span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .hamburger-v4 {
        display: flex;
    }
    .nav-links-v3 {
        display: none !important;
    }
}

/* Custom Dropdown/Select Styling for Cyber Theme */
select.form-select, select.form-control {
    background-color: transparent !important;
    color: #ffffff !important;
}

select.form-select option, select.form-control option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px;
}

/* Ensure placeholder text in select has proper color */
select.form-select:invalid, select.form-control:invalid {
    color: rgba(255, 255, 255, 0.5) !important;
}

.cyber-glass-white {
    --glow-1: #fa709a;
    --glow-2: #fee140;
    --card-bg: rgba(255, 255, 255, 0.85);
    color: white;
}

.cyber-glass-dark {
    --glow-1: #00f2fe;
    --glow-2: #4facfe;
    --card-bg: rgba(0, 0, 0, 0.4);
    color: white;
}

/* THE ABSOLUTE SOLID FIX FOR DASHBOARD & ADMIN & MODALS */
/* This ensures all cards, tables, and MODALS in private areas are solid black/grey gradient but keep SPINNING BORDERS */
.dashboard-container:not(.public-store) .cyber-card,
.modal-content.cyber-glass-dark,
.modal-content.cyber-glass-white,
.modal-content {
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dashboard-container:not(.public-store) .cyber-card::after,
.modal-content.cyber-glass-dark::after,
.modal-content.cyber-glass-white::after,
.modal-content::after {
    content: "" !important;
    position: absolute !important;
    inset: var(--cyber-border-width, 4px) !important;
    background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    display: block !important;
    z-index: -1 !important;
    border-radius: calc(var(--cyber-radius, 30px) - var(--cyber-border-width, 4px)) !important;
}

/* Allow spinning borders in private areas and modals */
.dashboard-container:not(.public-store) .cyber-card::before,
.modal-content.cyber-glass-dark::before,
.modal-content.cyber-glass-white::before,
.modal-content::before {
    display: block !important;
    opacity: 0.6;
}

/* Fix for tables inside these cards */
.dashboard-container:not(.public-store) .table-responsive,
.dashboard-container:not(.public-store) .table {
    background: transparent !important;
    color: white !important;
}

.dashboard-container:not(.public-store) .table thead {
    background: linear-gradient(to bottom, #2c2c2c, #1a1a1a) !important;
    border-bottom: 2px solid #333 !important;
}

/* Re-enable Glass for Public Store ONLY */
.public-store .cyber-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the main store wrapper is visible and glass */
.store-main-wrapper {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Global Table Responsiveness and Styling */
.table-responsive {
    border-radius: 15px !important;
    overflow-x: auto !important;
}

@media (max-width: 768px) {
    .table thead {
        display: none; /* Hide headers on mobile */
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 15px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px !important;
        border: none !important;
        text-align: left !important;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #00f2fe;
        margin-left: 10px;
        font-size: 0.85rem;
    }

    /* Actions column full width */
    .table tbody td:last-child {
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 10px;
        padding-top: 15px !important;
    }
}
.cyber-card, .main-img-display, .thumb-box, .card-image-area, .product-img-wrapper {
    overflow: hidden !important;
    position: relative;
}

.display-img, .card-img, .product-img {
    border-radius: inherit;
    display: block;
}

.cyber-wallet-cash {
    --glow-1: #00f2fe;
    --glow-2: rgba(0, 242, 254, 0.2);
    --card-bg: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: white;
}

.cyber-wallet-voucher {
    --glow-1: #fee140;
    --glow-2: rgba(254, 225, 64, 0.2);
    --card-bg: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: white;
}

.cyber-wallet-credit {
    --glow-1: #b06ab3;
    --glow-2: rgba(176, 106, 179, 0.2);
    --card-bg: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: white;
}

.cyber-wallet-clock {
    --glow-1: #ffffff;
    --glow-2: rgba(255, 255, 255, 0.2);
    --card-bg: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: white;
}

.cyber-pill {
    /* Removed, replaced by cyber-wallet-clock */
}

.wallet-icon-v5 {
    width: 65px;
    height: 65px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.cyber-card:hover .wallet-icon-v5 {
    transform: rotate(0deg) scale(1.1);
}


/* --- Typography & Utilities --- */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Global Glow Effects for Glass Panels */
.glass-navbar, .store-public-nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
}

/* .dashboard-container.public-store padding removed to avoid overlap issues */

.glass-navbar::after, .store-public-nav::after {
    display: none !important;
}

.glass-navbar::before, .store-public-nav::before {
    display: none !important;
    content: none !important;
}

/* Logo and Logout Glow */
.nav-brand-v3, .btn-logout-v4, .nav-profile-v3 {
    position: relative;
}

.nav-brand-v3::before, .btn-logout-v4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(0, 242, 254, 0) 70%);
    filter: blur(12px);
    z-index: -1;
    pointer-events: none;
}

.fw-900 { font-weight: 900 !important; }

/* Responsive Navbar */
@media (max-width: 992px) {
    .glass-navbar {
        padding: 15px 20px;
    }
    .nav-links-v3 {
        display: none; /* Mobile menu will be handled separately if needed */
    }
    .main-content-v3 {
        padding: 15px;
    }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Move to bottom-most layer */
    pointer-events: none;
    background: transparent !important;
}

#canvas-container.home-canvas {
    position: absolute !important;
}

/* Ensure main content is above the background effects */
.main-content-wrapper, 
.content-wrapper,
main {
    position: relative;
    z-index: 10;
}



/* --- Top Navigation & Hamburger --- */
.top-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Base styles for the hamburger menu */
.hamburger {
    background: rgba(30, 60, 114, 0.9); /* Dark navy background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: #ffffff; /* White lines */
    border-radius: 2px;
}

.hamburger:hover {
    background: rgba(30, 60, 114, 1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* --- Auth Page Styles --- */
.auth-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 3px solid #1e3c72; /* Thick navy border */
    pointer-events: auto;
    direction: rtl;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #1e3c72;
    font-weight: 900;
    margin-bottom: 10px;
}

.auth-header p {
    color: #555;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e3c72;
}

.auth-input {
    width: 100%;
    padding: 15px;
    border: 3px solid #e0e0e0; /* Thick border */
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.auth-input:focus {
    outline: none;
    border-color: #1e3c72; /* Navy focus */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

.otp-input {
    text-align: center;
    letter-spacing: 5px;
    font-size: 1.5rem;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a235a 100%); /* Navy to dark purple gradient */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.5);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-resend {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: #1e3c72;
    border: 2px solid #1e3c72;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resend:hover:not(:disabled) {
    background: #f0f4f8;
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

.btn-link {
    background: none;
    border: none;
    color: #4a235a; /* Dark purple */
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.dir-rtl {
    direction: rtl;
}

.dir-ltr {
    direction: ltr;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Default hide */
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98); /* DARK background as requested */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100001 !important; /* Above everything */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 40px 25px;
    visibility: hidden;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-overlay.active {
    right: 0;
    visibility: visible;
}

/* Adjust mobile width for menu */
@media (max-width: 576px) {
    .menu-overlay {
        width: 100%;
        right: -100%;
    }
}

.menu-item {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #00f2fe !important;
    padding-right: 25px;
}

.menu-item.active {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe !important;
}

.menu-item-close {
    background: rgba(248, 7, 89, 0.1) !important;
    color: #f80759 !important;
    border: 1px solid rgba(248, 7, 89, 0.2) !important;
    justify-content: center;
}

.menu-item-close:hover {
    background: #f80759 !important;
    color: white !important;
}

/* Base style for auth pages wrapper */
.auth-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass to canvas if outside box */
    /* Remove any background color from wrapper so body background shows through */
    background: transparent !important; 
}

/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.otp-info-box {
    background: rgba(30, 60, 114, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border-right: 4px solid #1e3c72;
    text-align: right;
}

.otp-info-box p {
    margin: 0;
    line-height: 1.6;
}

.btn-back-home {
    position: absolute;
    bottom: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(30, 60, 114, 0.3);
    color: #1e3c72;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 15;
    pointer-events: auto; /* Explicitly enable clicks */
}

.btn-back-home:hover {
    background: #1e3c72;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-close-menu {
    background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 30px !important;
    font-weight: 900 !important;
    width: 100%;
    cursor: pointer;
    border-radius: 50px !important;
}

.btn-close-menu:hover {
    background: linear-gradient(135deg, #bc4e9c 0%, #f80759 100%) !important;
    box-shadow: 0 8px 25px rgba(248, 7, 89, 0.4) !important;
}

.menu-item {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 15px;
    padding: 15px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    width: 100%;
    min-height: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-item:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

/* --- Main Content Wrapper --- */
.main-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    overflow: hidden;
}

/* --- Image Slider --- */
.slider-container {
    margin-top: 15px;
    width: 90%;
    max-width: 1000px;
    height: 380px; /* Increased base height */
    border-radius: 24px;
    position: relative;
    pointer-events: auto;
}

.btn-slide {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.slide-btn-wrapper {
    margin-top: 15px;
}

.content-overlay {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    margin-top: auto; /* Push to the very bottom */
    margin-bottom: 50px; /* Safe distance from bottom edge */
    padding-bottom: 20px;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden; /* This will clip the slides */
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    border: 4px solid #1e3c72; /* Thick navy border to separate from background */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: right;
    padding: 20px 40px;
    direction: rtl;
}

.slide-content-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.slide-left-img {
    flex: 0 0 280px; /* Much larger image */
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.4);
    transition: transform 0.3s ease;
}

.slide.active .slide-left-img {
    transform: scale(1.05);
}

.square-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.slide-text-info h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-text-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
    filter: brightness(0.8);
}

.slide.active {
    opacity: 1;
    z-index: 5;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.gradient-1 { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.gradient-2 { background: linear-gradient(135deg, #4a235a 0%, #1e3c72 100%); }

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 28px;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.slider-nav.prev {
    left: -80px;
}

.slider-nav.next {
    right: -80px;
}

/* Hide navigation buttons on mobile */
@media (max-width: 1200px) {
    .slider-nav.prev { left: -60px; }
    .slider-nav.next { right: -60px; }
}

@media (max-width: 1000px) {
    .top-nav {
        top: 10px;
        right: 15px;
        z-index: 2000;
    }
    .slider-container {
        margin-top: 0 !important;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 250px;
        border-radius: 0 0 35px 35px;
    }
    .slider-track {
        border-radius: 0 0 35px 35px;
        border: 3px solid #1e3c72;
        border-top: none;
    }
    .slide {
        padding: 35px 15px 15px 15px;
        align-items: center !important;
        justify-content: center !important;
    }
    .slide-content-layout {
        flex-direction: row; /* Horizontal layout for mobile */
        text-align: right;
        gap: 15px;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        width: 100%;
    }
    .slide-text-info {
        flex: 1;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .slide-text-info h3 { 
        font-size: 19px; 
        margin-bottom: 5px; 
        margin-top: 0;
        line-height: 1.2;
    }
    .slide-text-info p { 
        font-size: 13px; 
        margin-bottom: 10px; 
        line-height: 1.4;
    }
    .slide-btn-wrapper {
        margin-top: 5px;
    }
    .btn-slide { 
        padding: 8px 20px; 
        font-size: 14px; 
    }
    .slide-left-img {
        flex: 0 0 100px; /* Larger image */
        width: 100px;
        height: 100px;
        border-radius: 12px;
        margin-top: 0;
        order: -1; /* Move image to the left in RTL */
    }

    .content-overlay {
        margin-top: 180px; 
        margin-bottom: 50px;
        padding-bottom: 30px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    text-align: right;
    direction: rtl;
    z-index: 6;
}

.slide-content h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 800;
}

.slide-content p {
    margin: 0 0 15px 0;
    font-size: 15px;
    opacity: 0.95;
}

.btn-slide {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-slide:hover {
    background: white;
    color: #1e3c72;
}

.content-overlay {
    position: absolute;
    bottom: 30px; /* Very bottom */
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.buttons-container {
    display: flex;
    gap: 20px;
    pointer-events: auto; /* Enable clicks on buttons */
}

.btn-custom {
    padding: 12px 30px;
    font-size: 18px; /* Reverted to larger font */
    font-weight: bold; /* Reverted to bold */
    border: 2px solid rgba(0, 0, 0, 0.1); /* Visible border */
    border-radius: 50px; /* Reverted to pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333; /* Keep dark text for readability */
    text-shadow: none;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    
    background: rgba(255, 255, 255, 0.8); /* Base white/glass */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0px;
}

.btn-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-about {
    background: rgba(75, 108, 183, 0.08); /* Very pale blue */
    border-color: rgba(75, 108, 183, 0.3);
}
.btn-about:hover {
    border-width: 4px; /* Make border thicker on hover */
    border-color: rgba(75, 108, 183, 0.6);
}

.btn-plan {
    background: rgba(86, 171, 47, 0.08); /* Very pale green */
    border-color: rgba(86, 171, 47, 0.3);
}
.btn-plan:hover {
    border-width: 4px; /* Make border thicker on hover */
    border-color: rgba(86, 171, 47, 0.6);
}

.cyber-btn-start {
    position: relative;
    padding: 18px 60px; /* Larger padding */
    font-size: 1.4rem; /* Larger font */
    font-weight: 900;
    color: white !important;
    border-radius: 50px;
    background: transparent !important;
    border: none !important;
    z-index: 1;
    overflow: hidden; /* Important to clip the spinning border */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: black-pulse 1.5s infinite; /* Stronger continuous pulse */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    pointer-events: auto; /* Ensure clickable */
    text-decoration: none !important;
}

.cyber-btn-start:hover {
    transform: scale(1.05);
}

.cyber-btn-start::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200vw; 
    height: 200vw;
    background: conic-gradient(from var(--angle), transparent 0%, #00f2fe 15%, #4facfe 30%, transparent 45%);
    animation: spin-border 3s linear infinite; /* Faster spin */
    transform: translate(-50%, -50%);
    z-index: -2;
}

.cyber-btn-start::after {
    content: '';
    position: absolute;
    inset: 4px; /* Border thickness */
    background: linear-gradient(135deg, #111111 0%, #222222 100%); /* Dark inner background */
    border-radius: 46px; /* slightly less than 50px to match inset */
    z-index: -1;
}

.cyber-btn-start .btn-text {
    position: relative;
    z-index: 2;
}

@keyframes black-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.9); }
    70% { box-shadow: 0 0 0 25px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* --- Internal Content Box --- */
.content-box {
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    margin-bottom: 50px;
    direction: rtl;
}

/* --- Responsive Layouts --- */
@media (max-width: 600px) {
    .slider-container {
        height: 180px;
        margin-top: 80px;
    }
    .slide-content h3 { font-size: 16px; }
    .slide-content p { font-size: 12px; }

    .buttons-container {
        width: 85%;
        max-width: 320px;
    }
    .btn-custom {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff; /* Solid White background as requested */
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.loader-svg-wrapper {
    position: relative;
    width: 350px;
    height: 168px; /* Aspect ratio from viewBox 393/189 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Background/Outline layer */
.loader-svg-bg {
    position: absolute;
    inset: 0;
    background-color: #f0f0f0;
    -webkit-mask: url('ParsehLoad.svg') no-repeat center;
    mask: url('ParsehLoad.svg') no-repeat center;
    -webkit-mask-size: 350px 168px;
    mask-size: 350px 168px;
    z-index: 1;
}

/* Progress fill layer */
.loader-svg-fill {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--progress, 0%);
    background: linear-gradient(to left, #0c0068, #1e3c72);
    -webkit-mask: url('ParsehLoad.svg') no-repeat right center;
    mask: url('ParsehLoad.svg') no-repeat right center;
    -webkit-mask-size: 350px 168px;
    mask-size: 350px 168px;
    z-index: 2;
    transition: width 0.3s ease-out;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Animated Gradient Borders --- */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.gradient-border-card {
    position: relative;
    background: #ffffff !important;
    border: 3px solid #e0e0e0 !important;
    z-index: 1;
    border-radius: 25px;
}

/* Specialized for Wallet Cards */
.wallet-card-animated {
    position: relative;
    background: #ffffff !important;
    border: 3px solid #e0e0e0 !important;
    z-index: 1;
    border-radius: 25px;
}

/* Animated Gradient Buttons */
.btn-gradient-animated {
    position: relative;
    z-index: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 30px;
    color: white !important;
    font-weight: 800;
    overflow: hidden;
    border-radius: 12px;
}

.btn-gradient-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: -1;
    transition: 0.3s;
}

.btn-gradient-animated::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(270deg, #ffffff, transparent, #ffffff, transparent);
    background-size: 400% 400%;
    z-index: -2;
    animation: flow-gradient 6s ease infinite;
}

.btn-gradient-animated:hover::before {
    filter: brightness(1.2);
}

.btn-gradient-animated:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.4);
}
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background: transparent;
    position: relative;
    z-index: 10;
}

.top-navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    z-index: 1000;
    border-bottom: 2px solid #1e3c72;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #1e3c72;
    cursor: pointer;
    padding: 5px;
}

.nav-brand {
    font-weight: 900;
    font-size: 22px;
    color: #1e3c72;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.nav-menu li a, .btn-logout-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #444;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #1e3c72;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-menu li a:hover, .nav-menu li.active a {
    color: #1e3c72;
    background: rgba(30, 60, 114, 0.05);
}

.nav-menu li a:hover::after, .nav-menu li.active a::after {
    width: 60%;
}

.btn-logout-nav:hover {
    background: rgba(220, 53, 69, 0.05);
    color: #dc3545;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 30px;
    -webkit-overflow-scrolling: touch;
}

/* --- Global Card & Container Styles --- */
.card {
    position: relative;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(270deg, #1e3c72, #2a5298, #1d976c, #f80759, #9b59b6, #e67e22, #1e3c72) border-box !important;
    border: 5px solid transparent !important;
    border-radius: 25px; /* Softer, modern radius */
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    z-index: 1;
    margin-bottom: 40px;
    background-size: 100% 100%, 400% 400% !important;
    animation: flow-gradient 25s ease infinite !important;
}

.card-thick-border {
    border-width: 8px !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(30, 60, 114, 0.15);
}

/* Wallet Card Unique Gradients - Dynamic & Animated */
.wallet-gradient-1 {
    --bg-color: #6a11cb;
    background: linear-gradient(#6a11cb, #2575fc) padding-box,
                linear-gradient(270deg, #ffffff, #888888, #ffffff) border-box !important;
    background-size: 400% 400%, 400% 400% !important;
    animation: flow-gradient 12s ease infinite !important;
}
.wallet-gradient-2 {
    --bg-color: #00b09b;
    background: linear-gradient(#00b09b, #96c93d) padding-box,
                linear-gradient(270deg, #ffffff, #888888, #ffffff) border-box !important;
    background-size: 400% 400%, 400% 400% !important;
    animation: flow-gradient 12s ease infinite !important;
}
.wallet-gradient-3 {
    --bg-color: #1e3c72;
    background: linear-gradient(#1e3c72, #2a5298) padding-box,
                linear-gradient(270deg, #ffffff, #888888, #ffffff) border-box !important;
    background-size: 400% 400%, 400% 400% !important;
    animation: flow-gradient 12s ease infinite !important;
}

/* Ensure the animation actually works on background-image */
@keyframes flow-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-white-force, .text-white-force *, .premium-wallet-card, .premium-wallet-card * {
    color: white !important;
}

.premium-wallet-card {
    border-radius: 25px !important;
    border: 4px solid transparent !important;
    transition: all 0.4s ease !important;
}

.premium-wallet-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
}

.stat-icon-premium {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.clock-icon-premium {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Clock Banner - Ultra Modern Glassmorphism */
.live-clock-banner {
    --bg-color: #1e3c72;
    background: linear-gradient(270deg, #1e3c72, #2a5298, #1d976c, #f80759, #1e3c72) padding-box,
                linear-gradient(270deg, #ffffff, #888888, #ffffff) border-box !important;
    background-size: 400% 400%, 400% 400% !important;
    animation: flow-gradient 8s ease infinite !important;
    border: 3px solid transparent !important;
    position: relative;
    border-radius: 20px !important;
    padding: 10px 40px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    min-height: 60px !important;
}

/* Animated White-Grey Border for Clock and Wallets */
.premium-border-animated {
    background: linear-gradient(var(--bg-color, #1a2a6c), var(--bg-color, #1a2a6c)) padding-box,
                linear-gradient(270deg, #ffffff, #888888, #ffffff) border-box !important;
    border: 3px solid transparent !important;
    background-size: 100% 100%, 400% 400% !important;
    animation: flow-gradient 10s ease infinite !important;
}

.clock-time-text {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    font-family: 'Vazirmatn', monospace !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
}

.clock-date {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 5px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

@keyframes flow-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Global Typography Fixes - Remove unwanted outlines/borders from headers */
h1, h2, h3, h4, h5, h6 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Beautiful Premium Buttons with varied gradients and animated borders */
.btn-primary, .btn-success, .btn-danger, .btn-info, .btn-premium-action, .btn-level-buy, .menu-item, .btn-premium-action-v3, .btn-upgrade-v3, .btn-copy-premium {
    position: relative;
    z-index: 1;
    border: none !important;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 900;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden !important; /* Hide background bleed */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    text-decoration: none !important;
    min-width: 240px; /* Uniform width for menu buttons as requested */
    text-align: center;
}

@media (max-width: 600px) {
    .btn-primary, .btn-success, .btn-danger, .btn-info, .btn-premium-action, .btn-level-buy, .menu-item, .btn-premium-action-v3, .btn-upgrade-v3, .btn-copy-premium {
        min-width: 200px;
        padding: 12px 25px;
    }
}

/* Base Gradients for different button types (Static) */
.btn-primary::after, .menu-item-dashboard::after, .btn-upgrade-v3::after { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.btn-success::after, .menu-item-plan::after { background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%); }
.btn-danger::after, .menu-item-close::after { background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%); }
.btn-info::after, .menu-item-about::after { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); }
.menu-item-store::after { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.menu-item-home::after { background: linear-gradient(135deg, #333333 0%, #555555 100%); } /* Visible neutral gradient for Home button */
.btn-premium-action::after, .btn-level-buy::after, .btn-premium-action-v3::after, .btn-copy-premium::after { background: linear-gradient(135deg, #2c3e50 0%, #000000 100%); }

/* Animated Border for Buttons (Only active on HOVER) */
.btn-primary::before, .btn-success::before, .btn-danger::before, .btn-info::before, .btn-premium-action::before, .btn-level-buy::before, .menu-item::before, .btn-premium-action-v3::before, .btn-upgrade-v3::before, .btn-copy-premium::before {
    content: '';
    position: absolute;
    inset: 0; /* Cover the whole button */
    background: linear-gradient(270deg, #1e3c72, #2a5298, #1d976c, #f80759, #1e3c72);
    background-size: 400% 400%;
    z-index: -2;
    animation: flow-gradient 8s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

/* Mask layer for static background */
.btn-primary::after, .btn-success::after, .btn-danger::after, .btn-info::after, .btn-premium-action::after, .btn-level-buy::after, .menu-item::after, .btn-premium-action-v3::after, .btn-upgrade-v3::after, .btn-copy-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.4s ease;
}

.btn:hover, .menu-item:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Reveal rotating background on hover by hiding the static mask and showing the conic layer */
.btn-primary:hover::before, .btn-success:hover::before, .btn-danger:hover::before, .btn-info:hover::before, .btn-premium-action:hover::before, .btn-level-buy:hover::before, .menu-item:hover::before, .btn-premium-action-v3:hover::before, .btn-upgrade-v3:hover::before, .btn-copy-premium:hover::before {
    opacity: 1;
}

.btn-primary:hover::after, .btn-success:hover::after, .btn-danger:hover::after, .btn-info:hover::after, .btn-premium-action:hover::after, .btn-level-buy:hover::after, .menu-item:hover::after, .btn-premium-action-v3:hover::after, .btn-upgrade-v3:hover::after, .btn-copy-premium:hover::after {
    opacity: 0;
}

@keyframes rotate-gradient {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

/* Remove Card Header Borders and Backgrounds */
.card-header {
    padding: 20px 30px;
    border-bottom: none !important;
    background: transparent !important;
}

.card-body {
    padding: 30px;
}

.outline-text {
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #1e3c72,  
         1px -1px 0 #1e3c72,
        -1px  1px 0 #1e3c72,
         1px  1px 0 #1e3c72;
    letter-spacing: 1px;
}

.outline-text-dark {
    color: #1e3c72;
    text-shadow: 
        -1px -1px 0 #ffffff,  
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff;
    letter-spacing: 1px;
}

.top-bar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Responsive Dashboards */
@media (max-width: 992px) {
    .top-navbar {
        padding: 10px 20px;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        gap: 15px;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a, .btn-logout-nav {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }

    .card {
        border-radius: 16px;
    }
}

/* --- Internal Pages Styles --- */
.internal-page-container {
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    z-index: 10;
    position: relative;
    direction: rtl;
    -webkit-overflow-scrolling: touch;
}

.internal-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 50px; /* Increased margin to replace the gap left by the removed logo */
}

.btn-nav {
    padding: 10px 25px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-nav:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    border-color: white;
    animation: pulse-mini 1.5s infinite;
}

@keyframes pulse-mini {
    0% { box-shadow: 0 0 0 0 rgba(30, 60, 114, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(30, 60, 114, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 60, 114, 0); }
}

/* Different gradients for menu items */
.btn-nav-1 { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.btn-nav-2 { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); }
.btn-nav-3 { background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%); }
.btn-nav-4 { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); }

.internal-logo-wrapper {
    width: 100%;
    max-width: 500px;
    height: 140px;
    margin-top: 5px;
    margin-bottom: 20px;
    z-index: 20;
    pointer-events: none;
}

/* Ensure the logo wrapper has enough breathing room on mobile to prevent overlapping the content box */
@media (max-width: 600px) {
    .internal-logo-wrapper {
        height: 140px; /* Give it enough height to fit the scaled logo */
        margin-top: 10px;
        margin-bottom: 40px; /* Force a larger gap before the content box starts */
    }
}

.content-box {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(136, 170, 204, 0.6); /* Thick light blue border as requested */
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.content-box h1, .content-box h2 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a0845 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.content-box h1 { font-size: 32px; }
.content-box h2 { font-size: 24px; margin-top: 40px; }

.content-box p {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    text-align-last: center; /* Center-aligned text inside the box */
}

@media (max-width: 600px) {
    .content-box {
        padding: 30px 20px;
        width: 95%;
        margin-top: 20px; /* Add some space between nav buttons and content box on mobile */
    }
    .internal-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px; /* Reduced bottom margin on mobile to prevent huge gaps */
    }
}
#components-reconnect-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    bottom: 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

/* Ensure the loader inside the modal is perfectly centered and column-aligned */
#components-reconnect-modal .elegant-loader {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#components-reconnect-modal .loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Blazor's built-in state classes */
#components-reconnect-modal.components-reconnect-show {
    display: flex;
}

/* Specific messages for failed states */
#components-reconnect-modal.components-reconnect-failed .reconnect-text::before {
    content: 'خطا در اتصال مجدد. ';
}
#components-reconnect-modal.components-reconnect-rejected .reconnect-text::before {
    content: 'اتصال توسط سرور رد شد. ';
}

.reconnect-text {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 24px;
    color: #1e3c72;
    margin-top: 15px;
    font-weight: bold;
    direction: rtl;
    text-align: center;
}

.dot-animation::after {
    content: '...';
    display: inline-block;
    width: 30px;
    text-align: left;
    animation: dots 1.5s steps(4, end) infinite;
}

/* Keep the legacy error UI for unhandled exceptions but hidden by default */
#blazor-error-ui {
    display: none;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.slogan-text {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-top: 2rem;
    text-shadow: 
        -1px -1px 0 #fff,  
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0px  0px 10px rgba(255,255,255,0.8); /* Thick white outline for perfect readability */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    z-index: 11; /* Above vignette and content */
}

/* Subtle Page Loader & Transitions */
.content-wrapper {
    position: relative;
    min-height: 100vh;
}

.hidden-content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.visible-content {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease-in-out;
}

/* Global Content Loader (Full Screen Glassmorphism) */
#global-subtle-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000000; /* Absolute top-most layer */
    pointer-events: none; /* Changed to auto when visible via JS */
    display: none; /* Controlled by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

#global-subtle-loader.active {
    pointer-events: auto;
    display: flex;
    opacity: 1;
}

.loader-line {
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, #000, #00f2fe, #f80759, #00f2fe, #000);
    background-size: 200% 100%;
    animation: moveGradient 1.5s linear infinite;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.8), 0 0 10px rgba(248, 7, 89, 0.5);
    border-radius: 10px;
    position: relative;
}

#global-subtle-loader .loader-line {
    z-index: 2000002;
}

#loading-screen .loader-line {
    margin-top: 20px;
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto; 
    gap: 15px; 
}

#global-subtle-loader .loader-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(40px) saturate(150%); /* More intense blur and saturation */
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    z-index: 2000001;
}

@keyframes moveGradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Upgrade Confirmation Modal - Premium Redesign */
.upgrade-confirmation-card {
    background: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 40px !important;
    overflow: hidden;
    position: relative;
    z-index: 1000003 !important;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.1) !important;
    pointer-events: auto !important;
    max-width: 500px;
    width: 95%;
    margin: auto;
}

/* Force override any inherited pseudo-element backgrounds */
.upgrade-confirmation-card::after {
    background: #000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
}

.upgrade-confirmation-card::before {
    display: none !important; /* Remove rotating light for this specific modal for cleaner look */
}

.payment-main-box {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.payment-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.payment-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.payment-value .amount {
    font-size: 3rem;
    font-weight: 900;
    color: #00f2fe;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.payment-value .currency {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 800;
}

.wallet-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.wallet-option-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.wallet-option-btn.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: #00f2fe;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.wallet-option-btn i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.wallet-option-btn.active i {
    color: #00f2fe;
}

.wallet-option-btn .title {
    font-weight: 800;
    font-size: 0.9rem;
    margin-top: 10px;
}

.wallet-option-btn .balance {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 4px;
}

.check-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #00f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.wallet-stat-v5 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.wallet-stat-v5 .icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00f2fe;
}

.wallet-stat-v5 .info .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.wallet-stat-v5 .info .value {
    font-weight: 900;
    color: #fff;
    font-size: 1.1rem;
}

.info-alert-v5 {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 15px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00f2fe;
    font-size: 0.8rem;
}

.upgrade-confirm-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3) !important;
    height: 60px;
    font-size: 1.1rem !important;
}

.upgrade-confirm-btn:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.5) !important;
}

/* Modal and Backdrop Z-index Fixes */
.modal-custom-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000002 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000001 !important;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.content-wrapper {
    transition: opacity 0.4s ease;
}

.content-wrapper.loading main {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 991px) {
    .subtle-page-loader {
        top: 70px;
    }
}

/* Finance V3 Refined Layouts */
.finance-header-v3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.finance-header-v3:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.finance-header-v3.header-danger:hover {
    border-color: rgba(255, 78, 80, 0.3);
    box-shadow: 0 0 20px rgba(255, 78, 80, 0.1);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(79, 172, 254, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.header-danger .header-icon {
    background: linear-gradient(135deg, rgba(255, 78, 80, 0.1) 0%, rgba(249, 159, 0, 0.1) 100%);
    color: #ff4e50;
    border-color: rgba(255, 78, 80, 0.2);
}

.header-text h4 {
    color: #fff;
    font-size: 1.25rem;
}

.header-balance {
    text-align: left;
}

.header-balance .label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    margin-bottom: 2px;
}

.header-balance .amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.header-balance .amount .value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #00f2fe;
}

.header-danger .header-balance .amount .value {
    color: #ff4e50;
}

.header-balance .amount .unit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.form-label-v3 {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.input-wrapper-v3 {
    position: relative;
}

.input-wrapper-v3 i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #00f2fe;
}

.finance-input-v3 {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px 60px 18px 25px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    transition: all 0.3s ease;
}

.finance-input-v3:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
    outline: none;
}

.quick-selections-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.selection-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.selection-chip.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1);
}

.btn-action-v3 {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-deposit {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.4);
}

.btn-withdraw {
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 78, 80, 0.3);
}

.btn-withdraw:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 78, 80, 0.4);
}

.info-sidebar-v3 {
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.info-list-v3 {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.item-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
    font-weight: 900;
    font-size: 0.9rem;
}

.sidebar-danger .item-number {
    background: rgba(255, 78, 80, 0.1);
    border-color: rgba(255, 78, 80, 0.3);
    color: #ff4e50;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* OTP V3 */
.otp-premium-section-v3 {
    padding: 20px 0;
}

.otp-icon-v3 {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 30px;
}

.otp-input-wrapper-v3 {
    max-width: 300px;
    margin: 0 auto;
}

.otp-input-v3 {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 15px;
    transition: all 0.3s ease;
}

.otp-input-v3:focus {
    border-color: #38ef7d;
    box-shadow: 0 0 30px rgba(56, 239, 125, 0.2);
    outline: none;
}

.btn-secondary-v3 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-v3:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: #000 !important;
    box-shadow: 0 10px 30px rgba(56, 239, 125, 0.3) !important;
}

@media (max-width: 991px) {
    .finance-header-v3 {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-main {
        flex-direction: column;
    }
    
    .header-balance {
        text-align: center;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .header-balance .amount {
        justify-content: center;
    }
    
    .info-sidebar-v3 {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* User Management Circle Action Buttons */
.btn-circle-xs {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-width: 1px !important;
}

.btn-circle-xs i {
    font-size: 20px !important;
}

.btn-circle-xs:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

/* Existing stat-card-mature styles... */
.stat-card-mature {
    border-radius: 20px !important;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(270deg, #1e3c72, #2a5298, #1d976c, #f80759, #9b59b6, #e67e22, #1e3c72) border-box !important;
    border: 4px solid transparent !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background-size: 100% 100%, 400% 400% !important;
    animation: flow-gradient 25s ease infinite !important;
}

.mature-action-card, .mature-referral-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 30px !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05) !important;
}

.mature-header {
    background: rgba(30, 60, 114, 0.03) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 25px !important;
}

.mature-list .list-group-item {
    background: transparent !important;
    border-color: rgba(0,0,0,0.03) !important;
    padding: 20px 30px !important;
}