/* =====================================================================================================
   SÖTÉT TÉMA — az egész oldalra (2026-10-05, felhasználói kérés: lámpa-gomb a felső sávban + sötét mód MINDEN oldalon).
   A paletta az "Arany egyenleg és értesítő" és a Statisztika oldal sötét palettája:
     háttér #10152a · kártya #182038 · keret #2a3452 · szöveg #c3cae0 · halvány szöveg #8a95b5 (2026-11-05: tompított KÉK — kevésbé erős kontraszt, mattabb) · arany #d4af37 / #F1D77A
   Minden szabály a html[data-theme="dark"] alatt van, a világos mód így érintetlen. A kapcsoló: partials/topbar.php (lámpa), a téma
   szerveroldali alapja: app/Theme.php (süti: gg_theme). Ez a fájl a többi stíluslap UTÁN töltődik be.
   ===================================================================================================== */

html[data-theme="dark"] {
    color-scheme: dark;   /* görgetősávok, űrlapelemek, jelölőnégyzetek a böngészőben is sötétek */
    --color-bg: #10152a;
    --color-card: #182038;
    --color-card-border: #2a3452;
    --color-text: #c3cae0;
    --color-text-muted: #8a95b5;
    --color-heading: #ccd3e8;          /* a világos módban --color-navy-val szedett címek/kiemelések színe */
    --color-navy-rgb: 195, 202, 224;   /* az rgba(var(--color-navy-rgb), α) halvány árnyalatok sötéten világos árnyalatok lesznek */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
    --d-inset: #131a30;                /* süllyesztett felület (a kártyánál sötétebb): panelek, sávok, táblázatfej */
    --d-surface-2: #1f2845;            /* kiemelt felület a kártyán / panelen: gombok, jelölők */
    --d-input: #0f1427;                /* űrlapmezők háttere */
    --d-input-border: #2b3554;
}

/* ---------- címek, kiemelt szövegek (világos módban --color-navy) ---------- */
html[data-theme="dark"] .events-calendar-title,
html[data-theme="dark"] .auth-card .brand,
html[data-theme="dark"] .calc-brand,
html[data-theme="dark"] .calc-broker a,
html[data-theme="dark"] .gg-name-box h2,
html[data-theme="dark"] .link-gy-card-name,
html[data-theme="dark"] .news-item-body h3,
html[data-theme="dark"] .gg-name-box button.gg-name-cancel:hover,
html[data-theme="dark"] .news-subtab.is-active,
html[data-theme="dark"] .news-view-dropdown-toggle,
html[data-theme="dark"] .hd-pill-navy,
html[data-theme="dark"] .contact-card-name-btn:hover,
html[data-theme="dark"] .contact-details-list a,
html[data-theme="dark"] .news-category-badge,
html[data-theme="dark"] .info-pdf-sheet h1,
html[data-theme="dark"] .news-push-switch,
html[data-theme="dark"] .cert-brand,
html[data-theme="dark"] .cert-mod-name,
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] .bemutato-card,
html[data-theme="dark"] .bemutato-back,
html[data-theme="dark"] .gate-box h1,
html[data-theme="dark"] .logout-link:hover {
    color: var(--color-heading);
}

/* ---------- fehér hátterű gombok / jelölők: sötét felület, világos szöveg ---------- */
html[data-theme="dark"] .btn-back,
html[data-theme="dark"] .link-gy-box button.link-gy-delete-btn,
html[data-theme="dark"] .rte-btn,
html[data-theme="dark"] .hd-collapse-toggle,
html[data-theme="dark"] .news-read-filter-item.is-active {
    background: var(--d-surface-2);
    color: var(--color-heading);
    border-color: var(--color-card-border);
}

/* ---------- űrlapmezők ---------- */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="color"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: var(--d-input);
    color: var(--color-text);
    border-color: var(--d-input-border);
}
html[data-theme="dark"] ::placeholder { color: #6e7899; opacity: 1; }
html[data-theme="dark"] input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px var(--d-input) inset;
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
}

/* ===== AUTOMATIKUSAN KÉPZETT SZABÁLYOK — a világos stíluslapok hardkódolt színeiből (fényesség alapján leképezve); :where() előtaggal, hogy a
   specifikusságuk az eredetivel megegyezzen (az állapot-szabályok, pl. .chip-active, így nem sérülnek) ===== */
/* ---------- assets/css/style.css ---------- */
:where(html[data-theme="dark"]) .topbar-account-menu-item-logout {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .topbar-account-menu-item-logout .topbar-account-menu-item-chip svg {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .subnav-tab {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .asset-tab {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .admin-count-badge.is-paid {
  background: rgba(74, 222, 128, 0.10);
}
:where(html[data-theme="dark"]) .admin-check-circle {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .icon-btn-danger {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .form-panel {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .calc-form input[type="month"],
:where(html[data-theme="dark"]) .calc-form input[type="number"],
:where(html[data-theme="dark"]) .calc-form input[type="text"],
:where(html[data-theme="dark"]) .calc-form input[type="search"],
:where(html[data-theme="dark"]) .calc-form input[type="password"],
:where(html[data-theme="dark"]) .calc-form input[type="time"],
:where(html[data-theme="dark"]) .calc-form input[type="date"],
:where(html[data-theme="dark"]) .calc-form input[type="datetime-local"],
:where(html[data-theme="dark"]) .calc-form input[type="file"],
:where(html[data-theme="dark"]) .calc-form select,
:where(html[data-theme="dark"]) .calc-form textarea {
  background: var(--d-input);
}
:where(html[data-theme="dark"]) .account-action-link {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .account-action-link svg {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .btn-back {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .chip {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .toggle-option {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .lumpsum-check .lumpsum-check-circle {
  background: #2b3554;
}
:where(html[data-theme="dark"]) .currency-toggle-track {
  background: #2b3554;
}
:where(html[data-theme="dark"]) .chip-radio {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .form-actions-box,
:where(html[data-theme="dark"]) .form-meta-box {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .stat-positive .stat-value {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .stat-negative .stat-value {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .events-calendar-title {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .events-calendar-day.is-selected {
  background: rgba(212, 175, 55, 0.08);
}
:where(html[data-theme="dark"]) .events-calendar-day.is-link:hover {
  background: rgba(212, 175, 55, 0.08);
}
:where(html[data-theme="dark"]) .metal-bar-track {
  background: #2b3554;
}
:where(html[data-theme="dark"]) .chart-wrap {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .alert-error {
  background: rgba(255, 138, 122, 0.12);
  border: 1px solid #2f3a5c;
}
:where(html[data-theme="dark"]) .alert-info {
  background: rgba(122, 150, 230, 0.12);
  border: 1px solid #2f3a5c;
}
:where(html[data-theme="dark"]) .alert-success {
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid #2f3a5c;
}
:where(html[data-theme="dark"]) .auth-card .brand {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .calc-brand {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .calc-broker a {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .gg-name-box h2 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .gg-name-email-error {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .gg-name-email-result.is-ok {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .gg-name-email-result.is-bad {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .link-gy-card-name {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .link-gy-box button.link-gy-edit-toggle,
:where(html[data-theme="dark"]) .link-gy-box button.link-gy-arrow-btn,
:where(html[data-theme="dark"]) .link-gy-box button.link-gy-delete-btn {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .link-gy-box button.link-gy-delete-btn {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .news-item {
  border-bottom: 1px solid var(--color-border, var(--color-card-border));
}
:where(html[data-theme="dark"]) .news-item-body h3 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .rte-btn {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .rte-area {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .gg-name-box button.gg-name-cancel:hover {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .toggle-switch-track {
  background: #2b3554;
}
:where(html[data-theme="dark"]) .news-list-item {
  border-bottom: 1px solid var(--color-border, var(--color-card-border));
}
:where(html[data-theme="dark"]) .news-table th {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .news-table td {
  border-bottom: 1px solid var(--color-card-border);
}
:where(html[data-theme="dark"]) .news-table tr:hover td {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .news-subtab.is-active {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .hd-pill-green {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .hd-pill-navy {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .hd-pill-gray {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .hd-pill-red {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .contact-sort-select {
  background: var(--d-input);
}
:where(html[data-theme="dark"]) .contact-card {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .contact-card-name-btn:hover {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .contact-details-list a {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .hd-sort-select {
  background: var(--d-input);
}
:where(html[data-theme="dark"]) .hd-collapse-toggle {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .news-category-badge {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .chat-bubble-content {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .chat-contact.is-unanswered {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .news-pdf-sheet.pdf-export-offscreen {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .info-pdf-sheet.pdf-export-offscreen {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .info-pdf-sheet h1 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .suggestion-history-item {
  border-bottom: 1px solid var(--color-border, var(--color-card-border));
}
:where(html[data-theme="dark"]) .suggestion-history-answer {
  background: rgba(122, 150, 230, 0.12);
  border: 1px solid #2f3a5c;
}
:where(html[data-theme="dark"]) .partner-pdf-page {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .partner-pdf-field {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .partner-pdf-check {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .bic-combobox-list {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .topbar-pro-tip {
  background: var(--d-surface-2);
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .news-push-switch {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .news-push-track {
  background: #2b3554;
}
:where(html[data-theme="dark"]) .news-read-filter-item.is-active {
  background: var(--d-surface-2);
}

/* ---------- assets/css/quiz.css ---------- */
:where(html[data-theme="dark"]) .progress-bar {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .score-box {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .score-ok .score-num {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .score-bad .score-num {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .module-item {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .module-item[disabled] {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .module-count {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .q-badge {
  background: var(--d-inset);
  color: var(--color-text);
}
:where(html[data-theme="dark"]) .q-flag {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid #2f3a5c;
}
:where(html[data-theme="dark"]) .opt {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .opt:hover:not(.is-locked) {
  background: #222c4a;
}
:where(html[data-theme="dark"]) .opt-key {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .opt.is-picked {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .opt.is-correct {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .opt.is-wrong {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .opt.is-missed {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .opt.is-correct .opt-verdict {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .opt.is-wrong .opt-verdict {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .feedback-ok .feedback-head {
  background: rgba(74, 222, 128, 0.10);
}
:where(html[data-theme="dark"]) .feedback-bad .feedback-head {
  background: rgba(255, 138, 122, 0.12);
}
:where(html[data-theme="dark"]) .feedback-body {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .btn-ghost {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .kbd {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .qmap-dot {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .review-item {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .verdict-band.is-pass {
  background: rgba(74, 222, 128, 0.10);
  border-color: #2f3a5c;
}
:where(html[data-theme="dark"]) .verdict-band.is-near {
  background: rgba(212, 175, 55, 0.08);
  border-color: #2f3a5c;
}
:where(html[data-theme="dark"]) .verdict-band.is-fail {
  background: rgba(255, 138, 122, 0.12);
  border-color: #2f3a5c;
}
:where(html[data-theme="dark"]) .gg-name-box h2 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .gg-name-box button.gg-name-cancel:hover {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .cert-brand {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .cert-mod-name {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .cert-mod-pct.is-good {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .cert-mod-bar {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .download-hint {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .abort-note {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid #2f3a5c;
}
:where(html[data-theme="dark"]) .verdict-band.is-practice {
  background: var(--d-inset);
  color: var(--color-text);
}

/* ---------- assets/css/study.css ---------- */
:where(html[data-theme="dark"]) .progress-bar {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .video-count {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .video-select {
  background: var(--d-input);
}
:where(html[data-theme="dark"]) .video-item.is-watched .video-select {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .study-questions {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .study-question-check {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .study-nav-prev {
  background: var(--d-surface-2);
}

/* ---------- assets/css/szimulator-pro.css ---------- */
:where(html[data-theme="dark"]) .pro-side-category {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .pro-side-row:hover:not(.is-active) {
  background: #222c4a;
}
:where(html[data-theme="dark"]) .pro-side-annual {
  color: var(--d-pos);
}
:where(html[data-theme="dark"]) .pro-side-annual.is-negative {
  color: var(--d-neg);
}
:where(html[data-theme="dark"]) .pro-mode {
  background: var(--d-inset);
}
:where(html[data-theme="dark"]) .pro-lock-card {
  background: var(--color-card);
}
:where(html[data-theme="dark"]) .pro-lock-card h2 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .pro-lock-when {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .pro-infochip {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .pro-side {
  background: rgba(212, 175, 55, 0.08);
}
:where(html[data-theme="dark"]) .pro-side-row {
  background: var(--d-surface-2);
}
:where(html[data-theme="dark"]) .pro-side-row:hover:not(.is-active) {
  background: #222c4a;
}
:where(html[data-theme="dark"]) .pro-switch {
  background: #2b3554;
}
:where(html[data-theme="dark"]) .pro-side-row.is-active .pro-side-annual.is-negative {
  color: var(--d-neg);
}

/* ---------- bemutato/style.css ---------- */
:where(html[data-theme="dark"]) .page-head h1 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .bemutato-back {
  color: var(--color-heading);
}

/* ---------- esemeny-beleptetes/style.css ---------- */
:where(html[data-theme="dark"]) .gate-box h1 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .logout-link:hover {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .checkin-row.is-highlighted {
  background: rgba(212, 175, 55, 0.08);
}

/* ---------- ggeredmeny/style.css ---------- */
:where(html[data-theme="dark"]) .gate-box h1 {
  color: var(--color-heading);
}
:where(html[data-theme="dark"]) .logout-link:hover {
  color: var(--color-heading);
}

/* ---------- nemesfem-vizsga/style.css ---------- */
:where(html[data-theme="dark"]) .gate-box h1 {
  color: var(--color-heading);
}

/* =====================================================================================================
   KÉZI FINOMÍTÁSOK — szemantikus színek (zöld/piros/borostyán), kvíz- és Tanulószoba-állapotok, címkék, értesítések, grafikonok.
   (A fenti, színekből automatikusan képzett szabályok után állnak, ezért felülírhatják azokat.)
   ===================================================================================================== */
html[data-theme="dark"] {
    --d-pos: #4ade80;      /* zöld SZÖVEG sötét felületen (a --color-positive tömör háttérnek marad, fehér szöveggel) */
    --d-neg: #ff8a7a;
    --d-amber: #e9c46a;
    --d-blue: #9db8ff;
}
/* tömör háttérként használt "halvány szöveg" szín */
html[data-theme="dark"] .chat-avatar-pending { background: #4b5675; }

/* ---------- értesítések (alert) ---------- */
html[data-theme="dark"] .alert-error   { background: rgba(255, 138, 122, 0.12); color: #ffb4ab; border-color: rgba(255, 138, 122, 0.35); }
html[data-theme="dark"] .alert-info    { background: rgba(122, 150, 230, 0.12); color: var(--d-blue); border-color: rgba(122, 150, 230, 0.35); }
html[data-theme="dark"] .alert-success { background: rgba(74, 222, 128, 0.10);  color: #86e0a8; border-color: rgba(74, 222, 128, 0.32); }

/* ---------- pirulák / címkék ---------- */
html[data-theme="dark"] .hd-pill-green { color: var(--d-pos); border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.10); }
html[data-theme="dark"] .hd-pill-red   { color: var(--d-neg); border-color: rgba(255, 138, 122, 0.5); background: rgba(255, 138, 122, 0.10); }
html[data-theme="dark"] .hd-pill-navy  { color: var(--color-heading); border-color: rgba(195, 202, 224, 0.3); background: rgba(195, 202, 224, 0.07); }
html[data-theme="dark"] .hd-pill-gray  { color: var(--color-text-muted); border-color: var(--color-card-border); background: var(--d-inset); }

/* ---------- Kvíz (Vizsga) ---------- */
html[data-theme="dark"] .score-ok .score-num, html[data-theme="dark"] .opt.is-correct .opt-verdict { color: var(--d-pos); }
html[data-theme="dark"] .score-bad .score-num, html[data-theme="dark"] .opt.is-wrong .opt-verdict { color: var(--d-neg); }
html[data-theme="dark"] .opt.is-missed .opt-verdict { color: #7fd6a0; }
html[data-theme="dark"] .opt.is-picked  { border-color: #7a96e6; background: rgba(122, 150, 230, 0.12); }
html[data-theme="dark"] .opt.is-picked .opt-key, html[data-theme="dark"] .qmap-dot.is-picked { background: #3a56a0; border-color: #3a56a0; color: #fff; }
html[data-theme="dark"] .opt.is-correct { border-color: #2f9e5f; background: rgba(74, 222, 128, 0.10); }
html[data-theme="dark"] .opt.is-wrong   { border-color: #d65b4f; background: rgba(255, 138, 122, 0.10); }
html[data-theme="dark"] .opt.is-missed  { border-color: #2f9e5f; background: rgba(74, 222, 128, 0.05); }
html[data-theme="dark"] .qmap-dot.is-current { outline-color: #d4af37; }
html[data-theme="dark"] .feedback-ok .feedback-head  { background: rgba(74, 222, 128, 0.12); color: var(--d-pos); }
html[data-theme="dark"] .feedback-bad .feedback-head { background: rgba(255, 138, 122, 0.12); color: var(--d-neg); }
html[data-theme="dark"] .verdict-band.is-pass { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.35); color: var(--d-pos); }
html[data-theme="dark"] .verdict-band.is-near { background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.4); color: var(--d-amber); }
html[data-theme="dark"] .verdict-band.is-fail { background: rgba(255, 138, 122, 0.10); border-color: rgba(255, 138, 122, 0.4); color: var(--d-neg); }
html[data-theme="dark"] .verdict-band.is-practice { background: var(--d-inset); border-color: var(--color-card-border); color: var(--color-text); }
html[data-theme="dark"] .exam-note.is-pending { background: var(--d-inset); border-color: var(--color-card-border); color: var(--color-text); }
html[data-theme="dark"] .exam-note.is-success { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.35); color: var(--d-pos); }
html[data-theme="dark"] .exam-note.is-error { background: rgba(255, 138, 122, 0.10); border-color: rgba(255, 138, 122, 0.4); color: var(--d-neg); }
html[data-theme="dark"] .q-flag, html[data-theme="dark"] .abort-note { background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.4); color: var(--d-amber); }

/* ---------- Tanulószoba ---------- */
html[data-theme="dark"] .video-item.is-watched .video-select { color: var(--d-pos); }
html[data-theme="dark"] .video-item.is-active .video-select,
html[data-theme="dark"] .video-item.is-active.is-watched .video-select { color: #201a05; }   /* arany háttéren sötét szöveg marad */
html[data-theme="dark"] .study-question-check { border-color: #4a5578; color: #4a5578; }
html[data-theme="dark"] .study-question-check.is-watched,
html[data-theme="dark"] .study-question-item.is-checked .study-question-check { color: #fff; border-color: var(--color-positive); }

/* ---------- Szimulátor Pro ---------- */
html[data-theme="dark"] .pro-side-annual { color: var(--d-pos); }
html[data-theme="dark"] .pro-side-annual.is-negative { color: var(--d-neg); }

/* ---------- Saját adataim: műveleti linkek (zöld szöveg zöldes háttéren) ---------- */
html[data-theme="dark"] .account-action-link { background: rgba(74, 222, 128, 0.10); }
html[data-theme="dark"] .account-action-link:hover { background: rgba(74, 222, 128, 0.18); }
html[data-theme="dark"] .account-action-link, html[data-theme="dark"] .account-action-link svg { color: var(--d-pos); }

/* ---------- Szimulátor: arany sáv, PDF-gomb ---------- */
html[data-theme="dark"] .metal-bar-track-solid { background: var(--color-chart-accent); }   /* az egyfémes sáv aranya (a sáv-alapszín nem írhatja felül) */
html[data-theme="dark"] .btn-pdf { background: #2a3f7e; color: #fff; }                       /* a sötétkék gomb sötét felületen is látszik */
html[data-theme="dark"] .btn-pdf:hover { background: #34509f; }

/* ---------- PDF-export lapok: nyomtatásra készülnek, ezért sötét módban is FEHÉREK maradnak (a világos tokenek újra érvényesek bennük) ---------- */
html[data-theme="dark"] :is(.pdf-export-offscreen, .news-pdf-sheet, .info-pdf-sheet, .partner-pdf-page, .cert-sheet) {
    color-scheme: light;
    --color-card: #ffffff;
    --color-card-border: #e6e8ee;
    --color-text: #1c2333;
    --color-text-muted: #6b7280;
    --color-heading: #101c3d;
    --color-navy-rgb: 16, 28, 61;
    --d-inset: #f8f9fb;
    --d-surface-2: #ffffff;
    --d-input: #ffffff;
    --d-pos: #1a7f45;
    --d-neg: #b3261e;
    --d-amber: #8a6414;
    --d-blue: #33456e;
    background-color: #ffffff;
    color: #1c2333;
}

/* ---------- Rendezvénynaptár ---------- */
html[data-theme="dark"] .events-calendar-dot.is-available { background: #3fcf86; }
html[data-theme="dark"] .events-view-switch { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .events-year-mgrid a:hover { background: rgba(212, 175, 55, 0.08); }

/* ---------- aktív/kijelölt állapotok: a világos módban tömör sötétkék elem sötét felületen élénkebb kék ---------- */
html[data-theme="dark"] { --d-active: #2f4a94; }
html[data-theme="dark"] :is(.subnav-tab.is-active, .btn-back:hover, .toggle-option:has(input:checked), .toggle-option:has(input:disabled:checked),
    .btn-secondary, .rte-btn.is-active, .admin-subtab.is-active, .public-subtab.is-active, .hd-btn-mini, .exam-lock-note, .order-lock-note,
    .q-badge-navy, .pro-side-row.is-active) {
    background: var(--d-active);
    border-color: var(--d-active);
    color: #fff;
}
html[data-theme="dark"] .currency-toggle-input:checked ~ .currency-toggle-track { background: var(--d-active); }
html[data-theme="dark"] .chat-avatar:not(.chat-avatar-pending):not(.chat-avatar-answered) { background: var(--d-active); }
html[data-theme="dark"] .chat-bubble-customer .chat-avatar { background: var(--color-gold); color: var(--color-on-gold); }
html[data-theme="dark"] .stat-card-accent { background: #1c2748; border-color: rgba(212, 175, 55, 0.4); }
html[data-theme="dark"] .stat-card-accent .stat-label { color: rgba(195, 202, 224, 0.7); }          /* a kiemelt "Aktuális érték" kártya: sötétkék, arany kerettel */
html[data-theme="dark"] .pro-switch { background: #3a4670; }

/* ---------- hamburger-ikonok (a világos módban sötétkék sávok) ---------- */
html[data-theme="dark"] .bemutato-menu-btn span,
html[data-theme="dark"] .contact-tabs-menu-btn span { background: var(--color-heading); }

/* ---------- Link gyűjtemény: Szerkesztés / Fel / Le gombok sötét módban fehér ikonnal (2026-10-08) ---------- */
html[data-theme="dark"] .link-gy-box button.link-gy-edit-toggle,
html[data-theme="dark"] .link-gy-box button.link-gy-arrow-btn {
    color: var(--color-heading);
}
html[data-theme="dark"] .link-gy-box .link-gy-card.is-editing button.link-gy-edit-toggle {
    color: var(--color-on-gold, var(--color-navy));
}

/* ---------- Naptár + Rendezvényeim (2026-10-15) ---------- */
html[data-theme="dark"] .my-ev.is-selected { background: rgba(212, 175, 55, 0.10); }
html[data-theme="dark"] .my-chip.is-ok { color: #6fdca0; background: rgba(46, 160, 100, 0.14); border-color: rgba(46, 160, 100, 0.4); }
html[data-theme="dark"] .my-chip.is-wait { color: #e8c565; background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.4); }
html[data-theme="dark"] .my-chip.is-mute { color: #aeb9da; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .ev-lock { background: rgba(212, 175, 55, 0.10); border-color: rgba(212, 175, 55, 0.4); }
html[data-theme="dark"] .ev-admin-note, html[data-theme="dark"] .ev-msg.is-admin .ev-bub { background: rgba(120, 150, 230, 0.14); }
html[data-theme="dark"] .ev-msg.is-mine .ev-bub { background: rgba(212, 175, 55, 0.18); }


/* ---------- mobil/sötét: a világos módban --color-navy-val szedett szövegek (2026-10-15, felhasználói jelzés: nem látszottak) ---------- */
html[data-theme="dark"] .events-view-switch a.is-on,
html[data-theme="dark"] .events-view-switch button.is-on,
html[data-theme="dark"] .events-year-month-title,
html[data-theme="dark"] .my-ev-date b,
html[data-theme="dark"] .my-ev-title,
html[data-theme="dark"] .ev-room-title,
html[data-theme="dark"] .reg-table .reg-name,
html[data-theme="dark"] .cc-name,
html[data-theme="dark"] .reg-filter-toggle,
html[data-theme="dark"] .ev-reg-title {
    color: var(--color-heading);
}
html[data-theme="dark"] .events-year-month.is-current .events-year-month-title { color: var(--color-gold, #d4af37); }
html[data-theme="dark"] .events-view-switch a.is-on,
html[data-theme="dark"] .events-view-switch button.is-on { background: var(--d-surface-2); }
html[data-theme="dark"] .reg-filter-toggle { background: var(--d-surface-2); }
html[data-theme="dark"] .ev-av { background: #26335a; color: var(--color-gold, #d4af37); }
html[data-theme="dark"] .ev-msg.is-admin .ev-av { background: var(--color-gold, #d4af37); color: #1a1405; }

/* 2026-11-05: az "Értéknövekedés alakulása" doboz halvány arany alapja sötéten olívás volt — kékes háttéren csak finom arany árnyalat */
html[data-theme="dark"] .stat-secondary-panel { background: rgba(var(--color-chart-accent-rgb), 0.04); }
