/* ============================================================
   IRONFORGE GYM MANAGEMENT — MAIN STYLESHEET
   Industrial Dark Theme
   ============================================================ */

/* Google Fonts loaded via <link> in HTML head */

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

:root {
    --black:   #0a0a0a;
    --dark:    #111111;
    --card:    #161616;
    --border:  #2a2a2a;
    --accent:  #e8ff00;
    --accent2: #b8cc00;
    --red:     #ff3b30;
    --green:   #00e676;
    --blue:    #00b4ff;
    --orange:  #ff6d00;
    --text:    #f0f0f0;
    --muted:   #666666;
    --muted2:  #999999;
    --radius:  12px;
    --radSm:   8px;
    --shadow:  0 4px 24px rgba(0,0,0,0.5);
}


/* ── LIGHT THEME ─────────────────────────────────────────── */
[data-theme="light"] {
    --black:   #f0f2f5;
    --dark:    #ffffff;
    --card:    #ffffff;
    --border:  #e0e4ea;
    --text:    #1a1a2e;
    --muted:   #8a94a6;
    --muted2:  #5a6478;
    --accent:  #5b4fff;
    --accent2: #4a3fdd;
    --red:     #e63946;
    --green:   #2dc653;
    --blue:    #0095d5;
    --orange:  #f4720b;
}
[data-theme="light"] body {
    background: var(--black);
}
[data-theme="light"] .sidebar {
    background: var(--dark);
    box-shadow: 2px 0 12px rgba(0,0,0,.08);
}
[data-theme="light"] .topbar {
    background: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
[data-theme="light"] .nav-item {
    color: var(--muted2);
}
[data-theme="light"] .nav-item:hover {
    background: rgba(91,79,255,.07);
    color: var(--accent);
}
[data-theme="light"] .nav-item.active {
    background: var(--accent);
    color: #fff !important;
}
[data-theme="light"] .stat-card,
[data-theme="light"] .card,
[data-theme="light"] .workout-card,
[data-theme="light"] .plan-card {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
[data-theme="light"] .logo-text { color: var(--accent); }
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f8f9fb;
    color: var(--text);
}
[data-theme="light"] .chat-bubble.theirs {
    background: #f0f2f5;
    border-color: var(--border);
    color: var(--text);
}
[data-theme="light"] .chat-bubble.mine {
    background: var(--accent);
    color: #fff;
}
[data-theme="light"] .btn-ghost {
    color: var(--text);
}
[data-theme="light"] .badge.bm {
    background: rgba(0,0,0,.07);
    color: var(--muted2);
}
[data-theme="light"] .modal { background: var(--card); }
[data-theme="light"] .sidebar-footer { border-top-color: var(--border); }
[data-theme="light"] .user-name { color: var(--text); }
[data-theme="light"] .logout-btn {
    background: #f0f2f5;
    border-color: var(--border);
    color: var(--muted2);
}
[data-theme="light"] .icon-btn {
    background: #f0f2f5;
    border-color: var(--border);
    color: var(--text);
}
[data-theme="light"] .topbar-title { color: var(--text); }
[data-theme="light"] .login-card { background: #fff; }
[data-theme="light"] .login-bg {
    background: radial-gradient(ellipse at 20% 80%, rgba(91,79,255,.08), transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(244,114,11,.06), transparent 50%);
}
[data-theme="light"] table th { color: var(--muted); }
[data-theme="light"] table td { color: var(--text); }
[data-theme="light"] tbody tr:hover td { background: rgba(91,79,255,.04); }
[data-theme="light"] .alert-success { background: rgba(45,198,83,.1); }
[data-theme="light"] .alert-error   { background: rgba(230,57,70,.1); }
[data-theme="light"] .alert-info    { background: rgba(0,149,213,.1); }
[data-theme="light"] .tabs {
    background: #f0f2f5;
    border-color: var(--border);
}
[data-theme="light"] .tab { color: var(--muted2); }
[data-theme="light"] .tab.active { background: var(--accent); color: #fff; }
[data-theme="light"] .tab:hover:not(.active) { background: rgba(0,0,0,.05); }
[data-theme="light"] .mini-bars .mini-bar { opacity: 0.85; }
[data-theme="light"] .notif-item { border-bottom-color: var(--border); }
[data-theme="light"] .qr-wrap { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
[data-theme="light"] .meal-card { background: #f8f9fb; }
[data-theme="light"] .divider { background: var(--border); }
[data-theme="light"] .cal-slot-open {
    background: #f0f2f5;
    border-color: #d0d5e0;
    color: var(--muted2);
}
[data-theme="light"] .sidebar-overlay.open { background: rgba(0,0,0,.3); }

html, body { height: 100%; background: var(--black); color: var(--text); font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: 'DM Sans', sans-serif; cursor: pointer; border: none; background: none; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.app   { display: flex; height: 100vh; overflow: hidden; }
.main  { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
    width: 240px; min-width: 240px;
    background: var(--dark);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    transition: transform .3s ease;
    z-index: 200;
    overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 0; }

.sidebar-logo { padding: 22px 20px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.logo-text { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 28px; letter-spacing: 4px; color: var(--accent); line-height: 1; }
.logo-sub  { font-size: 9px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; font-family: 'DM Mono', 'Courier New', Courier, monospace; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 14px 10px; }
.nav-section-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; font-family: 'DM Mono', 'Courier New', Courier, monospace; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radSm);
    color: var(--muted2); font-weight: 500; font-size: 13.5px;
    margin-bottom: 2px; transition: all .15s; cursor: pointer;
}
.nav-item:hover { background: rgba(232,255,0,.06); color: var(--text); }
.nav-item.active { background: var(--accent); color: var(--black) !important; font-weight: 700; }
.nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; font-family: 'DM Mono', 'Courier New', Courier, monospace; }

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-card { display: flex; align-items: center; gap: 10px; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--muted); font-family: 'DM Mono', 'Courier New', Courier, monospace; text-transform: uppercase; letter-spacing: 1px; }
.logout-btn { width: 28px; height: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radSm); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .15s; flex-shrink: 0; }
.logout-btn:hover { border-color: var(--red); color: var(--red); }

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar { height: 58px; background: var(--dark); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 22px; gap: 14px; flex-shrink: 0; }
.topbar-title { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 22px; letter-spacing: 2px; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--radSm); background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .15s; position: relative; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); background: rgba(232,255,0,.08); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--dark); }
.hamburger { display: none; width: 38px; height: 38px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radSm); align-items: center; justify-content: center; font-size: 18px; color: var(--text); }

/* ── CONTENT ─────────────────────────────────────────────── */
.content { flex: 1; overflow-y: auto; padding: 22px; }
.content::-webkit-scrollbar { width: 4px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-title-wrap {}
.page-title { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 30px; letter-spacing: 2px; }
.page-sub   { color: var(--muted2); font-size: 13px; margin-top: 1px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── CARDS ───────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-weight: 600; font-size: 15px; }
.card-sm { padding: 14px; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.stat-card:hover { transform: translateY(-2px); border-color: rgba(232,255,0,.25); }
.stat-stripe { position: absolute; top: 0; right: 0; width: 4px; height: 100%; }
.stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-family: 'DM Mono', 'Courier New', Courier, monospace; margin-bottom: 6px; }
.stat-value { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 40px; letter-spacing: 1px; line-height: 1; }
.stat-sub   { font-size: 11.5px; color: var(--muted2); margin-top: 4px; }

/* ── GRID ────────────────────────────────────────────────── */
.grid    { display: grid; gap: 16px; }
.g2      { grid-template-columns: repeat(2, 1fr); }
.g3      { grid-template-columns: repeat(3, 1fr); }
.g4      { grid-template-columns: repeat(4, 1fr); }
.mb16    { margin-bottom: 16px; }
.mb20    { margin-bottom: 20px; }
.mb12    { margin-bottom: 12px; }
.mb8     { margin-bottom: 8px; }
.mt8     { margin-top: 8px; }
.mt12    { margin-top: 12px; }
.mt16    { margin-top: 16px; }

/* ── FLEX HELPERS ────────────────────────────────────────── */
.flex   { display: flex; }
.fic    { display: flex; align-items: center; }
.fjb    { display: flex; justify-content: space-between; }
.ficjb  { display: flex; align-items: center; justify-content: space-between; }
.f1     { flex: 1; }
.gap4   { gap: 4px; }
.gap8   { gap: 8px; }
.gap12  { gap: 12px; }
.gap16  { gap: 16px; }
.wrap   { flex-wrap: wrap; }

/* ── AVATAR ──────────────────────────────────────────────── */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--orange)); display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', 'Courier New', Courier, monospace; font-size: 12px; font-weight: 600; color: var(--black); flex-shrink: 0; }
.avatar.sm  { width: 30px; height: 30px; font-size: 10px; }
.avatar.lg  { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl  { width: 64px; height: 64px; font-size: 20px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radSm); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; border: none; font-family: 'DM Sans', sans-serif; }
.btn-accent  { background: var(--accent); color: var(--black); }
.btn-accent:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger  { background: rgba(255,59,48,.12); color: var(--red); border: 1px solid rgba(255,59,48,.3); }
.btn-danger:hover { background: rgba(255,59,48,.22); }
.btn-sm  { padding: 5px 11px; font-size: 12px; }
.btn-xs  { padding: 3px 8px;  font-size: 11px; }

/* ── BADGE ───────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; font-family: 'DM Mono', 'Courier New', Courier, monospace; }
.bg  { background: rgba(0,230,118,.14);  color: var(--green); }
.br  { background: rgba(255,59,48,.14);  color: var(--red); }
.bb  { background: rgba(0,180,255,.14);  color: var(--blue); }
.bo  { background: rgba(255,109,0,.14);  color: var(--orange); }
.ba  { background: rgba(232,255,0,.14);  color: var(--accent); }
.bm  { background: rgba(255,255,255,.07); color: var(--muted2); }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table-wrap::-webkit-scrollbar { height: 3px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border); }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-family: 'DM Mono', 'Courier New', Courier, monospace; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid rgba(42,42,42,.5); font-size: 13.5px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ── FORM ────────────────────────────────────────────────── */
.form-group  { margin-bottom: 14px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label        { font-size: 12px; color: var(--muted2); margin-bottom: 4px; display: block; font-weight: 500; }
input, select, textarea {
    background: var(--dark); border: 1px solid var(--border); border-radius: var(--radSm);
    color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13.5px; padding: 9px 12px; outline: none; transition: border-color .15s; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); }
select option { background: var(--dark); }
textarea { resize: vertical; }
.search-wrap { position: relative; }
.search-wrap input { padding-left: 36px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }

/* ── ALERT / FLASH ───────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radSm); margin-bottom: 16px; font-size: 13.5px; font-weight: 500; }
.alert-success { background: rgba(0,230,118,.12); border: 1px solid rgba(0,230,118,.3); color: var(--green); }
.alert-error   { background: rgba(255,59,48,.12);  border: 1px solid rgba(255,59,48,.3);  color: var(--red); }
.alert-info    { background: rgba(0,180,255,.12);  border: 1px solid rgba(0,180,255,.3);  color: var(--blue); }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar  { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--orange)); transition: width .5s ease; }

/* ── TABS ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radSm); padding: 4px; margin-bottom: 18px; overflow-x: auto; }
.tab  { flex: 1; padding: 8px 12px; text-align: center; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted2); transition: all .15s; white-space: nowrap; border: none; background: none; font-family: 'DM Sans', sans-serif; }
.tab.active      { background: var(--accent); color: var(--black); font-weight: 700; }
.tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.05); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal         { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; animation: fadeUp .2s ease; }
.modal-header  { padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title   { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 22px; letter-spacing: 2px; }
.modal-body    { padding: 0 20px 20px; }
.modal-footer  { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.close-btn     { background: none; border: none; color: var(--muted2); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; transition: color .15s; }
.close-btn:hover { color: var(--text); }

/* ── QR CODE ─────────────────────────────────────────────── */
.qr-wrap   { background: #fff; border-radius: 10px; padding: 16px; display: inline-flex; flex-direction: column; align-items: center; }
.qr-canvas { display: block; }

/* ── CHAT ────────────────────────────────────────────────── */
.chat-layout     { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: calc(100vh - 180px); min-height: 400px; }
.chat-list       { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.chat-list-header{ padding: 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.chat-contacts   { flex: 1; overflow-y: auto; }
.chat-contact    { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; transition: background .15s; border-bottom: 1px solid rgba(42,42,42,.4); }
.chat-contact:hover { background: rgba(255,255,255,.04); }
.chat-contact.active{ background: rgba(232,255,0,.08); border-left: 3px solid var(--accent); }
.chat-contact-name { font-weight: 600; font-size: 13.5px; }
.chat-contact-last { font-size: 12px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.chat-window     { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.chat-header     { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-messages   { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble     { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.chat-bubble.mine   { background: var(--accent); color: var(--black); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { background: #1e1e1e; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble-time { font-size: 10px; color: var(--muted); margin-top: 3px; font-family: 'DM Mono', 'Courier New', Courier, monospace; }
.chat-input-area { padding: 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ── NOTIFICATIONS ───────────────────────────────────────── */
.notif-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(42,42,42,.5); align-items: flex-start; }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 38px; height: 38px; border-radius: var(--radSm); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.notif-msg  { font-size: 13.5px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 3px; font-family: 'DM Mono', 'Courier New', Courier, monospace; }
.notif-unread .notif-msg { font-weight: 600; }

/* ── PLAN CARDS ──────────────────────────────────────────── */
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; transition: border-color .2s; }
.plan-card.featured { border-color: var(--accent); }
.plan-card.featured::before { content:'POPULAR'; position: absolute; top: 14px; right: -18px; background: var(--accent); color: var(--black); font-size: 10px; font-weight: 700; padding: 3px 22px; transform: rotate(45deg); letter-spacing: 1px; font-family: 'DM Mono', 'Courier New', Courier, monospace; }
.plan-price  { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 48px; color: var(--accent); line-height: 1; }
.plan-period { font-size: 13px; color: var(--muted2); margin-bottom: 14px; }
.plan-feature { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.plan-feature::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── CALENDAR GRID ───────────────────────────────────────── */
.cal-slot-booked   { background: rgba(232,255,0,.13); border: 1px solid rgba(232,255,0,.4); border-radius: 6px; padding: 4px 7px; font-size: 11px; color: var(--accent); font-weight: 600; text-align: center; }
.cal-slot-open     { background: rgba(255,255,255,.03); border: 1px dashed var(--border); border-radius: 6px; padding: 4px 7px; font-size: 11px; color: var(--muted); text-align: center; cursor: pointer; }
.cal-slot-open:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROGRESS CHART ──────────────────────────────────────── */
.chart-container { position: relative; width: 100%; }
.chart-bar-wrap  { display: flex; align-items: flex-end; gap: 5px; height: 80px; }
.chart-bar       { flex: 1; border-radius: 4px 4px 0 0; min-width: 10px; transition: opacity .2s; }
.chart-bar:hover { opacity: .8; }

/* ── STATUS DOT ──────────────────────────────────────────── */
.sdot        { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.sdot-active { background: var(--green); box-shadow: 0 0 5px var(--green); }
.sdot-inactive{ background: var(--muted); }
.sdot-warn   { background: var(--orange); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ── COLORS ──────────────────────────────────────────────── */
.ca { color: var(--accent); }  .cg { color: var(--green); }
.cr { color: var(--red); }     .cb { color: var(--blue); }
.co { color: var(--orange); }  .cm { color: var(--muted2); }
.fw6 { font-weight: 600; }     .fw7 { font-weight: 700; }
.fmono { font-family: 'DM Mono', 'Courier New', Courier, monospace; }
.f-bebas { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; letter-spacing: 2px; }
.tac { text-align: center; }   .tar { text-align: right; }
.fsm { font-size: 12px; }      .fxs { font-size: 11px; }

/* ── LOGIN ───────────────────────────────────────────────── */
.login-screen { min-height: 100vh; background: var(--black); display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.login-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(232,255,0,.06), transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(255,109,0,.05), transparent 50%); }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; position: relative; z-index: 1; animation: fadeUp .3s ease; }
.login-logo { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; font-size: 52px; letter-spacing: 6px; color: var(--accent); line-height: 1; }
.login-tagline { font-size: 10px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; font-family: 'DM Mono', 'Courier New', Courier, monospace; margin-bottom: 28px; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
.fade-in { animation: fadeUp .25s ease forwards; }

/* ── MOBILE ──────────────────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 190; }

@media (max-width: 900px) {
    .sidebar { position: fixed; inset-y: 0; left: 0; transform: translateX(-100%); box-shadow: 4px 0 20px rgba(0,0,0,.5); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .hamburger { display: flex; }
    .g4 { grid-template-columns: repeat(2,1fr); }
    .g3 { grid-template-columns: 1fr 1fr; }
    .chat-layout { grid-template-columns: 1fr; height: auto; }
    .chat-list { max-height: 200px; }
}

@media (max-width: 600px) {
    .g4, .g3, .g2 { grid-template-columns: 1fr; }
    .content { padding: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .stat-value { font-size: 32px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .plan-card.featured::before { display: none; }
    .login-card { padding: 26px 18px; }
}

/* ── DIET PLAN ───────────────────────────────────────────── */
.meal-card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.meal-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.meal-item { font-size: 12.5px; color: var(--muted2); padding: 2px 0; }
.meal-item::before { content: '•'; margin-right: 6px; color: var(--accent); }

/* ── WORKOUT CARD ────────────────────────────────────────── */
.workout-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; transition: border-color .15s; }
.workout-card:hover { border-color: rgba(232,255,0,.3); }
.workout-icon { width: 48px; height: 48px; border-radius: var(--radSm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }

/* ── MINI CHART BARS ─────────────────────────────────────── */
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.mini-bar  { flex: 1; border-radius: 3px 3px 0 0; opacity: .75; transition: opacity .2s; min-width: 8px; }
.mini-bar:hover { opacity: 1; }
