/* ==========================================================================
   FLYWALLET PURE CSS SYSTEM v2.0 (RESTORATION & MOBILE FIX)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- Core Palette (Deep Space) --- */
    --bg-body: #020617;
    /* Slate 950+ */
    --bg-surface: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.6);
    /* Slate 800 glass */
    --bg-card-hover: rgba(51, 65, 85, 0.7);

    /* --- Interactive Elements --- */
    --input-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* --- Brand Colors --- */
    --primary-color: #6366f1;
    /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent-cyan: #06b6d4;
    /* Cyan 500 */
    --accent-purple: #a855f7;
    /* Purple 500 */

    /* --- Status --- */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* --- Crypto Brand Colors --- */
    --btc: #f7931a;
    --eth: #627eea;
    --ltc: #345d9d;
    --usdt: #26a17b;
    --sol: #14f195;

    /* --- Typography --- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* --- Utilities --- */
    --glass-blur: blur(12px);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* --- Transitions --- */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ==========================================================================
   RESET & BASE STRUCTURE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

button {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Custom Select Menus */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white !important;
    padding: 12px 40px 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Style the dropdown options */
select option {
    background-color: #1e293b;
    /* Slate 800 */
    color: white;
    padding: 12px;
}

/* Utilities */
/* --- Crypto Grid Selector (Privacy Menu) --- */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for grid if needed */
.crypto-grid::-webkit-scrollbar {
    width: 4px;
}

.crypto-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    user-select: none;
}

.crypto-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.crypto-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.crypto-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    border-style: dashed;
    filter: grayscale(100%);
}

.crypto-item.disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.crypto-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 2px;
}

.crypto-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.crypto-status-text {
    font-size: 0.65rem;
    color: var(--danger);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 80px auto 40px;
    /* Top margin accounts for fixed header */
    padding: 20px;
    width: 100%;
}

/* ==========================================================================
   NAVIGATION (RESPONSIVE)
   ========================================================================== */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 2000;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, white 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    color: var(--primary-color);
    -webkit-text-fill-color: initial;
    font-size: 1.2rem;
}

/* Nav Menus */
#nav-menu,
#nav-guest {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.2s;
}

.btn-nav:hover,
.btn-nav.active {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.btn-nav i {
    margin-right: 6px;
}

/* Mobile Menu Button - Initially Hidden */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2005;
}

/* ==========================================================================
   LANDING PAGE (INDEX.PHP) RESTORED
   ========================================================================== */

.landing-revamp {
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* Floating 3D Elements */
.floating-coin {
    position: absolute;
    font-size: 4rem;
    opacity: 0.2;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

.coin-1 {
    top: 20%;
    left: 15%;
    color: var(--btc);
    animation-delay: 0s;
    font-size: 5rem;
}

.coin-2 {
    bottom: 25%;
    right: 15%;
    color: var(--ltc);
    animation-delay: 2s;
    font-size: 4rem;
}

.coin-3 {
    top: 15%;
    right: 25%;
    color: var(--eth);
    animation-delay: 1s;
    font-size: 3rem;
}

.coin-4 {
    bottom: 20%;
    left: 25%;
    color: var(--sol);
    animation-delay: 3s;
    font-size: 3.5rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content-revamp {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group-hero {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stats-strip {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    background: #020617;
    /* Solid dark background to cover fixed fixed elements if needed */
    position: relative;
    padding: 100px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   DASHBOARD UI (MODERNIZED)
   ========================================================================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.action-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Market Overview Section --- */
.market-overview {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    /* Fixed ratio for standard screens */
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

/* Market Live Card Styles */
.market-card {
    display: flex;
    flex-direction: column;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.market-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.market-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.market-info i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.market-price {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: white;
}

.market-change {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    min-width: 60px;
    text-align: center;
}

/* Favorites Section */
.favorites-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
    flex: 1;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 150px;
    color: var(--text-dim);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

/* --- Main Wallet Grid --- */
.main-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.wallet-column {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.wallet-column h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.wallet-list.stack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Wallet Item Card (Refined) */
.wallet-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wallet-item-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wallet-item-balance {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.wallet-item-fiat {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.empty-state-small {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btc-badge {
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
}

.ltc-badge {
    background: rgba(52, 93, 157, 0.2);
    color: #345d9d;
}

/* ==========================================================================
   WALLET DETAILS (WALLET.PHP) RESTORED
   ========================================================================== */

#view-wallet-details {
    max-width: 800px;
    margin: 0 auto;
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.balance-card {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.balance-card h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 10px 0;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.address-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Mono', monospace;
    /* Monospace for address */
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    word-break: break-all;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   COMPONENTS (Cards, Forms, Modals)
   ========================================================================== */

/* Generic Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: 0.2s;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    font-size: 1rem;
    gap: 8px;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    color: var(--text-dim);
    padding: 5px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-icon-danger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: none;
    color: var(--danger);
    cursor: pointer;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker for better focus */
    backdrop-filter: blur(10px);
    z-index: 10000;
    /* Extremely high to cover everything including header */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* Toasts */
.toast {
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

/* ==========================================================================
   FOOTER (NEW)
   ========================================================================== */

footer {
    background: #020617;
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
   MOBILE MEDIA QUERIES (CRITICAL FOR USER)
   ========================================================================== */

@media (max-width: 768px) {

    /* Header Responsive */
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 18px;
        /* Approx vertically centered in 70px header */
    }

    #nav-menu,
    #nav-guest {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    #nav-menu.mobile-active,
    #nav-guest.mobile-active {
        transform: translateY(0);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .btn-nav {
        width: 100%;
        text-align: left;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
    }

    /* Landing Page Mobile */
    .hero-title {
        font-size: 3rem;
    }

    .hero-section {
        padding: 80px 20px;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content-revamp {
        text-align: left;
        max-width: 100%;
        margin: 0;
    }

    .hero-subtitle {
        margin-left: 0;
        font-size: 1.1rem;
    }

    .stats-strip {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: flex-start;
    }

    .stat-item {
        text-align: left;
        flex: 1 1 40%;
    }

    .btn-group-hero {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard Mobile */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .action-bar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .action-bar button {
        width: 100%;
    }

    /* Market Overview Mobile */
    .market-overview {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 20px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
        /* Single column favorites on very small screens */
    }

    /* Wallets Mobile */
    .main-wallet-grid {
        grid-template-columns: 1fr;
        /* Single column stack */
    }

    .wallet-column {
        padding: 15px;
    }

    /* Stack wallets */

    /* Wallet Details Mobile */
    .balance-card h1 {
        font-size: 2.5rem;
    }

    .details-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .details-header h3 {
        width: 100%;
        order: 3;
        text-align: center;
        margin: 10px 0;
    }

    .btn-back {
        order: 1;
    }

    #btn-delete-current {
        order: 2;
        margin-left: auto;
    }

    .copy-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
    }

    /* Modals Mobile */
    .modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-lg);
        padding: 24px 20px;
        margin: auto;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}

/* ==========================================================================
   AUTHENTICATION UI (LOGIN/REGISTER)
   ========================================================================== */

.view {
    padding: 120px 20px 60px;
    /* Accounts for fixed header */
}

.auth-view {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 40px !important;
    text-align: center !important;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card .input-group {
    margin-bottom: 25px;
    text-align: left;
}

.auth-card label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-card .input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    transition: 0.2s;
}

.auth-card .input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-card .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.2s;
}

.auth-card .btn-block:hover {
    background: #4f46e5;
    /* Indigo 600 */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.auth-card .btn-link {
    display: inline-block;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
    text-decoration: none;
}

.auth-card .btn-link:hover {
    color: var(--primary-color);
}