@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-light: #e0f2fe;
    --sidebar-bg: #090e17; 
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body.dashboard-body { display: flex; min-height: 100vh; background-color: var(--bg-main); background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 24px 24px; color: var(--text-dark); overflow-x: hidden; }

/* --- Auth Screen Overlay --- */
.auth-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(20px); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.auth-card { background: white; padding: 3.5rem; border-radius: 24px; width: 100%; max-width: 450px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; transform: translateY(0); transition: transform 0.5s ease; }
.auth-overlay.hidden { opacity: 0; visibility: hidden; }
.auth-overlay.hidden .auth-card { transform: translateY(30px); }
.auth-logo { color: var(--primary); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.5rem; }
.auth-card h2 { font-size: 2rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.auth-card p { color: var(--text-muted); margin-bottom: 2rem; }
.auth-form { text-align: left; }
.btn-full { width: 100%; margin-top: 1rem; padding: 14px; font-size: 1.05rem; }

/* --- God Mode Data Panel --- */
.data-panel { position: fixed; top: 0; right: -500px; width: 480px; height: 100vh; background: white; box-shadow: -10px 0 40px rgba(0,0,0,0.15); z-index: 500; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.data-panel.open { right: 0; }
.data-panel-header { padding: 1.5rem 2rem; background: #f8fafc; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.data-panel-header h3 { font-size: 1.2rem; color: var(--text-dark); }
.close-btn { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: #ef4444; }
.data-panel-content { padding: 2rem; overflow-y: auto; flex: 1; }
.section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin: 0 0 1rem; font-weight: 800; }
.grid-2-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel-divider { border: 0; height: 1px; background: var(--border); margin: 2.5rem 0; }

/* Form & Input Styles */
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
.input-group input, .bespoke-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; outline: none; transition: border-color 0.2s; background: white; }
.input-group input:focus, .bespoke-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.bespoke-form input[disabled] { background: #f1f5f9; color: var(--text-muted); cursor: not-allowed; }

/* --- Sidebar --- */
.sidebar { width: 280px; background: var(--sidebar-bg); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100; box-shadow: 4px 0 24px rgba(0,0,0,0.1); }
.sidebar-header { padding: 2.5rem 2rem; }
.brand-text { color: white; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.brand-text i { color: #38bdf8; }
.nav-menu { list-style: none; padding: 0 1rem; flex: 1; margin-top: 1rem; }
.nav-item { padding: 1rem 1.2rem; margin-bottom: 0.5rem; border-radius: 10px; color: var(--sidebar-text); font-weight: 600; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; }
.nav-item i { font-size: 1.2rem; opacity: 0.7; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--sidebar-active); }
.nav-item:hover i { opacity: 1; }
.nav-item.active { background: rgba(56, 189, 248, 0.1); color: var(--sidebar-active); }
.nav-item.active i { color: #38bdf8; opacity: 1; }
.nav-item.locked { opacity: 0.4; cursor: not-allowed; justify-content: space-between; }
.sidebar-footer { padding: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.user-mini-profile { display: flex; align-items: center; gap: 12px; }
.avatar-sm { width: 36px; height: 36px; background: linear-gradient(135deg, #38bdf8, #0284c7); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-mini-info strong { display: block; color: white; font-size: 0.9rem; }
.user-mini-info span { color: var(--sidebar-text); font-size: 0.8rem; }
.logout-btn { color: var(--sidebar-text); transition: color 0.2s; font-size: 1.2rem; }
.logout-btn:hover { color: #ef4444; }

/* --- Main Content Area --- */
.main-content { flex: 1; margin-left: 280px; padding: 2.5rem 4rem; width: calc(100% - 280px); }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.greeting h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.greeting p { color: var(--text-muted); font-size: 1.05rem; }
.notification-bell { position: relative; font-size: 1.2rem; color: var(--text-dark); background: white; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); cursor: pointer; border: 1px solid var(--border); transition: background 0.2s; }
.notification-bell:hover { background: #f1f5f9; }
.pulse-anim { position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* --- Panel Logic --- */
.content-panel { display: none; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.content-panel.active-panel { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- Bespoke Cards --- */
.bento-card { background: linear-gradient(145deg, #ffffff, #fdfdfd); border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 20px; padding: 1.8rem; box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05); position: relative; overflow: hidden; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.2rem; }
.card-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: -0.8rem; margin-bottom: 1rem; }
.dashboard-bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.span-2 { grid-column: span 2; }
.bento-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mb-base { margin-bottom: 1.5rem; }
.mt-base { margin-top: 1.5rem; }

/* --- Earnings Graph Card --- */
.card-header-clean { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.graph-total { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.chart-wrapper { position: relative; height: 220px; width: 100%; }

/* --- Mini Stats --- */
.mini-stat { display: flex; justify-content: space-between; align-items: center; flex: 1; }
.stat-content p { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.stat-content h3 { font-size: 2rem; font-weight: 800; }
.stat-content span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.stat-icon-bespoke { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.blue-glow { background: var(--primary-light); color: var(--primary); box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.3); }
.green-glow { background: #dcfce7; color: #059669; box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3); }

/* --- Custom Alerts --- */
.custom-alert { background: linear-gradient(to right, #0f172a, #1e293b); color: white; padding: 1.5rem 2rem; border-radius: 16px; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.4); }
.alert-icon-wrap { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #38bdf8; }
.alert-text { flex: 1; }
.alert-text strong { font-size: 1.1rem; display: block; margin-bottom: 0.3rem; }
.alert-text p { color: #94a3b8; font-size: 0.95rem; }

/* Buttons */
.btn { padding: 12px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); }
.btn-primary:hover { background: #0369a1; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(2, 132, 199, 0.4); }
.btn-outline { background: transparent; border: 2px solid rgba(2, 132, 199, 0.3); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); }
.btn-white { background: white; color: var(--text-dark); display: inline-block; text-align: center; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.custom-alert .btn-outline { border-color: rgba(255,255,255,0.2); color: white; }
.custom-alert .btn-outline:hover { background: white; color: var(--text-dark); }

/* --- Activity Feed --- */
.activity-feed { list-style: none; }
.activity-feed li { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px dashed var(--border); animation: slideUp 0.3s ease; }
.activity-feed li:last-child { border-bottom: none; padding-bottom: 0; }
.feed-node { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.bg-blue { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.feed-content { flex: 1; }
.feed-content strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.feed-content span { color: var(--text-muted); font-size: 0.85rem; }
.feed-time { font-size: 0.8rem; color: #94a3b8; font-weight: 600; }

.empty-state { flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); padding: 3rem 0 !important; border: none !important; gap: 0.5rem !important;}
.empty-state i { font-size: 2.5rem; opacity: 0.3; margin-bottom: 0.5rem; color: var(--primary); }

/* --- Discord Card --- */
.bg-discord { background: linear-gradient(135deg, #5865F2, #4752C4); display: flex; flex-direction: column; }
.text-white { color: white !important; }
.bg-icon { position: absolute; right: -20px; bottom: -20px; font-size: 10rem; opacity: 0.1; }
.mt-auto { margin-top: auto; position: relative; z-index: 2;}

/* --- Header Banners --- */
.header-banner { margin-bottom: 2rem; }
.header-banner h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.header-banner p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

/* Progress & Tasks */
.progress-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1rem; }
.progress-info h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.progress-info p { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.score-pill { background: #fffbeb; color: #d97706; padding: 6px 14px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; transition: all 0.3s; }
.score-pill.passed { background: #d1fae5; color: #059669; }
.progress-track { height: 8px; background: #f1f5f9; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 10px; transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

.resource-list { display: flex; flex-direction: column; gap: 1rem; }
.resource-link { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: all 0.2s; background: #fafafa; }
.resource-link:hover { border-color: var(--primary); background: white; transform: translateX(5px); }
.res-icon { font-size: 1.5rem; color: var(--primary); width: 40px; text-align: center; }
.res-text { flex: 1; }
.res-text strong { display: block; margin-bottom: 0.2rem; }
.res-text span { font-size: 0.85rem; color: var(--text-muted); }

.task-queue { display: flex; flex-direction: column; gap: 0.8rem; }
.queue-item { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; border: 1px solid var(--border); border-radius: 12px; background: white; }
.queue-item.locked { opacity: 0.5; background: #f8fafc; }
.queue-info strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.queue-info span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* --- Table Styles --- */
.table-responsive { overflow-x: auto; }
.bespoke-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.bespoke-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0 1rem 0.5rem; text-align: left; }
.bespoke-table td { background: #f8fafc; padding: 1.2rem 1rem; font-size: 0.95rem; font-weight: 500; }
.bespoke-table tbody tr td:first-child { border-radius: 12px 0 0 12px; }
.bespoke-table tbody tr td:last-child { border-radius: 0 12px 12px 0; }
.bespoke-table tbody tr { animation: slideUp 0.3s ease; }
.text-right { text-align: right !important; }
.font-bold { font-weight: 700; font-size: 1.05rem; }
.text-blue { color: var(--primary); margin-right: 8px; }
.text-orange { color: #f59e0b; margin-right: 8px; }
.badge-status { padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.badge-status.ok { background: #d1fae5; color: #059669; }

/* Settings Forms */
.payment-selector { display: flex; flex-direction: column; gap: 1rem; }
.pay-option { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; position: relative; }
.pay-option input { display: none; }
.pay-icon { font-size: 2rem; color: #94a3b8; width: 40px; text-align: center; }
.pay-details flex: 1;
.pay-details strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.pay-details span { font-size: 0.85rem; color: var(--text-muted); }
.pay-option.active { border-color: var(--primary); background: var(--primary-light); }
.pay-option.active .pay-icon { color: var(--primary); }
.pay-option.active .fa-bitcoin { color: #f59e0b; }