@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #080c14;
    --bg-secondary: rgba(13, 20, 35, 0.75);
    --bg-card: rgba(17, 25, 44, 0.55);
    --bg-input: rgba(25, 36, 62, 0.4);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-focus: rgba(6, 182, 212, 0.5);
    
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    --text-cyan: #06b6d4;
    --text-violet: #a855f7;
    --text-green: #10b981;
    --text-rose: #f43f5e;
    --text-amber: #f59e0b;
    
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --bg-gradient: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 40%),
                   radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.08), transparent 40%);
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
    --shadow-glow-violet: 0 0 20px rgba(168, 85, 247, 0.15);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --sidebar-width: 260px;
    --header-height: 70px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Core Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--text-cyan);
    display: inline-block;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.menu-item a svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.menu-item a:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-item.active a {
    color: var(--text-main);
    background-color: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: var(--shadow-sm);
}

.menu-item.active a svg {
    color: var(--text-cyan);
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
    box-shadow: var(--shadow-glow-violet);
}

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

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 11px;
    color: var(--text-cyan);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Layout Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-width: 0; /* Prevents flex items from overflowing */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
.header {
    height: var(--header-height);
    background-color: rgba(8, 12, 20, 0.4);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.balance-label {
    color: var(--text-muted);
    font-weight: 500;
}

.balance-value {
    color: var(--text-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-deposit-quick {
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-glow-violet);
}

.btn-deposit-quick:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-logout-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.btn-logout-icon:hover {
    color: var(--text-rose);
    background-color: rgba(244, 63, 94, 0.05);
}

.btn-logout-icon svg {
    width: 20px;
    height: 20px;
}

/* Page Body Container */
.page-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn var(--transition-normal);
}

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

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

/* Dashboard Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.stat-card.purple .stat-icon {
    color: var(--text-violet);
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.15);
}

.stat-card.cyan .stat-icon {
    color: var(--text-cyan);
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.15);
}

.stat-card.green .stat-icon {
    color: var(--text-green);
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
}

.stat-card.amber .stat-icon {
    color: var(--text-amber);
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
}

.stat-card svg {
    width: 24px;
    height: 24px;
}

/* Cards Layout */
.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    width: 20px;
    height: 20px;
    color: var(--text-cyan);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Two Column Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
}

.full-width-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

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

.news-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-color-focus);
    box-shadow: var(--shadow-glow);
    background-color: rgba(25, 36, 62, 0.6);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.input-group-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.badge-info-box {
    background-color: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.badge-info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-violet);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.badge-info-box-header svg {
    width: 16px;
    height: 16px;
}

.badge-info-box-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.badge-info-box-body ul {
    margin-left: 18px;
    margin-top: 6px;
}

/* Order Calculation Area */
.calc-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.calc-row.total {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 6px;
}

.calc-row.total .calc-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.btn-primary-glow {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow-violet);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), 0 0 15px rgba(6, 182, 212, 0.2);
}

.btn-primary-glow:active {
    transform: translateY(0);
}

/* Platform Filter Component */
.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.platform-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-tab-btn svg {
    width: 16px;
    height: 16px;
}

.platform-tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.02);
}

.platform-tab-btn.active {
    color: white;
    background: var(--accent-gradient);
    border: none;
    box-shadow: var(--shadow-glow-violet);
}

/* Table controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.search-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-wrapper .form-control {
    padding-left: 44px;
}

/* Custom Table View */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.custom-table th {
    background-color: rgba(255, 255, 255, 0.015);
    color: var(--text-muted);
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
}

.custom-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.custom-table tbody tr {
    transition: var(--transition-fast);
}

.custom-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--text-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-primary {
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-violet);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Deposit Instructions Page */
.deposit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.banking-info-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.banking-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.banking-label {
    color: var(--text-muted);
    font-size: 13px;
}

.banking-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banking-value {
    font-weight: 600;
    font-size: 14px;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    background-color: rgba(6, 182, 212, 0.1);
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 8px solid white;
}

.qr-code-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ticket Styling */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-subject {
    font-weight: 600;
    font-size: 15px;
}

.ticket-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--text-cyan);
}

.toast.success {
    border-left-color: var(--text-green);
}

.toast.error {
    border-left-color: var(--text-rose);
}

.toast.warning {
    border-left-color: var(--text-amber);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon {
    color: var(--text-green);
}

.toast.error .toast-icon {
    color: var(--text-rose);
}

.toast.warning .toast-icon {
    color: var(--text-amber);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Copy success tooltips */
.copy-tooltip {
    position: relative;
}

.copy-tooltip::after {
    content: 'Đã sao chép!';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: rgba(6, 182, 212, 0.9);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-weight: 600;
}

.copy-tooltip.active::after {
    opacity: 1;
}

/* Service Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-right: 32px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-meta-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
}

.modal-meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 600;
}

.modal-meta-val {
    font-size: 14px;
    font-weight: 600;
}

.modal-desc-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    max-height: 240px;
    overflow-y: auto;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .deposit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .page-body {
        padding: 16px;
        gap: 20px;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .header-actions .balance-card {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .btn-deposit-quick {
        display: none; /* Hide quick deposit on mobile, use navigation */
    }
}

/* Authentication Cover Screens */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    z-index: 9999; /* Higher than everything */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.auth-overlay.active {
    display: flex;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg), 0 0 50px rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: fadeIn var(--transition-normal);
}

.auth-logo {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.auth-toggle-desc {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-toggle-btn {
    color: var(--text-cyan);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    cursor: pointer;
}

.auth-toggle-btn:hover {
    text-decoration: underline;
}

/* Crypto Method UI Styles */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.coin-select-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 6px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.coin-select-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.coin-select-btn.active {
    color: white;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow-violet);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.network-select-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.network-select-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.network-select-btn.active {
    color: white;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow-violet);
}

/* Crypto Payment Box Details */
.crypto-payment-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crypto-amount-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.crypto-amount-badge .amount-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.crypto-amount-badge .amount-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-cyan);
    letter-spacing: 0.5px;
}

.timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-rose);
    font-size: 13px;
    font-weight: 600;
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.15);
    padding: 8px;
    border-radius: 10px;
    margin-top: 10px;
}

.timer-box svg {
    width: 16px;
    height: 16px;
}

.btn-evm-address-copy {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    cursor: pointer;
    width: 100%;
}

.btn-evm-address-copy:hover {
    border-color: var(--text-cyan);
}

.btn-evm-address-copy svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.full-width-grid {
    grid-column: span 2;
    width: 100%;
    margin-top: 12px;
}

/* Small mobile responsiveness tweaks */
@media (max-width: 576px) {
    .header {
        padding: 0 12px;
    }
    .header-title {
        font-size: 16px;
    }
    .balance-card {
        padding: 4px 8px;
        font-size: 11px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-value {
        font-size: 22px;
    }
    .card {
        padding: 16px;
        border-radius: 12px;
    }
    .coin-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .network-grid {
        grid-template-columns: 1fr !important;
    }
    .modal {
        padding: 16px;
        border-radius: 12px;
    }
    .modal-title {
        font-size: 16px;
    }
    .dashboard-grid {
        gap: 16px;
    }
    .platform-tabs {
        gap: 6px;
    }
    .platform-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
