:root {
    --primary-blue: #3498db;
    --primary-blue-hover: #2980b9;
    --bg-main: #ebedef;
    --bg-dark: #2c3e50;
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #5d6d7e;
    --text-light: #ecf0f1;
    --border-color: #bdc3c7;
    --success: #27ae60;
    --pending: #f39c12;
    --navbar-height: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

html, body {
    overflow: visible;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--navbar-height);
}

body.no-scroll {
    overflow: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background-color: var(--bg-dark);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo span { color: var(--primary-blue); }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
    transition: color 0.3s;
}

.nav-toggle:hover {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-blue); }

.btn-primary {
    background: var(--primary-blue);
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s !important;
}

.btn-primary:hover {
    background: var(--primary-blue-hover) !important;
    transform: translateY(-2px);
}

.btn-load-more {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-load-more:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

.btn-load-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.btn-load-more:hover i {
    transform: translateY(2px);
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 50px;
}

.avatar { width: 30px; height: 32px; border-radius: 50%; border: 2px solid var(--primary-blue); }
.display_name { color: #fff; font-weight: 600; font-size: 14px; }
.btn-logout-link { font-size: 12px !important; opacity: 0.6; margin-left: 8px; }

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    align-items: stretch;
}

.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
}

.sidebar-sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: var(--navbar-height);
    padding: 40px 20px;
    height: fit-content;
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
}

.sidebar-sticky-wrapper::-webkit-scrollbar { width: 0; background: transparent; }

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

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.sidebar-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--bg-main);
    color: var(--primary-blue);
}

.sidebar-link.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dashboard-content {
    flex-grow: 1;
    min-width: 0;
    padding: 40px 60px;
    background: #fff;
}

.dashboard-content > div[id] {
    scroll-margin-top: calc(var(--navbar-height) + 40px);
}

/* Dashboard Profile Header */
.profile-header {
    background: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.dashboard-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-blue);
    border: 4px solid var(--primary-blue);
}

.profile-username {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.user-id-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-logout-alt {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout-alt:hover { color: #e74c3c; }

/* Dashboard Tables */
th i { margin-left: 8px; opacity: 0.3; font-size: 14px; width: 12px; display: inline-flex; justify-content: center; }
th.active-sort { color: var(--primary-blue); }
th.active-sort i { opacity: 1; color: var(--primary-blue); }
th:hover { background: rgba(0,0,0,0.02); cursor: pointer; }

.addr-box {
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    word-break: break-all;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.addr-box:hover {
    border-color: var(--primary-blue);
    background-color: rgba(52, 152, 219, 0.05);
    transform: translateY(-1px);
}

/* DM Notice Box */
.dm-notice-box {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid var(--primary-blue);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dm-notice-icon {
    font-size: 24px;
    color: var(--primary-blue);
    background: rgba(52, 152, 219, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-notice-content strong {
    display: block;
    color: var(--bg-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.dm-notice-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.dm-notice-content code {
    background: var(--bg-dark);
    color: var(--primary-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Command Tabs Styles */
.command-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--bg-main);
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Command Guide Styles */
.command-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.command-category {
    width: 100%;
    max-width: 100%;
}

.command-category h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.command-item {
    margin-bottom: 25px;
}

.command-usage {
    background: var(--bg-dark);
    color: var(--primary-blue);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.command-item p {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 5px;
}

/* Sections & General */
.dashboard-section {
    padding: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.section-title { font-size: 28px; font-weight: 800; margin-bottom: 30px; color: var(--bg-dark); text-align: left;}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-main);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card h3 { margin-bottom: 20px; font-size: 14px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }

.balance-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cur-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--primary-blue); }

.history-full { margin-top: 30px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
td { padding: 15px; border-top: 1px solid rgba(0,0,0,0.05); font-size: 14px; }

.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pill.complete { background: #e6f4ea; color: var(--success); }
.status-pill.pending { background: #fff7e6; color: var(--pending); }

/* Hero Section Refinements */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--text-light);
}

.hero-content { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; line-height: 1.1; font-weight: 800; }
.hero h1 span { color: var(--primary-blue); }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; }

.hero-btns { display: flex; gap: 1.5rem; justify-content: center; }

.btn-large {
    background: var(--primary-blue);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
}

/* Trust Section */
.trust-bar {
    background: #fff;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
}

.trust-track {
    display: flex;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    flex-shrink: 0;
}

.mobile-copy { display: none; }

.stat-item { font-size: 1rem; color: var(--text-muted); white-space: nowrap; }
.stat-item strong { color: var(--primary-blue); font-size: 1.2rem; margin-right: 5px; }

/* Features Section */
.features { padding: 8rem 0; background: #fff; text-align: center; }
.section-header h2 { font-size: 3rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.feature-card { padding: 3rem; background: var(--bg-main); border-radius: 24px; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card .icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; }
.feature-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; color: var(--bg-dark); }

/* Ecosystem Section */
.ecosystem { padding: 8rem 0; background: var(--bg-dark); color: #fff; }
.eco-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.eco-text h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; }
.eco-text h2 span { color: var(--primary-blue); }
.token-types { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.token-item strong { color: var(--primary-blue); display: block; margin-bottom: 0.5rem; font-size: 1.1rem; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.coin { background: rgba(255,255,255,0.05); padding: 2rem 1rem; border-radius: 20px; text-align: center; font-weight: 800; font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.1); }
.coin.highlight { color: var(--primary-blue); border-color: var(--primary-blue); }

/* Security Section */
.security { padding: 8rem 0; background: var(--bg-main); }
.glass-panel { background: var(--bg-dark); padding: 4rem; border-radius: 40px; color: #fff; }
.glass-panel h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 3rem; text-align: center; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.sec-item h4 { color: var(--primary-blue); font-size: 1.2rem; margin-bottom: 1rem; }
.sec-item p { opacity: 0.7; font-size: 0.95rem; }

/* Widget Section */
.widget-section { padding: 8rem 0; text-align: center; background: #fff; }
.widget-section h2 span { color: var(--primary-blue); }
.widget-container { margin-top: 4rem; display: flex; justify-content: center; }

/* Footer */
footer { background: var(--bg-dark); color: #fff; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-info h3 { margin-bottom: 1.5rem; color: var(--primary-blue); }
.footer-links h4, .footer-legal h4 { margin-bottom: 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; }
.footer-links a, .footer-legal a { display: block; color: #fff; text-decoration: none; margin-bottom: 0.8rem; opacity: 0.8; transition: opacity 0.3s; }
.footer-links a:hover, .footer-legal a:hover { opacity: 1; color: var(--primary-blue); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; opacity: 0.6; font-size: 0.9rem; }
@media (max-width: 1024px) {
    .nav-toggle { display: block; }

    .mobile-copy { display: block; }

    .trust-track {
        justify-content: flex-start;
        gap: 6rem;
        width: max-content;
        animation: marquee 30s linear infinite;
        padding-left: 2rem;
    }

    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 3rem)); }
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links li { 
        width: 100%; 
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links .btn-primary {
        display: inline-block;
        width: auto;
        margin-top: 1rem;
        border-bottom: none;
        padding: 0.8rem 2rem;
        border-radius: 12px;
    }

    .user-item {
        flex-direction: column;
        align-items: center;
        background: rgba(255,255,255,0.08);
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-top: 2rem;
        gap: 1.5rem;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .user-item a[href*="dashboard"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        border-bottom: none !important;
        padding: 0 !important;
    }

    .user-item .avatar {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    .user-item .display_name {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .user-item .btn-logout-link {
        margin: 0;
        padding: 8px 24px !important;
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c !important;
        border-radius: 50px;
        border: 1px solid rgba(231, 76, 60, 0.2) !important;
        font-size: 0.9rem !important;
        opacity: 1;
        transition: all 0.3s;
    }

    .user-item .btn-logout-link:hover {
        background: #e74c3c;
        color: #fff !important;
    }

    .hero h1 { font-size: 3rem; }
    .feature-grid, .eco-split, .security-grid, .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .glass-panel { padding: 2rem; }
    .dashboard-layout { 
        display: block;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .dashboard-sidebar { 
        height: 60px; /* Slightly taller for better touch targets */
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        width: 100%;
        border-right: none; 
        border-bottom: 1px solid var(--border-color);
        background: #fff;
        z-index: 1000;
        overflow: hidden;
    }

    .sidebar-sticky-wrapper { 
        height: 100%;
        padding: 0 !important; /* Reset global padding */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar on mobile */
    .sidebar-sticky-wrapper::-webkit-scrollbar { display: none; }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 0;
        padding: 0;
        height: 100%;
        width: max-content; /* Ensure it scrolls horizontally */
    }

    .sidebar-link {
        height: 100%;
        display: flex;
        align-items: center;
        border-radius: 0;
        padding: 0 24px;
        white-space: nowrap;
        border-bottom: 3px solid transparent;
        font-size: 14px;
        color: var(--text-muted);
        transition: all 0.2s ease;
    }

    .dashboard-content { 
        padding: 20px;
        margin-top: 60px; /* Match new sidebar height */
    }

    .dashboard-content > div[id] {
        scroll-margin-top: calc(var(--navbar-height) + 80px);
    }

    .sidebar-link.active {
        background: rgba(52, 152, 219, 0.05);
        color: var(--primary-blue);
        border-bottom: 3px solid var(--primary-blue);
        box-shadow: none;
        font-weight: 700;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .profile-main {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-username {
        font-size: 1.4rem;
    }

    .profile-username span {
        display: block;
        margin-top: 5px;
    }

    .card {
        padding: 20px;
    }

    .balance-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .table-container {
        margin: 0 -20px;
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    .command-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-btn {
        flex: 1;
        min-width: 140px;
        font-size: 13px;
        padding: 8px 12px;
    }

    .dm-notice-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.close-modal {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-blue);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-main);
    line-height: 1.6;
}

.modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.modal-footer button {
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        height: 80vh;
    }
    
    .modal-footer {
        flex-direction: column;
        text-align: center;
    }
}
