/* HC Portal Merkezi 1.0.0 */
.hc-theme-toggle{width:38px;height:38px;padding:0;border-radius:50%;background:#edf4ff;color:var(--blue);border:1px solid #d6e5ff}.hc-theme-toggle:hover{background:#dceaff;color:var(--blue)}.hc-theme-toggle .icon{width:18px;height:18px}.hc-notify-menu{position:relative}.hc-notify-menu>summary{position:relative;list-style:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--ink);background:#f7f9fd;border:1px solid var(--line);cursor:pointer}.hc-notify-menu>summary::-webkit-details-marker{display:none}.hc-notify-menu>summary .icon{width:19px;height:19px}.hc-notify-count,.hc-admin-alert-badge{position:absolute;right:-6px;top:-6px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c82333;color:#fff;font-size:10px;line-height:1;font-weight:800;border:2px solid #fff}.hc-admin-link{position:relative}.hc-admin-link .hc-admin-alert-badge{right:-8px;top:-9px}.hc-notify-pop{position:absolute;right:0;top:calc(100% + 10px);width:min(390px,90vw);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px #10243e2c;padding:12px;z-index:50;white-space:normal}.hc-notify-head,.hc-suite-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.hc-notify-head{padding:2px 4px 10px;border-bottom:1px solid var(--line)}.hc-notify-item{display:block;padding:11px 8px;border-bottom:1px solid #edf1f7;color:var(--ink)}.hc-notify-item:hover{background:#f7faff;text-decoration:none}.hc-notify-item strong,.hc-notify-item span,.hc-notify-item small{display:block}.hc-notify-item span{font-size:12px;color:var(--muted);margin:2px 0}.hc-notify-item small{font-size:10px;color:#8d9aad}.hc-notify-all{display:block;text-align:center;padding:10px 4px 2px;font-size:12px;font-weight:700}.hc-notification-list{display:grid;gap:10px}.hc-notification-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fff}.hc-notification-row.unread{border-left:4px solid var(--blue);background:#f7fbff}.hc-notification-row p{margin:4px 0;color:var(--muted)}.hc-notification-row small{color:var(--muted)}.hc-suite-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hc-suite-actions form{margin:0}.hc-suite-grid{display:grid;gap:14px}.hc-suite-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-bottom:18px}.hc-suite-metric{margin:0;display:flex;flex-direction:column;gap:4px}.hc-suite-metric span{font-size:12px;color:var(--muted)}.hc-suite-metric strong{font-size:27px;line-height:1.2}.hc-suite-metric small{font-size:11px;color:var(--muted)}.hc-inline-form{display:flex;gap:9px;align-items:end;flex-wrap:wrap;margin:12px 0 18px}.hc-inline-form input,.hc-inline-form select{width:auto;min-width:160px}.hc-health-list{display:grid;gap:1px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.hc-health-list>div{display:flex;justify-content:space-between;gap:18px;padding:13px 15px;background:#fafcff}.hc-good{color:#177a46}.hc-warn{color:#9a6300}.hc-bad{color:#b1243c}.hc-tag-cloud{display:flex;gap:8px;flex-wrap:wrap}.hc-search-groups{display:grid;gap:18px}.hc-search-result{padding:12px 0;border-bottom:1px solid var(--line)}.hc-search-result:last-child{border-bottom:0}.hc-search-result>a{font-size:16px}.hc-search-result small{display:block;color:var(--muted);margin-top:2px}.hc-search-result p{margin:5px 0 0;color:#53627a}.hc-user-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.hc-user-result{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--ink)}.hc-user-result:hover{text-decoration:none;background:#f7faff}.hc-user-result span,.hc-user-result small{display:block}.hc-user-result small{color:var(--muted)}.hc-alert-list{display:grid;gap:10px}.hc-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-left:5px solid #8290a5;border-radius:10px;background:#fff}.hc-alert-warning{border-left-color:#d99b00}.hc-alert-critical{border-left-color:#c82333}.hc-alert-info{border-left-color:var(--blue)}.hc-alert.inactive{opacity:.55}.hc-alert p{margin:4px 0;color:var(--muted)}.hc-alert small{color:var(--muted)}.hc-suite-pref{margin:8px 0 14px;border:1px solid var(--line);border-radius:10px;padding:15px;display:grid;gap:9px}.hc-pwa-install{white-space:nowrap}

/* Dark mode: mevcut tasarımın yapısını değiştirmeden ana yüzeyleri koyulaştırır. */
body[data-color-mode="dark"]{--ink:#e6edf7;--muted:#9cabbe;--line:#2b3c54;--paper:#162235;--blue:#5aa0ff;background:#0e1725;color:var(--ink)}
body[data-color-mode="dark"] .site-header,body[data-color-mode="dark"] .site-footer,body[data-color-mode="dark"] .panel,body[data-color-mode="dark"] .side-card,body[data-color-mode="dark"] .entry-card,body[data-color-mode="dark"] .mega-panel,body[data-color-mode="dark"] .hc-notify-pop,body[data-color-mode="dark"] .hc-notification-row,body[data-color-mode="dark"] .hc-alert{background:#162235;border-color:var(--line);color:var(--ink)}
body[data-color-mode="dark"] .brand,body[data-color-mode="dark"] .nav-item,body[data-color-mode="dark"] .nav-home,body[data-color-mode="dark"] .entry-card h2 a,body[data-color-mode="dark"] .side-row,body[data-color-mode="dark"] .hc-notify-item,body[data-color-mode="dark"] .hc-user-result{color:var(--ink)}
body[data-color-mode="dark"] input,body[data-color-mode="dark"] select,body[data-color-mode="dark"] textarea{background:#101a29;color:var(--ink);border-color:#34475f}
body[data-color-mode="dark"] .search input[name="q"]{background:#101a29;color:var(--ink)}
body[data-color-mode="dark"] .chip,body[data-color-mode="dark"] .secondary,body[data-color-mode="dark"] .hc-theme-toggle,body[data-color-mode="dark"] .hc-notify-menu>summary{background:#1d2c42;color:#bcd6ff;border-color:#34475f}
body[data-color-mode="dark"] .chip.selected{background:var(--blue);color:#081322}
body[data-color-mode="dark"] .welcome{background:linear-gradient(120deg,#162235 30%,#1b2c45);border-color:var(--line)}
body[data-color-mode="dark"] .hc-notify-item:hover,body[data-color-mode="dark"] .hc-user-result:hover{background:#1b2a40}
body[data-color-mode="dark"] .hc-notification-row.unread{background:#172c46}
body[data-color-mode="dark"] .hc-health-list>div{background:#121f31}
body[data-color-mode="dark"] table{color:var(--ink)}
body[data-color-mode="dark"] th{background:#1b2a40}
body[data-color-mode="dark"] td{border-color:var(--line)}
body[data-color-mode="dark"] code{background:#101a29;color:#c9ddff}
body[data-color-mode="dark"] .hc-notify-count,body[data-color-mode="dark"] .hc-admin-alert-badge{border-color:#162235}
@media(max-width:780px){.hc-notify-pop{position:fixed;left:10px;right:10px;top:82px;width:auto}.hc-notification-row,.hc-alert{align-items:flex-start;flex-direction:column}.hc-suite-head{align-items:flex-start;flex-direction:column}.hc-inline-form{align-items:stretch;flex-direction:column}.hc-inline-form input,.hc-inline-form select{width:100%}}

/* 2. Aşama · istatistik / arama / profil / indirme */
.hc-stat-period{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}.hc-stat-period>span{font-size:12px;color:var(--muted);font-weight:700}.hc-stat-bars{height:240px;display:flex;align-items:flex-end;gap:7px;padding:30px 4px 0;overflow-x:auto;border-top:1px solid var(--line)}.hc-stat-bar{height:100%;min-width:30px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;position:relative}.hc-stat-bar i{display:block;width:min(28px,82%);min-height:3px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,var(--blue),#72a8ff)}.hc-stat-bar small{font-size:9px;color:var(--muted);white-space:nowrap}.hc-stat-bar-value{font-size:10px;font-weight:700;color:var(--muted)}.hc-active-users{display:flex;gap:8px;flex-wrap:wrap}.hc-active-users>a{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;color:var(--ink);min-width:150px}.hc-active-users>a:hover{text-decoration:none;background:#f7faff}.hc-active-users small{color:var(--muted);font-size:10px}.hc-search-filter,.hc-download-filter{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) auto auto;align-items:end;gap:10px}.hc-search-filter label,.hc-download-filter label{margin:0}.hc-search-total{align-self:center;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}.hc-download-summary{display:flex;gap:10px;flex-wrap:wrap}.hc-download-summary span{padding:7px 10px;border-radius:999px;background:#f3f7fd;border:1px solid var(--line);font-size:12px}.hc-download-summary b{font-size:14px}.hc-profile-stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
body[data-color-mode="dark"] .hc-active-users>a,body[data-color-mode="dark"] .hc-download-summary span{background:#1b2a40;border-color:var(--line);color:var(--ink)}body[data-color-mode="dark"] .hc-active-users>a:hover{background:#21334d}
@media(max-width:900px){.hc-search-filter,.hc-download-filter{grid-template-columns:1fr 1fr}.hc-search-total{grid-column:1/-1}}@media(max-width:620px){.hc-search-filter,.hc-download-filter{grid-template-columns:1fr}.hc-stat-bars{height:200px}.hc-stat-bar{min-width:26px}}

/* 3. Aşama · sağlık / yedek / moderasyon / link tarayıcı */
.hc-health-table td{vertical-align:top}.hc-health-badge{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;border:1px solid var(--line);background:#f2f5f9;color:#5b6879}.hc-health-ok{background:#edf9f2;border-color:#bfe8cf;color:#177a46}.hc-health-warning{background:#fff7e5;border-color:#f0d38a;color:#8b5c00}.hc-health-error{background:#fff0f2;border-color:#efbcc5;color:#b1243c}.hc-health-info{background:#eef5ff;border-color:#c8dcff;color:#2a63aa}.hc-backup-restore{position:relative}.hc-backup-restore>summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--blue);list-style:none}.hc-backup-restore>summary::-webkit-details-marker{display:none}.hc-backup-restore>form{position:absolute;right:0;top:calc(100% + 5px);z-index:5;width:230px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper,#fff);box-shadow:0 10px 28px #10243e26}.hc-backup-restore input{width:100%;margin-bottom:7px}.hc-mc-moderate>span>small{display:block;margin-top:3px;color:var(--muted)}
body[data-color-mode="dark"] .hc-health-badge{border-color:var(--line)}body[data-color-mode="dark"] .hc-health-ok{background:#173426;color:#8ee2b1}body[data-color-mode="dark"] .hc-health-warning{background:#3a2c12;color:#f4c968}body[data-color-mode="dark"] .hc-health-error{background:#3c1d25;color:#ff9bad}body[data-color-mode="dark"] .hc-health-info{background:#1a2d48;color:#9dc6ff}body[data-color-mode="dark"] .hc-backup-restore>form{background:#162235}
@media(max-width:780px){.hc-backup-restore>form{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto}}

/* =========================================================
   HC PORTAL MERKEZİ 4. AŞAMA · PWA + KOYU TEMA
   ========================================================= */
html[data-color-mode="dark"]{color-scheme:dark;--ink:#e6edf7;--muted:#9cabbe;--line:#2b3c54;--paper:#162235;--blue:#5aa0ff;background:#0e1725}
html[data-color-mode="light"]{color-scheme:light}
html[data-color-mode="dark"] body{background:#0e1725;color:var(--ink)}
body.hc-theme-ready,body.hc-theme-ready .site-header,body.hc-theme-ready .site-footer,body.hc-theme-ready .panel,body.hc-theme-ready .side-card{transition:background-color .16s ease,color .16s ease,border-color .16s ease}
@media(prefers-reduced-motion:reduce){body.hc-theme-ready,body.hc-theme-ready *{transition:none!important}}

html[data-color-mode="dark"] body :is(.site-header,.site-footer,.panel,.side-card,.entry-card,.mega-panel,.content-tabs,.empty-state,.hc-notify-pop,.hc-notification-row,.hc-alert,.bl-card,.sw-card,.dr-card,.po-option,.fo-nav,.fo-board-group,.fo-topic-list,.fo-post,.sw-editor-preview,.dr-editor-preview,.bl-editor-tabs button,.bl-media-item,.sw-media-item,.dr-media-item,.dr-package-edit){background:#162235!important;border-color:#2b3c54!important;color:#e6edf7}
html[data-color-mode="dark"] body :is(.brand,.nav-item,.nav-home,.entry-card h2 a,.side-row,.hc-notify-item,.hc-user-result,.fo-title,.fo-topic-main .fo-topic-title,.fo-board-numbers strong,.fo-topic-count strong){color:#e6edf7!important}
html[data-color-mode="dark"] body :is(.mega-category,.site-footer a,.chip,.fo-post-tools .fo-inline button){color:#b7c6da}
html[data-color-mode="dark"] body :is(input,select,textarea){background:#101a29!important;color:#e6edf7!important;border-color:#34475f!important}
html[data-color-mode="dark"] body input::placeholder,html[data-color-mode="dark"] body textarea::placeholder{color:#75879f}
html[data-color-mode="dark"] body :is(.secondary,.hc-theme-toggle,.hc-notify-menu>summary,.chip){background:#1d2c42!important;color:#bcd6ff!important;border-color:#34475f!important}
html[data-color-mode="dark"] body :is(.secondary,.hc-theme-toggle,.hc-notify-menu>summary,.chip):hover{background:#253852!important}
html[data-color-mode="dark"] body :is(.layout-compact .entry-card:nth-child(even),.fo-author,.fo-prose pre,.fo-prose blockquote,.fo-prose details,.fo-editor-toolbar,.bl-prose blockquote,.bl-prose pre,.sw-prose blockquote,.dr-prose blockquote,.po-scale label,.hc-health-list>div,.hc-notify-item:hover,.hc-user-result:hover){background:#121f31!important;border-color:#2b3c54!important;color:#d7e1ef}
html[data-color-mode="dark"] body :is(.entry-visual,.bl-card-image img,.bl-featured img,.sw-gallery-item,.dr-gallery-item,.fo-file img){background:#1b2a40!important}
html[data-color-mode="dark"] body :is(.sw-tags span,.dr-tags span,.po-num){background:#1d2c42!important;border-color:#34475f!important;color:#bcd6ff!important}
html[data-color-mode="dark"] body :is(.content-tabs button,.link-button){color:#aab9cc}
html[data-color-mode="dark"] body .content-tabs button.selected{background:#1e3a5e!important;color:#8ec0ff!important}
html[data-color-mode="dark"] body table{color:#e6edf7}
html[data-color-mode="dark"] body th{background:#1b2a40!important;color:#c7d3e2!important}
html[data-color-mode="dark"] body td{border-color:#2b3c54!important}
html[data-color-mode="dark"] body tbody tr:nth-child(even){background:#121d2d!important}
html[data-color-mode="dark"] body tbody tr:hover{background:#1b2a40!important}
html[data-color-mode="dark"] body code{background:#101a29!important;color:#c9ddff!important;border-color:#34475f!important}
html[data-color-mode="dark"] body hr{border-color:#2b3c54}
html[data-color-mode="dark"] body .welcome{background:linear-gradient(120deg,#162235 30%,#1b2c45)!important;border-color:#2b3c54!important}
html[data-color-mode="dark"] body .main-nav{border-color:#2b3c54}
html[data-color-mode="dark"] body :is(.nav-item.active,.nav-item:hover,.nav-home:hover){background:#1c3350!important;color:#79b2ff!important}
html[data-color-mode="dark"] body .hc-notify-count,html[data-color-mode="dark"] body .hc-admin-alert-badge{border-color:#162235}
html[data-color-mode="dark"] body .hc-notification-row.unread{background:#172c46!important}
html[data-color-mode="dark"] body :is(.fo-badge.success,.hc-maint-ok,.hc-health-ok){background:#173426!important;color:#8ee2b1!important;border-color:#285a3d!important}
html[data-color-mode="dark"] body :is(.fo-badge.warning,.hc-maint-warn,.hc-health-warning){background:#3a2c12!important;color:#f4c968!important;border-color:#6b5122!important}
html[data-color-mode="dark"] body :is(.hc-maint-error,.hc-health-error){background:#3c1d25!important;color:#ff9bad!important;border-color:#69313e!important}

.hc-pwa-help{position:fixed;inset:0;z-index:10000;display:grid;place-items:end center;padding:20px;background:#08111f80;backdrop-filter:blur(3px)}
.hc-pwa-help-card{position:relative;width:min(480px,100%);background:var(--paper,#fff);color:var(--ink,#142747);border:1px solid var(--line,#e0e8f3);border-radius:14px;padding:22px 48px 22px 22px;box-shadow:0 22px 60px #07172e55}
.hc-pwa-help-card strong{display:block;font-size:17px;margin-bottom:5px}.hc-pwa-help-card p{margin:0;color:var(--muted,#738198)}
.hc-pwa-help-close{position:absolute;right:10px;top:9px;width:32px;height:32px;padding:0;border-radius:50%;font-size:22px;line-height:1;background:transparent;color:var(--muted,#738198)}
.hc-pwa-help-close:hover{background:#edf4ff;color:var(--blue,#0868f9)}
.hc-pwa-update{position:fixed;right:18px;bottom:18px;z-index:9999;display:flex;align-items:center;gap:10px;max-width:min(560px,calc(100vw - 36px));padding:12px 14px;background:var(--paper,#fff);color:var(--ink,#142747);border:1px solid var(--line,#e0e8f3);border-radius:12px;box-shadow:0 16px 44px #081b3450}
.hc-pwa-update span{margin-right:4px}.hc-pwa-update button{padding:7px 11px;font-size:12px}
@media(max-width:620px){.hc-pwa-update{left:12px;right:12px;bottom:12px;flex-wrap:wrap}.hc-pwa-update span{width:100%}.site-footer>div{flex-wrap:wrap}}

/* =========================================================
   HC PORTAL MERKEZİ 4.4 · FORUM + MUHABBET KOYU TEMA TAMAMLAMA
   ========================================================= */

/* Forum: kalan açık yüzeyler ve düşük kontrastlı metinler */
html[data-color-mode="dark"] body :is(
  .fo-group-title,
  .fo-board-row,
  .fo-topic-row,
  .fo-preview,
  .fo-extra,
  .fo-pagination a,
  .fo-member-tile,
  .fo-pm-message,
  .fo-admin-form fieldset,
  .fo-log-detail,
  .fo-rules,
  .fo-file
){
  background:#162235!important;
  border-color:#2b3c54!important;
  color:#e6edf7!important;
}

html[data-color-mode="dark"] body :is(
  .fo-crumbs,
  .fo-board-main p,
  .fo-board-numbers,
  .fo-last span,
  .fo-last time,
  .fo-meta,
  .fo-topic-count,
  .fo-rank,
  .fo-author small,
  .fo-post-top,
  .fo-signature,
  .fo-edited,
  .fo-likes,
  .fo-help,
  .fo-online-box small,
  .fo-stats,
  .fo-member-tile small,
  .fo-profile-post small,
  .fo-pm-row small,
  .fo-notification small,
  .fo-pm-message header time,
  .fo-pm-title>span,
  .fo-admin-board-list small,
  .fo-queue-item>small,
  .fo-empty
){color:#aebcd0!important}

html[data-color-mode="dark"] body :is(
  .fo-title,
  .fo-board-main h2,
  .fo-board-main h2 a,
  .fo-subforums a,
  .fo-last a,
  .fo-topic-main .fo-topic-title,
  .fo-post-content,
  .fo-prose,
  .fo-prose p,
  .fo-prose li,
  .fo-author-name,
  .fo-member-tile strong,
  .fo-pm-title h2,
  .fo-rules summary,
  .fo-extra summary
){color:#e6edf7!important}

html[data-color-mode="dark"] body .fo-group-title{
  background:#1b2a40!important;
  border-bottom-color:#34475f!important;
}
html[data-color-mode="dark"] body :is(.fo-board-row,.fo-topic-row){border-bottom-color:#2b3c54!important}
html[data-color-mode="dark"] body .fo-board-row:hover,
html[data-color-mode="dark"] body .fo-topic-row:hover{background:#1a293e!important}

html[data-color-mode="dark"] body .fo-avatar{
  background:#1e3350!important;
  color:#9cc7ff!important;
  border-color:#34475f!important;
}
html[data-color-mode="dark"] body .fo-topic-icon{color:#8ca9cc!important}
html[data-color-mode="dark"] body .fo-topic-row.unread .fo-topic-icon{color:#79b2ff!important}
html[data-color-mode="dark"] body .fo-online{color:#74d9a6!important}

html[data-color-mode="dark"] body .fo-badge{
  background:#23334a!important;
  color:#c2d0e2!important;
  border-color:#34475f!important;
}
html[data-color-mode="dark"] body .fo-editor-toolbar button{
  background:#1d2c42!important;
  color:#c9dcf5!important;
  border-color:#34475f!important;
}
html[data-color-mode="dark"] body .fo-editor-toolbar button:hover{background:#253852!important}
html[data-color-mode="dark"] body .fo-preview{background:#121f31!important}
html[data-color-mode="dark"] body .fo-file img{background:#101a29!important}
html[data-color-mode="dark"] body .fo-file-download{color:#8fc1ff!important}

html[data-color-mode="dark"] body .fo-moderator-tools{
  background:#302817!important;
  border-color:#5f4c24!important;
  color:#e9d39b!important;
}
html[data-color-mode="dark"] body .fo-moderator-tools summary{color:#f0cf7a!important}
html[data-color-mode="dark"] body .fo-poll-link{
  background:#172c46!important;
  border-color:#31577e!important;
  color:#e6edf7!important;
}
html[data-color-mode="dark"] body .fo-danger{color:#ff9ca9!important}
html[data-color-mode="dark"] body .fo-error{color:#ff9ca9!important;border-left-color:#d85a6b!important}

/* Forum ayraçları */
html[data-color-mode="dark"] body :is(
  .fo-subnav,
  .fo-topic-head,
  .fo-post-top,
  .fo-post-tools,
  .fo-attachments,
  .fo-profile-post,
  .fo-pm-row,
  .fo-notification,
  .fo-pm-message header,
  .fo-queue-item,
  .fo-split-row
){border-color:#2b3c54!important}

/* Muhabbet: portal koyu teması ile kendi tema değişkenlerini senkronla */
html[data-color-mode="dark"] body #mh-app{
  --mh-blue:#6aa8ff;
  --mh-text:#e8eef8;
  --mh-muted:#aebcd0;
  --mh-line:#34475f;
  --mh-bg:#101a29;
  --mh-panel:#162235;
  --mh-bubble:#1d2c42;
  color:var(--mh-text)!important;
}

html[data-color-mode="dark"] body #mh-app :is(
  .mh-rail,
  .mh-list-pane,
  .mh-content-pane,
  .mh-list-header,
  .mh-list-footer,
  .mh-chat-header,
  .mh-typing,
  .mh-composer,
  .mh-detail,
  .mh-dialog,
  .mh-dialog>header
){
  background:var(--mh-panel)!important;
  color:var(--mh-text)!important;
  border-color:var(--mh-line)!important;
}

html[data-color-mode="dark"] body #mh-app :is(
  .mh-empty-content,
  .mh-search,
  .mh-message-search,
  .mh-reply,
  .mh-secondary,
  .mh-dialog .mh-menu-button,
  .mh-row:hover,
  .mh-row.mh-selected
){
  background:var(--mh-bg)!important;
  color:var(--mh-text)!important;
  border-color:var(--mh-line)!important;
}

html[data-color-mode="dark"] body #mh-app .mh-messages{
  background:linear-gradient(135deg,#101a29,#142033)!important;
}
html[data-color-mode="dark"] body #mh-app .mh-bubble{
  background:var(--mh-bubble)!important;
  color:var(--mh-text)!important;
  border:1px solid var(--mh-line)!important;
  box-shadow:none!important;
}
html[data-color-mode="dark"] body #mh-app .mh-mine .mh-bubble{
  background:#326dff!important;
  color:#fff!important;
  border-color:#326dff!important;
}

html[data-color-mode="dark"] body #mh-app :is(
  h2,h3,
  .mh-row,
  .mh-row-title strong,
  .mh-identity strong,
  .mh-bubble-body,
  .mh-form label,
  .mh-person-info,
  .mh-card,
  .mh-admin-grid>div
){color:var(--mh-text)!important}

html[data-color-mode="dark"] body #mh-app :is(
  small,
  .mh-muted,
  .mh-preview,
  .mh-row-title time,
  .mh-section-label,
  .mh-empty,
  .mh-message-meta,
  .mh-day,
  .mh-list-footer
){color:var(--mh-muted)!important}
html[data-color-mode="dark"] body #mh-app .mh-mine .mh-message-meta{color:#dbe8ff!important}
html[data-color-mode="dark"] body #mh-app .mh-sender-name{color:#8fc1ff!important}

html[data-color-mode="dark"] body #mh-app :is(input:not([type=checkbox]):not([type=file]),textarea,select){
  background:#101a29!important;
  color:var(--mh-text)!important;
  border-color:var(--mh-line)!important;
}
html[data-color-mode="dark"] body #mh-app :is(input,textarea)::placeholder{color:#7f91aa!important}

html[data-color-mode="dark"] body #mh-app .mh-brand,
html[data-color-mode="dark"] body #mh-app .mh-empty-content .mh-empty-mark{
  background:linear-gradient(180deg,#1d2c42,#18263a)!important;
  color:#8fc1ff!important;
  border-color:var(--mh-line)!important;
}
html[data-color-mode="dark"] body #mh-app .mh-rail-item{color:var(--mh-muted)!important}
html[data-color-mode="dark"] body #mh-app .mh-rail-item.mh-active{
  background:#1c3350!important;
  color:#8fc1ff!important;
}
html[data-color-mode="dark"] body #mh-app .mh-icon-button{color:var(--mh-muted)!important}
html[data-color-mode="dark"] body #mh-app .mh-icon-button:hover{
  background:#1d2c42!important;
  color:#8fc1ff!important;
}
html[data-color-mode="dark"] body #mh-app .mh-secondary{
  background:#1d2c42!important;
  color:#d8e5f5!important;
}
html[data-color-mode="dark"] body #mh-app .mh-danger{
  background:#3b1d27!important;
  color:#ff9caf!important;
  border-color:#65303e!important;
}
html[data-color-mode="dark"] body #mh-app .mh-recording{
  background:#3b1d27!important;
  color:#ff9caf!important;
}
html[data-color-mode="dark"] body #mh-app .mh-card,
html[data-color-mode="dark"] body #mh-app .mh-admin-grid>div{
  background:#162235!important;
  border-color:var(--mh-line)!important;
}

/* =========================================================
   HC PORTAL MERKEZI 4.5 · FORUM / SIDEBAR KOYU TEMA TAMAMLAMA
   Klasik arayuzun acik tema degiskenlerini koyu temaya senkronlar.
   ========================================================= */
html[data-color-mode="dark"] body.hc-classic-ui{
  --hc-canvas:#0e1725;
  --hc-surface:#162235;
  --hc-subtle:#121f31;
  --hc-soft:#1d2c42;
  --hc-ink:#e6edf7;
  --hc-muted:#aebcd0;
  --hc-line:#2b3c54;
  --hc-input:#34475f;
  --hc-blue:#6aa8ff;
  --hc-blue-hover:#82b6ff;
  --hc-blue-soft:#1c3350;
  --hc-success:#74d9a6;
  --hc-danger:#ff9ca9;
  --blue:var(--hc-blue);
  --accent:var(--hc-blue);
  --primary:var(--hc-blue);
  --ink:var(--hc-ink);
  --text:var(--hc-ink);
  --muted:var(--hc-muted);
  --line:var(--hc-line);
  --border:var(--hc-line);
  --paper:var(--hc-surface);
  --surface:var(--hc-surface);
}

/* Forum kategori basliklari */
html[data-color-mode="dark"] body.hc-classic-ui .fo-group-title a{
  color:#e6edf7!important;
}
html[data-color-mode="dark"] body.hc-classic-ui .fo-group-title a:hover{
  color:#8fc1ff!important;
}

/* Forum alt kategori pill/butonlari: beyaz kalan alanlari kaldir */
html[data-color-mode="dark"] body.hc-classic-ui .fo-subforums a{
  background:#1d2c42!important;
  border-color:#34475f!important;
  color:#cbd7e8!important;
}
html[data-color-mode="dark"] body.hc-classic-ui .fo-subforums a :is(.icon,svg),
html[data-color-mode="dark"] body.hc-classic-ui .fo-subforums a>.icon,
html[data-color-mode="dark"] body.hc-classic-ui .fo-subforums a>svg{
  color:#8ca9cc!important;
}
html[data-color-mode="dark"] body.hc-classic-ui .fo-subforums a:hover{
  background:#253852!important;
  border-color:#4b6d98!important;
  color:#9dcbff!important;
}

/* Forum satirlarindaki kalan metin/link kontrasti */
html[data-color-mode="dark"] body.hc-classic-ui :is(
  .fo-board-main h2 a,
  .fo-topic-main a.fo-topic-title
){color:#e6edf7!important}
html[data-color-mode="dark"] body.hc-classic-ui :is(
  .fo-meta a,
  .fo-last a
){color:#aebcd0!important}
html[data-color-mode="dark"] body.hc-classic-ui :is(
  .fo-board-main h2 a,
  .fo-topic-main a.fo-topic-title,
  .fo-meta a,
  .fo-last a
):hover{color:#8fc1ff!important}

/* Sag sidebar kategori agaci */
html[data-color-mode="dark"] body .side-card .side-cat-branch{
  border-bottom-color:#2b3c54!important;
}
html[data-color-mode="dark"] body .side-card .side-cat-summary{
  color:#cbd7e8!important;
}
html[data-color-mode="dark"] body .side-card .side-cat-summary:hover,
html[data-color-mode="dark"] body .side-card .side-cat-summary:focus-visible{
  color:#8fc1ff!important;
  background:#1b2a40!important;
}
html[data-color-mode="dark"] body .side-card .side-cat-summary>.icon{
  color:#79b2ff!important;
}
html[data-color-mode="dark"] body .side-card .side-cat-chevron{
  color:#8ca0bc!important;
}
html[data-color-mode="dark"] body .side-card .side-cat-children{
  border-left-color:#34475f!important;
}
html[data-color-mode="dark"] body .side-card .side-cat-all{
  color:#8fc1ff!important;
}

/* Sidebar kart basliklari ve Bolum Istatistikleri */
html[data-color-mode="dark"] body .side-card :is(h3,.side-card-head h3,.side-card-head h3 a){
  color:#e6edf7!important;
  border-color:#2b3c54!important;
}
html[data-color-mode="dark"] body .hc-section-stat-row{
  color:#dce6f3!important;
  border-bottom-color:#2b3c54!important;
}
html[data-color-mode="dark"] body .hc-section-stat-row:hover{
  color:#9dcbff!important;
  background:#1a293e!important;
}
html[data-color-mode="dark"] body .hc-section-stat-count{
  background:#1d2c42!important;
  border-color:#34475f!important;
  color:#dce6f3!important;
}

/* Hava durumu ve piyasa kartlarinda kalan acik kontroller/metinler */
html[data-color-mode="dark"] body .weather-locate{
  background:#1d2c42!important;
  color:#8fc1ff!important;
  border-color:#34475f!important;
}
html[data-color-mode="dark"] body :is(
  .weather-location,
  .weather-details b,
  .market-row strong
){color:#e6edf7!important}
html[data-color-mode="dark"] body :is(
  .weather-condition,
  .weather-details,
  .weather-credit,
  .weather-picker-msg,
  .weather-stale,
  .market-labels,
  .side-credit
){color:#aebcd0!important}
html[data-color-mode="dark"] body :is(.weather-details,.market-row){
  border-color:#2b3c54!important;
}
