/* =========================================================
   TRADEGUARD 7.0 – NEON GLASS · APP FELÜLET
   Elrendezés, üvegkártyák, űrlapok, widgetek, táblázatok,
   naptár, modálok, chat, napló, payout.
   A tokenek a main.css :root-jában vannak.
   ========================================================= */

/* =========================================================
   1. ALAP ELRENDEZÉS
   ========================================================= */
.dashboard-body {
    margin: 0;
    overflow: hidden;
    color: var(--tg-text);
}
.dashboard-layout {
    display: flex;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    gap: 22px;
    padding: 18px;
}
.main-content {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 8px 40px 4px;
    scroll-behavior: smooth;
}
.page-inner { max-width: 1480px; margin: 0 auto; }

/* Ikonok alapmérete (0 specificitás – bármely komponens szabály felülírja) */
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

/* A landing .hidden reveal-animáció az appban nem kell: itt a .hidden = komponens elrejtés */
.dashboard-body .hidden { opacity: 1; transform: none; transition: none; }

/* =========================================================
   2. ÜVEG ALAP + SPOTLIGHT
   (a --mx / --my változókat az app.js állítja egérmozgásra)
   ========================================================= */
.glass,
.panel,
.widget,
.kpi-card,
.glass-widget,
.sidebar {
    --mx: -999px;
    --my: -999px;
    position: relative;
    background:
        radial-gradient(520px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.10), transparent 42%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: var(--tg-blur);
    -webkit-backdrop-filter: var(--tg-blur);
    border: 1px solid var(--tg-line);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow);
}
/* Átlós neon él – maszkolt gradiens keret */
.panel::before,
.widget::before,
.kpi-card::before,
.glass-widget::before,
.sidebar::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.55) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 60%, rgba(56, 189, 248, 0.35) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.4s var(--tg-ease);
}
.panel:hover::before,
.widget:hover::before,
.kpi-card:hover::before,
.glass-widget:hover::before { opacity: 1; }

.panel { padding: 28px; }
.widget, .glass-widget { padding: 22px; margin-bottom: 22px; }

/* Belépő animáció a kártyákra */
.panel, .widget, .glass-widget, .kpi-card, .tilt-lock-panel, .alert-banner {
    animation: tgRise 0.7s var(--tg-ease) both;
}
.kpi-cards > :nth-child(2) { animation-delay: 0.05s; }
.kpi-cards > :nth-child(3) { animation-delay: 0.1s; }
.kpi-cards > :nth-child(4) { animation-delay: 0.15s; }
.kpi-cards > :nth-child(5) { animation-delay: 0.2s; }
.kpi-cards > :nth-child(6) { animation-delay: 0.25s; }
.side-column > :nth-child(2) { animation-delay: 0.08s; }
.side-column > :nth-child(3) { animation-delay: 0.16s; }
@keyframes tgRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   3. OLDALSÁV
   ========================================================= */
.sidebar {
    width: 264px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 14px;
    background:
        radial-gradient(400px circle at 0% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(20, 14, 38, 0.72) 0%, rgba(10, 7, 20, 0.72) 100%);
    z-index: 50;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--tg-line);
    text-decoration: none;
}
.sidebar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sidebar-brand .brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.sidebar-brand .brand-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tg-muted); margin-top: 3px; }

.nav-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tg-dim);
    padding: 14px 12px 8px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: var(--tg-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.25s, border-color 0.25s, transform 0.25s var(--tg-ease);
}
.nav-item .nav-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav-item .nav-icon svg { width: 17px; height: 17px; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.04); transform: translateX(3px); }
.nav-item:hover .nav-icon { color: var(--tg-violet-2); }
.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.04));
    border-color: rgba(139, 92, 246, 0.3);
}
.nav-item.active .nav-icon {
    background: var(--tg-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px -4px rgba(139, 92, 246, 0.8);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 22%;
    height: 56%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--tg-violet-2);
    box-shadow: 0 0 14px var(--tg-violet-2);
}
.nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--tg-cyan);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Számlaválasztó helye (következő fejlesztési kör) */
.account-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 4px 0 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--tg-line);
    color: var(--tg-text);
    font-size: 13px;
}

.sidebar-footer { padding-top: 14px; border-top: 1px solid var(--tg-line); display: flex; flex-direction: column; gap: 12px; }
.developer-credit { font-size: 11px; color: var(--tg-dim); text-align: center; line-height: 1.5; }
.developer-credit strong { color: var(--tg-muted); font-weight: 600; }
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(255, 77, 109, 0.08);
    color: #ff8fa3;
    border: 1px solid rgba(255, 77, 109, 0.22);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s var(--tg-ease);
}
.btn-logout svg { width: 16px; height: 16px; }
.btn-logout:hover { background: var(--tg-red); color: #fff; box-shadow: 0 8px 24px -6px rgba(255, 77, 109, 0.7); }

/* Mobil fejléc + fiókos menü */
.mobile-topbar { display: none; }
.sidebar-backdrop { display: none; }
.sidebar-close { display: none; }

/* =========================================================
   4. OLDAL FEJLÉC
   ========================================================= */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin: 8px 0 26px;
}
.header-title .eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tg-violet-2);
    margin-bottom: 10px;
}
.eyebrow .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tg-green); box-shadow: 0 0 10px var(--tg-green); animation: tgPulse 2s infinite; }
.header-title h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
    background: var(--tg-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.header-title p { color: var(--tg-muted); font-size: 14px; max-width: 620px; line-height: 1.55; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Forrás választó (saját / barát napló) */
.source-picker { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--tg-surface); border: 1px solid var(--tg-line); backdrop-filter: var(--tg-blur); }
.source-picker label { color: var(--tg-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.source-picker select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.source-picker select:focus { border-color: var(--tg-violet-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }

/* Régi státusz kártya (kompatibilitás) */
.user-status-card { display: flex; gap: 20px; align-items: center; padding: 12px 22px; border-radius: 14px; background: var(--tg-surface); border: 1px solid var(--tg-line); backdrop-filter: var(--tg-blur); }
.status-info { display: flex; flex-direction: column; }
.status-label { font-size: 10px; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 2px; }
.status-value { font-size: 18px; font-weight: 700; }
.xp-color { color: var(--tg-violet-2); text-shadow: 0 0 12px rgba(167, 139, 250, 0.5); }
.streak-color { color: var(--tg-amber); text-shadow: 0 0 12px rgba(251, 191, 36, 0.45); }

/* =========================================================
   5. GOMBOK
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--tg-line-2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--tg-text);
    text-decoration: none;
    transition: transform 0.25s var(--tg-ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--tg-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -10px rgba(139, 92, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-primary:hover { background: var(--tg-grad); border-color: transparent; box-shadow: 0 14px 32px -10px rgba(139, 92, 246, 1), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-violet { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.42); color: #ddd6fe; }
.btn-violet:hover { background: rgba(139, 92, 246, 0.28); border-color: var(--tg-violet-2); color: #fff; box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.8); }
.btn-blue { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.4); color: #bae6fd; }
.btn-blue:hover { background: rgba(56, 189, 248, 0.24); border-color: var(--tg-cyan); color: #fff; box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.7); }
.btn-success { background: rgba(34, 229, 139, 0.12); border-color: rgba(34, 229, 139, 0.4); color: #86efac; }
.btn-success:hover { background: var(--tg-green); border-color: var(--tg-green); color: #04130c; box-shadow: 0 8px 24px -8px rgba(34, 229, 139, 0.8); }
.btn-danger { background: rgba(255, 77, 109, 0.1); border-color: rgba(255, 77, 109, 0.38); color: #ff8fa3; }
.btn-danger:hover { background: var(--tg-red); border-color: var(--tg-red); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 77, 109, 0.8); }
.btn-danger-solid { background: linear-gradient(135deg, #ff4d6d, #e11d48); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -10px rgba(255, 77, 109, 0.9); }
.btn-danger-solid:hover { background: linear-gradient(135deg, #ff6b85, #f43f5e); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--tg-line); color: var(--tg-muted); }
.btn-ghost:hover { color: #fff; }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

/* Nagy CTA gomb (űrlapok) */
.btn-large {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--tg-grad);
    background-size: 160% 160%;
    box-shadow: 0 14px 34px -12px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.3s var(--tg-ease), box-shadow 0.3s, background-position 0.6s;
}
.btn-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--tg-ease);
}
.btn-large:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-large:hover::after { left: 130%; }
.btn-large:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* AI mentor / kiemelt akció gomb */
.btn-ai-mentor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    border: 1px solid rgba(217, 70, 239, 0.45);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(217, 70, 239, 0.25));
    box-shadow: 0 8px 26px -10px rgba(217, 70, 239, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.25s var(--tg-ease), box-shadow 0.25s;
}
.btn-ai-mentor svg { width: 16px; height: 16px; }
.btn-ai-mentor:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(217, 70, 239, 1), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.btn-ai-mentor.blue { border-color: rgba(56, 189, 248, 0.45); background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(56, 189, 248, 0.2)); box-shadow: 0 8px 26px -10px rgba(56, 189, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15); }

/* Szöveges kis gombok */
.btn-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tg-line);
    color: var(--tg-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-text:hover { background: rgba(139, 92, 246, 0.2); color: #fff; border-color: rgba(139, 92, 246, 0.5); }
.btn-text.danger { color: #ff8fa3; }
.btn-text.danger:hover { background: rgba(255, 77, 109, 0.16); border-color: rgba(255, 77, 109, 0.5); color: #fff; }

/* =========================================================
   6. KÁRTYA FEJLÉCEK, IKON CHIPEK
   ========================================================= */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.panel-title small { display: block; font-size: 12px; font-weight: 400; color: var(--tg-muted); margin-top: 3px; letter-spacing: 0; }
.panel-sub { font-size: 12.5px; color: var(--tg-muted); margin: -10px 0 18px; }

.icon-chip {
    --accent: var(--tg-violet-2);
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    flex-shrink: 0;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    box-shadow: 0 0 18px -6px var(--accent);
}
.icon-chip svg { width: 18px; height: 18px; }
.icon-chip.sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-chip.sm svg { width: 15px; height: 15px; }
.accent-violet { --accent: var(--tg-violet-2); }
.accent-blue { --accent: var(--tg-cyan); }
.accent-green { --accent: var(--tg-green); }
.accent-red { --accent: var(--tg-red); }
.accent-amber { --accent: var(--tg-amber); }
.accent-magenta { --accent: var(--tg-magenta); }

/* =========================================================
   7. KPI KÁRTYÁK
   ========================================================= */
.kpi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi-card {
    --accent: var(--tg-violet-2);
    padding: 18px 20px;
    overflow: hidden;
    transition: transform 0.35s var(--tg-ease), border-color 0.3s;
}
.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent), 0 0 4px var(--accent);
}
.kpi-card:hover { transform: translateY(-3px); }
.kpi-card.green { --accent: var(--tg-green); }
.kpi-card.red { --accent: var(--tg-red); }
.kpi-card.purple { --accent: var(--tg-violet-2); }
.kpi-card.yellow, .kpi-card.gold { --accent: var(--tg-amber); }
.kpi-card.blue { --accent: var(--tg-cyan); }
.kpi-card.magenta { --accent: var(--tg-magenta); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kpi-title { font-size: 11px; font-weight: 600; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.kpi-card > .kpi-title { margin-bottom: 10px; }
.kpi-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-value .unit { font-size: 15px; color: var(--tg-muted); font-weight: 500; margin-left: 2px; }
.kpi-sub { font-size: 12px; margin-top: 8px; color: var(--tg-muted); }
.kpi-glow { position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent); filter: blur(50px); opacity: 0.16; pointer-events: none; }

/* Mini progress a KPI-n */
.kpi-meter { height: 5px; margin-top: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.kpi-meter span { display: block; height: 100%; border-radius: 6px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width 1s var(--tg-ease); }

/* Gyűrű mérő (SVG) */
.ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 6; }
.ring .ring-bar { fill: none; stroke: var(--accent, var(--tg-violet-2)); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent, var(--tg-violet-2))); transition: stroke-dashoffset 1.2s var(--tg-ease); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================
   8. RIASZTÁSOK & TILT-LOCK
   ========================================================= */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #fde68a;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03));
    border: 1px solid rgba(251, 191, 36, 0.28);
    backdrop-filter: var(--tg-blur);
    -webkit-backdrop-filter: var(--tg-blur);
}
.alert-banner strong { color: #fff; }
.alert-icon { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.35); color: var(--tg-amber); }
.alert-icon svg { width: 18px; height: 18px; }
.alert-content { flex: 1; line-height: 1.5; color: #e5e7eb; }
.btn-alert { background: rgba(251, 191, 36, 0.14); color: var(--tg-amber); border: 1px solid rgba(251, 191, 36, 0.4); padding: 8px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 12.5px; transition: all 0.25s; white-space: nowrap; }
.btn-alert:hover { background: var(--tg-amber); color: #1c1305; box-shadow: 0 8px 22px -8px rgba(251, 191, 36, 0.8); }

.tilt-lock-panel {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    border-radius: var(--tg-radius);
    text-align: center;
    margin-bottom: 24px;
    background: radial-gradient(600px circle at 50% 0%, rgba(255, 77, 109, 0.22), transparent 60%), rgba(255, 77, 109, 0.06);
    border: 1px solid rgba(255, 77, 109, 0.45);
    box-shadow: 0 0 50px -16px rgba(255, 77, 109, 0.7);
    animation: tgRise 0.7s var(--tg-ease) both, pulseLock 2.4s ease-in-out infinite alternate;
}
.tilt-lock-panel .lock-icon { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 77, 109, 0.15); border: 1px solid rgba(255, 77, 109, 0.5); color: var(--tg-red); box-shadow: 0 0 30px -6px var(--tg-red); }
.tilt-lock-panel .lock-icon svg { width: 28px; height: 28px; }
.tilt-lock-panel h3 { font-family: var(--font-display); color: #fff; margin-bottom: 10px; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.tilt-lock-panel p { color: #fecdd3; font-size: 15px; line-height: 1.6; max-width: 640px; margin: 0 auto; }
@keyframes pulseLock { from { box-shadow: 0 0 30px -16px rgba(255, 77, 109, 0.5); } to { box-shadow: 0 0 60px -10px rgba(255, 77, 109, 0.85); } }

/* =========================================================
   9. RÁCSOK
   ========================================================= */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.dashboard-grid.journal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.main-column, .side-column { min-width: 0; }
.content-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.analytics-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.analytics-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.mb-section { margin-bottom: 22px; }

/* =========================================================
   10. ŰRLAPOK
   ========================================================= */
.form-section {
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(139, 92, 246, 0.35), rgba(255, 255, 255, 0.04) 70%, transparent) 1;
}
.form-section:last-of-type { border-bottom: none; border-image: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3, .form-label-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tg-violet-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.form-section h3 svg, .form-label-title svg { width: 16px; height: 16px; }
.form-hint { font-size: 12px; color: var(--tg-muted); margin: -8px 0 12px; }

.flex-row { display: flex; gap: 14px; }
.input-group { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.input-group label, .field-label { font-size: 11.5px; color: var(--tg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.input-group select,
.input-group input,
.input-group textarea,
.tg-input,
.tg-date-input {
    width: 100%;
    padding: 13px 15px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--tg-line);
    color: #fff;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input-group textarea, textarea.tg-input { resize: vertical; min-height: 90px; line-height: 1.55; }
.input-group select:hover, .input-group input:hover, .input-group textarea:hover, .tg-input:hover { border-color: rgba(255, 255, 255, 0.16); }
.input-group select:focus, .input-group input:focus, .input-group textarea:focus, .tg-input:focus, .tg-date-input:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(139, 92, 246, 0.75);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(139, 92, 246, 0.16);
}
.input-group input::placeholder, .input-group textarea::placeholder, .tg-input::placeholder { color: var(--tg-dim); }
.inline-form { display: flex; gap: 10px; margin-bottom: 18px; }
.inline-form .tg-input { flex: 1; }

/* Kimenetel szegmens választó (WIN / LOSS / BE) */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--tg-line); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--tg-muted); border: 1px solid transparent; transition: all 0.25s var(--tg-ease); }
.segmented span:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.segmented .seg-win input:checked + span { color: var(--tg-green); background: rgba(34, 229, 139, 0.12); border-color: rgba(34, 229, 139, 0.45); box-shadow: 0 0 20px -6px var(--tg-green); }
.segmented .seg-loss input:checked + span { color: var(--tg-red); background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.45); box-shadow: 0 0 20px -6px var(--tg-red); }
.segmented .seg-be input:checked + span { color: #e2e8f0; background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.45); }

/* PnL mező $ előtaggal */
.input-affix { position: relative; }
.input-affix .affix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tg-muted); font-weight: 600; pointer-events: none; }
.input-affix input { padding-left: 30px !important; font-variant-numeric: tabular-nums; font-weight: 600; }

/* --- Checkboxok (szabályok) --- */
.rule-list { display: flex; flex-direction: column; gap: 10px; }
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 34px;
    cursor: pointer;
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.2s;
    user-select: none;
}
.custom-checkbox:hover { color: #fff; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    transition: all 0.25s var(--tg-ease);
}
.custom-checkbox:hover input ~ .checkmark { border-color: rgba(167, 139, 250, 0.6); }
.custom-checkbox input:checked ~ .checkmark { background: var(--tg-green); border-color: var(--tg-green); box-shadow: 0 0 14px rgba(34, 229, 139, 0.6); }
.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #04130c;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark::after { display: block; animation: tgCheck 0.3s var(--tg-ease); }
@keyframes tgCheck { from { opacity: 0; transform: rotate(45deg) scale(0.4); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

.rule-list .custom-checkbox {
    padding: 13px 16px 13px 50px;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--tg-line);
    transition: all 0.3s var(--tg-ease);
}
.rule-list .custom-checkbox:hover { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.35); transform: translateX(4px); }
.rule-list .custom-checkbox:has(input:checked) { background: rgba(34, 229, 139, 0.07); border-color: rgba(34, 229, 139, 0.35); color: #fff; }
.rule-list .checkmark { left: 16px; }

/* FOMO */
.fomo-check {
    margin-top: 16px;
    padding: 13px 16px 13px 50px;
    border-radius: 13px;
    background: rgba(255, 77, 109, 0.05);
    border: 1px dashed rgba(255, 77, 109, 0.35);
    color: #ff8fa3 !important;
    font-weight: 600;
}
.fomo-check .warning-mark { left: 16px; }
.fomo-check:has(input:checked) { background: rgba(255, 77, 109, 0.12); border-style: solid; border-color: rgba(255, 77, 109, 0.6); box-shadow: 0 0 26px -8px rgba(255, 77, 109, 0.7); }
.fomo-check input:checked ~ .warning-mark { background: var(--tg-red); border-color: var(--tg-red); box-shadow: 0 0 14px rgba(255, 77, 109, 0.7); }
.fomo-check input:checked ~ .warning-mark::after { border-color: #fff; }

/* --- Csúszka (érzelem) --- */
.slider-group label { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--tg-muted); font-weight: 600; }
.slider-group label span { color: var(--tg-green); font-weight: 700; padding: 5px 11px; border-radius: 9px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); transition: color 0.3s; }
.emotion-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10.5px; color: var(--tg-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
input[type=range] {
    width: 100%;
    height: 8px;
    border-radius: 8px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #22e58b 0%, #38bdf8 35%, #fbbf24 70%, #ff4d6d 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 16px -4px rgba(139, 92, 246, 0.5);
    border: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 4px solid #1a1030;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 18px rgba(167, 139, 250, 0.9);
    transition: transform 0.2s var(--tg-ease);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #1a1030; box-shadow: 0 0 18px rgba(167, 139, 250, 0.9); cursor: pointer; }

/* --- Képfeltöltés --- */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 16px;
    border: 1.5px dashed rgba(139, 92, 246, 0.45);
    background: radial-gradient(400px circle at 50% 0%, rgba(139, 92, 246, 0.1), transparent 70%), rgba(0, 0, 0, 0.25);
    transition: all 0.3s var(--tg-ease);
}
.file-upload-wrapper:hover { border-color: var(--tg-violet-2); background: radial-gradient(400px circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%), rgba(0, 0, 0, 0.25); transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(139, 92, 246, 0.9); }
.file-upload-wrapper .upload-icon { width: 46px; height: 46px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 14px; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.4); color: var(--tg-violet-2); pointer-events: none; }
.file-upload-wrapper .upload-icon svg { width: 22px; height: 22px; }
.file-upload-wrapper .upload-text { color: #ddd6fe; font-size: 14px; font-weight: 500; pointer-events: none; }
.file-upload-wrapper .upload-text strong { color: #fff; }
.file-upload-wrapper .upload-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--tg-muted); pointer-events: none; }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-family: 'JetBrains Mono', ui-monospace, monospace; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-bottom-width: 2px; }

.image-preview-grid { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.image-preview-grid:empty { display: none; }
.preview-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: visible; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--tg-line-2); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.7); transition: transform 0.3s var(--tg-ease), border-color 0.3s; }
.preview-thumb:hover img { transform: scale(1.05); border-color: var(--tg-violet-2); }
.preview-remove { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #120c22; background: var(--tg-red); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); transition: transform 0.2s; z-index: 2; }
.preview-remove:hover { transform: scale(1.15); }

.upload-progress { margin-top: 14px; }
.upload-progress-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tg-muted); margin-bottom: 6px; }
.upload-progress-head strong { color: var(--tg-cyan); }

/* --- Progress sávok --- */
.progress-bar-bg { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 8px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); }
.progress-bar-fill { height: 100%; width: 0; border-radius: 8px; position: relative; overflow: hidden; background: var(--tg-grad); box-shadow: 0 0 12px rgba(139, 92, 246, 0.6); transition: width 1s var(--tg-ease); }
.progress-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: sweepLight 2.2s infinite linear; }
.progress-bar-fill.info { background: linear-gradient(90deg, var(--tg-cyan), var(--tg-violet)); box-shadow: 0 0 12px rgba(56, 189, 248, 0.55); }
.progress-bar-fill.error { background: linear-gradient(90deg, #fb923c, var(--tg-red)); box-shadow: 0 0 12px rgba(255, 77, 109, 0.6); }
.progress-bar-fill.success { background: linear-gradient(90deg, #10b981, var(--tg-green)); box-shadow: 0 0 12px rgba(34, 229, 139, 0.6); }
@keyframes sweepLight { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* =========================================================
   11. DASHBOARD WIDGETEK
   ========================================================= */
.widget h3, .widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.widget-title .title-left { display: flex; align-items: center; gap: 10px; }

/* Napi limitek – gyűrűkkel */
.limit-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.limit-ring-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); }
.limit-ring-card .ring { width: 56px; height: 56px; }
.limit-ring-card .meta { min-width: 0; }
.limit-ring-card .meta span { display: block; font-size: 11px; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.limit-ring-card .meta strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.limit-ring-card .meta strong small { font-size: 13px; color: var(--tg-muted); font-weight: 500; }
.limit-ring-card.danger { border-color: rgba(255, 77, 109, 0.5); background: rgba(255, 77, 109, 0.08); }
.limit-stat { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--tg-muted); font-weight: 600; }
.limit-stat strong { color: #fff; font-size: 15px; }
.text-error { color: var(--tg-red) !important; }
.lock-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--tg-muted); }
.lock-note svg { width: 14px; height: 14px; }
.lock-note.on { color: var(--tg-green); }

/* Rutin widget */
.routine-widget .widget-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.routine-widget .header-title { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 600; }
.routine-widget .widget-body { display: flex; align-items: flex-end; gap: 14px; }
.routine-widget .widget-body .progress-bar-bg { flex: 1; margin-bottom: 8px; }
.routine-widget .routine-percentage { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(139, 92, 246, 0.6); }
.btn-routine-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.4);
    transition: all 0.25s var(--tg-ease);
}
.btn-routine-trigger svg { width: 14px; height: 14px; }
.btn-routine-trigger:hover { background: rgba(139, 92, 246, 0.3); color: #fff; box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.9); }

/* Hírek */
.news-date-input {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--tg-line);
    color: var(--tg-muted);
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    color-scheme: dark;
}
.news-date-input:focus { border-color: rgba(139, 92, 246, 0.6); color: #fff; }
.news-filters { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.news-filters .btn-filter { --accent: var(--tg-muted); padding: 6px 11px; font-size: 11.5px; border-radius: 999px; }
.news-filters #btn-news-high { --accent: var(--tg-red); }
.news-filters #btn-news-medium { --accent: var(--tg-amber); }
.news-filters #btn-news-low { --accent: var(--tg-green); }
.news-filters #btn-news-all { --accent: #e2e8f0; }
.news-filters .btn-filter { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.news-filters .btn-filter.active { color: #fff; background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 16px -4px var(--accent); }
.news-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.news-item {
    --accent: var(--tg-muted);
    position: relative;
    padding: 12px 14px 12px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--tg-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.25s var(--tg-ease), border-color 0.25s, background 0.25s;
}
.news-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.news-item:hover { transform: translateX(3px); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.news-item.impact-high { --accent: var(--tg-red); }
.news-item.impact-medium { --accent: var(--tg-amber); }
.news-item.impact-low { --accent: var(--tg-green); }
.news-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.news-badge { font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.news-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tg-muted); font-variant-numeric: tabular-nums; }
.news-title { font-size: 13.5px; color: #f1f5f9; font-weight: 500; line-height: 1.4; }
.news-meta { display: flex; gap: 14px; font-size: 11px; color: var(--tg-muted); }
.news-meta strong { color: #cbd5e1; font-weight: 600; }

.empty-state { text-align: center; padding: 28px 16px; color: var(--tg-muted); font-size: 13px; }
.empty-state.error { color: var(--tg-red); }

/* =========================================================
   12. TRADE NAPLÓ – SZŰRŐK, TÁBLÁZAT
   ========================================================= */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); }
.btn-filter {
    background: transparent;
    border: 1px solid transparent;
    color: var(--tg-muted);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s var(--tg-ease);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.btn-filter:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.btn-filter.active { background: rgba(139, 92, 246, 0.22); color: #fff; border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 18px -6px rgba(139, 92, 246, 0.9); }
.btn-filter.violation-filter.active { background: rgba(255, 77, 109, 0.18); border-color: rgba(255, 77, 109, 0.55); box-shadow: 0 0 18px -6px rgba(255, 77, 109, 0.9); }

.date-filter-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); }
.date-filter-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.date-filter-label svg { width: 14px; height: 14px; }
.date-filter-container .tg-date-input { width: auto; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.date-separator { color: var(--tg-dim); }
.btn-clear-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: #ff8fa3;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--tg-ease);
}
.btn-clear-date:hover { background: var(--tg-red); color: #fff; border-color: var(--tg-red); box-shadow: 0 6px 18px -6px rgba(255, 77, 109, 0.9); }
.btn-clear-date svg { transition: transform 0.3s; }
.btn-clear-date:hover svg { transform: rotate(90deg); }

.view-toggle { display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--tg-line); }
.btn-view { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid transparent; color: var(--tg-muted); padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s var(--tg-ease); white-space: nowrap; }
.btn-view svg { width: 15px; height: 15px; }
.btn-view:hover:not(.active) { background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn-view.active { background: var(--tg-grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.9); }
.ml-auto { margin-left: auto; }

.table-panel { padding: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.table-panel::before { display: none; }
.table-responsive { width: 100%; overflow-x: auto; }

.trade-table, .payout-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14px; }
.trade-table th, .payout-table th { padding: 0 18px 6px; font-size: 10.5px; font-weight: 600; color: var(--tg-dim); text-transform: uppercase; letter-spacing: 0.14em; text-align: left; white-space: nowrap; }
.trade-table td, .payout-table td {
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: var(--tg-blur);
    -webkit-backdrop-filter: var(--tg-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: background 0.25s, border-color 0.25s;
    white-space: nowrap;
}
.trade-table tr td:first-child, .payout-table tr td:first-child { border-radius: 14px 0 0 14px; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.trade-table tr td:last-child, .payout-table tr td:last-child { border-radius: 0 14px 14px 0; border-right: 1px solid rgba(255, 255, 255, 0.04); }
.trade-table tbody tr:hover td, .payout-table tbody tr:hover td { background: rgba(139, 92, 246, 0.08); border-top-color: rgba(139, 92, 246, 0.25); }
.trade-row td:first-child { position: relative; }
.trade-row[data-outcome="WIN"] td:first-child { box-shadow: inset 3px 0 0 var(--tg-green); }
.trade-row[data-outcome="LOSS"] td:first-child { box-shadow: inset 3px 0 0 var(--tg-red); }
.trade-row[data-outcome="BE"] td:first-child { box-shadow: inset 3px 0 0 var(--tg-muted); }
.cell-date { color: var(--tg-muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.cell-pnl { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: 15px; }
.comment-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; font-size: 13px; }
.table-empty { text-align: center; padding: 48px 20px !important; color: var(--tg-muted); white-space: normal !important; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge-win, .badge-paid { background: rgba(34, 229, 139, 0.1); color: var(--tg-green); border: 1px solid rgba(34, 229, 139, 0.3); }
.badge-loss { background: rgba(255, 77, 109, 0.1); color: var(--tg-red); border: 1px solid rgba(255, 77, 109, 0.3); }
.badge-be { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-pending { background: rgba(251, 191, 36, 0.1); color: var(--tg-amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-violet { background: rgba(139, 92, 246, 0.12); color: var(--tg-violet-2); border: 1px solid rgba(139, 92, 246, 0.35); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.text-win { color: var(--tg-green); font-weight: 600; text-shadow: 0 0 14px rgba(34, 229, 139, 0.35); }
.text-loss { color: var(--tg-red); font-weight: 600; text-shadow: 0 0 14px rgba(255, 77, 109, 0.35); }
.text-amber { color: var(--tg-amber); }
.text-blue { color: var(--tg-cyan); }
.text-violet { color: var(--tg-violet-2); }

/* Érzelem pöttyök */
.emotion-dots { display: flex; gap: 5px; align-items: center; }
.emotion-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: 0.3s; }
.emotion-dots .dot.active.level-1, .emotion-dots .dot.active.level-2 { background: var(--tg-green); box-shadow: 0 0 8px var(--tg-green); }
.emotion-dots .dot.active.level-3 { background: var(--tg-cyan); box-shadow: 0 0 8px var(--tg-cyan); }
.emotion-dots .dot.active.level-4 { background: var(--tg-amber); box-shadow: 0 0 8px var(--tg-amber); }
.emotion-dots .dot.active.level-5 { background: var(--tg-red); box-shadow: 0 0 8px var(--tg-red); }

/* Akció gombok */
.action-buttons { display: flex; gap: 6px; align-items: center; }
.btn-action {
    --accent: var(--tg-violet-2);
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    cursor: pointer;
    color: var(--tg-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tg-line);
    transition: all 0.25s var(--tg-ease);
    font-size: 15px;
}
.btn-action svg { width: 16px; height: 16px; }
.btn-action:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); box-shadow: 0 8px 18px -8px var(--accent); }
.btn-action:active { transform: translateY(0) scale(0.95); }
.btn-action.btn-view-details { --accent: var(--tg-cyan); }
.btn-action.btn-edit { --accent: var(--tg-amber); }
.btn-action.btn-share { --accent: var(--tg-green); }
.btn-action.btn-delete { --accent: var(--tg-red); }

/* =========================================================
   13. NAPTÁR
   ========================================================= */
.calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--tg-line); }
.calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--tg-text);
    padding: 9px 16px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    transition: all 0.25s var(--tg-ease);
}
.calendar-nav-btn:hover { background: rgba(139, 92, 246, 0.25); border-color: var(--tg-violet-2); box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.8); color: #fff; }
.calendar-month-label { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #fff; margin: 0; text-transform: capitalize; }
.cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; text-align: center; color: var(--tg-dim); font-size: 11px; margin-bottom: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.12em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 116px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--tg-line);
    transition: transform 0.3s var(--tg-ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.cal-cell:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.05); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.8); z-index: 2; }
.cal-cell.empty { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.03); pointer-events: none; }
.cal-date { position: absolute; top: 10px; left: 12px; font-size: 13px; color: var(--tg-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-pnl { margin: auto 0 8px; padding-top: 18px; font-family: var(--font-display); font-size: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cal-stats { margin-top: auto; display: flex; flex-direction: column; gap: 2px; text-align: center; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.65); background: rgba(0, 0, 0, 0.35); padding: 5px; border-radius: 8px; }
.cal-win { background: linear-gradient(160deg, rgba(34, 229, 139, 0.14), rgba(34, 229, 139, 0.03)); border-color: rgba(34, 229, 139, 0.32); }
.cal-win:hover { border-color: var(--tg-green); box-shadow: 0 14px 30px -12px rgba(34, 229, 139, 0.55); }
.cal-loss { background: linear-gradient(160deg, rgba(255, 77, 109, 0.14), rgba(255, 77, 109, 0.03)); border-color: rgba(255, 77, 109, 0.32); }
.cal-loss:hover { border-color: var(--tg-red); box-shadow: 0 14px 30px -12px rgba(255, 77, 109, 0.55); }

/* =========================================================
   14. MODÁLOK – KÖZÖS ELEMEK
   ========================================================= */
.auth-container.modal-lg { max-width: 640px; }
.auth-container.modal-xl { max-width: 860px; }
.auth-container.modal-sm { max-width: 420px; }
.auth-container.flush { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--tg-line); background: rgba(0, 0, 0, 0.2); flex-shrink: 0; }
.modal-head h2, .modal-head h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: #fff; margin: 0; }
.modal-head .close-btn { position: static; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 20px; padding-right: 40px; }
.modal-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: -0.01em; }

/* Megerősítő modál tartalom */
.confirm-body { text-align: center; }
.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--tg-red);
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.4);
    box-shadow: 0 0 30px -6px rgba(255, 77, 109, 0.6);
    font-size: 26px;
}
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-icon.warn { color: var(--tg-amber); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 0 30px -6px rgba(251, 191, 36, 0.6); }
.confirm-body h3 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.confirm-body p { color: var(--tg-muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.confirm-body p strong { color: #fff; }
.confirm-actions { display: flex; gap: 12px; }
.confirm-actions > * { flex: 1; }
.btn-cancel { padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tg-line-2); color: #cbd5e1; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-danger-confirm { padding: 12px 18px; border-radius: 12px; background: linear-gradient(135deg, #ff4d6d, #e11d48); border: 1px solid rgba(255, 143, 163, 0.4); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(255, 77, 109, 0.9); transition: all 0.25s var(--tg-ease); }
.btn-danger-confirm:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(255, 77, 109, 1); }

/* Rutin-törlés megerősítő (saját overlay) */
.routine-modal-overlay, #deleteConfirmModal.routine-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 11, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    padding: 16px;
    animation: fadeInModal 0.2s ease-out;
}
.confirm-card {
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(28, 20, 52, 0.94), rgba(12, 9, 24, 0.97));
    border: 1px solid rgba(255, 77, 109, 0.3);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(255, 77, 109, 0.35);
    animation: popModal 0.3s var(--tg-ease);
}
.confirm-card h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.confirm-card p { color: var(--tg-muted); font-size: 14px; line-height: 1.5; margin-bottom: 24px; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes popModal { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Fül gombok (profil modál) */
.modal-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 24px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); flex-wrap: wrap; margin-right: 44px; }
.tab-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid transparent; color: var(--tg-muted); font-size: 13px; font-weight: 600; padding: 9px 14px; cursor: pointer; border-radius: 10px; transition: all 0.25s var(--tg-ease); }
.tab-btn svg { width: 15px; height: 15px; }
.tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.tab-btn.active { background: rgba(139, 92, 246, 0.24); border-color: rgba(139, 92, 246, 0.55); color: #fff; box-shadow: 0 0 16px -6px rgba(139, 92, 246, 0.9); }
.tab-btn.admin { margin-left: auto; color: #ff8fa3; }
.tab-btn.admin.active { background: rgba(255, 77, 109, 0.18); border-color: rgba(255, 77, 109, 0.55); box-shadow: 0 0 16px -6px rgba(255, 77, 109, 0.9); }
.profile-tab-content { text-align: left; animation: tgRise 0.35s var(--tg-ease); }

/* Toggle kapcsoló */
.tg-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin: 0; }
.tg-switch input { opacity: 0; width: 0; height: 0; }
.tg-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255, 255, 255, 0.08); transition: 0.3s var(--tg-ease); border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.08); }
.tg-slider::before { position: absolute; content: ''; height: 16px; width: 16px; left: 2px; top: 2px; background: #64748b; transition: 0.3s var(--tg-ease); border-radius: 50%; }
.tg-switch input:checked + .tg-slider { background: rgba(34, 229, 139, 0.18); border-color: rgba(34, 229, 139, 0.5); box-shadow: 0 0 12px rgba(34, 229, 139, 0.35); }
.tg-switch input:checked + .tg-slider::before { transform: translateX(18px); background: var(--tg-green); box-shadow: 0 0 8px var(--tg-green); }

/* Profil: szabálylista */
.profile-identity { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); }
.profile-identity .avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: var(--tg-grad); box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.8); flex-shrink: 0; }
.profile-identity span { display: block; font-size: 12px; color: var(--tg-muted); }
.profile-identity strong { display: block; font-size: 15px; color: #fff; word-break: break-all; }
.rule-manage-list { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); font-size: 14px; color: #cbd5e1; transition: all 0.3s var(--tg-ease); }
.rule-row:hover { border-color: rgba(139, 92, 246, 0.3); }
.rule-row .rule-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.rule-row.is-off { opacity: 0.45; }
.rule-row.is-off .rule-text-content { text-decoration: line-through; color: var(--tg-muted); }
.icon-btn-danger { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: transparent; border: 1px solid transparent; color: var(--tg-dim); cursor: pointer; transition: all 0.2s; }
.icon-btn-danger svg { width: 15px; height: 15px; }
.icon-btn-danger:hover { color: var(--tg-red); background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.4); }

/* Profil: limitek */
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); margin-bottom: 20px; }
.setting-row strong { display: block; color: #fff; font-size: 14px; margin-bottom: 3px; }
.setting-row span { color: var(--tg-muted); font-size: 12px; }

/* Profil: barátok */
.invite-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 20px; border-radius: 16px; background: radial-gradient(400px circle at 0% 0%, rgba(217, 70, 239, 0.18), transparent 60%), rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.35); }
.invite-box span { display: block; font-size: 11px; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.invite-box strong { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 20px; color: #fff; letter-spacing: 0.12em; }
.friends-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list-title { color: var(--tg-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--tg-line); }
.mini-list { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); }
.mini-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--tg-violet-2); background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.35); flex-shrink: 0; }
.mini-name { font-size: 13px; color: #fff; }
.mini-sub { font-size: 10.5px; color: var(--tg-violet-2); }
.mini-actions { display: flex; gap: 6px; }
.empty-note { color: var(--tg-muted); font-size: 12.5px; }

/* Admin panel */
.admin-search { margin-bottom: 14px; }
.admin-user-list { max-height: 420px; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 8px; }
.admin-user-details { border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); overflow: hidden; }
.admin-user-details[open] { border-color: rgba(255, 77, 109, 0.35); }
.admin-user-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; cursor: pointer; list-style: none; color: #fff; }
.admin-user-summary::-webkit-details-marker { display: none; }
.admin-user-summary .uid { color: var(--tg-muted); font-size: 11px; font-weight: 400; }
.admin-user-summary .chev { width: 16px; height: 16px; color: var(--tg-muted); transition: transform 0.3s; }
.admin-user-details[open] .chev { transform: rotate(180deg); }
.admin-user-content { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 14px; }
.admin-stat-box { border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); padding: 12px; font-size: 13px; color: #cbd5e1; line-height: 1.8; }
.admin-stat-box .box-label { margin-bottom: 4px; color: var(--tg-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.admin-stat-box strong { color: #fff; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* Napi rutin modál */
.modal-glass-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 16px;
    justify-content: center;
    align-items: center;
    background: rgba(5, 3, 11, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-glass-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 26px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(28, 20, 52, 0.92), rgba(12, 9, 24, 0.96));
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(139, 92, 246, 0.3);
}
.routine-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.routine-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; color: #fff; font-size: 19px; font-weight: 700; }
.routine-head .close-btn { position: static; }
.routine-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--tg-line); }
.routine-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: transparent; border: 1px solid transparent; color: var(--tg-muted); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; transition: all 0.25s var(--tg-ease); }
.routine-tab:hover { color: #fff; }
.routine-tab.active { background: rgba(139, 92, 246, 0.26); border-color: rgba(139, 92, 246, 0.6); color: #fff; box-shadow: 0 0 18px -6px rgba(139, 92, 246, 0.9); }
.routine-list { max-height: 300px; overflow-y: auto; padding-right: 4px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.routine-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 13px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--tg-line); transition: all 0.3s var(--tg-ease); }
.routine-item:hover { border-color: rgba(139, 92, 246, 0.35); }
.routine-item.done { background: rgba(34, 229, 139, 0.08); border-color: rgba(34, 229, 139, 0.35); }
.routine-item label { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; min-width: 0; }
.routine-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--tg-green); cursor: pointer; flex-shrink: 0; }
.routine-item .routine-text { font-size: 14.5px; font-weight: 500; color: #e2e8f0; transition: 0.3s; }
.routine-item.done .routine-text { text-decoration: line-through; color: var(--tg-dim); }
.routine-progress-label { text-align: center; font-size: 12px; color: var(--tg-muted); font-weight: 600; margin-top: 8px; }
.routine-progress-label span { color: #fff; }

/* Heti mentor modál */
#weeklyMentorModal {
    position: fixed !important;
    inset: 0;
    padding: 16px;
    background: rgba(5, 3, 11, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#weeklyMentorModal.active { opacity: 1; visibility: visible; }
#weeklyMentorModal .modal-content {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 32px 30px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(28, 20, 52, 0.94), rgba(12, 9, 24, 0.97));
    border: 1px solid rgba(217, 70, 239, 0.35);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(217, 70, 239, 0.35);
    transform: scale(0.94);
    transition: transform 0.35s var(--tg-ease);
}
#weeklyMentorModal.active .modal-content { transform: scale(1); }
#weeklyMentorModal .close-btn { top: 20px; right: 20px; }
.mentor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-right: 44px; }
.mentor-head h3 { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.mentor-head select { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(217, 70, 239, 0.45); color: #fff; padding: 8px 12px; border-radius: 10px; font-weight: 600; cursor: pointer; outline: none; font-size: 13px; }
#weeklyMentorTitle { color: var(--tg-violet-2); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 18px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--tg-line); }
#weeklyMentorContent > div:first-child {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--tg-line) !important;
    border-left: 3px solid var(--tg-magenta) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    color: #e2e8f0;
    font-size: 14.5px;
    line-height: 1.75;
}

/* Trade részletek modál */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--tg-line); font-size: 14px; }
.detail-row > span:first-child, .detail-label { color: var(--tg-muted); }
.detail-block-label { display: block; color: var(--tg-muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.detail-comment { background: rgba(0, 0, 0, 0.25); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--tg-line); min-height: 80px; margin-bottom: 20px; color: #cbd5e1; line-height: 1.6; font-size: 14px; white-space: pre-wrap; }
.detail-images { text-align: center; background: rgba(0, 0, 0, 0.25); border-radius: 12px; border: 1px solid var(--tg-line); padding: 6px; }
.detail-images img { transition: transform 0.4s var(--tg-ease); }
.detail-images img:hover { transform: scale(1.04); }
.rules-block-right { text-align: right; }
.missed-rules-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12.5px; color: #fda4af; }
.missed-rules-list li { padding: 2px 0; }
.missed-rules-list li::before { content: '✕ '; color: var(--tg-red); font-weight: 700; }
.ai-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--tg-line); }
.ai-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-section-head h4 { display: flex; align-items: center; gap: 10px; color: #f0abfc; margin: 0; font-size: 14px; font-weight: 600; }
.ai-box { background: radial-gradient(400px circle at 0% 0%, rgba(217, 70, 239, 0.12), transparent 60%), rgba(139, 92, 246, 0.06); padding: 16px; border-radius: 14px; border: 1px solid rgba(217, 70, 239, 0.3); color: #e2e8f0; font-size: 14px; line-height: 1.65; }

/* Napi trade lista (naptár modál) */
.day-trades-list { max-height: 460px; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.day-trade-card { --accent: var(--tg-muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--tg-line); border-left: 3px solid var(--accent); transition: all 0.25s var(--tg-ease); }
.day-trade-card:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(255, 255, 255, 0.04); }
.day-trade-card.win { --accent: var(--tg-green); }
.day-trade-card.loss { --accent: var(--tg-red); }
.day-trade-card .dt-left { display: flex; flex-direction: column; gap: 5px; }
.day-trade-card .dt-time { font-size: 11.5px; color: var(--tg-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.day-trade-card .dt-outcome { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.day-trade-card .dt-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.day-trade-card .dt-pnl { color: var(--accent); font-family: var(--font-display); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Megosztási linkek */
.share-list { list-style: none; padding: 0; margin: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.share-item { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--tg-line); display: flex; flex-direction: column; gap: 10px; }
.share-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.share-item-head strong { color: #fff; font-size: 14px; }
.share-item-link { display: flex; gap: 8px; }
.share-item-link input { flex: 1; min-width: 0; padding: 9px 11px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--tg-line); color: var(--tg-cyan); font-size: 12px; border-radius: 9px; outline: none; font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Szerkesztés modál képei */
.edit-image-grid { display: flex; gap: 10px; margin: 8px 0 14px; flex-wrap: wrap; }
.edit-image-grid > div { position: relative; }
.edit-image-grid img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--tg-line-2); }
.edit-image-grid .preview-remove { top: -7px; right: -7px; }
.edit-rules-box { max-height: 180px; overflow-y: auto; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); }
.edit-rules-box .custom-checkbox { margin-bottom: 10px; }
.edit-rules-box .custom-checkbox:last-child { margin-bottom: 0; }
.file-input-plain { width: 100%; padding: 12px; margin-top: 6px; background: rgba(0, 0, 0, 0.25); border: 1.5px dashed rgba(139, 92, 246, 0.4); border-radius: 12px; color: var(--tg-muted); font-size: 13px; transition: 0.3s; }
.file-input-plain::file-selector-button { margin-right: 12px; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.18); color: #fff; font-weight: 600; cursor: pointer; }

/* Konzisztencia kalkulátor */
.calc-block { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed var(--tg-line-2); }
.calc-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.calc-block h4 { font-size: 12px; color: var(--tg-muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.calc-inputs { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 12px; }
.calc-result { --accent: var(--tg-cyan); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 13px; color: #cbd5e1; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.calc-result strong { color: var(--accent); font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
.calc-result.green { --accent: var(--tg-green); }

/* Törlés (napló) – fade modál */
.tg-fade-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 16px;
    justify-content: center;
    align-items: center;
    background: rgba(5, 3, 11, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tg-fade-modal .auth-container,
#calcModal .auth-container { transition: transform 0.35s var(--tg-ease); }
.tg-fade-modal .auth-container { transform: none; }

/* =========================================================
   15. TICKET CHAT
   ========================================================= */
.ticket-bubble {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--tg-grad);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 34px -8px rgba(139, 92, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 9999;
    display: grid;
    place-items: center;
    transition: transform 0.3s var(--tg-ease), box-shadow 0.3s, border-radius 0.3s;
    animation: floatChat 5s ease-in-out infinite;
}
.ticket-bubble svg { width: 24px; height: 24px; }
.ticket-bubble .bubble-icon { display: grid; place-items: center; }
.ticket-bubble:hover { transform: scale(1.08) rotate(-4deg); border-radius: 50%; box-shadow: 0 18px 40px -8px rgba(139, 92, 246, 1); }
.ticket-bubble::after { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid rgba(167, 139, 250, 0.5); animation: tgRipple 2.8s ease-out infinite; pointer-events: none; }
.bubble-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--tg-red); color: #fff; font-size: 11px; font-weight: 800; border: 2px solid var(--tg-bg); box-shadow: 0 0 12px var(--tg-red); }
.bubble-badge.hidden { display: none; }
@keyframes floatChat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes tgRipple { 0% { opacity: 0.8; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.35); } }

.ticket-chat-window {
    position: fixed;
    bottom: 98px;
    right: 26px;
    width: 400px;
    height: 600px;
    max-height: calc(100vh - 130px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(28, 20, 52, 0.9), rgba(12, 9, 24, 0.95));
    backdrop-filter: var(--tg-blur);
    -webkit-backdrop-filter: var(--tg-blur);
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 50px -12px rgba(139, 92, 246, 0.45);
    transition: opacity 0.35s var(--tg-ease), transform 0.35s var(--tg-ease);
    transform-origin: bottom right;
}
.ticket-chat-window.hidden { opacity: 0 !important; transform: scale(0.85) translateY(20px) !important; pointer-events: none; }

.chat-header { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--tg-line); background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2)); flex-shrink: 0; }
.chat-header .header-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-header .header-info h4 { color: #fff; font-size: 15px; font-weight: 700; }
.chat-header .header-info p { color: var(--tg-muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header .online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tg-green); box-shadow: 0 0 10px var(--tg-green); flex-shrink: 0; }
.chat-header-actions { display: flex; align-items: center; gap: 8px; }
.chat-admin-toggle { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(139, 92, 246, 0.5); color: #fff; cursor: pointer; font-size: 14px; }
.chat-close { width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tg-line); border-radius: 9px; font-size: 20px; line-height: 1; color: var(--tg-muted); cursor: pointer; transition: 0.25s var(--tg-ease); }
.chat-close:hover { color: #fff; background: rgba(255, 77, 109, 0.2); border-color: rgba(255, 77, 109, 0.4); transform: rotate(90deg); }

.chat-tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--tg-line); flex-shrink: 0; background: rgba(0, 0, 0, 0.2); }
.chat-tab { flex: 1; padding: 9px; background: transparent; color: var(--tg-muted); border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.25s var(--tg-ease); }
.chat-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.chat-tab.active { background: rgba(139, 92, 246, 0.28); border-color: rgba(139, 92, 246, 0.55); color: #fff; }

.chat-view { flex: 1; display: flex !important; flex-direction: column; overflow: hidden; }
.chat-view.hidden { display: none !important; }
#newTicketView { padding: 20px; gap: 14px; overflow-y: auto; }
.chat-input-title, .chat-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--tg-line);
    border-radius: 12px;
    color: #fff;
    padding: 13px 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
}
.chat-input-title:focus, .chat-textarea:focus { border-color: rgba(139, 92, 246, 0.7); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); background: rgba(0, 0, 0, 0.45); }
.chat-textarea { min-height: 130px; resize: none; }
.chat-file-upload { display: flex; flex-direction: column; gap: 8px; }
.chat-file-upload input[type=file], #ticketAttachment { display: none !important; }
.chat-file-upload .file-label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; cursor: pointer; text-align: center; font-weight: 600; font-size: 13px; color: var(--tg-violet-2); background: rgba(139, 92, 246, 0.08); border: 1.5px dashed rgba(139, 92, 246, 0.45); transition: all 0.25s var(--tg-ease); }
.chat-file-upload .file-label:hover { background: rgba(139, 92, 246, 0.18); border-color: var(--tg-violet-2); color: #fff; }
.chat-file-upload .file-name { color: var(--tg-green); font-size: 12px; text-align: center; font-weight: 600; }
.btn-chat-submit { width: 100%; padding: 14px; margin-top: auto; background: var(--tg-grad); color: #fff; border: none; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(139, 92, 246, 0.9); transition: transform 0.25s var(--tg-ease); }
.btn-chat-submit:hover { transform: translateY(-1px); }
.btn-chat-submit.success { background: linear-gradient(135deg, #10b981, #22e58b); color: #04130c; }

.chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg-wrapper { display: flex; flex-direction: column; max-width: 82%; gap: 4px; }
.msg-meta { font-size: 10.5px; color: var(--tg-dim); padding: 0 4px; }
.msg-bubble { padding: 10px 14px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; }
.msg-user, .msg-admin-own { align-self: flex-end; align-items: flex-end; }
.msg-admin, .msg-user-other { align-self: flex-start; align-items: flex-start; }
.msg-user .msg-bubble { background: var(--tg-grad); color: #fff; border-radius: 16px 16px 4px 16px; box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.8); }
.msg-admin .msg-bubble { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--tg-line-2); color: #fff; border-radius: 16px 16px 16px 4px; }
.msg-admin-own .msg-bubble { background: linear-gradient(135deg, #2563eb, #38bdf8); color: #fff; border-radius: 16px 16px 4px 16px; box-shadow: 0 6px 16px -6px rgba(56, 189, 248, 0.8); }
.msg-user-other .msg-bubble { background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.35); color: #fff; border-radius: 16px 16px 16px 4px; }
.chat-attached-img { max-width: 200px; border-radius: 12px; border: 1px solid var(--tg-line-2); cursor: zoom-in; margin-top: 4px; }

.chat-input-area { padding: 12px; display: flex; gap: 8px; border-top: 1px solid var(--tg-line); background: rgba(0, 0, 0, 0.3); flex-shrink: 0; }
.chat-input-area input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tg-line); color: #fff; outline: none; font-size: 13.5px; transition: 0.25s; }
.chat-input-area input:focus { border-color: rgba(139, 92, 246, 0.7); background: rgba(0, 0, 0, 0.45); }
.chat-input-area button { width: 46px; flex-shrink: 0; background: var(--tg-grad); color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 16px; transition: transform 0.2s; }
.chat-input-area button:hover { transform: scale(1.05); }

.chat-subbar { padding: 8px 12px; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid var(--tg-line); display: flex; align-items: center; justify-content: space-between; font-size: 12px; flex-shrink: 0; }
.chat-link-btn { background: none; border: none; color: var(--tg-violet-2); cursor: pointer; font-weight: 600; font-size: 12px; }
.chat-link-btn:hover { color: #fff; }
.chat-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ticket-list-item { --accent: var(--tg-muted); padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--tg-line); border-left: 3px solid var(--accent); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s; }
.ticket-list-item:hover { background: rgba(255, 255, 255, 0.07); transform: translateX(2px); }
.ticket-list-item strong { color: #fff; font-size: 13px; }
.ticket-list-item .t-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--tg-muted); }
.ticket-list-item .t-status { font-size: 10px; font-weight: 700; color: var(--accent); }
.ticket-list-item.st-open { --accent: var(--tg-red); }
.ticket-list-item.st-claimed { --accent: var(--tg-cyan); }
.ticket-list-item.st-closed { --accent: var(--tg-green); }
.admin-details-pane { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.admin-details-pane label { font-size: 11px; color: var(--tg-cyan); font-weight: 600; margin-top: 6px; }
.admin-details-pane textarea, .admin-details-pane input { width: 100%; padding: 9px 11px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); border-radius: 10px; color: #fff; font-size: 12.5px; outline: none; resize: none; }
.admin-details-pane textarea { height: 70px; }

/* =========================================================
   16. KERESKEDÉSI NAPLÓ (JOURNAL) – IDŐVONAL
   ========================================================= */
.journal-timeline-panel { width: 100%; }
.timeline-container { position: relative; padding-left: 34px; margin-top: 6px; }
.timeline-container::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 10px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--tg-violet-2) 0%, rgba(56, 189, 248, 0.5) 50%, rgba(139, 92, 246, 0.02) 100%); box-shadow: 0 0 14px rgba(139, 92, 246, 0.5); }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -30px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--tg-violet-2); border: 3px solid #0d0919; box-shadow: 0 0 12px var(--tg-violet-2); z-index: 2; transition: all 0.3s var(--tg-ease); }
.timeline-dot.win { background: var(--tg-green); box-shadow: 0 0 14px var(--tg-green); }
.timeline-dot.loss { background: var(--tg-red); box-shadow: 0 0 14px var(--tg-red); }
.timeline-item:hover .timeline-dot { transform: scale(1.35); background: #fff; box-shadow: 0 0 18px #fff, 0 0 30px var(--tg-violet); }
.timeline-card {
    position: relative;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--tg-line);
    box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.35s var(--tg-ease);
}
.timeline-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateX(4px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9), 0 0 30px -12px rgba(139, 92, 246, 0.5); }
.timeline-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--tg-line); }
.timeline-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.journal-date { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.journal-pnl { padding: 5px 10px; border-radius: 8px; font-size: 11.5px; color: var(--tg-muted); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); }
.journal-pnl strong { color: #fff; }
.journal-content { color: #e2e8f0; font-size: 14px; line-height: 1.65; margin-bottom: 14px; word-break: break-word; }
.journal-raw-notes { display: none; }
.journal-tags { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.journal-tags .tag-badge { pointer-events: none; }
.journal-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--tg-line); padding-top: 12px; }
.no-data-placeholder { text-align: center; padding: 40px 16px; color: var(--tg-muted); font-size: 13px; }
.timeline-scroll { overflow-y: auto; max-height: calc(100vh - 220px); }

/* Hangulat választó */
.mood-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.mood-radio { position: relative; }
.mood-icon { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); color: var(--tg-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s var(--tg-ease); text-align: center; }
.mood-icon:hover { color: #fff; border-color: rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.08); }
.mood-radio input:checked + .mood-icon, .mood-radio.active input + .mood-icon { background: rgba(139, 92, 246, 0.24); border-color: var(--tg-violet-2); color: #fff; box-shadow: 0 0 22px -6px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

/* Fegyelmi pontszám */
.discipline-selector { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
.discipline-radio span { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tg-line); color: var(--tg-muted); font-family: var(--font-display); font-size: 17px; font-weight: 700; cursor: pointer; transition: all 0.25s var(--tg-ease); }
.discipline-radio span:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.discipline-radio input:checked + span { transform: translateY(-2px); color: #fff; }
.discipline-radio input[value="1"]:checked + span { background: rgba(255, 77, 109, 0.24); border-color: var(--tg-red); box-shadow: 0 0 18px -4px var(--tg-red); }
.discipline-radio input[value="2"]:checked + span { background: rgba(251, 191, 36, 0.22); border-color: var(--tg-amber); box-shadow: 0 0 18px -4px var(--tg-amber); }
.discipline-radio input[value="3"]:checked + span { background: rgba(56, 189, 248, 0.22); border-color: var(--tg-cyan); box-shadow: 0 0 18px -4px var(--tg-cyan); }
.discipline-radio input[value="4"]:checked + span { background: rgba(139, 92, 246, 0.26); border-color: var(--tg-violet-2); box-shadow: 0 0 18px -4px var(--tg-violet-2); }
.discipline-radio input[value="5"]:checked + span { background: rgba(34, 229, 139, 0.24); border-color: var(--tg-green); box-shadow: 0 0 22px -4px var(--tg-green); }

/* Tagek */
.tag-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-badge { display: inline-block; padding: 6px 13px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--tg-line); color: var(--tg-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s var(--tg-ease); }
.tag-badge:hover { border-color: rgba(139, 92, 246, 0.45); color: #fff; }
.tag-checkbox input:checked + .tag-badge, .tag-checkbox.active input + .tag-badge { background: rgba(139, 92, 246, 0.24); border-color: var(--tg-violet-2); color: #fff; box-shadow: 0 0 16px -4px rgba(139, 92, 246, 0.9); }
.mood-radio input, .discipline-radio input, .tag-checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* =========================================================
   17. ANALITIKA & PAYOUT
   ========================================================= */
.chart-container { position: relative; height: 300px; width: 100%; display: flex; justify-content: center; align-items: center; }
.chart-container.large { height: 380px; }
.fomo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.fomo-box { text-align: center; padding: 14px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--tg-line); }
.fomo-box span { display: block; font-size: 11px; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.fomo-box strong { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.compliance-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 10px 0 6px; }
.compliance-hero .ring { width: 120px; height: 120px; }
.compliance-hero .ring .ring-track, .compliance-hero .ring .ring-bar { stroke-width: 8; }
.compliance-hero .ring .ring-label { font-family: var(--font-display); font-size: 24px; }
.compliance-hero p { color: var(--tg-muted); font-size: 12.5px; }

.payout-amount { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.payout-account { font-weight: 600; color: #e2e8f0; }

/* =========================================================
   18. RESZPONZÍV
   ========================================================= */
@media (max-width: 1280px) {
    .analytics-grid-3 { grid-template-columns: 1fr 1fr; }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .dashboard-grid, .dashboard-grid.journal-grid { grid-template-columns: 1fr; }
    .timeline-scroll { max-height: none; }
}

@media (max-width: 1024px) {
    /* Mobil: a dokumentum görög, az oldalsáv fiókos menü lesz */
    .dashboard-body { overflow: auto; }
    .dashboard-layout { display: block; height: auto; padding: 0 16px 90px; }
    .main-content { height: auto; overflow: visible; padding: 0; }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 -16px 18px;
        padding: 12px 16px;
        background: rgba(8, 5, 18, 0.72);
        backdrop-filter: var(--tg-blur);
        -webkit-backdrop-filter: var(--tg-blur);
        border-bottom: 1px solid var(--tg-line);
    }
    .mobile-topbar .sidebar-brand { padding: 0; margin: 0; border: none; }
    .mobile-topbar .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
    .mobile-topbar .brand-tag { display: none; }
    .sidebar-toggle { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--tg-surface); border: 1px solid var(--tg-line-2); color: #fff; cursor: pointer; }
    .sidebar-toggle svg { width: 20px; height: 20px; }

    .sidebar {
        position: fixed;
        top: 12px;
        bottom: 12px;
        left: 12px;
        width: min(300px, calc(100vw - 48px));
        height: auto;
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.45s var(--tg-ease);
        z-index: 200;
        background: linear-gradient(180deg, rgba(20, 14, 38, 0.97), rgba(10, 7, 20, 0.97));
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 190; background: rgba(5, 3, 11, 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    body.sidebar-open .ticket-bubble { opacity: 0; pointer-events: none; }
    .sidebar-close { display: grid; place-items: center; position: absolute; top: 16px; right: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--tg-surface); border: 1px solid var(--tg-line); color: var(--tg-muted); cursor: pointer; }
    .sidebar-close svg { width: 18px; height: 18px; }
    .sidebar > .sidebar-brand { padding-right: 50px; }

    .dashboard-header { margin-top: 0; }
    .ticket-chat-window { width: calc(100vw - 24px); right: 12px; bottom: 90px; height: 70vh; }
    .ticket-bubble { right: 16px; bottom: 16px; }
}

@media (max-width: 768px) {
    .panel { padding: 20px; }
    .widget, .glass-widget { padding: 18px; }
    .kpi-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kpi-value { font-size: 22px; }
    .analytics-grid-2, .analytics-grid-3 { grid-template-columns: 1fr; }
    .flex-row { flex-direction: column; gap: 0; }
    .details-grid { grid-template-columns: 1fr; gap: 10px; }
    .friends-grid, .admin-user-content { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-group, .view-toggle, .date-filter-container { overflow-x: auto; flex-wrap: nowrap; }
    .view-toggle.ml-auto { margin-left: 0; }
    .btn-view { flex: 1; justify-content: center; }
    .cal-grid, .cal-days-header { gap: 4px; }
    .cal-cell { min-height: 72px; padding: 6px; border-radius: 10px; }
    .cal-date { top: 5px; left: 7px; font-size: 11px; }
    .cal-pnl { font-size: 11px; padding-top: 14px; margin-bottom: 0; }
    .cal-stats { display: none; }
    .calendar-month-label { font-size: 16px; }
    .calendar-nav-btn { padding: 8px 10px; font-size: 11px; }
    .header-actions { width: 100%; }
    .source-picker { width: 100%; }
    .source-picker select { flex: 1; min-width: 0; }
    .modal-tabs { margin-right: 40px; }
    .tab-btn { flex: 1; justify-content: center; padding: 9px 10px; }
    .tab-btn.admin { margin-left: 0; }
    .timeline-container { padding-left: 24px; }
    .timeline-container::before { left: 5px; }
    .timeline-dot { left: -25px; width: 12px; height: 12px; }
    .journal-actions .btn-text { flex: 1; }
    .discipline-radio span { height: 42px; font-size: 15px; }
    .limit-rings { grid-template-columns: 1fr; }
    .inline-form { flex-direction: column; }
}

@media (max-width: 480px) {
    .kpi-cards { grid-template-columns: 1fr 1fr; }
    .kpi-card { padding: 14px; }
    .kpi-value { font-size: 19px; }
    .alert-banner { flex-wrap: wrap; }
    .confirm-actions { flex-direction: column-reverse; }
    .calc-inputs { grid-template-columns: 1fr; }
    .mood-selector { grid-template-columns: 1fr 1fr; }
}


/* =========================================================
   19. SZÁMLÁK (accounts.php) – FIÓK KÁRTYÁK
   ========================================================= */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 26px; }
.acc-card {
    --accent: var(--tg-violet-2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: var(--tg-radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    backdrop-filter: var(--tg-blur);
    -webkit-backdrop-filter: var(--tg-blur);
    border: 1px solid var(--tg-line);
    box-shadow: var(--tg-shadow);
    transition: transform 0.35s var(--tg-ease), border-color 0.3s, box-shadow 0.3s;
    animation: tgRise 0.6s var(--tg-ease) both;
}
.acc-card::after { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 2px; border-radius: 0 0 4px 4px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.acc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.acc-card.type-funded { --accent: var(--tg-green); }
.acc-card.status-failed { --accent: var(--tg-red); background: linear-gradient(160deg, rgba(255, 77, 109, 0.08), rgba(255, 255, 255, 0.015)); }
.acc-card.status-passed { --accent: var(--tg-cyan); }
.acc-card.status-archived { --accent: var(--tg-dim); opacity: 0.7; }
.acc-card.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent), var(--tg-shadow); }

.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acc-title h3 { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.acc-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--tg-muted); }
.acc-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.acc-status-badge.st-active { background: rgba(56, 189, 248, 0.1); color: var(--tg-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.acc-status-badge.st-passed { background: rgba(34, 229, 139, 0.1); color: var(--tg-green); border: 1px solid rgba(34, 229, 139, 0.3); }
.acc-status-badge.st-failed { background: rgba(255, 77, 109, 0.12); color: var(--tg-red); border: 1px solid rgba(255, 77, 109, 0.35); }
.acc-status-badge.st-archived { background: rgba(148, 163, 184, 0.1); color: var(--tg-muted); border: 1px solid rgba(148, 163, 184, 0.3); }

.acc-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.acc-banner span { display: flex; align-items: center; gap: 8px; }
.acc-banner.danger { color: #fecdd3; background: rgba(255, 77, 109, 0.12); border: 1px solid rgba(255, 77, 109, 0.4); }
.acc-banner.success { color: #bbf7d0; background: rgba(34, 229, 139, 0.1); border: 1px solid rgba(34, 229, 139, 0.4); box-shadow: 0 0 24px -10px var(--tg-green); }

.acc-balance { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--tg-line); }
.acc-label { display: block; font-size: 10.5px; font-weight: 600; color: var(--tg-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.acc-balance strong { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.acc-pnl { text-align: right; font-family: var(--font-display); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-pnl small { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--tg-muted); text-shadow: none; margin-top: 2px; }

.acc-metrics { display: flex; flex-direction: column; gap: 12px; }
.acc-metric-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tg-muted); margin-bottom: 6px; }
.acc-metric-head span { display: inline-flex; align-items: center; gap: 6px; }
.acc-metric-head strong { color: #fff; font-variant-numeric: tabular-nums; }
.acc-metric-foot { font-size: 11.5px; color: var(--tg-dim); margin-top: 5px; }
.acc-metric .progress-bar-bg { height: 7px; }
.progress-bar-fill.room-safe { background: linear-gradient(90deg, #10b981, var(--tg-green)); box-shadow: 0 0 12px rgba(34, 229, 139, 0.55); }
.progress-bar-fill.room-warning { background: linear-gradient(90deg, #f59e0b, var(--tg-amber)); box-shadow: 0 0 12px rgba(251, 191, 36, 0.55); }
.progress-bar-fill.room-danger { background: linear-gradient(90deg, #fb923c, var(--tg-red)); box-shadow: 0 0 12px rgba(255, 77, 109, 0.6); }
strong.room-safe { color: var(--tg-green) !important; }
strong.room-warning { color: var(--tg-amber) !important; }
strong.room-danger { color: var(--tg-red) !important; }

.acc-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--tg-muted); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--tg-line); }
.acc-chip.ok { color: var(--tg-green); border-color: rgba(34, 229, 139, 0.35); }
.acc-chip.bad { color: var(--tg-amber); border-color: rgba(251, 191, 36, 0.4); }
.acc-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--tg-muted); line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: rgba(139, 92, 246, 0.07); border: 1px dashed rgba(139, 92, 246, 0.3); }
.acc-hint svg { margin-top: 2px; color: var(--tg-violet-2); }

.acc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--tg-line); }
.acc-foot-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--tg-dim); }
.acc-foot-meta span { display: inline-flex; align-items: center; gap: 5px; }
.acc-foot .btn-action { text-decoration: none; }

/* "⋯" lenyíló menü */
.acc-menu { position: relative; }
.acc-menu-list {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 30;
    min-width: 200px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(18, 13, 34, 0.97);
    backdrop-filter: var(--tg-blur);
    border: 1px solid var(--tg-line-2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.9);
    display: none;
}
.acc-menu.open .acc-menu-list { display: flex; flex-direction: column; animation: popModal 0.2s var(--tg-ease); }
.acc-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; background: transparent; color: #e2e8f0; font-size: 13px; font-weight: 500; text-align: left; border-radius: 9px; cursor: pointer; }
.acc-menu-list button:hover { background: rgba(139, 92, 246, 0.16); color: #fff; }
.acc-menu-list button.danger { color: #ff8fa3; }
.acc-menu-list button.danger:hover { background: rgba(255, 77, 109, 0.14); }

.empty-hero { text-align: center; padding: 44px 24px; margin-bottom: 26px; }
.empty-hero .lock-icon { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 18px; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.45); color: var(--tg-violet-2); }
.empty-hero .lock-icon svg { width: 28px; height: 28px; }
.empty-hero h3 { font-family: var(--font-display); font-size: 20px; color: #fff; margin-bottom: 10px; }
.empty-hero p { color: var(--tg-muted); max-width: 520px; margin: 0 auto 20px; line-height: 1.6; font-size: 14px; }

/* Fiók űrlap */
.acc-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.acc-form-top { max-width: 320px; }
.opt-note { margin-left: auto; font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--tg-dim); }

/* Statisztika lista */
.stat-list { display: flex; flex-direction: column; }
.stat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--tg-line); font-size: 14px; color: var(--tg-muted); }
.stat-row:last-child { border-bottom: none; }
.stat-row strong { color: #fff; font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; }

/* Idővonal */
.acc-timeline { position: relative; padding-left: 22px; }
.acc-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--tg-violet-2), rgba(139, 92, 246, 0.05)); }
.tl-row { --accent: var(--tg-violet-2); position: relative; padding: 0 0 18px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #120c22; box-shadow: 0 0 10px var(--accent); }
.tl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #fff; font-weight: 600; }
.tl-meta { font-size: 12px; color: var(--tg-muted); margin-top: 3px; }
.tl-row.ev-failed { --accent: var(--tg-red); }
.tl-row.ev-reset { --accent: var(--tg-amber); }
.tl-row.ev-passed, .tl-row.ev-funded, .tl-row.ev-payout { --accent: var(--tg-green); }
.tl-row.ev-purchase, .tl-row.ev-activation { --accent: var(--tg-cyan); }

/* Fiók címke (Trade Napló, részletek) */
.acc-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #ddd6fe; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.32); white-space: nowrap; }
.acc-tag.funded { color: #bbf7d0; background: rgba(34, 229, 139, 0.1); border-color: rgba(34, 229, 139, 0.32); }
.acc-tag.legacy { color: var(--tg-amber); background: rgba(251, 191, 36, 0.08); border: 1px dashed rgba(251, 191, 36, 0.4); }
.acc-tag.none { color: var(--tg-dim); background: transparent; border: 1px dashed var(--tg-line-2); }

/* Fiók választó a trade rögzítésnél (több is jelölhető) */
.acc-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-pick { position: relative; cursor: pointer; }
.acc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.acc-pick > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 10px 36px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--tg-line); transition: all 0.25s var(--tg-ease); position: relative; }
.acc-pick > span::before { content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.3); transition: all 0.2s; }
.acc-pick strong { font-size: 13px; color: #e2e8f0; }
.acc-pick small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.acc-pick:hover > span { border-color: rgba(139, 92, 246, 0.45); }
.acc-pick input:checked + span { background: rgba(139, 92, 246, 0.18); border-color: var(--tg-violet-2); box-shadow: 0 0 20px -6px rgba(139, 92, 246, 0.9); }
.acc-pick input:checked + span::before { background: var(--tg-violet-2); border-color: var(--tg-violet-2); box-shadow: inset 0 0 0 3px #1a1030; }
.acc-pick input:checked + span strong { color: #fff; }

/* =========================================================
   20. ÉRTESÍTÉSI KÖZPONT
   ========================================================= */
.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--tg-surface);
    border: 1px solid var(--tg-line-2);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s var(--tg-ease);
}
.notif-btn svg { width: 19px; height: 19px; }
.notif-btn:hover { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.12); }
.notif-btn.notif-btn-wide { width: 100%; height: auto; justify-content: flex-start; padding: 10px 12px; margin: 4px 0 2px; font-size: 13.5px; font-weight: 500; color: var(--tg-muted); }
.notif-btn.notif-btn-wide:hover { color: #fff; }
.notif-btn.has-danger svg { color: var(--tg-red); animation: tgBell 2.4s ease-in-out infinite; }
.notif-count { min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--tg-red); color: #fff; font-size: 10.5px; font-weight: 800; box-shadow: 0 0 10px rgba(255, 77, 109, 0.7); }
.notif-btn:not(.notif-btn-wide) .notif-count { position: absolute; top: -6px; right: -6px; border: 2px solid var(--tg-bg); }
.notif-btn-wide .notif-count { margin-left: auto; }
.notif-count.hidden { display: none; }
@keyframes tgBell { 0%, 85%, 100% { transform: rotate(0); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 96% { transform: rotate(6deg); } }

.notif-panel {
    position: fixed;
    top: 18px;
    left: 300px;
    z-index: 1500;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: min(560px, calc(100vh - 36px));
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(28, 20, 52, 0.96), rgba(12, 9, 24, 0.98));
    backdrop-filter: var(--tg-blur);
    -webkit-backdrop-filter: var(--tg-blur);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 50px -14px rgba(139, 92, 246, 0.5);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s var(--tg-ease), transform 0.25s var(--tg-ease);
}
.notif-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.notif-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--tg-line); color: #fff; }
.notif-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.notif-item { --accent: var(--tg-cyan); display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 13px; text-decoration: none; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--tg-line); transition: all 0.2s; }
.notif-item:hover { background: rgba(255, 255, 255, 0.05); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.notif-item.lvl-danger { --accent: var(--tg-red); }
.notif-item.lvl-warning { --accent: var(--tg-amber); }
.notif-item.lvl-success { --accent: var(--tg-green); }
.notif-item.is-read { opacity: 0.55; }
.notif-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; flex-shrink: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.notif-body strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 3px; }
.notif-body span { display: block; color: var(--tg-muted); font-size: 12.5px; line-height: 1.45; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* =========================================================
   21. ADMIN LISTA JAVÍTÁS
   (a korlátozott magasságú flex listában a lenyíló sorok nem nyomódhatnak össze)
   ========================================================= */
.admin-user-list > *, .rule-manage-list > *, .mini-list > *, .routine-list > *, .share-list > *, .news-list > * { flex-shrink: 0; }

@media (max-width: 1024px) {
    .notif-panel { left: 12px; right: 12px; top: 72px; width: auto; }
}
@media (max-width: 768px) {
    .acc-grid { grid-template-columns: 1fr; }
    .acc-form-grid { grid-template-columns: 1fr 1fr; }
    .acc-form-top { max-width: none; }
}
@media (max-width: 480px) {
    .acc-form-grid { grid-template-columns: 1fr; }
}
.acc-stats-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .acc-stats-grid { grid-template-columns: 1fr; } }

/* Profit split bontás a fiókkártyán (profit / kivehető / buffer) */
.payout-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.payout-split > div { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--tg-line); }
.payout-split span { display: block; font-size: 10.5px; color: var(--tg-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.payout-split strong { font-family: var(--font-display); font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }

/* Rögzített trailing drawdown jelzés */
.dd-lock-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--tg-cyan); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.35); vertical-align: middle; }
.dd-lock-chip svg { width: 11px; height: 11px; }

/* =========================================================
   22. TRADE TÍPUSOK (választó gombok + címkék) & KÉP NAGYÍTÁS
   ========================================================= */
.type-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { --accent: var(--tg-violet-2); position: relative; cursor: pointer; }
.type-chip input { position: absolute; opacity: 0; pointer-events: none; }
.type-chip span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--tg-muted);
    background: rgba(0, 0, 0, 0.28); border: 1px solid var(--tg-line);
    transition: all 0.2s var(--tg-ease);
}
.type-chip span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.type-chip.none span::before { background: var(--tg-dim); box-shadow: none; }
.type-chip:hover span { color: #fff; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.type-chip input:checked + span {
    color: #fff;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    border-color: var(--accent);
    box-shadow: 0 0 18px -6px var(--accent);
}
.type-chip.none input:checked + span { background: rgba(255, 255, 255, 0.06); border-color: var(--tg-line-2); box-shadow: none; }
.type-chip-add {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--tg-violet-2);
    background: transparent; border: 1px dashed rgba(139, 92, 246, 0.5);
    transition: all 0.2s;
}
.type-chip-add:hover { background: rgba(139, 92, 246, 0.14); color: #fff; }
.type-chip-add svg { width: 14px; height: 14px; }

.type-tag {
    --accent: var(--tg-violet-2);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.type-tag.none { color: var(--tg-dim); background: transparent; border-color: transparent; }

/* 6 automatikus szín a típusokhoz (a típus azonosítója alapján) */
.c0 { --accent: var(--tg-violet-2); }
.c1 { --accent: var(--tg-cyan); }
.c2 { --accent: var(--tg-green); }
.c3 { --accent: var(--tg-amber); }
.c4 { --accent: var(--tg-magenta); }
.c5 { --accent: #fb923c; }

.type-filter select { min-width: 150px; }

/* Nagyítható képek (előnézet, szerkesztés) */
img.zoomable { cursor: zoom-in; }
.preview-thumb img.zoomable:hover, .edit-image-grid img.zoomable:hover { border-color: var(--tg-violet-2); box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.5); }

/* =========================================================
   23. CSAPAT – napi zárás, társak kártyái, admin
   ========================================================= */
.team-head-badges { gap: 8px; }
.rank-badge, .streak-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.rank-badge { color: var(--tg-amber); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); }
.rank-badge svg { width: 14px; height: 14px; }
.streak-badge { color: #fdba74; background: rgba(249, 115, 22, 0.08); border: 1px solid rgba(249, 115, 22, 0.3); }
.streak-badge b { color: #fff; }

.team-daybar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.team-day-label { font-weight: 600; color: #fff; text-transform: capitalize; min-width: 0; }
.team-daybar .btn:disabled { opacity: 0.35; cursor: not-allowed; }
.team-done-count { margin-left: auto; font-size: 12.5px; color: var(--tg-green); font-weight: 600; }

#myDayPanel { margin-bottom: 22px; }
.team-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tg-muted); font-weight: 600; margin: 4px 0 10px; }
.team-empty { color: var(--tg-muted); font-size: 13px; margin: 6px 0 12px; }
.team-partial { color: var(--tg-dim); font-size: 12px; margin: -4px 0 10px; }

.team-pick, .team-trades { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.team-pick label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--tg-radius-sm); background: var(--tg-surface); border: 1px solid var(--tg-line); cursor: pointer; transition: border-color .2s; }
.team-pick label:hover { border-color: var(--tg-line-2); }
.team-pick input { width: 17px; height: 17px; accent-color: var(--tg-green); }
.team-trade-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--tg-muted); }

.team-moods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mood-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mood-opt span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tg-line); background: var(--tg-surface); font-size: 13px; color: var(--tg-muted); cursor: pointer; transition: all .2s; }
.mood-opt input:checked + span { color: #fff; border-color: var(--tg-violet); background: rgba(139, 92, 246, 0.15); }
.team-note-input { width: 100%; min-height: 70px; resize: vertical; margin-bottom: 14px; }
.team-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.team-done-btn { font-size: 15px; padding: 12px 22px; }
.team-done-btn svg { width: 16px; height: 16px; }

.team-done-banner { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--tg-green); font-size: 16px; margin-bottom: 12px; }
.done-check { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(34, 229, 139, 0.15); border: 1px solid rgba(34, 229, 139, 0.45); box-shadow: 0 0 18px rgba(34, 229, 139, 0.35); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.team-card { padding: 16px; border-radius: var(--tg-radius-sm); background: var(--tg-surface); border: 1px solid var(--tg-line); min-width: 0; }
.team-card.done { border-color: rgba(34, 229, 139, 0.3); box-shadow: inset 0 0 0 1px rgba(34, 229, 139, 0.05), 0 10px 30px -18px rgba(34, 229, 139, 0.5); }
.team-card.locked { border-style: dashed; }
.team-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.team-card-head strong { color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card.pending .team-card-head, .team-card.locked .team-card-head { margin-bottom: 4px; }
.team-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tg-grad); color: #fff; font-weight: 700; }
.team-status { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.team-status.done { color: var(--tg-green); background: rgba(34, 229, 139, 0.1); }
.team-status.pending { color: var(--tg-amber); background: rgba(251, 191, 36, 0.08); }
.team-status.locked { color: var(--tg-dim); background: var(--tg-surface-2); }

.team-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--tg-text); margin-bottom: 10px; line-height: 1.45; }
.team-mood { font-size: 18px; line-height: 1; }
.team-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sum-chip { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--tg-surface-2); color: var(--tg-text); border: 1px solid var(--tg-line); }
.sum-chip.win { color: var(--tg-green); border-color: rgba(34, 229, 139, 0.25); }
.sum-chip.loss { color: var(--tg-red); border-color: rgba(255, 77, 109, 0.25); }
.sum-chip.strong { font-size: 12.5px; }
.team-trade { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.18); border: 1px solid var(--tg-line); }
.team-trade-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-trade-note { margin: 8px 0 0; font-size: 12.5px; color: var(--tg-muted); line-height: 1.45; }
.team-trade-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.team-trade-imgs img { width: 74px; height: 50px; object-fit: cover; border-radius: 7px; border: 1px solid var(--tg-line-2); }

.team-admin-create { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.team-admin-create .tg-input { flex: 1 1 220px; }
.team-admin-teams { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.team-admin-team { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--tg-surface); border: 1px solid var(--tg-line); }
.team-admin-team strong { color: #fff; }
.team-admin-team .mini-actions { margin-left: auto; }
.team-admin-h { font-size: 14px; color: #fff; margin: 0 0 10px; }
.team-admin-users { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 420px; overflow-y: auto; }
.team-admin-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--tg-line); }
.team-admin-user.member { border-color: rgba(251, 191, 36, 0.3); }
.team-admin-user > div { min-width: 0; }
.team-admin-user strong { display: block; color: #fff; font-size: 13.5px; }
.team-admin-user small { display: block; color: var(--tg-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-admin-user select { width: auto; min-width: 160px; flex: none; }

@media (max-width: 640px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-done-count { margin-left: 0; width: 100%; }
    .team-admin-user { flex-direction: column; align-items: stretch; }
    .team-admin-user select { width: 100%; }
}

/* =========================================================
   24. SÚGÓ – Újdonságok és Kezelési útmutató
   ========================================================= */
.doc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.doc-toc-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tg-dim); font-weight: 600; margin: 0 0 8px 10px; }
.doc-toc a { color: var(--tg-muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.doc-toc a:hover, .doc-toc a:focus-visible { color: #fff; background: var(--tg-surface-2); outline: none; }
.doc-toc a b { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 11.5px; color: var(--tg-dim); margin-right: 6px; }
@media (max-width: 1100px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .doc-toc-label { width: 100%; margin-left: 2px; }
    .doc-toc a { border: 1px solid var(--tg-line); }
}

.doc { max-width: 760px; min-width: 0; font-size: 15px; line-height: 1.7; color: var(--tg-text); }
.doc section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--tg-line); scroll-margin-top: 24px; }
.doc section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 6px; color: #fff; text-wrap: balance; }
.doc h2 small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-violet-2); margin-bottom: 6px; }
.doc h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 16.5px; color: #fff; margin: 24px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc .doc-sub { color: var(--tg-muted); margin-bottom: 16px; }
.doc a { color: var(--tg-violet-2); }
.doc ul.doc-list { margin: 0 0 14px; padding-left: 20px; }
.doc ul.doc-list li { margin-bottom: 6px; }
.doc ul.doc-list li::marker { color: var(--tg-violet-2); }
.doc .ui { font-weight: 600; color: #fff; white-space: nowrap; }
.doc .ui::before { content: "„"; color: var(--tg-dim); font-weight: 400; }
.doc .ui::after { content: "”"; color: var(--tg-dim); font-weight: 400; }
.doc dl.doc-terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0 0 14px; }
.doc dl.doc-terms dt { font-weight: 600; color: #fff; }
.doc dl.doc-terms dd { margin: 0; color: var(--tg-muted); }
@media (max-width: 560px) { .doc dl.doc-terms { grid-template-columns: minmax(0, 1fr); gap: 2px; } .doc dl.doc-terms dd { margin-bottom: 8px; } }

.doc ol.doc-steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.doc ol.doc-steps li { counter-increment: s; position: relative; padding-left: 38px; }
.doc ol.doc-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--tg-violet-2); background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.35); }

.doc-note { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; margin: 16px 0; font-size: 14px; background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.3); }
.doc-note > b { flex: none; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-amber); padding-top: 3px; }
.doc-note.info { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.32); }
.doc-note.info > b { color: var(--tg-violet-2); }

/* Felület-minták az útmutatóban */
.doc-mock { margin: 16px 0 10px; padding: 16px; border-radius: 14px; border: 1px dashed var(--tg-line-2); background: rgba(0, 0, 0, 0.2); }
.doc-mock-cap { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-dim); margin-bottom: 12px; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tg-line); color: var(--tg-muted); background: var(--tg-surface); }
.doc-chip.on { color: #ddd6fe; border-color: var(--tg-violet); background: rgba(139, 92, 246, 0.16); }
.doc-chip.add { border-style: dashed; }
.doc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.doc-kpi { padding: 12px 14px; border-radius: 12px; background: var(--tg-surface); border: 1px solid var(--tg-line); min-width: 0; }
.doc-kpi .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-dim); font-weight: 600; }
.doc-kpi .v { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.doc-kpi .s { font-size: 11.5px; color: var(--tg-muted); }
.doc-mates { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; align-items: start; }
.doc-mates .team-card { padding: 12px 14px; }
.doc-mates .team-card-head { margin-bottom: 0; }
.doc-mates .team-sum { margin: 10px 0 0; }

/* Újdonságok lista */
.updates-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.update-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 22px 24px; }
.update-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--tg-muted); line-height: 1.5; }
.update-date .new-pill { display: inline-block; margin-top: 8px; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #04130c; background: var(--tg-green); padding: 3px 8px; border-radius: 999px; }
.update-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; color: #fff; margin: 0 0 8px; }
.update-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--tg-muted); font-size: 14px; line-height: 1.6; }
.update-card ul li::marker { color: var(--tg-violet-2); }
@media (max-width: 640px) { .update-card { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px; } }
.doc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--tg-muted); text-decoration: none; font-size: 13.5px; margin-bottom: 18px; }
.doc-back:hover { color: #fff; }

/* Új frissítés jelzése: pötty a menüben + sáv a Vezérlőpulton */
.nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tg-green); box-shadow: 0 0 10px var(--tg-green); }
.update-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 22px; border-radius: 14px; background: linear-gradient(100deg, rgba(139, 92, 246, 0.16), rgba(56, 189, 248, 0.08)); border: 1px solid rgba(139, 92, 246, 0.35); }
.update-banner[hidden] { display: none; }
.update-banner .ub-text { flex: 1 1 260px; min-width: 0; font-size: 14px; color: var(--tg-text); }
.update-banner .ub-text b { color: #fff; }
.update-banner .ub-close { background: none; border: 0; color: var(--tg-muted); font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; }
.update-banner .ub-close:hover { color: #fff; }

/* Súgóoldalak bejelentkezés nélkül (public_header.php) */
.dashboard-body.public-body { overflow: auto; }
.public-main { padding: 112px max(18px, env(safe-area-inset-right, 0px)) 60px max(18px, env(safe-area-inset-left, 0px)); }
.public-main .page-inner { max-width: 1200px; }
.public-body .doc-toc { top: 100px; }
.public-body .doc section { scroll-margin-top: 100px; }
.navbar .nav-brand { text-decoration: none; }
.public-nav-links { display: flex; align-items: center; gap: 6px; }
.public-nav-links a:not(.btn-nav) { color: var(--tg-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.public-nav-links a:not(.btn-nav):hover, .public-nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.public-nav-links .btn-nav { text-decoration: none; }
@media (max-width: 520px) {
    .public-nav-links a:not(.btn-nav) { padding: 7px 8px; font-size: 13px; }
    .navbar.public-nav .nav-brand { font-size: 0; gap: 0; }
}

/* =========================================================
   25. TRADE IMPORT LINKBŐL (AlphaFlowDesk)
   ========================================================= */
.import-box { padding: 14px 16px; margin-bottom: 22px; border-radius: 14px; border: 1px dashed rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.06); }
.import-box > label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tg-violet-2); margin-bottom: 10px; }
.import-box > label svg { width: 15px; height: 15px; }
.import-box .opt-note { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--tg-dim); }
.import-row { display: flex; gap: 10px; }
.import-row .tg-input { flex: 1; min-width: 0; }
.import-row .btn { flex: none; }
.import-row .btn:disabled { opacity: .6; cursor: wait; }
.import-status { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--tg-text); }
.import-status.loading { color: var(--tg-muted); }
.import-status.error { color: var(--tg-red); }
.import-status ul { margin: 6px 0 0; padding-left: 18px; }
.import-status li { margin-bottom: 2px; }
.import-status .imp-ok { color: var(--tg-green); font-weight: 600; }
.import-status .imp-warn { color: var(--tg-amber); }
.imp-filled { box-shadow: 0 0 0 2px rgba(34, 229, 139, 0.45) !important; transition: box-shadow .4s; }
@media (max-width: 560px) { .import-row { flex-direction: column; } .import-box .opt-note { display: none; } }

/* =========================================================
   26. SZABÁLYOK TÍPUSONKÉNT + N/A
   ========================================================= */
.rule-item { display: flex; align-items: stretch; gap: 8px; }
.rule-item[hidden] { display: none; }
.rule-item .custom-checkbox { flex: 1; min-width: 0; }
.rule-label { display: inline; }
.rule-label .type-tag { margin-left: 6px; vertical-align: 1px; font-size: 10.5px; }
.rule-na { flex: none; display: flex; align-items: center; cursor: pointer; }
.rule-na input { position: absolute; opacity: 0; pointer-events: none; }
.rule-na span { display: grid; place-items: center; min-width: 46px; height: 100%; min-height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--tg-line); background: var(--tg-surface); color: var(--tg-dim); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; transition: all .2s; }
.rule-na:hover span { color: var(--tg-muted); border-color: var(--tg-line-2); }
.rule-na input:checked + span { color: var(--tg-amber); border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.1); }
.rule-na input:focus-visible + span { outline: 2px solid var(--tg-violet-2); outline-offset: 2px; }
.rule-item.is-na .custom-checkbox { opacity: .45; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }

/* Profil → Szabályaim: típus választó */
.rule-type-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 16px; }
.rule-type-pick .rtp-label { font-size: 12px; color: var(--tg-muted); margin-right: 4px; }
.rtp-chip { position: relative; cursor: pointer; }
.rtp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rtp-chip span { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--tg-line); color: var(--tg-muted); background: var(--tg-surface); transition: all .2s; }
.rtp-chip input:checked + span { color: #ddd6fe; border-color: var(--tg-violet); background: rgba(139, 92, 246, 0.16); }
.rtp-chip input:focus-visible + span { outline: 2px solid var(--tg-violet-2); outline-offset: 2px; }
.rule-row .rule-types { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rule-row .rule-types .type-tag { font-size: 10.5px; }
.rule-row .rule-general { font-size: 11px; color: var(--tg-dim); }
.rule-row .rule-text-wrap { display: flex; flex-direction: column; min-width: 0; }
.rule-types-editor { width: 100%; padding: 10px 0 2px 52px; }
.rule-types-editor .rule-type-pick { margin: 0 0 8px; }

/* Import: "létrehozzam a szabályokat?" kérdés */
.import-rules { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(139, 92, 246, 0.3); font-size: 13px; }
.import-rules[hidden] { display: none; }
.import-rules .ir-title { font-weight: 600; color: #fff; margin: 0 0 8px; }
.import-rules .ir-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.import-rules .ir-list label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; color: var(--tg-text); line-height: 1.45; }
.import-rules .ir-list input { margin-top: 3px; accent-color: var(--tg-violet); flex: none; }
.import-rules .ir-list span { flex: 1; min-width: 0; }
.ir-state { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.ir-state.followed { color: var(--tg-green); background: rgba(34, 229, 139, 0.1); }
.ir-state.na { color: var(--tg-amber); background: rgba(251, 191, 36, 0.1); }
.ir-state.violated { color: var(--tg-red); background: rgba(255, 77, 109, 0.1); }
.import-rules .ir-note { color: var(--tg-muted); margin: 0 0 10px; }
.import-rules .ir-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Nincs szabály: gyors hozzáadás a rögzítésnél; összes törlése a profilban */
.rule-empty-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--tg-line-2); color: var(--tg-muted); font-size: 13.5px; }
.rule-empty-cta[hidden] { display: none; }
.rule-empty-cta .btn svg { width: 14px; height: 14px; }
.rule-bulk-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.rule-bulk-actions[hidden] { display: none; }
.rule-bulk-actions .btn svg { width: 14px; height: 14px; }

/* =========================================================
   27. FELHASZNÁLÓNÉV (Profil)
   ========================================================= */
.profile-identity .profile-email { display: block; font-size: 12px; color: var(--tg-dim); word-break: break-all; margin-top: 2px; }
.username-form { margin: -8px 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
