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

:root {
    --bg-color: #030303;
    --surface-color: rgba(20, 20, 22, 0.65);
    --surface-hover: rgba(35, 35, 40, 0.8);
    --surface-solid: #141416;
    
    --primary: #b5f53b; 
    --primary-hover: #9bd62b;
    --primary-light: rgba(181, 245, 59, 0.1);
    --primary-glow: rgba(181, 245, 59, 0.4);
    --text-on-primary: #000000; 
    
    --hot-orange: #ff6a00;
    --hot-red: #ff1100;
    --hot-gold: #ffcf24;
    
    --text-main: #ffffff;
    --text-muted: #8b8b99;
    --success: #00e676;
    --success-light: rgba(0, 230, 118, 0.1);
    --danger: #ff3b5c;
    --danger-light: rgba(255, 59, 92, 0.1);
    --telegram: #00a2ff;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; position: relative; }

.bg-glow { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 15% 50%, rgba(181, 245, 59, 0.06), transparent 50%), radial-gradient(circle at 85% 30%, rgba(157, 0, 255, 0.04), transparent 50%); }

.material-symbols-rounded { font-size: 24px; vertical-align: middle; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

#toast-container { position: fixed; top: 32px; right: 32px; z-index: 9999; display: flex; flex-direction: column; gap: 16px; }
.toast { background: rgba(15, 15, 17, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); color: var(--text-main); padding: 18px 24px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-glass); font-weight: 500; font-size: 15px; animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; min-width: 320px; }
.toast.success { border-left: 4px solid var(--success); }
.toast.success .icon { color: var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.error .icon { color: var(--danger); }
.toast.fade-out { animation: fadeOutRight 0.3s forwards; }

@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.auth-wrapper { display: flex; min-height: 100vh; }
.auth-brand { flex: 1.2; background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 80px; }
.auth-brand::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(3,3,3,0.95) 0%, rgba(10,15,5,0.85) 100%); }
.brand-logo { max-width: 160px; margin-bottom: 40px; z-index: 2; position: relative; }
.brand-tagline { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 20px; z-index: 2; position: relative; line-height: 1.2; letter-spacing: -1px; }
.brand-tagline span { color: var(--primary); text-shadow: var(--shadow-glow); }
.brand-desc { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 500px; line-height: 1.6; z-index: 2; position: relative; }

.auth-form-container { flex: 1; display: flex; align-items: center; justify-content: center; background: rgba(5,5,5,0.8); backdrop-filter: blur(30px); padding: 40px; border-left: 1px solid var(--border); z-index: 2; }
.auth-box { width: 100%; max-width: 420px; animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.auth-box h2 { font-size: 32px; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.5px; }
.auth-box > p { color: var(--text-muted); margin-bottom: 32px; font-size: 15px; }

.forgot-pass { display: inline-block; text-align: right; color: var(--text-muted); font-size: 14px; text-decoration: none; margin-top: -8px; margin-bottom: 24px; cursor: pointer; font-weight: 500; transition: 0.3s; width: 100%; }
.forgot-pass:hover { color: var(--primary); }

.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 280px; background: rgba(10, 10, 12, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-right: 1px solid var(--border-light); display: flex; flex-direction: column; padding: 32px 24px; z-index: 100; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; padding-left: 8px; }
.sidebar-logo { max-width: 130px; }

.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.3s ease; font-weight: 500; font-size: 15px; }
.nav-item .material-symbols-rounded { font-size: 22px; transition: 0.3s; color: rgba(255,255,255,0.4); }
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text-main); }
.nav-item:hover .material-symbols-rounded { color: var(--text-main); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(181, 245, 59, 0.2); }
.nav-item.active .material-symbols-rounded { color: var(--primary); font-variation-settings: 'FILL' 1; text-shadow: 0 0 15px var(--primary-glow); }

.nav-item.support-btn { background: linear-gradient(135deg, rgba(0, 162, 255, 0.1) 0%, rgba(0, 162, 255, 0.02) 100%); color: var(--telegram); border: 1px solid rgba(0, 162, 255, 0.2); margin-top: 16px; }
.nav-item.support-btn .material-symbols-rounded { color: var(--telegram); }
.nav-item.support-btn:hover { background: var(--telegram); color: #fff; border-color: var(--telegram); box-shadow: 0 8px 20px rgba(0, 162, 255, 0.3); }
.nav-item.support-btn:hover .material-symbols-rounded { color: #fff; }

.sidebar-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border-light); }
.user-profile { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03); padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.user-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--primary) 0%, #76a81b 100%); color: var(--text-on-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-glow); }
.user-info { overflow: hidden; }
.user-info p { font-size: 14px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.user-info span::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }

.main-content { flex: 1; overflow-y: auto; padding: 48px; scroll-behavior: smooth; position: relative; }
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.content-section { display: none; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); max-width: 1100px; margin: 0 auto; }
.content-section.active { display: block; }
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 32px; display: flex; align-items: center; gap: 16px; letter-spacing: -0.5px; }
.section-title .material-symbols-rounded { font-size: 36px; color: var(--primary); }

.card { background: var(--surface-color); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 32px; border-radius: var(--radius-xl); border: 1px solid var(--border); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; width: 100%; height: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); box-shadow: var(--shadow-glass); }

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.card-header-title { display: flex; align-items: center; gap: 12px; }
.card-header-title h3 { font-size: 16px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.card-header-title .material-symbols-rounded { color: var(--primary); }

.balance-card { background: linear-gradient(135deg, #1a1b1e 0%, #0d0d0f 100%); border: 1px solid rgba(181, 245, 59, 0.2); position: relative; overflow: hidden; }
.balance-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; background: var(--primary); border-radius: 50%; filter: blur(80px); opacity: 0.15; pointer-events: none; }
.balance-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, rgba(181, 245, 59, 0.05), transparent); pointer-events: none; }

.balance-amount { font-size: 56px; color: #fff; font-weight: 800; margin-bottom: 32px; letter-spacing: -2px; position: relative; z-index: 2; word-break: break-all; flex: 1; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.balance-amount span { font-size: 24px; color: var(--primary); font-weight: 600; vertical-align: super; margin-right: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; align-items: stretch; }
.chart-wrapper { position: relative; height: 220px; width: 100%; flex: 1; min-height: 200px; margin-top: 16px; }

.team-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.team-stat-box { background: rgba(255,255,255,0.02); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.team-stat-box::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); box-shadow: 0 0 15px var(--primary); }
.team-stat-box h4 { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-weight: 500;}
.team-stat-box h2 { font-size: 40px; color: #fff; font-weight: 800; letter-spacing: -1px; }

.input-group { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; width: 100%; }
.input-group input { margin-bottom: 0; flex: 1; } 
.input-group button { margin-bottom: 0; width: auto; padding: 0 32px; height: 56px; }

input, select { width: 100%; padding: 0 20px; margin-bottom: 20px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); border-radius: var(--radius-md); outline: none; transition: all 0.3s ease; font-size: 15px; height: 56px; backdrop-filter: blur(5px); }
input:focus, select:focus { border-color: var(--primary); background: rgba(181, 245, 59, 0.05); box-shadow: 0 0 0 4px rgba(181, 245, 59, 0.1); }
input::placeholder { color: rgba(255,255,255,0.3); }
input:disabled, input[readonly] { background: rgba(255,255,255,0.02); color: var(--text-muted); cursor: not-allowed; border-color: transparent; }

.select-wrapper { position: relative; }
.select-wrapper::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; font-size: 20px; color: var(--text-muted); position: absolute; right: 20px; top: 18px; pointer-events: none; }

button { width: 100%; height: 56px; background: var(--primary); color: var(--text-on-primary); border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; z-index: 1; margin-bottom: 12px; }
button::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(255,255,255,0.2), transparent); z-index: -1; opacity: 0; transition: 0.3s; }
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 25px var(--primary-glow); }
button:hover:not(:disabled)::before { opacity: 1; }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { background: rgba(255,255,255,0.05); color: var(--text-muted); cursor: not-allowed; }

button.secondary { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
button.secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow-glass); }

button.danger { background: rgba(255, 59, 92, 0.1); color: var(--danger); border: 1px solid rgba(255, 59, 92, 0.2); }
button.danger:hover { background: var(--danger); color: white; box-shadow: 0 10px 25px rgba(255, 59, 92, 0.3); }

.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 2; margin-top: auto; }
.balance-card button { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: white; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; }
.balance-card button:hover { background: rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.invest-grid { display: flex; flex-direction: column; gap: 20px; }
.invest-item { background: rgba(255,255,255,0.02); padding: 24px 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; transition: all 0.4s ease; backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.invest-item::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; transition: 0.4s; }
.invest-item:hover { transform: scale(1.01); background: rgba(255,255,255,0.04); }

.invest-item[data-theme="orange"]::before { background: var(--hot-orange); box-shadow: 0 0 20px var(--hot-orange); }
.invest-item[data-theme="orange"]:hover { border-color: rgba(255, 106, 0, 0.3); }
.invest-item[data-theme="red"]::before { background: var(--hot-red); box-shadow: 0 0 20px var(--hot-red); }
.invest-item[data-theme="red"]:hover { border-color: rgba(255, 17, 0, 0.3); }
.invest-item[data-theme="fire"]::before { background: #ff0040; box-shadow: 0 0 20px #ff0040; }
.invest-item[data-theme="fire"]:hover { border-color: rgba(255, 0, 64, 0.3); }
.invest-item[data-theme="heat"]::before { background: #ff4500; box-shadow: 0 0 20px #ff4500; }
.invest-item[data-theme="heat"]:hover { border-color: rgba(255, 69, 0, 0.3); }
.invest-item[data-theme="gold"]::before { background: var(--hot-gold); box-shadow: 0 0 20px var(--hot-gold); }
.invest-item[data-theme="gold"]:hover { border-color: rgba(255, 207, 36, 0.4); background: rgba(255, 207, 36, 0.03); }

.invest-info h4 { font-size: 20px; margin-bottom: 8px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: #fff; }
.invest-info h4 .icon { font-size: 28px; filter: drop-shadow(0 0 10px currentColor); }
.invest-info .rend { color: var(--primary); font-weight: 600; font-size: 16px; margin-bottom: 6px; display: inline-block; padding: 4px 12px; background: var(--primary-light); border-radius: 100px; }
.invest-info p { font-size: 14px; color: var(--text-muted); }
.invest-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }

.list-item { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border-light); transition: 0.3s; }
.list-item:hover { background: rgba(255,255,255,0.01); padding-left: 10px; padding-right: 10px; border-radius: 8px; border-bottom-color: transparent; }
.list-item:last-child { border-bottom: none; }
.list-left { display: flex; align-items: center; gap: 16px; }
.icon-box { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.icon-box.in { background: var(--success-light); color: var(--success); }
.icon-box.out { background: var(--danger-light); color: var(--danger); }
.icon-box.inv { background: var(--primary-light); color: var(--primary); }
.list-text strong { font-size: 16px; font-weight: 600; display: block; margin-bottom: 4px; color: #fff; }
.list-text small { color: var(--text-muted); font-size: 14px; }
.list-right { text-align: right; font-weight: 700; font-size: 18px; letter-spacing: -0.5px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); align-items: center; justify-content: center; z-index: 1000; opacity: 0; animation: fadeIn 0.3s forwards; }
.modal-content { background: var(--surface-solid); padding: 40px; border-radius: var(--radius-xl); width: 90%; max-width: 440px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); transform: scale(0.95); animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; position: relative; max-height: 90vh; overflow-y: auto; }
@keyframes popIn { to { transform: scale(1); opacity: 1; } }

.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05); border: none; color: var(--text-muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; margin: 0; padding: 0; }
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); box-shadow: none; }
.modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.qr-code-box { background: rgba(255,255,255,0.02); padding: 24px; border-radius: var(--radius-md); margin: 24px 0; word-break: break-all; color: var(--primary); font-family: monospace; font-size: 15px; border: 1px solid rgba(181, 245, 59, 0.3); text-align: center; font-weight: 600; box-shadow: inset 0 0 20px rgba(181, 245, 59, 0.05); }

@media (max-width: 768px) {
    .auth-wrapper { flex-direction: column; }
    .auth-brand { padding: 60px 24px; text-align: center; align-items: center; min-height: 40vh; border-radius: 0 0 40px 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .brand-logo { max-width: 130px; margin-bottom: 24px; }
    .brand-tagline { font-size: 32px; }
    .brand-desc { font-size: 15px; display: none; } 
    .auth-form-container { padding: 32px 24px; align-items: flex-start; background: transparent; border: none; backdrop-filter: none; margin-top: -40px; }
    .auth-box { padding: 40px 24px; background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-glass); }
    .app-layout { flex-direction: column; background: var(--bg-color); }
    .sidebar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); height: 70px; flex-direction: row; padding: 0 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 35px; background: rgba(20, 20, 22, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); z-index: 900; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
    .sidebar-brand, .sidebar-footer { display: none; }
    .nav-menu { flex-direction: row; width: 100%; justify-content: space-around; align-items: center; gap: 0; }
    .nav-item { flex-direction: column; gap: 4px; padding: 8px; font-size: 10px; justify-content: center; border-radius: 20px; width: 60px; height: 54px; font-weight: 600; }
    .nav-item .material-symbols-rounded { font-size: 26px; margin: 0; }
    .nav-item:hover { background: transparent; }
    .nav-item.active { background: transparent; box-shadow: none; color: var(--primary); }
    .nav-item.active .material-symbols-rounded { text-shadow: 0 0 15px var(--primary-glow); transform: translateY(-2px); }
    .nav-item span:not(.material-symbols-rounded) { display: none; }
    .nav-item.support-btn { display: none; }
    .main-content { padding: 32px 20px 120px 20px; }
    .section-title { font-size: 26px; }
    .grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 24px; border-radius: var(--radius-lg); }
    .balance-amount { font-size: 42px; }
    .action-buttons { grid-template-columns: 1fr; gap: 12px; }
    .chart-wrapper { min-height: 180px; height: 180px; }
    .team-stats { grid-template-columns: 1fr; gap: 16px; }
    .invest-item { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
    .invest-action { align-items: stretch; width: 100%; }
    .invest-action button { width: 100%; padding: 0; height: 48px; }
    .modal-content { width: 95%; padding: 32px 24px; border-radius: var(--radius-lg); }
    .modal-header { font-size: 22px; }
    #toast-container { top: 16px; left: 16px; right: 16px; align-items: center; }
    .toast { width: 100%; min-width: unset; max-width: 100%; }
}
