        :root {
            --bg-dark: #070913;
            --bg-card: #121829;
            --bg-card-hover: #1a2238;
            --bg-sidebar: #0d1120;
            --border-color: rgba(255, 255, 255, 0.08);
            --primary-blue: #3b82f6;
            --accent-purple: #6366f1;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --cover-bg-start: #1e1b4b;
            --cover-bg-end: #0f172a;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            min-height: 100vh;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }
        ::-webkit-scrollbar-thumb {
            background: #1e293b;
            border-radius: 4px;
        }

        #app-container {
            display: flex;
            min-height: 100vh;
        }

        /* Desktop Sidebar */
        .sidebar {
            width: 260px;
            background-color: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .sidebar-brand {
            padding: 24px 20px;
            font-size: 1.35rem;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, #60a5fa, #818cf8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .sidebar-menu {
            list-style: none;
            padding: 15px 12px;
            margin: 0;
            flex-grow: 1;
        }

        .nav-item-link {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 18px;
            color: var(--text-muted);
            text-decoration: none;
            border-radius: 12px;
            font-weight: 500;
            margin-bottom: 6px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .nav-item-link:hover {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.05);
        }

        .nav-item-link.active {
            color: #fff;
            background: linear-gradient(135deg, #2563eb, #4f46e5);
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
        }

        .nav-item-link i {
            font-size: 1.1rem;
            width: 22px;
            text-align: center;
        }

        .nav-item-link.btn-logout {
            color: #f87171;
        }

        .nav-item-link.btn-logout:hover {
            color: #fff;
            background-color: rgba(248, 113, 113, 0.12);
        }

        /* Notification bell dropdown */
        .bell-dropdown {
            width: 340px;
            max-width: 92vw;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 0;
            overflow: hidden;
        }

        .bell-list {
            max-height: 360px;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        .bell-empty {
            padding: 26px 16px;
            text-align: center;
            font-size: 0.82rem;
            color: #94a3b8;
        }

        .bell-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 11px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            text-decoration: none;
            transition: background-color 0.15s ease;
        }

        .bell-item:last-child {
            border-bottom: 0;
        }

        .bell-item:hover {
            background: rgba(37, 99, 235, 0.10);
        }

        .bell-item-body {
            min-width: 0;
        }

        .bell-item-title {
            color: #fff;
            font-size: 0.84rem;
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bell-item-snippet {
            color: #94a3b8;
            font-size: 0.78rem;
            margin-top: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bell-item-meta {
            color: #64748b;
            font-size: 0.7rem;
            margin-top: 3px;
        }

        .bell-item-arrow {
            flex-shrink: 0;
            font-size: 0.75rem;
        }

        /* Main Content Wrapper */
        .main-wrapper {
            flex-grow: 1;
            margin-left: 260px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding-bottom: 80px; /* Space for mobile nav */
        }

        /* Desktop Header */
        .top-header {
            height: 70px;
            background-color: rgba(13, 17, 32, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 28px;
            position: sticky;
            top: 0;
            z-index: 999;
        }

        .header-search {
            position: relative;
            width: 280px;
        }

        .header-search input {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: #fff;
            padding: 8px 16px 8px 40px;
            font-size: 0.88rem;
            width: 100%;
        }

        .header-search input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        .header-search i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .profile-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #3b82f6;
        }

        .profile-avatar.profile-avatar-initial {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 700;
            font-size: 1.05rem;
            line-height: 1;
            overflow: hidden;
            user-select: none;
            border-color: rgba(255, 255, 255, 0.25);
            text-transform: uppercase;
        }

        .content-area {
            padding: 24px 28px;
            max-width: 1100px;
            margin: 0 auto;
            width: 100%;
        }

        /* Cover Card (Featured Total Balance) */
        .cover-card {
            background: linear-gradient(135deg, #131238 0%, #0d122b 50%, #171032 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 28px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        }

        .cover-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0,0,0,0) 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .balance-title {
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .currency-badge {
            background: rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
            font-size: 0.72rem;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: 600;
        }

        .balance-amount {
            font-size: 2.5rem;
            font-weight: 800;
            color: #ffffff;
            margin: 8px 0 4px 0;
            letter-spacing: -0.5px;
        }

        .balance-change {
            color: var(--accent-green);
            font-size: 0.88rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        /* Circular Action Buttons Under Cover */
        .action-buttons-group {
            display: flex;
            justify-content: space-around;
            max-width: 420px;
            margin: 24px auto 0 auto;
        }

        .action-btn-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            text-decoration: none;
        }

        .action-circle-btn {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.25rem;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(8px);
        }

        .action-btn-wrapper:hover .action-circle-btn {
            background: #2563eb;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
            border-color: #3b82f6;
        }

        .action-label {
            color: var(--text-muted);
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* Assets List Section */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 32px 0 16px 0;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
            margin: 0;
        }

        .asset-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 16px 20px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .asset-card:hover {
            background-color: var(--bg-card-hover);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .asset-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .coin-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: bold;
            flex-shrink: 0;
        }

        .coin-info {
            display: flex;
            flex-direction: column;
        }

        .coin-name-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .coin-name {
            font-weight: 700;
            font-size: 1rem;
            color: #fff;
        }

        .coin-badge {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            font-size: 0.7rem;
            padding: 1px 6px;
            border-radius: 6px;
            font-weight: 600;
        }

        .coin-price-meta {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .asset-right {
            text-align: right;
        }

        .crypto-balance {
            font-weight: 700;
            font-size: 1.05rem;
            color: #fff;
        }

        .fiat-balance {
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Mobile Specific Navigation Bar */
        .mobile-nav-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 68px;
            background-color: rgba(13, 17, 32, 0.95);
            backdrop-filter: blur(16px);
            border-top: 1px solid var(--border-color);
            z-index: 1000;
            justify-content: space-around;
            align-items: center;
            padding: 0 8px;
        }

        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.72rem;
            font-weight: 500;
            flex: 1;
            padding: 8px 0;
            transition: color 0.2s ease;
            cursor: pointer;
        }

        .mobile-nav-item i {
            font-size: 1.25rem;
        }

        .mobile-nav-item.active {
            color: #3b82f6;
        }

        /* Responsive Adjustments */
        @media (max-width: 991px) {
            .sidebar {
                display: none; /* Hide sidebar on tablet/mobile */
            }
            .main-wrapper {
                margin-left: 0;
            }
            .mobile-nav-bar {
                display: flex; /* Show bottom bar */
            }
            .top-header {
                padding: 0 16px;
            }
            .content-area {
                padding: 16px;
            }
            .balance-amount {
                font-size: 2rem;
            }
            .header-search {
                display: none;
            }
        }

        /* Generic Views Management */
        .app-view {
            display: none;
        }
        .app-view.active-view {
            display: block;
            animation: fadeIn 0.25s ease-in-out;
        }

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

        /* Modern Form Styling for Send/Receive views */
        .glass-panel {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 24px;
        }

        .form-control-dark, .form-select-dark {
            background-color: #0b0f19;
            border: 1px solid var(--border-color);
            color: #fff;
            border-radius: 12px;
            padding: 12px 16px;
        }

        .form-control-dark:focus, .form-select-dark:focus {
            background-color: #0b0f19;
            border-color: var(--primary-blue);
            color: #fff;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        /* Unified placeholder color across all inputs, selects and textareas */
        input::placeholder,
        textarea::placeholder,
        select::placeholder {
            color: #51565c !important;
            opacity: 1;
        }

        .qr-placeholder {
            width: 180px;
            height: 180px;
            background: #fff;
            padding: 12px;
            border-radius: 16px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Toast Popup styling */
        .custom-toast {
            position: fixed;
            bottom: 80px;
            right: 20px;
            z-index: 9999;
            background: #1e293b;
            color: #fff;
            border-left: 4px solid var(--primary-blue);
            padding: 12px 20px;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            display: none;
        }

        /* ------------------------------------------------------------------ *
         *  Integration additions (kept in the exact design language of the
         *  CryptoVault template). Used by dynamic wallet features.
         * ------------------------------------------------------------------ */

        .wallet-manage-link {
            color: var(--text-muted);
            padding: 0 2px 0 12px;
            font-size: 1.05rem;
            transition: color 0.2s ease;
        }

        .wallet-manage-link:hover {
            color: #fff;
        }

        .asset-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .btn-outline-light:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .list-group-item.hidden-filter {
            display: none !important;
        }

        .reserved-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 7px 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            margin-bottom: 8px;
            font-size: 0.72rem;
            border: 1px solid var(--border-color);
        }

        .amount-box {
            font-weight: 700;
            font-size: 1.05rem;
            color: #fff;
        }

        .amount-box.usd-box {
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-main);
        }

        .date-select-group select {
            padding: 9px 12px;
        }

        .copy-btn-sm {
            font-size: 0.72rem;
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            background: transparent;
        }

        .copy-btn-sm:hover {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .cap-alert {
            color: var(--accent-red);
            font-size: 0.8rem;
        }

        .cap-success {
            color: var(--accent-green);
            font-size: 0.85rem;
        }

        .cap-danger {
            color: #f87171;
            font-size: 0.85rem;
        }

        .account-note {
            font-size: 0.82rem;
            color: var(--text-muted);
        }

        /* Skeleton loading shimmer (replaces content while data loads) */
        .cv-skeleton {
            border-radius: 8px;
            background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.05) 75%);
            background-size: 200% 100%;
            animation: cvShimmer 1.4s ease-in-out infinite;
            min-height: 12px;
            display: inline-block;
        }

        @keyframes cvShimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .cv-skeleton-line {
            height: 14px;
            border-radius: 8px;
            background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.05) 75%);
            background-size: 200% 100%;
            animation: cvShimmer 1.4s ease-in-out infinite;
        }

        @media (prefers-reduced-motion: reduce) {
            .cv-skeleton, .cv-skeleton-line {
                animation: none;
                background: rgba(255,255,255,0.08);
            }
        }

        /* ---- Transfer PIN keypad modal ---- */
        .cv-pin-dots {
            display: flex;
            justify-content: center;
            gap: 14px;
            padding: 8px 0 4px;
            min-height: 34px;
        }
        .cv-pin-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.35);
            background: rgba(255,255,255,0.04);
            transition: all 0.15s ease;
        }
        .cv-pin-dot.filled {
            background: var(--primary-blue, #3b82f6);
            border-color: var(--primary-blue, #3b82f6);
            box-shadow: 0 0 10px rgba(59,130,246,0.55);
        }
        .cv-pin-phase {
            text-align: center;
            color: #93c5fd;
            font-size: 0.78rem;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            min-height: 1rem;
        }
        .cv-pin-error {
            color: #f87171;
            font-size: 0.8rem;
            text-align: center;
            min-height: 1rem;
            display: none;
        }
        .cv-keypad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            max-width: 300px;
            margin: 18px auto 4px;
        }
        .cv-keypad-btn {
            height: 64px;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            background: rgba(255,255,255,0.04);
            color: #e5e7eb;
            font-size: 1.5rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.12s ease;
            -webkit-user-select: none;
            user-select: none;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 16px rgba(0,0,0,0.35);
        }
        .cv-keypad-btn:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(59,130,246,0.5);
        }
        .cv-keypad-btn:active {
            transform: scale(0.94);
            background: rgba(59,130,246,0.35);
        }
        .cv-keypad-btn .fa-delete-left, .cv-keypad-btn svg {
            color: #93c5fd;
        }
        .cv-keypad-slot { visibility: hidden; }
        .cv-shake { animation: cvShake 0.4s ease-in-out; }
        @keyframes cvShake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-8px); }
            40% { transform: translateX(8px); }
            60% { transform: translateX(-6px); }
            80% { transform: translateX(6px); }
        }
        
        body .text-muted {
            color: #94a3b8 !important;
        }
