/* =============================================
   OGG Token Platform - Premium UI Design
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   CSS Variables / Theme
   ============================================= */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-input: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.9);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --border-color: rgba(148, 163, 184, 0.25);
    --border-light: rgba(148, 163, 184, 0.35);
    
    --sidebar-width: 270px;
    --header-height: 70px;
    
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-info: linear-gradient(135deg, #06b6d4, #0ea5e9);
    --gradient-dark: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    --gradient-bg: linear-gradient(135deg, #f0f0ff 0%, #f5f3ff 50%, #f0f0ff 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Base Styles
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary);
}

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* =============================================
   Auth Pages (Login / Register)
   ============================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-bg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    animation: authBgPulse 8s ease-in-out infinite alternate;
}

@keyframes authBgPulse {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.1) rotate(2deg); opacity: 0.8; }
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    animation: fadeInUp 0.6s ease-out;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* =============================================
   Layout - Sidebar
   ============================================= */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-brand h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.sidebar-brand small {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-nav .nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 12px 14px 8px;
}

.sidebar-nav .nav-item {
    margin-bottom: 2px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav .nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.sidebar-nav .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 3px 8px;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-user .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user .user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user .user-info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-info .email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   Main Content Area
   ============================================= */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-dark);
}

.top-header {
    height: var(--header-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-header .page-title {
    font-size: 20px;
    font-weight: 700;
}

.top-header .page-title small {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
    cursor: pointer;
}

.header-actions .btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.content-area {
    padding: 28px;
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    padding: 20px 24px;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5, .card-header h6 {
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.primary::before { background: var(--gradient-primary); }
.stat-card.success::before { background: var(--gradient-success); }
.stat-card.warning::before { background: var(--gradient-warning); }
.stat-card.info::before { background: var(--gradient-info); }
.stat-card.danger::before { background: var(--gradient-danger); }

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.stat-card.primary .stat-icon { background: rgba(99, 102, 241, 0.12); color: var(--primary-light); }
.stat-card.success .stat-icon { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.stat-card.warning .stat-icon { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.stat-card.info .stat-icon { background: rgba(6, 182, 212, 0.12); color: var(--info); }
.stat-card.danger .stat-icon { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 20px;
}

.stat-card .stat-change.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card .stat-change.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Glass Card Variant */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-info {
    background: var(--gradient-info);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary-light);
}
.btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.btn-outline-light:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-dark:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Quick Action Buttons */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
    color: var(--text-primary);
}

.quick-action-btn i {
    font-size: 28px;
}

.quick-action-btn.deposit i { color: var(--success); }
.quick-action-btn.swap i { color: var(--primary-light); }
.quick-action-btn.withdraw i { color: var(--warning); }
.quick-action-btn.referral i { color: var(--info); }

.quick-action-btn span {
    font-size: 13px;
    font-weight: 600;
}

/* =============================================
   Forms
   ============================================= */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-input);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled, .form-control[readonly] {
    background: #e2e8f0;
    color: var(--text-muted);
    cursor: not-allowed;
}

.input-group-text {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
}

.form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-light);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Swap Form Special */
.swap-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.swap-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin: -8px auto;
    position: relative;
    z-index: 5;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.swap-arrow:hover {
    transform: rotate(180deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* =============================================
   Tables
   ============================================= */
.table {
    color: var(--text-primary);
    margin: 0;
}

.table thead th {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 14px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 13px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    border-radius: var(--radius-md);
}

/* =============================================
   Badges
   ============================================= */
.badge {
    font-weight: 600;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge.bg-success { background: rgba(16, 185, 129, 0.15) !important; color: var(--success) !important; }
.badge.bg-warning { background: rgba(245, 158, 11, 0.15) !important; color: var(--warning) !important; }
.badge.bg-danger { background: rgba(239, 68, 68, 0.15) !important; color: var(--danger) !important; }
.badge.bg-info { background: rgba(6, 182, 212, 0.15) !important; color: var(--info) !important; }
.badge.bg-primary { background: rgba(99, 102, 241, 0.15) !important; color: var(--primary-light) !important; }
.badge.bg-secondary { background: rgba(148, 163, 184, 0.15) !important; color: var(--text-secondary) !important; }

/* =============================================
   Alert / Toast
   ============================================= */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.5s ease-out;
}

.announcement-bar i {
    color: var(--primary-light);
    font-size: 20px;
}

.announcement-bar p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* =============================================
   Referral Card
   ============================================= */
.referral-link-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.referral-link-box .ref-url {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    word-break: break-all;
}

/* =============================================
   Modal
   ============================================= */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-header .btn-close {
    filter: none;
    opacity: 0.6;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

.modal-backdrop.show {
    opacity: 0.7;
}

/* =============================================
   Pagination
   ============================================= */
.pagination .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-darker);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* =============================================
   Dropdown
   ============================================= */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 6px 0;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease-out; }
.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-slideDown { animation: slideDown 0.4s ease-out; }

.delay-1 { animation-delay: 0.1s; animation-fill-mode: both; }
.delay-2 { animation-delay: 0.2s; animation-fill-mode: both; }
.delay-3 { animation-delay: 0.3s; animation-fill-mode: both; }
.delay-4 { animation-delay: 0.4s; animation-fill-mode: both; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   Balance Display
   ============================================= */
.balance-display {
    text-align: center;
    padding: 32px 24px;
}

.balance-display .balance-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-display .balance-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   Copy Button
   ============================================= */
.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.copy-btn.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* =============================================
   Chart Container
   ============================================= */
.chart-container {
    position: relative;
    padding: 16px;
}

/* =============================================
   Mobile Overlay
   ============================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .content-area {
        padding: 20px 16px;
    }
    
    .stat-card .stat-value {
        font-size: 22px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .balance-display .balance-amount {
        font-size: 28px;
    }
    
    /* Swap page responsive */
    .swap-box {
        padding: 16px;
    }
    
    .swap-box .form-control-lg {
        font-size: 18px !important;
    }
    
    /* Referral page responsive */
    .referral-link-box {
        padding: 16px;
    }
    
    .referral-link-box .ref-url {
        flex-direction: column;
        gap: 8px;
    }
    
    .referral-link-box .ref-url span {
        word-break: break-all;
        font-size: 11px;
    }
    
    .referral-link-box .ref-url .copy-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Modal responsive */
    .modal-dialog {
        margin: 12px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
}

@media (max-width: 767.98px) {
    /* Dashboard stat cards - 2 per row */
    .row.g-3 > .col-md-6.col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
    }
    
    .stat-card .stat-label {
        font-size: 11px;
    }
    
    .stat-card .stat-change {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Card padding on mobile */
    .card-body {
        padding: 16px;
    }
    
    .card-header {
        padding: 14px 16px;
    }
    
    /* Table improvements */
    .table thead th {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Withdrawal page */
    .balance-display {
        padding: 20px 16px;
    }
    
    /* Profile page */
    .user-avatar.mx-auto {
        width: 60px !important;
        height: 60px !important;
        font-size: 22px !important;
    }
}

@media (max-width: 575.98px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions .quick-action-btn {
        padding: 14px 10px;
    }
    
    .quick-actions .quick-action-btn i {
        font-size: 22px;
    }
    
    .quick-actions .quick-action-btn span {
        font-size: 11px;
    }
    
    .top-header {
        padding: 0 12px;
        height: 60px;
    }
    
    .top-header .page-title {
        font-size: 15px;
    }
    
    .top-header .page-title small {
        font-size: 11px;
        display: none;
    }
    
    .content-area {
        padding: 16px 12px;
    }
    
    .table {
        font-size: 11px;
    }
    
    .table thead th {
        padding: 8px 8px;
        font-size: 9px;
        letter-spacing: 0;
    }
    
    .table tbody td {
        padding: 8px 8px;
        font-size: 11px;
    }
    
    /* Hide less important table columns on very small screens */
    .table .text-sm.text-muted:last-child {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Swap form responsive */
    .swap-box .d-flex.gap-2 .btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .swap-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Info summary boxes */
    .p-3.rounded[style*="bg-darker"],
    .mt-3.p-3.rounded {
        padding: 12px !important;
    }
    
    .p-3.rounded .text-sm,
    .mt-3.p-3.rounded .text-sm {
        font-size: 11px;
    }
    
    /* Buttons full width on mobile */
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Referral page responsive */
    .referral-link-box .ref-url {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    /* Alert responsive */
    .alert {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .alert i {
        font-size: 16px;
    }
    
    /* Balance display */
    .balance-display .balance-amount {
        font-size: 24px;
    }
    
    .balance-display .balance-label {
        font-size: 12px;
    }
    
    /* Profile info items */
    .d-flex.justify-content-between.py-2 {
        font-size: 12px;
    }
    
    /* Dashboard referral card on mobile - ref URL smaller */
    .card-body .ref-url span#refLink {
        font-size: 10px;
        word-break: break-all;
    }
    
    /* Swap confirm modal mobile */
    #swapConfirmModal .modal-body .p-3 {
        padding: 12px !important;
    }
    
    #swapConfirmModal .fs-5 {
        font-size: 1rem !important;
    }
    
    /* Header actions spacing */
    .header-actions {
        gap: 6px;
    }
    
    .header-actions .d-none.d-md-flex {
        display: none !important;
    }
    
    /* Form inputs */
    .form-control, .form-select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .input-group-text {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Withdrawal/swap history - make scrollable */
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
    }
}

/* Very small screens */
@media (max-width: 359.98px) {
    .row.g-3 > .col-md-6.col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .content-area {
        padding: 12px 8px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* =============================================
   Landing Page Specific
   ============================================= */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.landing-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* =============================================
   Admin Specific
   ============================================= */
.admin-sidebar .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
}

.admin-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* =============================================
   Form Switch Toggle
   ============================================= */
.form-switch .form-check-input {
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}

/* =============================================
   Utilities
   ============================================= */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-glow {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px var(--primary-glow);
}

.bg-darker {
    background: var(--bg-darker) !important;
}

.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.fw-800 { font-weight: 800; }

/* =============================================
   Token Price Button (Navbar)
   ============================================= */
.token-price-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.token-price-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.token-price-btn:active {
    transform: translateY(0);
}

.token-price-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    animation: tokenIconGlow 2s ease-in-out infinite alternate;
}

@keyframes tokenIconGlow {
    0% { box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35); }
    100% { box-shadow: 0 2px 16px rgba(99, 102, 241, 0.55); }
}

.token-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.token-price-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.token-price-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.token-price-pulse {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    transform: translateY(-50%);
    display: none;
}

.token-price-pulse::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: pricePulse 1.5s ease-in-out infinite;
}

@keyframes pricePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* =============================================
   Token Price Modal (Premium)
   ============================================= */
.token-price-modal-content {
    border: none;
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 60px rgba(99, 102, 241, 0.08);
}

.token-price-modal-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    border-bottom: none !important;
    padding: 24px 28px !important;
    color: white;
}

.token-price-modal-header .modal-title {
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.token-price-modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8;
}

.token-price-modal-header .btn-close:hover {
    opacity: 1;
}

.token-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.token-modal-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.token-price-modal-body {
    padding: 28px !important;
}

/* Main Price Display */
.token-main-price {
    text-align: center;
    padding: 28px 20px;
    margin: -4px -4px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.06));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.token-main-price-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.token-main-price-amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.token-currency-sign {
    font-size: 28px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
}

.token-price-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    margin-left: 6px;
    letter-spacing: 0;
    vertical-align: middle;
}

.token-price-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Ratio Cards */
.token-ratio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.token-ratio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.token-ratio-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.token-ratio-card.buy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.08));
    border-color: rgba(16, 185, 129, 0.2);
}

.token-ratio-card.sell {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(245, 158, 11, 0.08));
    border-color: rgba(245, 158, 11, 0.2);
}

.token-ratio-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.token-ratio-card.buy .token-ratio-card-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.token-ratio-card.sell .token-ratio-card-icon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.token-ratio-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.token-ratio-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.token-ratio-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Holdings Section */
.token-holdings-section {
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    padding: 20px;
}

.token-holdings-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.token-holdings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.token-holding-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.token-holding-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.token-holding-icon.usdt {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.token-holding-icon.ogg {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.token-holding-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.token-holding-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.token-holding-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.token-portfolio-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.12));
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.token-portfolio-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.token-portfolio-value {
    font-size: 16px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.token-price-modal-footer {
    border-top: none !important;
    padding: 0 28px 24px !important;
}

/* Token Price Modal Responsive */
@media (max-width: 575.98px) {
    .token-price-btn .token-price-info {
        display: none;
    }
    
    .token-price-btn {
        padding: 4px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .token-price-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .token-main-price-amount {
        font-size: 32px;
    }
    
    .token-currency-sign {
        font-size: 22px;
    }
    
    .token-ratio-grid {
        grid-template-columns: 1fr;
    }
    
    .token-price-modal-body {
        padding: 20px !important;
    }
    
    .token-price-modal-footer {
        padding: 0 20px 20px !important;
    }
}

/* =============================================
   Crypto Wallet Dashboard
   ============================================= */
.wallet-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop: 2-column grid layout */
@media (min-width: 992px) {
    .wallet-dashboard {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    /* Remove margin-bottom in grid mode (gap handles spacing) */
    .wallet-dashboard .wallet-balance-card,
    .wallet-dashboard .wallet-assets-section,
    .wallet-dashboard .wallet-stats-row,
    .wallet-dashboard .wallet-transactions-section,
    .wallet-dashboard .wallet-referral-card {
        margin-bottom: 0;
    }

    /* Balance card spans full width - row 1 */
    .wallet-balance-card {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Assets section takes left column, spans rows 2-3 */
    .wallet-assets-section {
        grid-column: 1;
        grid-row: 2 / 4;
    }

    /* Stats in right column - row 2 */
    .wallet-stats-row {
        grid-column: 2;
        grid-row: 2;
    }

    /* Transactions in right column - row 3 */
    .wallet-transactions-section {
        grid-column: 2;
        grid-row: 3;
    }

    /* Referral card spans full width - row 4 */
    .wallet-referral-card {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

/* Medium screens (tablets landscape) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .wallet-dashboard {
        max-width: 720px;
    }
}

/* Mobile: single column (default) */
@media (max-width: 767.98px) {
    .wallet-dashboard {
        max-width: 100%;
    }
}

/* --- Total Balance Card --- */
.wallet-balance-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a78bfa 70%, #c084fc 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wallet-balance-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wallet-balance-content {
    position: relative;
    z-index: 1;
    padding: 28px 24px 24px;
}

.wallet-balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wallet-balance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
}

.wallet-balance-label i {
    font-size: 18px;
}

.wallet-balance-eye {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.wallet-balance-eye:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wallet-balance-amount,
.wallet-balance-hidden {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wallet-currency-sign {
    font-size: 28px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
    opacity: 0.9;
}

.wallet-currency-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 6px;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* Action Buttons inside balance card */
.wallet-action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.wallet-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

.wallet-action-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.wallet-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-action-btn:hover .wallet-action-icon {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wallet-action-btn span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* --- Assets Section --- */
.wallet-assets-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.wallet-section-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.wallet-section-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.wallet-assets-list {
    padding: 4px 0;
}

.wallet-asset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.wallet-asset-item:last-child {
    border-bottom: none;
}

.wallet-asset-item:hover {
    background: rgba(99, 102, 241, 0.03);
}

.wallet-asset-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wallet-asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.wallet-asset-icon.usdt {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.wallet-asset-icon.token {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.wallet-asset-icon.bonus {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.wallet-asset-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.wallet-asset-fullname {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.wallet-asset-right {
    text-align: right;
}

.wallet-asset-balance {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.wallet-asset-value {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.wallet-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--warning);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    transition: var(--transition);
}

.wallet-claim-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* --- Quick Stats Row --- */
.wallet-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.wallet-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.wallet-stat-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.wallet-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wallet-stat-icon.referral-icon {
    background: rgba(6, 182, 212, 0.12);
    color: var(--info);
}

.wallet-stat-icon.active-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.wallet-stat-icon.pending-icon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.wallet-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.wallet-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Transactions Section --- */
.wallet-transactions-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.wallet-tx-list {
    padding: 4px 0;
}

.wallet-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.wallet-tx-item:last-child {
    border-bottom: none;
}

.wallet-tx-item:hover {
    background: rgba(99, 102, 241, 0.03);
}

.wallet-tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-tx-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.wallet-tx-icon.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.wallet-tx-icon.primary {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.wallet-tx-icon.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.wallet-tx-icon.info {
    background: rgba(6, 182, 212, 0.12);
    color: var(--info);
}

.wallet-tx-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.wallet-tx-icon.secondary {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
}

.wallet-tx-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.wallet-tx-time {
    font-size: 12px;
    color: var(--text-muted);
}

.wallet-tx-right {
    text-align: right;
}

.wallet-tx-amount {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.wallet-tx-amount.success { color: var(--success); }
.wallet-tx-amount.primary { color: var(--primary); }
.wallet-tx-amount.warning { color: var(--warning); }
.wallet-tx-amount.info { color: var(--info); }
.wallet-tx-amount.danger { color: var(--danger); }
.wallet-tx-amount.secondary { color: var(--text-secondary); }

.wallet-tx-currency {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Empty State --- */
.wallet-empty-state {
    text-align: center;
    padding: 40px 24px;
}

.wallet-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-darker);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.wallet-empty-state h6 {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.wallet-empty-state p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

/* --- Referral Card --- */
.wallet-referral-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.wallet-referral-body {
    padding: 16px 20px;
}

.wallet-ref-link-box {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wallet-ref-link {
    font-size: 12px;
    color: var(--primary);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* =============================================
   Wallet Dashboard — Responsive
   ============================================= */

/* Tablet */
@media (max-width: 991.98px) {
    .wallet-dashboard {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .wallet-balance-content {
        padding: 22px 18px 20px;
    }

    .wallet-balance-amount,
    .wallet-balance-hidden {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .wallet-currency-sign {
        font-size: 22px;
    }

    .wallet-action-buttons {
        gap: 10px;
        margin-top: 20px;
    }

    .wallet-action-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 20px;
    }

    .wallet-action-btn span {
        font-size: 11px;
    }

    .wallet-asset-item {
        padding: 14px 16px;
    }

    .wallet-asset-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }

    .wallet-asset-name {
        font-size: 14px;
    }

    .wallet-asset-balance {
        font-size: 14px;
    }

    .wallet-stats-row {
        gap: 8px;
    }

    .wallet-stat-card {
        padding: 12px;
        gap: 10px;
    }

    .wallet-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .wallet-stat-value {
        font-size: 17px;
    }

    .wallet-stat-label {
        font-size: 10px;
    }

    .wallet-tx-item {
        padding: 12px 16px;
    }

    .wallet-tx-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .wallet-tx-type {
        font-size: 13px;
    }

    .wallet-tx-amount {
        font-size: 13px;
    }

    .wallet-section-header {
        padding: 14px 16px;
    }

    .wallet-referral-body {
        padding: 14px 16px;
    }

    .wallet-ref-link-box {
        flex-direction: column;
        gap: 10px;
    }

    .wallet-ref-link-box .copy-btn {
        width: 100%;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .wallet-balance-card {
        border-radius: var(--radius-lg);
        margin-bottom: 14px;
    }

    .wallet-balance-content {
        padding: 20px 16px 18px;
    }

    .wallet-balance-amount,
    .wallet-balance-hidden {
        font-size: 28px;
    }

    .wallet-currency-sign {
        font-size: 20px;
    }

    .wallet-currency-label {
        font-size: 12px;
    }

    .wallet-action-buttons {
        gap: 8px;
        margin-top: 18px;
    }

    .wallet-action-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 18px;
    }

    .wallet-action-btn span {
        font-size: 10px;
    }

    .wallet-balance-eye {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .wallet-assets-section,
    .wallet-transactions-section,
    .wallet-referral-card {
        border-radius: var(--radius-md);
        margin-bottom: 12px;
    }

    .wallet-stats-row {
        gap: 6px;
        margin-bottom: 12px;
    }

    .wallet-stat-card {
        padding: 10px 8px;
        gap: 8px;
        border-radius: var(--radius-sm);
        flex-direction: column;
        text-align: center;
    }

    .wallet-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }

    .wallet-stat-value {
        font-size: 16px;
    }

    .wallet-asset-item {
        padding: 12px 14px;
        gap: 8px;
    }

    .wallet-asset-left {
        gap: 10px;
    }

    .wallet-asset-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .wallet-asset-name {
        font-size: 13px;
    }

    .wallet-asset-fullname {
        font-size: 11px;
    }

    .wallet-asset-balance {
        font-size: 13px;
    }

    .wallet-asset-value {
        font-size: 11px;
    }

    .wallet-tx-item {
        padding: 10px 14px;
    }

    .wallet-tx-left {
        gap: 10px;
    }

    .wallet-tx-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }

    .wallet-tx-type {
        font-size: 12px;
    }

    .wallet-tx-time {
        font-size: 11px;
    }

    .wallet-tx-amount {
        font-size: 12px;
    }

    .wallet-tx-currency {
        font-size: 10px;
    }

    .wallet-ref-link {
        font-size: 11px;
    }

    .wallet-empty-state {
        padding: 30px 16px;
    }

    .wallet-empty-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* Very small screens */
@media (max-width: 359.98px) {
    .wallet-balance-amount,
    .wallet-balance-hidden {
        font-size: 24px;
    }

    .wallet-currency-sign {
        font-size: 18px;
    }

    .wallet-action-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .wallet-action-btn span {
        font-size: 9px;
    }

    .wallet-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
