

:root {
    
    --primary: #2563eb;
    --primary-soft: #eff6ff;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #f1f5f9;
    
    
    --radius-full: 9999px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-heavy: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --header-h: 76px;
}


* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }



.main-header {
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e8edf5;
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.brand span span { color: var(--text-main); }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.15s;
}
.nav-link i { font-size: 0.85rem; }
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); font-weight: 800; }


.user-wrapper { position: relative; flex-shrink: 0; }

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    background: #fff;
    border: 1.5px solid #e8edf5;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.user-profile:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(37,99,235,0.25);
}

.user-meta { display: flex; flex-direction: column; gap: 2px; }

.uname-row { display: flex; align-items: center; gap: 6px; line-height: 1; }

.uname {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-main);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.urole {
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    text-transform: uppercase;
}
.urole.admin { background: #fee2e2; color: #ef4444; }
.urole.vip { background: #fef3c7; color: #b45309; }
.urole.svip { background: #ede9fe; color: #7c3aed; }

.ubalance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}
.balance-item { display: flex; align-items: center; gap: 3px; }
.balance-item b { color: var(--text-main); font-weight: 900; }
.sep { opacity: 0.25; }


.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2000;
}
.user-wrapper.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.15s;
}
.dropdown-item i { width: 18px; font-size: 0.9rem; opacity: 0.7; }
.dropdown-item:hover { background: #f8fafc; color: var(--primary); }
.dropdown-item:hover i { opacity: 1; color: var(--primary); }
.dropdown-item.logout { color: var(--danger); }
.dropdown-item.logout:hover { background: #fef2f2; color: #dc2626; }
.dropdown-divider { height: 1px; background: #f1f5f9; margin: 6px 0; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }



.content-area { padding: 50px 0 80px; }
.page-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -1px; }
.page-subtitle { color: var(--text-muted); font-weight: 600; margin-bottom: 40px; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.tool-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary);
}

.card-icon {
    width: 76px;
    height: 76px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    overflow: hidden;
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

.card-info h3 { font-size: 1.35rem; font-weight: 900; color: var(--text-main); margin-bottom: 10px; }
.card-meta {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.card-meta b { color: var(--primary); font-weight: 900; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.badge {
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-orange { background: #ffedd5; color: #9a3412; }

.btn-dl {
    width: 100%;
    height: 54px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 16px;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    transition: 0.2s;
}
.btn-dl.free { background: #dcfce7; color: #166534; }
.tool-card:hover .btn-dl:not(.free) { background: var(--primary); color: #fff; }



.deposit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
}

.deposit-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border);
}

.deposit-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.qr-wrapper {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 2px dashed #e2e8f0;
    margin: 24px 0;
}
.qr-image {
    max-width: 240px;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
}

.bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    margin-bottom: 12px;
}
.bank-item span { font-weight: 700; color: var(--text-muted); font-size: 0.9rem; }
.bank-item b { font-weight: 800; font-size: 1rem; }

.copy-badge {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 8px;
    margin-left: 10px;
    cursor: pointer;
}


.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-action.green { background: var(--success); color: #fff; }
.btn-action.blue { background: var(--primary); color: #fff; }
.btn-action:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }


.promo-banner {
    margin-top: 60px;
    background: #0f172a;
    border-radius: 32px;
    padding: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
}
.btn-promo {
    background: var(--primary);
    color: #fff;
    padding: 20px 40px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}


.main-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}



.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
}
.mobile-menu-toggle:hover {
    background: #e2e8f0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-menu-close { display: none; }

@media (max-width: 1024px) {
    .mobile-menu-toggle { display: flex; }
    
    .site-wrapper {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s;
        transform-origin: center right;
    }
    
    body.menu-open .site-wrapper {
        transform: translateX(-300px) scale(0.92);
        border-radius: 32px;
        pointer-events: none;
        user-select: none;
    }

    .desktop-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1200;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 40px 24px;
        box-shadow: -15px 0 35px rgba(0,0,0,0.12);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }
    
    body.menu-open .desktop-nav {
        right: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #f1f5f9;
        border-radius: 12px;
        color: #475569;
        font-size: 1.2rem;
        cursor: pointer;
        margin-bottom: 32px;
        align-self: flex-end;
        transition: 0.2s;
    }
    .mobile-menu-close:hover {
        background: #fee2e2;
        color: #ef4444;
    }
    
    body.menu-open .desktop-nav {
        right: 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open .mobile-overlay {
        display: block;
        opacity: 1;
    }

    .nav-link { padding: 16px 20px; font-size: 1rem; border-radius: 16px; margin-bottom: 4px; }
    
    .promo-banner { flex-direction: column; text-align: center; gap: 40px; padding: 48px; }
    .deposit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-title { font-size: 1.8rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .acc-category-grid { grid-template-columns: 1fr; }
    .hidden-mobile { display: none !important; }
    .user-profile { padding: 4px; }
    .user-avatar { width: 32px; height: 32px; }
}

.scroll-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 22px;
    padding: 14px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,0.04);
    box-sizing: border-box;
}

.history-box {
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.05);
    box-sizing: border-box;
}

.history-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    font-size: 0.95rem;
}

.history-table th {
    background: #f8fafc;
    font-weight: 700;
}

