/* dashboard.css - Modern Premium Dashboard */
:root {
    --sidebar-width: 260px;
    --header-height: 80px;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary-glow: rgba(168, 85, 247, 0.5);
}

.dashboard-page {
    background-color: #030712;
    color: #f9fafb;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blur-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.blob-1 { background: #6366f1; top: -100px; right: -100px; }
.blob-2 { background: #a855f7; bottom: -100px; left: -100px; }
.blob-3 { background: #ec4899; top: 40%; left: 30%; width: 300px; height: 300px; }

.grid-mesh {
    position: absolute;
    inset: 0;
    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: 50px 50px;
}

@keyframes float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

/* Layout */
.dashboard-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.75) 0%, rgba(3, 7, 18, 0.85) 100%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 12px;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
    display: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: #818cf8;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 12px;
    padding-left: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

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

.nav-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
    color: #fff;
    border: none;
    border-left: 3px solid #818cf8;
    border-radius: 4px 12px 12px 4px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.username {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-status {
    font-size: 0.75rem;
    color: #10b981;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.content-header {
    height: var(--header-height);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 7, 18, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-left p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i, .search-bar svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    width: 18px; height: 18px;
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 10px 10px 40px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.action-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #9ca3af;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}

.action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.15);
}

.scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* Stats */
.watchlist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4), 0 0 15px rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
}

.stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.trend-up {
    color: #10b981;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Glass Utility */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
}

/* Crypto Card (Injected via JS) */
.crypto-card {
    padding: 24px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; overflow: hidden;
}
.crypto-card::before {
    content: ''; position: absolute; top:0; left:0; right:0; height:1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.crypto-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}
.crypto-card:hover::before { opacity: 1; }

/* Alert Form */
.glass-form-container {
    padding: 32px;
    border-radius: 24px;
    max-width: 800px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.form-group input, .form-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

.form-group input:focus {
    border-color: #6366f1;
}

/* Alerts List */
.alerts-list-container h3 {
    margin-bottom: 24px;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.empty-state .btn-primary {
    max-width: 280px;
    margin-top: 20px;
}

.empty-icon {
    font-size: 3rem;
    color: #374151;
    margin-bottom: 20px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.timeframe-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
}

.timeframe-selector button {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.timeframe-selector button.active {
    background: #6366f1;
    color: #fff;
}

.chart-wrapper {
    height: 450px;
    width: 100%;
    position: relative;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsiveness */
@media (max-width: 1024px) {
    :root { --sidebar-width: 80px; }
    .logo-text, .section-label, .nav-item span, .user-info, .sidebar-footer button span { display: none; }
    .sidebar { padding: 20px 10px; align-items: center; }
    .nav-item { justify-content: center; padding: 12px 0; }
    .search-bar { width: 200px; }
}

@media (max-width: 768px) {
    /* ── Convert sidebar to a fixed bottom tab bar ── */
    .dashboard-layout { flex-direction: column; }

    .sidebar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 12px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 200;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    }

    .sidebar-header { display: none; }

    .sidebar-nav {
        flex-direction: row;
        flex: 1;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px;
        scrollbar-width: none;
    }
    .sidebar-nav::-webkit-scrollbar { display: none; }

    .nav-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .nav-section:last-child {
        display: flex;
        padding-left: 8px;
        margin-left: 4px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 0.65rem;
        color: #6b7280;
        min-width: 64px;
        min-height: 54px;
        position: relative;
    }

    .nav-item span {
        display: block; /* Override the hidden span */
        font-size: 0.62rem;
        font-weight: 600;
        text-align: center;
        margin-top: 2px;
    }

    .nav-item i { width: 22px; height: 22px; }

    .nav-item.active {
        color: #fff;
        background: rgba(99, 102, 241, 0.2);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(99,102,241,0.2);
    }

    .sidebar-footer { display: none; }
    
    .explore-only { display: flex !important; }
    .explore-grid { grid-template-columns: 1fr; }
    .explore-card { padding: 18px; }

    /* ── Main content pushes up, leaves room for tab bar ── */
    .main-content {
        height: 100vh;
        padding-bottom: 80px;
    }

    /* ── Header on mobile ── */
    .content-header {
        height: 72px;
        padding: 0 16px;
    }

    .content-header .header-left h1 { font-size: 1.15rem; }
    .content-header .header-left p { display: none; }

    /* Hide search bar on mobile, keep bell icon */
    .search-bar { display: none; }

    /* ── Scroll container ── */
    .scroll-container { padding: 16px; }

    /* ── Watchlist stats ── */
    .watchlist-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 1.3rem; }

    /* ── Cards grid ── */
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }

    /* ── Crypto card ── */
    .crypto-card { padding: 24px; margin-bottom: 8px; }

    /* ── Alert form ── */
    .glass-form-container { padding: 20px; }
    .alert-form { grid-template-columns: 1fr; gap: 14px; }

    /* ── Alert items ── */
    .alert-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }

    /* ── News grid ── */
    .news-grid { grid-template-columns: 1fr; }
    .news-card { border-radius: 16px; }

    /* ── Analytics ── */
    .analytics-grid { grid-template-columns: 1fr; gap: 16px; }
    .analytics-card { padding: 20px 16px; border-radius: 20px; }
    .chart-main { min-height: 280px; }
    .analytics-stats-sidebar { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 12px;
        flex-direction: unset;
    }
    .analytics-stats-sidebar .stat-card { padding: 12px; justify-content: center; }
    .analytics-stats-sidebar .stat-card:last-child { grid-column: span 2; }
    .analytics-chart-container { min-height: 260px; }

    /* ── Modal ── */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-card {
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        padding: 24px 16px;
        width: 100%; margin: 0; border: none;
    }
    .modal-main-grid { grid-template-columns: 1fr; min-height: auto; }
    .modal-info-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0 0 20px; gap: 20px; }
    .modal-chart-panel { padding: 24px 0 0; }
    .chart-wrapper { height: 260px; }
    .price-main { font-size: 1.8rem; }
    .modal-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .timeframe-selector { margin-bottom: 12px; }
    .close-modal { right: 16px; top: 16px; }
}
/* Analytics Tab Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 10px;
}

.analytics-card {
    padding: 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.chart-main {
    min-height: 520px;
}

.chart-header { margin-bottom: 30px; }
.chart-header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 5px; }
.chart-header p { font-size: 0.85rem; color: #9ca3af; }

.analytics-chart-container {
    flex: 1;
    position: relative;
    min-height: 380px;
}

.analytics-stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Explore Tab Hub */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.explore-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--ease);
}
.explore-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: var(--primary-glow);
}
.explore-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.explore-info { flex: 1; }
.explore-info h3 { font-size: 1.15rem; margin-bottom: 4px; color: #fff; }
.explore-info p { font-size: 0.85rem; color: #9ca3af; margin: 0; }
.explore-card .arrow { opacity: 0.3; transition: var(--ease); }
.explore-card:hover .arrow { opacity: 1; transform: translateX(4px); }

/* Profile Dropdown */
.header-actions { display: flex; align-items: center; gap: 16px; }
.profile-dropdown { position: relative; }
.profile-trigger {
    background: none; border: none; padding: 0; cursor: pointer;
}
.avatar-sm {
    width: 38px; height: 38px; border-radius: 50%;
    background: #374151; border: 2px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 0.9rem;
    transition: var(--ease);
}
.profile-trigger:hover .avatar-sm { border-color: var(--primary); transform: scale(1.05); }

.dropdown-menu {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 220px; padding: 12px;
    border-radius: 16px; display: none;
    flex-direction: column; z-index: 500;
    animation: fadeIn 0.2s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.dropdown-menu.active { display: flex; }
.dropdown-header { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.dropdown-header strong { font-size: 0.95rem; color: #fff; }
.dropdown-header span { font-size: 0.75rem; color: #10b981; font-weight: 600; }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }
.dropdown-item {
    padding: 10px 12px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: #9ca3af; transition: var(--ease);
    background: none; border: none; text-align: left; cursor: pointer; text-decoration: none;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dropdown-item i, .dropdown-item svg { width: 18px; height: 18px; }

.dropdown-settings { padding: 4px 12px; }
.settings-group { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.settings-group label { font-size: 0.85rem; color: #9ca3af; display: flex; align-items: center; gap: 8px; }
.settings-group label svg { width: 16px; height: 16px; }

.glass-select {
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 6px 24px 6px 10px; border-radius: 8px; font-size: 0.85rem; font-family: inherit;
    cursor: pointer; outline: none; transition: var(--ease);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center;
}
.glass-select:focus, .glass-select:hover { border-color: #6366f1; background-color: rgba(99,102,241,0.1); }
.glass-select option { background: #0f172a; color: #fff; }
.logout-txt { color: #f87171; }
.logout-txt:hover { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* Hide Explore from sidebar by default */
.explore-only { display: none !important; }

@media (max-width: 1100px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Detail Modal */
.detail-modal {
    max-width: 1100px;
    padding: 0;
    overflow: hidden;
}

.modal-main-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 600px;
}

.modal-info-panel {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-chart-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.coin-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

#modalCoinIcon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.coin-titles h2 {
    font-size: 1.75rem;
    margin: 0;
}

#modalCoinSymbol {
    color: #818cf8;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-price-strip {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.price-change-pill {
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.m-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-stat span {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-description-section h4 {
    margin-bottom: 12px;
    color: #fff;
}

.description-text {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

@media (max-width: 900px) {
    .modal-main-grid {
        grid-template-columns: 1fr;
    }
    .modal-info-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

