/* ============================================================
   Profit With Purpose — Platform styles (matches landing page)
   ============================================================ */
:root {
  --bg: #050a06;
  --panel: #0c140d;
  --panel-2: #0a120b;
  --line: rgba(255, 255, 255, 0.08);
  --line-green: rgba(34, 197, 94, 0.3);
  --green: #22c55e;
  --green-2: #16a34a;
  --green-light: #4ade80;
  --green-pale: #86efac;
  --text: #ffffff;
  --muted: #9ca3af;
  --dim: #6b7280;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #60a5fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.bg-grid-dark { background-image: radial-gradient(#111827 1px, transparent 1px); background-size: 24px 24px; }
.green-gradient { background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%); }
.green-glow { box-shadow: 0 0 50px -10px rgba(34, 197, 94, 0.2); }
a { color: inherit; }
::selection { background: rgba(34, 197, 94, 0.3); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--panel-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.sidebar-brand { padding: 22px 20px 14px; border-bottom: 1px solid var(--line); }
.sidebar-brand .logo { font-weight: 900; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.1; }
.sidebar-brand .logo span { color: var(--green-light); }
.sidebar-brand .tag { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-light); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.sidebar-brand .tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-section { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; transition: all .15s ease; border: 1px solid transparent; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: #fff; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav a .badge { margin-left: auto; }
.sidebar-user { padding: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(5, 10, 6, 0.8); border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; gap: 14px; }
.topbar h1 { font-size: 1.15rem; font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.content { padding: 28px; max-width: 1280px; width: 100%; margin: 0 auto; }
.view { display: none; animation: viewIn .3s cubic-bezier(.22, 1, .36, 1); }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn.hamburger { display: none; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: -280px; transition: left .25s ease; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  .sidebar.open { left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 29; }
  .sidebar-overlay.open { display: block; }
  .btn.hamburger { display: inline-flex; }
  .content { padding: 18px 14px; }
  .topbar { padding: 12px 14px; }
}

/* ---------- components ---------- */
.card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card-green { background: var(--panel); border: 1.5px solid var(--line-green); box-shadow: 0 0 40px -10px rgba(34, 197, 94, 0.3); }
.card-title { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.stat { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat .label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.stat .value { font-size: 1.7rem; font-weight: 900; margin-top: 6px; letter-spacing: -0.02em; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.pos { color: var(--green-light); } .neg { color: var(--red); } .amb { color: var(--amber); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, opacity .15s, background .15s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%); color: #000; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.6); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: #e5e7eb; }
.btn-ghost:hover { border-color: rgba(34, 197, 94, 0.5); color: #fff; }
.btn-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-sm { padding: 8px 14px; font-size: 11px; border-radius: 9px; }
.btn-xs { padding: 5px 10px; font-size: 10px; border-radius: 7px; }
.btn-icon { padding: 8px; border-radius: 9px; }

.input, .select, .textarea { width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px 16px; color: #fff; font-weight: 600; outline: none; font-family: inherit; font-size: 14px; transition: border-color .15s; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); }
.input.error { border-color: var(--red); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select option { background: #0c140d; }
.textarea { min-height: 100px; resize: vertical; }
.label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.input-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.select.w-auto, .input.w-auto { width: auto; }
.input.max-w-xs { max-width: 20rem; }
.chart-box svg { max-height: 240px; }
input[type="date"], input[type="datetime-local"], input[type="time"] { color-scheme: dark; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge-green { color: var(--green-light); border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); }
.badge-amber { color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.badge-red { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); }
.badge-gray { color: var(--muted); border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); }
.badge-blue { color: #93c5fd; border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.1); }
.badge-count { background: var(--green); color: #000; border: 0; min-width: 20px; justify-content: center; padding: 2px 6px; }

.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-tabs button { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted); font-weight: 800; font-size: 12px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.pill-tabs button.active { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.5); color: #fff; }

.progress { height: 8px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, #16a34a, #4ade80); border-radius: 999px; transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.progress.red > div { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.progress.amber > div { background: linear-gradient(90deg, #b45309, #fbbf24); }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.4); color: var(--green-light); font-weight: 900; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 22px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; color: #e5e7eb; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr.clickable { cursor: pointer; } table.tbl tr.clickable:hover td { background: rgba(34, 197, 94, 0.05); }
.empty { text-align: center; padding: 40px 20px; color: var(--dim); font-weight: 600; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 14px; }

.ring { position: relative; display: inline-block; }
.ring svg { width: 100%; height: 100%; outline: none; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-main { font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.ring-sub { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, 0.2); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; background: transparent; margin-top: 1px; }
.check.on { background: var(--green); border-color: var(--green); color: #000; }
.check svg { width: 14px; height: 14px; }
.check-row.done .check-text { text-decoration: line-through; color: var(--dim); }

.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-weight: 700; }
.lesson-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.lesson-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.lesson-item.active { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #fff; }
.lesson-item .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.2); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.lesson-item .dot.done { background: var(--green); border-color: var(--green); color: #000; }
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px 16px; color: #e5e7eb; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s; }
.quiz-opt:hover { border-color: rgba(34, 197, 94, 0.6); }
.quiz-opt.selected { border-color: var(--green); background: rgba(34, 197, 94, 0.14); }
.quiz-opt.correct { border-color: var(--green); background: rgba(34, 197, 94, 0.2); }
.quiz-opt.wrong { border-color: var(--red); background: rgba(239, 68, 68, 0.15); }
.quiz-opt .key { flex-shrink: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(34, 197, 94, 0.5); border-radius: 6px; font-size: 11px; font-weight: 900; color: var(--green-light); }

.notice { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 13px; border: 1px solid; }
.notice-green { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.3); color: #bbf7d0; }
.notice-amber { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); color: #fde68a; }
.notice-red { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.3); color: #fecaca; }

.feed-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.feed-icon.alert { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }

/* notification bell */
.bell { position: relative; }
.bell .dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--green); color: #000; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: absolute; right: 0; top: 46px; width: 340px; max-height: 420px; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--line-green); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); z-index: 40; display: none; }
.notif-panel.open { display: block; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif-item:hover { background: rgba(34, 197, 94, 0.06); }
.notif-item.unread { border-left: 3px solid var(--green); }
.notif-item .t { font-weight: 800; font-size: 13px; }
.notif-item .b { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif-item .d { font-size: 10px; color: var(--dim); margin-top: 4px; font-weight: 700; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; overflow-y: auto; }
.modal-backdrop.open { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 620px; background: var(--panel-2); border: 1px solid rgba(34, 197, 94, 0.4); border-radius: 18px; box-shadow: 0 0 80px -20px rgba(34, 197, 94, 0.5); padding: 28px; max-height: calc(100vh - 32px); overflow-y: auto; transform: translateY(12px); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.modal-backdrop.open .modal-card { transform: none; }
.modal-wide { max-width: 960px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: transparent; border: 0; color: var(--dim); font-size: 26px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; }
.modal-title { font-size: 1.25rem; font-weight: 900; margin: 0 0 18px; padding-right: 30px; }

/* toast */
#toastWrap { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel-2); border: 1px solid var(--line-green); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 13px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); transform: translateY(10px); opacity: 0; transition: all .25s; max-width: 340px; }
.toast.show { transform: none; opacity: 1; }
.toast-error { border-color: rgba(239, 68, 68, 0.5); }
.toast-info { border-color: rgba(96, 165, 250, 0.5); }

/* misc */
.kbd { font-size: 10px; font-weight: 900; color: var(--green-light); border: 1px solid rgba(34, 197, 94, 0.5); border-radius: 5px; padding: 1px 6px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } .modal-card { padding: 20px; } }
.demo-banner { background: rgba(245, 158, 11, 0.1); border-bottom: 1px solid rgba(245, 158, 11, 0.3); color: #fde68a; font-size: 12px; font-weight: 700; text-align: center; padding: 7px 12px; }
.demo-banner a { color: #fff; text-decoration: underline; }
.drop { border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--green); color: #fff; }
.drop img { max-height: 160px; margin: 10px auto 0; border-radius: 8px; }
.screenshot-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.countdown-day { font-size: 3.2rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.inline-edit { display: flex; gap: 8px; align-items: center; }
.sortable-handle { cursor: grab; color: var(--dim); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.02); }
.list-row:hover { border-color: rgba(34, 197, 94, 0.35); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.mono { font-variant-numeric: tabular-nums; }
.scroll-y { overflow-y: auto; max-height: 520px; }
.star { color: #fbbf24; }
.tiny { font-size: 11px; }

/* stars */
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.stars span { color: rgba(255, 255, 255, 0.18); }
.stars span.on { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, .45); }
.star-pick button { font-size: 26px; line-height: 1; background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, 0.18); padding: 0 2px; transition: transform .1s; }
.star-pick button.on { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, .45); }
.star-pick button:hover { transform: scale(1.15); }
/* confetti */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
/* clickable stat */
a.stat { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: rgba(34, 197, 94, 0.5); transform: translateY(-2px); }
/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(12, 20, 13, 0.6) 55%, rgba(5, 10, 6, 0.4)); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 20px; padding: 28px; box-shadow: 0 0 60px -15px rgba(34, 197, 94, 0.35); }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, 0.25), transparent 65%); pointer-events: none; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-actions a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 12px; text-decoration: none; color: #fff; transition: all .15s; }
.quick-actions a:hover { border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.12); }
.quick-actions a span.i { font-size: 15px; }
.sparkline { height: 36px; margin-top: 8px; }
/* trading calendar (TradeZella-style) */
.cal { display: grid; grid-template-columns: repeat(7, 1fr) 1.2fr; gap: 6px; }
.cal .hd { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: center; padding: 4px 0; }
.cal .day { min-height: 82px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); padding: 7px 8px; cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; position: relative; }
.cal .day:hover { border-color: rgba(34, 197, 94, 0.5); transform: translateY(-1px); }
.cal .day.empty { background: transparent; border-color: transparent; cursor: default; }
.cal .day.empty:hover { transform: none; }
.cal .day.win { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.45); }
.cal .day.win.big { background: rgba(34, 197, 94, 0.26); }
.cal .day.loss { background: rgba(239, 68, 68, 0.13); border-color: rgba(239, 68, 68, 0.4); }
.cal .day.loss.big { background: rgba(239, 68, 68, 0.24); }
.cal .day.flat { background: rgba(255, 255, 255, 0.05); }
.cal .day.today { outline: 1.5px solid rgba(34, 197, 94, 0.8); outline-offset: 1px; }
.cal .day .n { font-size: 11px; font-weight: 800; color: var(--muted); }
.cal .day .p { font-size: 14px; font-weight: 900; margin-top: auto; letter-spacing: -0.01em; }
.cal .day .t { font-size: 10px; font-weight: 700; color: var(--dim); }
.cal .wk { border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; }
.cal .wk .l { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.cal .wk .p { font-size: 15px; font-weight: 900; }
.cal .wk .t { font-size: 10px; font-weight: 700; color: var(--dim); }
@media (max-width: 760px) { .cal { grid-template-columns: repeat(7, 1fr); gap: 3px; } .cal .wk { display: none; } .cal .hd.wk-hd { display: none; } .cal .day { min-height: 58px; padding: 4px 5px; } .cal .day .p { font-size: 11px; } .cal .day .t { display: none; } }
.mode-toggle { display: inline-flex; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 3px; }
.mode-toggle button { background: transparent; border: 0; color: var(--muted); font-weight: 800; font-size: 12px; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.mode-toggle button.active { background: var(--green); color: #000; }
