/**
 * MTA Hesap Merkezi v1.0a — Stiller
 * 
 * Tasarım kararları:
 * - Açık tema (Sherwin-Williams Scheme Sixteen)
 * - DM Sans tipografi
 * - Mobile-first
 * - Animasyon paneli koyu (kontrast + neon vurgu)
 * - Mobil: sidebar gizli, drawer alt'tan açılır
 * - Desktop (>=900px): sidebar sabit
 * 
 * Çakışma önleme: .mta-hm- prefix
 */

/* ═══════════════════════════════════════════
   SHERWIN PALETİ + TOKEN
   ═══════════════════════════════════════════ */
.mta-hm-app {
  --sw-city-loft:        #DFDAD1;
  --sw-westchester-gray: #797978;
  --sw-silken-peacock:   #427584;
  --sw-silken-deep:      #2F5560;
  --sw-bg-warm:          #FAF8F5;
  --sw-bg-card:          #FFFFFF;

  --hm-ink-strong:       #1A1A1A;
  --hm-ink-base:         #2D2D2D;
  --hm-ink-muted:        #5E5E5E;
  --hm-ink-soft:         #9A9A9A;

  --hm-ok:               #2E7D32;
  --hm-warn:             #ED6C02;
  --hm-err:              #C62828;

  --hm-radius-sm: 8px;
  --hm-radius:    12px;
  --hm-radius-lg: 16px;

  --hm-shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.08);
  --hm-shadow:    0 4px 12px rgba(45, 45, 45, 0.10);
  --hm-shadow-lg: 0 12px 28px rgba(45, 45, 45, 0.12);

  --hm-z-header:  100;
  --hm-z-drawer:  500;
  --hm-z-toast:   1000;

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--hm-ink-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--sw-bg-warm);
  min-height: 100vh;
}

.mta-hm-app *,
.mta-hm-app *::before,
.mta-hm-app *::after { box-sizing: border-box; }

.mta-hm-app button { font-family: inherit; cursor: pointer; }
.mta-hm-app input,
.mta-hm-app select { font-family: inherit; font-size: 16px; /* iOS zoom önle */ }
.mta-hm-app a { color: var(--sw-silken-peacock); text-decoration: none; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.mta-hm-header {
  background: var(--sw-bg-card);
  border-bottom: 1px solid var(--sw-city-loft);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: var(--hm-z-header);
  box-shadow: var(--hm-shadow-sm);
}
.mta-hm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mta-hm-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.mta-hm-title { flex: 1; min-width: 0; }
.mta-hm-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--hm-ink-strong);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mta-hm-title p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--hm-ink-muted);
  font-weight: 500;
}
.mta-hm-header-actions {
  display: flex;
  gap: 8px;
}
.mta-hm-icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sw-city-loft);
  border: 1px solid transparent;
  color: var(--sw-silken-deep);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 180ms;
  text-decoration: none;
}
.mta-hm-icon-btn:hover {
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
}

/* Hamburger sadece mobilde göster */
.mta-hm-menu-trigger { display: none; }
@media (max-width: 899px) {
  .mta-hm-menu-trigger { display: flex; }
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.mta-hm-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .mta-hm-wrap { grid-template-columns: 280px 1fr; }
}

/* Ana içerik alanı (right column on desktop, full on mobile) */
.mta-hm-main {
  min-width: 0; /* grid item shrink hack */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ═══════════════════════════════════════════
   SIDEBAR (desktop)
   ═══════════════════════════════════════════ */
.mta-hm-sidebar {
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-city-loft);
  border-radius: var(--hm-radius-lg);
  padding: 14px;
  align-self: flex-start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
@media (max-width: 899px) {
  .mta-hm-sidebar { display: none; }
}

.mta-hm-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sw-city-loft);
  border-radius: 10px;
  font-size: 13px;
  background: var(--sw-bg-warm);
  margin-bottom: 12px;
  color: var(--hm-ink-strong);
}
.mta-hm-search:focus {
  outline: none;
  border-color: var(--sw-silken-peacock);
  background: var(--sw-bg-card);
}

.mta-hm-cat-group { margin-bottom: 12px; }
.mta-hm-cat-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sw-silken-deep);
  padding: 4px 8px 6px;
}

.mta-hm-mod-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--hm-ink-base);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 180ms;
  margin-bottom: 2px;
  text-decoration: none;
}
.mta-hm-mod-btn:hover { background: var(--sw-city-loft); }
.mta-hm-mod-btn.active {
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
  box-shadow: var(--hm-shadow-sm);
}
.mta-hm-mod-btn .num {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--sw-city-loft);
  color: var(--sw-silken-deep);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mta-hm-mod-btn.active .num {
  background: rgba(255,255,255,0.25);
  color: var(--sw-bg-card);
}
.mta-hm-mod-btn .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mta-hm-mod-btn .lock { font-size: 10px; color: var(--hm-ink-soft); }
.mta-hm-mod-btn.locked { color: var(--hm-ink-soft); }

/* ═══════════════════════════════════════════
   MOBİL ÜST PILL (Aktif Modül + Değiştir)
   ═══════════════════════════════════════════ */
.mta-hm-mobile-pill {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
  border: none;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(66, 117, 132, 0.25);
}
.mta-hm-mobile-pill .pill-icon { font-size: 18px; }
.mta-hm-mobile-pill .pill-name { flex: 1; text-align: left; }
.mta-hm-mobile-pill .pill-arrow { font-size: 16px; opacity: 0.9; }
.mta-hm-mobile-pill:active { transform: scale(0.98); }

@media (max-width: 899px) {
  .mta-hm-mobile-pill { display: flex; }
}

/* ═══════════════════════════════════════════
   DRAWER (Mobil alt'tan açılır modül seçici)
   ═══════════════════════════════════════════ */
.mta-hm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  z-index: calc(var(--hm-z-drawer) - 1);
  pointer-events: none;
  transition: background 280ms;
}
.mta-hm-drawer-overlay.open {
  background: rgba(26, 26, 26, 0.5);
  pointer-events: auto;
}

.mta-hm-drawer {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--sw-bg-card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  z-index: var(--hm-z-drawer);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.34, 1.3, 0.64, 1);
}
.mta-hm-drawer.open { transform: translateY(0); }

.mta-hm-drawer-head {
  padding: 16px;
  border-bottom: 1px solid var(--sw-city-loft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mta-hm-drawer-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--hm-ink-strong);
}
.mta-hm-drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sw-city-loft);
  border: none;
  font-size: 16px;
  color: var(--hm-ink-base);
}

.mta-hm-drawer-search {
  margin: 12px 16px;
  padding: 12px;
  border: 1px solid var(--sw-city-loft);
  border-radius: 10px;
  font-size: 14px;
  background: var(--sw-bg-warm);
}

.mta-hm-drawer-body {
  padding: 0 16px 24px;
  overflow-y: auto;
  flex: 1;
}
.mta-hm-drawer-group { margin-bottom: 18px; }
.mta-hm-drawer-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--sw-silken-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.mta-hm-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: var(--sw-bg-warm);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-ink-base);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 180ms;
}
.mta-hm-drawer-item:hover { border-color: var(--sw-silken-peacock); }
.mta-hm-drawer-item.active {
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
}
.mta-hm-drawer-item .d-icon { font-size: 20px; }
.mta-hm-drawer-item .d-name { flex: 1; }
.mta-hm-drawer-item .d-active { font-size: 16px; }

/* ═══════════════════════════════════════════
   MAIN MODULE AREA
   ═══════════════════════════════════════════ */
.mta-hm-module {
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-city-loft);
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
}
.mta-hm-module-head {
  padding: 18px;
  border-bottom: 1px solid var(--sw-city-loft);
  background: linear-gradient(180deg, var(--sw-bg-card) 0%, var(--sw-bg-warm) 100%);
}
.mta-hm-module-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sw-silken-deep);
  background: var(--sw-city-loft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.mta-hm-module-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-ink-strong);
  letter-spacing: -0.01em;
}
.mta-hm-module-head .sub {
  font-size: 12px;
  color: var(--hm-ink-muted);
  margin: 4px 0 0;
}
.mta-hm-module-head .standard {
  font-size: 11px;
  color: var(--hm-ink-muted);
  margin: 8px 0 0;
}
.mta-hm-module-head .standard code {
  background: var(--sw-city-loft);
  color: var(--sw-silken-deep);
  padding: 1px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.mta-hm-module-body { padding: 18px; }

/* ═══════════════════════════════════════════
   FORM
   ═══════════════════════════════════════════ */
.mta-hm-form {
  display: grid;
  gap: 12px;
}
.mta-hm-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.mta-hm-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 480px) {
  .mta-hm-row, .mta-hm-row-3 { grid-template-columns: 1fr; }
}
.mta-hm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mta-hm-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hm-ink-muted);
}
.mta-hm-field input,
.mta-hm-field select {
  padding: 11px 12px;
  border: 1px solid var(--sw-city-loft);
  border-radius: 10px;
  background: var(--sw-bg-warm);
  color: var(--hm-ink-strong);
  font-weight: 500;
  transition: all 180ms;
}
.mta-hm-field input:focus,
.mta-hm-field select:focus {
  outline: none;
  border-color: var(--sw-silken-peacock);
  background: var(--sw-bg-card);
  box-shadow: 0 0 0 3px rgba(66, 117, 132, 0.12);
}

/* ═══════════════════════════════════════════
   ANİMASYON PANELİ — KOYU (kontrast için)
   ═══════════════════════════════════════════ */
.mta-hm-viz {
  margin: 14px 0 16px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid var(--sw-westchester-gray);
  border-radius: var(--hm-radius);
  overflow: hidden;
  transition: border-color 400ms, box-shadow 400ms;
}
.mta-hm-viz.viz-warm   { border-color: #ca8a04; box-shadow: 0 0 0 1px #ca8a04; }
.mta-hm-viz.viz-hot    { border-color: #ea580c; box-shadow: 0 0 0 2px #ea580c, 0 0 20px rgba(234, 88, 12, 0.4); }
.mta-hm-viz.viz-danger {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px #ef4444, 0 0 30px rgba(239, 68, 68, 0.6);
  animation: mta-hm-panel-danger 1s ease-in-out infinite;
}
@keyframes mta-hm-panel-danger {
  0%, 100% { box-shadow: 0 0 0 2px #ef4444, 0 0 30px rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 3px #ef4444, 0 0 50px rgba(239, 68, 68, 0.9); }
}

.mta-hm-viz-head {
  padding: 10px 14px;
  border-bottom: 1px solid #3f3f3f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  background: #0f0f0f;
}
.mta-hm-viz-tag {
  display: flex; align-items: center; gap: 6px;
}
.mta-hm-viz-tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: mta-hm-pulse-dot 1.4s infinite;
}
.mta-hm-viz-tag.paused::before { animation: none; background: #64748b; box-shadow: none; }
@keyframes mta-hm-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.mta-hm-viz-toggle {
  background: #2d2d2d;
  border: 1px solid #4a4a4a;
  color: #e5e5e5;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.mta-hm-viz-toggle:hover { background: #4a4a4a; }

.mta-hm-viz-body {
  padding: 20px 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 599px) {
  .mta-hm-viz-body { grid-template-columns: 1fr; gap: 24px; }
}

/* Gauge */
.mta-hm-gauge-wrap { text-align: center; }
.mta-hm-gauge {
  width: 200px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
.mta-hm-gauge-bg {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 16;
  stroke-linecap: round;
}
.mta-hm-gauge-fill {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke 400ms ease, stroke-dashoffset 700ms cubic-bezier(0.34, 1.3, 0.64, 1);
  filter: drop-shadow(0 0 4px currentColor);
}
.mta-hm-gauge-fill.cool   { stroke: #22c55e; color: #22c55e; }
.mta-hm-gauge-fill.warm   { stroke: #eab308; color: #eab308; }
.mta-hm-gauge-fill.hot    { stroke: #f97316; color: #f97316; }
.mta-hm-gauge-fill.danger { stroke: #ef4444; color: #ef4444; }

.mta-hm-gauge-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  fill: #ffffff;
}
.mta-hm-gauge-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dikey termometre */
.mta-hm-thermo-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mta-hm-thermo-vert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f0f0f;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
}
.mta-hm-thermo-vert-tube {
  width: 24px;
  height: 100px;
  background: #2d2d2d;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #4a4a4a;
  flex-shrink: 0;
}
.mta-hm-thermo-vert-fill {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(0deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
  height: 30%;
  transition: height 700ms cubic-bezier(0.34, 1.3, 0.64, 1);
  border-radius: 0 0 11px 11px;
}
.mta-hm-thermo-vert-info { flex: 1; min-width: 0; }
.mta-hm-thermo-vert-info .lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.mta-hm-thermo-vert-info .val {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mta-hm-thermo-vert-info .val.warm   { color: #eab308; }
.mta-hm-thermo-vert-info .val.hot    { color: #f97316; }
.mta-hm-thermo-vert-info .val.danger { color: #ef4444; }
.mta-hm-thermo-vert-info .unit {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}

/* Kablo akış stripi */
.mta-hm-cable-strip {
  background: #0f0f0f;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  grid-column: 1 / -1;
}
.mta-hm-cable-strip-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mta-hm-cable-strip-bar {
  height: 36px;
  background: #1a1a1a;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid #2d2d2d;
}
.mta-hm-cable-strip-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.0) 0%, rgba(34, 197, 94, 0.85) 30%, rgba(34, 197, 94, 0.85) 100%);
  transition: background 600ms;
}
.mta-hm-cable-strip-fill.warm   { background: linear-gradient(90deg, rgba(234, 179, 8, 0.0) 0%, rgba(234, 179, 8, 0.85) 30%, rgba(234, 179, 8, 0.85) 100%); }
.mta-hm-cable-strip-fill.hot    { background: linear-gradient(90deg, rgba(249, 115, 22, 0.0) 0%, rgba(249, 115, 22, 0.9) 30%, rgba(249, 115, 22, 0.95) 100%); }
.mta-hm-cable-strip-fill.danger { background: linear-gradient(90deg, rgba(239, 68, 68, 0.0) 0%, rgba(239, 68, 68, 0.9) 30%, rgba(239, 68, 68, 1) 100%); }

.mta-hm-current-flow {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fef3c7;
  box-shadow: 0 0 10px #fef3c7, 0 0 20px rgba(254, 243, 199, 0.5);
  animation: mta-hm-current-flow 2.5s linear infinite;
}
.mta-hm-current-flow:nth-child(2) { animation-delay: -0.5s; }
.mta-hm-current-flow:nth-child(3) { animation-delay: -1s; }
.mta-hm-current-flow:nth-child(4) { animation-delay: -1.5s; }
.mta-hm-current-flow:nth-child(5) { animation-delay: -2s; }
@keyframes mta-hm-current-flow {
  0%   { left: -12px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.mta-hm-cable-strip.warm .mta-hm-current-flow { animation-duration: 1.6s; }
.mta-hm-cable-strip.hot .mta-hm-current-flow { animation-duration: 1s; }
.mta-hm-cable-strip.danger .mta-hm-current-flow {
  animation-duration: 0.5s;
  background: #ffffff;
  box-shadow: 0 0 14px #ffffff, 0 0 28px #ef4444;
}

/* Durum mesajı */
.mta-hm-viz-msg {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all 400ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mta-hm-viz-msg.cool   { background: rgba(34, 197, 94, 0.15);  color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.mta-hm-viz-msg.warm   { background: rgba(234, 179, 8, 0.15);  color: #fcd34d; border: 1px solid rgba(234, 179, 8, 0.4); }
.mta-hm-viz-msg.hot    { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.5); }
.mta-hm-viz-msg.danger { background: rgba(239, 68, 68, 0.20);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.6); }

/* Pause */
.mta-hm-viz.paused .mta-hm-current-flow,
.mta-hm-viz.paused .mta-hm-gauge-fill,
.mta-hm-viz.paused .mta-hm-thermo-vert-fill {
  animation-play-state: paused !important;
  transition: none !important;
}

/* ═══════════════════════════════════════════
   SONUÇ KARTI
   ═══════════════════════════════════════════ */
.mta-hm-result {
  margin-top: 16px;
  padding: 16px;
  background: var(--sw-bg-warm);
  border: 1px solid var(--sw-city-loft);
  border-radius: var(--hm-radius);
  display: none;
}
.mta-hm-result.show { display: block; animation: mta-hm-slideIn 280ms ease-out; }
@keyframes mta-hm-slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mta-hm-result h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sw-silken-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mta-hm-result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) { .mta-hm-result-grid { grid-template-columns: 1fr; } }

.mta-hm-stat {
  padding: 12px;
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-city-loft);
  border-radius: 10px;
}
.mta-hm-stat .lbl {
  font-size: 11px;
  color: var(--hm-ink-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.mta-hm-stat .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-ink-strong);
}
.mta-hm-stat.accent .val { color: var(--sw-silken-peacock); }
.mta-hm-stat .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--hm-ink-muted);
  margin-left: 2px;
}

.mta-hm-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mta-hm-status.ok   { background: rgba(46, 125, 50, 0.10); color: var(--hm-ok); }
.mta-hm-status.warn { background: rgba(237, 108, 2, 0.10); color: var(--hm-warn); }
.mta-hm-status.err  { background: rgba(198, 40, 40, 0.10); color: var(--hm-err); }

/* ═══════════════════════════════════════════
   ACTIONS + SHARE
   ═══════════════════════════════════════════ */
.mta-hm-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) { .mta-hm-actions { grid-template-columns: 1fr; } }
.mta-hm-action {
  padding: 11px 12px;
  border: 1px solid var(--sw-silken-peacock);
  background: var(--sw-bg-card);
  color: var(--sw-silken-peacock);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  transition: all 180ms;
}
.mta-hm-action.primary {
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
}
.mta-hm-action:hover { transform: translateY(-1px); box-shadow: var(--hm-shadow-sm); }
.mta-hm-action.primary:hover { background: var(--sw-silken-deep); }

.mta-hm-share {
  margin-top: 12px;
  padding: 10px;
  background: var(--sw-bg-warm);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.mta-hm-share-btn {
  padding: 7px 12px;
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-city-loft);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hm-ink-muted);
  display: flex; align-items: center; gap: 5px;
  transition: all 180ms;
}
.mta-hm-share-btn:hover {
  border-color: var(--sw-silken-peacock);
  color: var(--sw-silken-peacock);
}

/* ═══════════════════════════════════════════
   DISCLAIMER + SOURCE
   ═══════════════════════════════════════════ */
.mta-hm-disclaimer {
  margin-top: 14px;
  padding: 12px;
  background: rgba(237, 108, 2, 0.06);
  border: 1px solid rgba(237, 108, 2, 0.25);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--hm-ink-base);
}
.mta-hm-disclaimer strong {
  color: var(--hm-warn);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}
.mta-hm-source {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--sw-city-loft);
  font-size: 11px;
  color: var(--hm-ink-muted);
  line-height: 1.5;
}
.mta-hm-source code {
  background: var(--sw-city-loft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--sw-silken-deep);
}

/* ═══════════════════════════════════════════
   HISTORY
   ═══════════════════════════════════════════ */
.mta-hm-history {
  margin-top: 16px;
  padding: 14px;
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-city-loft);
  border-radius: var(--hm-radius);
}
.mta-hm-history h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mta-hm-history-empty {
  font-size: 12px;
  color: var(--hm-ink-soft);
  text-align: center;
  padding: 12px;
}
.mta-hm-history-item {
  padding: 10px 12px;
  background: var(--sw-bg-warm);
  border-radius: 8px;
  font-size: 11px;
  color: var(--hm-ink-base);
  margin-bottom: 6px;
  border-left: 3px solid var(--sw-silken-peacock);
  cursor: pointer;
}
.mta-hm-history-item:hover { background: var(--sw-city-loft); }
.mta-hm-history-item .time {
  font-size: 10px;
  color: var(--hm-ink-soft);
  margin-bottom: 2px;
}
.mta-hm-history-clear {
  background: none;
  border: none;
  font-size: 10px;
  color: var(--hm-err);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.mta-hm-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--sw-silken-deep);
  color: var(--sw-bg-card);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--hm-shadow-lg);
  transition: transform 280ms ease-out;
  z-index: var(--hm-z-toast);
  max-width: 92vw;
}
.mta-hm-toast.show { transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   COMING SOON / ERROR
   ═══════════════════════════════════════════ */
.mta-hm-coming-soon, .mta-hm-error {
  padding: 32px 20px;
  text-align: center;
  background: var(--sw-bg-warm);
  border-radius: var(--hm-radius);
  border: 1px dashed var(--sw-city-loft);
}
.mta-hm-coming-soon p { margin: 4px 0; color: var(--hm-ink-base); font-weight: 600; }
.mta-hm-coming-soon p.muted { font-weight: 400; color: var(--hm-ink-soft); font-size: 12px; }

/* ═══════════════════════════════════════════
   CALC BUTTON (her modülde)
   ═══════════════════════════════════════════ */
.mta-hm-calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--sw-silken-peacock);
  color: var(--sw-bg-card);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 8px;
  transition: all 180ms;
  box-shadow: 0 2px 8px rgba(66, 117, 132, 0.25);
}
.mta-hm-calc-btn:hover {
  background: var(--sw-silken-deep);
  transform: translateY(-1px);
}
.mta-hm-calc-btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════════
   ERİŞİLEBİLİRLİK — Hareket azaltma
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .mta-hm-current-flow,
  .mta-hm-viz-tag::before,
  .mta-hm-viz.viz-danger,
  .mta-hm-toast,
  .mta-hm-result.show {
    animation: none !important;
  }
  .mta-hm-gauge-fill,
  .mta-hm-thermo-vert-fill,
  .mta-hm-viz,
  .mta-hm-drawer {
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════
   COMPACT MOD (shortcode embed için)
   ═══════════════════════════════════════════ */
.mta-hm-compact .mta-hm-header,
.mta-hm-compact .mta-hm-sidebar,
.mta-hm-compact .mta-hm-mobile-pill,
.mta-hm-compact .mta-hm-drawer,
.mta-hm-compact .mta-hm-drawer-overlay { display: none; }
.mta-hm-compact .mta-hm-wrap { grid-template-columns: 1fr; padding: 0; }
