/* MailSignHub - tasarım tokenları (saf CSS, build/npm gerektirmez) */

:root {
  --ink: #1b1f19;
  --ink-900: #1b1f19;
  --ink-800: #a6741e;
  --ink-700: #895c14;
  --ink-600: #c0924a;
  --surface: #ffffff;
  --surface-muted: #eef0e8;
  --surface-border: #dadfd2;
  --accent: #a6741e;
  --accent-soft: #f1e6cc;
  --text-secondary: #5d6459;
  --success: #2f7a52;
  --danger: #a8412c;
  --warning: #8a6a1f;
  --radius-card: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--surface-muted);
  color: var(--ink);
}

h1, h2, h3, .font-display {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

/* --- Layout --- */

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  border-bottom: none;
  padding: 0.75rem 1.5rem;
  --text-secondary: #aab3a0;
  --surface-border: #343a2c;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-weight: 500;
  font-size: 1.125rem;
  color: #f3f1e6;
  font-family: "IBM Plex Sans", sans-serif;
}

.brand-accent {
  font-weight: 700;
  color: var(--ink-600);
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
}

.nav-link.active {
  background: var(--ink-800);
  color: white;
}

.nav-link:not(.active):hover {
  background: var(--surface-muted);
}

.topbar .nav-link:not(.active) {
  color: var(--text-secondary);
}

.topbar .nav-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
}

.logout-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.topbar .logout-link {
  color: #cfd6c0;
}

.topbar .logout-link:hover {
  color: #ffffff;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Fonksiyon sayfalari (bkz. {% block page_wide %} - emailsignature modulu
   sablonlari) icerigin sikismamasi icin .page'in 960px sinirini kaldirir;
   Ana Sayfa ve Yonetim/config sayfalari .page-wide eklemedigi icin
   960px max-width'te kalmaya devam eder. */
.page-wide {
  max-width: none;
}

.page-with-sidebar {
  display: flex;
  gap: 2rem;
}

.sidebar {
  width: 12rem;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.sidebar-link.active {
  background: white;
  color: var(--ink);
  border: 1px solid var(--surface-border);
}

.main-back {
  /* Üst bardan sonra sol üst köşeye dayanması için */
  margin-top: 60px; /* Üstteki barın yüksekliği kadar alan bırakır */

  /* Arka planın şeffaf yapılması */
  opacity: 0.1;

  /* Görselin sol üst köşeden başlaması ve tekrar etmemesi */
  background-image: url('/static/img/back.png');
  background-repeat: no-repeat;
  background-position: left top; /* Arka planı sol üste dayar */
  background-size: contain; /* veya ihtiyaca göre 'cover' / 'auto' */

  /* Kapsayıcı boyutlandırması (ekranın kalan yüksekliğini doldurması için) */
  width: 50%;
  min-height: calc(100vh - 60px);

  /* Kenar boşluklarını sıfırlamak için */
  box-sizing: border-box;
}

.content {
  flex: 1;
}

.gray-content {
  filter: grayscale(100%);
  opacity: 0.7; /* İsteğe bağlı: Gri tonun daha yumuşak görünmesi için saydamlık */
  display: inline-block; /* Bazı taranıcılarda filtre efekti için gereklidir */
}

/* --- Card / form kontrolleri --- */

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.text-input, select.text-input {
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.text-input:focus {
  border-color: var(--ink-600);
  box-shadow: 0 0 0 3px rgba(166, 116, 30, 0.18);
}

.field-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--danger);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  padding: 0.625rem 1.125rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink-800);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--ink-700);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form-actions .btn-primary,
.form-actions .btn-secondary,
.form-actions .btn-danger {
  width: auto;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
}

.radio-option {
  flex: 1;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-option.selected {
  border-color: var(--ink-800);
  background: rgba(166, 116, 30, 0.08);
}

.hint {
  background: var(--surface-muted);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.alert {
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background: rgba(168, 65, 44, 0.1);
  color: var(--danger);
}

.alert-success {
  background: rgba(47, 122, 82, 0.1);
  color: var(--success);
}

.alert-warning {
  background: rgba(138, 106, 31, 0.1);
  color: var(--warning);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  border-inline-start: 3px solid currentColor;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-accent {
  background: var(--accent-soft);
  color: #6b4a14;
}

.badge-neutral {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(47, 122, 82, 0.1);
  color: var(--success);
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: start;
}

.data-table th {
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
}

.data-table td {
  border-bottom: 1px solid var(--surface-border);
  padding: 0.75rem 1.25rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* --- Login sayfasi --- */

.login-shell {
  display: flex;
  min-height: 100vh;
}

.login-brand-panel {
  display: none;
  width: 40%;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--ink-600) 45%, white) 0%, var(--ink) 72%);
  color: white;
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .login-brand-panel {
    display: flex;
  }
}

.login-brand-panel .slogan {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.login-brand-panel .footnote {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.login-motif {
  flex: 1;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-img {
  display: block;
  max-width: 18rem;
  width: 100%;
  height: auto;
}

.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-form-inner {
  width: 100%;
  max-width: 24rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.login-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

/* --- HTMX yukleme gostergesi --- */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: block;
}
.htmx-request.htmx-indicator {
  display: block;
}

/* --- Ek badge/buton tonlari --- */
.badge-danger {
  background: rgba(168, 65, 44, 0.1);
  color: var(--danger);
}

.badge-warning {
  background: rgba(138, 106, 31, 0.1);
  color: var(--warning);
}

.btn-danger {
  background: white;
  color: var(--danger);
  border: 1px solid rgba(168, 65, 44, 0.35);
}

.btn-danger:hover {
  background: rgba(168, 65, 44, 0.08);
}

/* --- Konfigurasyon ana sayfasi - fonksiyon kutucuklari --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 767px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

.stat-tile-logo {
  padding: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-tile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-tile-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-tile-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.tile-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.tile-card:hover {
  border-color: var(--ink-600);
}

.tile-card-title {
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.tile-card-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tile-grid-3col {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .tile-grid-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Topbar sag taraf (dil secici + cikis) --- */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: #eae8db;
  border-radius: 4px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-select {
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  padding: 0.375rem 0.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: white;
}

.topbar .lang-select {
  background: transparent;
  border-color: #3c4432;
  color: #eae8db;
}

.topbar .lang-select option {
  color: var(--ink);
  background: white;
}

.is-hidden {
  display: none !important;
}

.auth-lang-switcher {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 10;
}

/* --- HTML imza sablon editoru --- */
.editor-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.editor-btn:hover {
  background: white;
  border-color: var(--surface-border);
}

.placeholder-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--surface-border);
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--ink);
  cursor: pointer;
  margin-inline-end: 0.375rem;
  margin-block-end: 0.375rem;
}

.placeholder-chip:hover {
  border-color: var(--ink-600);
  background: white;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 31, 25, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.modal-box {
  background: white;
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 40rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
}

.modal-body {
  padding: 1.25rem;
  overflow: auto;
}

.modal-body iframe {
  width: 100%;
  height: 20rem;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
}

/* --- HolisferAssistant widget (Faz 3) - shared/assistant/templates/assistant/*.html ---
   Varsayilan panel ~420px (balonda satir basina ~55-60 karakter), baslikdaki
   "Genislet" ile 720px'e cikar (.ai-widget-panel--expanded, tercih localStorage'da).
   Mobilde (<640px) ekran genisliginde alt panel olur. */
.ai-widget {
  position: fixed;
  inset-inline-end: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
}

.ai-widget-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: none;
  background: var(--ink-800);
  color: white;
  box-shadow: 0 4px 12px rgba(27, 31, 25, 0.24);
  cursor: pointer;
}

.ai-widget-fab:hover {
  background: var(--ink-700);
}

.ai-widget-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: 4rem;
  width: min(420px, calc(100vw - 3rem));
}

.ai-widget-panel--expanded {
  width: min(720px, calc(100vw - 3rem));
}

.ai-widget-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  height: min(560px, 72vh);
  box-shadow: 0 12px 32px rgba(27, 31, 25, 0.18);
}

.ai-widget-panel--expanded .ai-widget-card {
  height: min(860px, 85vh);
}

.ai-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.95rem;
}

.ai-widget-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ai-widget-new-form {
  margin: 0;
  margin-inline-end: 0.25rem;
}

.ai-widget-new-btn {
  width: auto;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

.ai-widget-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.ai-widget-icon-btn:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.ai-widget-expand .ai-icon-collapse,
.ai-widget-expand[aria-pressed="true"] .ai-icon-expand {
  display: none;
}

.ai-widget-expand[aria-pressed="true"] .ai-icon-collapse {
  display: block;
}

.ai-widget-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-inline-end: 0.25rem;
}

.ai-widget-message {
  max-width: 88%;
  border-radius: 0.875rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ai-widget-message p {
  margin: 0;
}

.ai-widget-message .badge {
  margin-top: 0.375rem;
}

.ai-widget-message-user {
  align-self: flex-end;
  background: var(--ink-800);
  color: white;
  border-end-end-radius: 0.25rem;
}

.ai-widget-message-assistant {
  align-self: flex-start;
  background: var(--surface-muted);
  color: var(--ink);
  border-end-start-radius: 0.25rem;
}

.ai-widget-action {
  width: auto;
  margin-top: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.ai-widget-empty {
  margin: auto;
  max-width: 30ch;
  text-align: center;
}

.ai-widget-empty-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--ink);
}

.ai-widget-empty-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ai-widget-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.ai-widget-input {
  flex: 1;
  min-height: 2.625rem;
  max-height: 8rem;
  resize: none;
  line-height: 1.4;
  overflow-y: auto;
}

.ai-widget-form .btn-primary {
  width: auto;
  min-height: 2.625rem;
}

.ai-widget-form.htmx-request .btn-primary,
.ai-widget-new-form.htmx-request .btn {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 639px) {
  .ai-widget {
    inset-inline-end: 1rem;
    bottom: 1rem;
  }

  .ai-widget-panel,
  .ai-widget-panel--expanded {
    position: fixed;
    inset-inline: 0.5rem;
    bottom: 5rem;
    width: auto;
  }

  .ai-widget-card,
  .ai-widget-panel--expanded .ai-widget-card {
    height: min(640px, calc(100vh - 6rem));
    height: min(640px, calc(100dvh - 6rem));
  }

  .ai-widget-expand {
    display: none;
  }

  /* iOS Safari 16px alti yazi boyutunda odaklaninca sayfayi zoom'lar */
  .ai-widget-input {
    font-size: 1rem;
  }
}

/* --- Portal ana sayfa: 3 sütun düzeni (sol: tarih/saat widget, orta: ürünler, sağ: duyurular) --- */

.portal-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1360px;
  margin-inline: auto;
}

.portal-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.portal-col-left {
  padding-top: 2.2rem;
}

/* Duyurular tek blok: mobilde sağ sütun display:contents olduğunda bu blok tek başına
   sıralanabilsin diye sarmalanır (sağdaki widget'lardan ayrı order alır). */
.portal-announcements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.portal-col-title {
  margin: 0 0 -0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
}

.tile-grid-2col {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .portal-columns {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    align-items: start;
    padding-top: 1rem;
  }

  /* Sütun genişliği seçenekleri (Ana Sayfa Ayarları > Sayfa Düzeni, bkz.
     homewidgets.registry.LAYOUT_CHOICES): varsayılan geniş sağ sütun, ya da geniş orta sütun. */
  .portal-columns--wide-right {
    grid-template-columns: 1fr 2fr 2fr;
  }

  .portal-columns--wide-middle {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .tile-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil: kutulara kenar bosluğu, sol sütun kartları üstte kalır, ardından
   Duyurular, ardından Uygulamalar gelir, tarih/saat kutusu en alta iner.
   portal-col-left'i display:contents yaparak dt-widget'ı tek başına
   sıralanabilir hale getiriyoruz; masaüstü grid'i (min-width:960px) bundan
   etkilenmiyor. */
@media (max-width: 959px) {
  .portal-columns {
    padding: 1rem;
  }

  .portal-col-left {
    display: contents;
  }

  /* Mobil sıra (tek sütun): karşılama/onay kartları, duyurular, uygulamalar, hızlı
     bağlantılar, hava durumu/kur/haber, diğer sol widget'lar, tarih/saat, kişiselleştir.
     Sağ sütun display:contents: duyurular bloğu ile sağ widget'lar ayrı order alır. */
  .portal-col-right {
    display: contents;
  }

  .portal-announcements {
    order: 2;
  }

  .portal-col-middle {
    order: 3;
  }

  .dt-widget {
    order: 7;
  }
}

.dt-widget {
  text-align: center;
}

.dt-date {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.dt-week {
  margin: 0.375rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dt-time {
  margin: 0.75rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.dt-utc {
  margin-inline-start: 0.35rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* --- Tier 1 pazarlama sayfasi (holisfer.com apex) - templates/marketing/* ---
   Holisfer logosundan esinlenen ayri bir koyu tema: TUM degerler burada,
   body.mkt-body altinda TANIMLI ve SCOPE'LU - platformun geri kalaninin
   (portal, urunler) kullandigi --ink/--surface/--accent token'larina
   dokunulmuyor (bkz. CLAUDE.md: "yeni bir renk paleti icat etme" kurali,
   bu sayfa bilinçli bir istisna, disaridan sizmayacak sekilde izole edildi).
   Ana urun tokenlariyla ayni ledger/pirinc mantigi: tek vurgu rengi (brass),
   duz yuzeyler, degrade suslemesi yok. */
body.mkt-body {
  --mkt-bg: #14170f;
  --mkt-bg-tint: #1b1f16;
  --mkt-bg-raised: #262b1c;
  --mkt-ink: #f2efe2;
  --mkt-ink-soft: #b6bca4;
  --mkt-brass: #c99a4a;
  --mkt-success: #6fae86;
  --mkt-line: rgba(242, 239, 226, 0.12);
  --mkt-line-strong: rgba(242, 239, 226, 0.24);

  background: var(--mkt-bg);
  color: var(--mkt-ink);
}

body.mkt-body .topbar.mkt-topbar {
  background: color-mix(in srgb, var(--mkt-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--mkt-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

body.mkt-body .mkt-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  color: var(--mkt-ink);
}

body.mkt-body .mkt-brand-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

body.mkt-body .mkt-nav {
  display: flex;
  gap: 1.5rem;
  margin-inline-start: 2rem;
}

body.mkt-body .mkt-nav a {
  color: var(--mkt-ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

body.mkt-body .mkt-nav a:hover {
  color: var(--mkt-ink);
}

body.mkt-body .lang-select {
  background: var(--mkt-bg-raised);
  color: var(--mkt-ink);
  border-color: var(--mkt-line);
}

body.mkt-body .btn-primary {
  background: var(--mkt-brass);
  color: #201503;
  font-weight: 600;
  box-shadow: none;
}

body.mkt-body .btn-primary:hover {
  background: color-mix(in srgb, var(--mkt-brass) 85%, white);
}

body.mkt-body .btn-secondary {
  background: transparent;
  color: var(--mkt-ink);
  border-color: var(--mkt-line-strong);
}

body.mkt-body .btn-secondary:hover {
  background: var(--mkt-bg-raised);
}

body.mkt-body .topbar-right .btn-primary {
  width: auto;
}

body.mkt-body .mkt-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
}

body.mkt-body .mkt-eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mkt-brass);
  margin: 0 0 0.75rem;
}

body.mkt-body .mkt-grad-text {
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

body.mkt-body .mkt-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: radial-gradient(900px 380px at 50% -10%, color-mix(in srgb, var(--mkt-brass) 10%, transparent), transparent 70%);
}

body.mkt-body .mkt-hero-text h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.16;
  margin: 0 0 1rem;
}

body.mkt-body .mkt-hero-sub {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: var(--mkt-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  display: flex;
}

body.mkt-body .mkt-banner-img-01 {
  width: 50%;
  height: auto;
  align-self: center;
  flex-shrink: 0;
  object-fit: contain;
}

@media (max-width: 639px) {
  body.mkt-body .mkt-hero-sub {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  body.mkt-body .mkt-banner-img-01 {
    width: 100%;
    max-width: 22rem;
  }
}

body.mkt-body .mkt-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

body.mkt-body .mkt-hero-actions .btn {
  width: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body.mkt-body .mkt-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mkt-line);
  list-style: none;
}

body.mkt-body .mkt-hero-facts li {
  display: flex;
  flex-direction: column;
}

body.mkt-body .mkt-hero-facts strong {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.4rem;
}

body.mkt-body .mkt-hero-facts span {
  font-size: 0.8rem;
  color: var(--mkt-ink-soft);
}

body.mkt-body .mkt-section {
  padding: 3rem 0;
  border-top: 1px solid var(--mkt-line);
}

body.mkt-body .mkt-section-deep {
  background: color-mix(in srgb, var(--mkt-bg) 55%, black);
  margin: 0 -1.5rem;
  padding: 3rem 1.5rem;
}

body.mkt-body .mkt-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

body.mkt-body .mkt-tile-logo {
  object-fit: contain;
  margin-bottom: 0.75rem;
}

body.mkt-body .mkt-scenario {
  max-width: 42rem;
  color: var(--mkt-ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

body.mkt-body .mkt-product-logo {
  height: 52px;
  width: auto;
  margin: 0 0 1.25rem;
  padding: 0.2rem;
  background-color: #e0e0e0;
}

body.mkt-body .mkt-product-logo-container {
  height: 52px;
  width: 100%;
  text-align: center;
  background-color: #e0e0e0;
}

/* Urun odagi kartlari: desktop'ta yan yana uc sutun, mobilde alt alta. */
body.mkt-body .mkt-spotlight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  background: var(--mkt-bg-tint);
  margin: 0 -1.5rem;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--mkt-line);
}

@media (min-width: 900px) {
  body.mkt-body .mkt-spotlight-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

body.mkt-body .mkt-spotlight {
  display: flex;
  flex-direction: column;
  background: var(--mkt-bg-raised);
  border: 1px solid var(--mkt-line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
}

body.mkt-body .mkt-spotlight .mkt-eyebrow {
  text-align: center;
}

body.mkt-body .mkt-spotlight .mkt-product-logo-container {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 4px;
}

body.mkt-body .mkt-spotlight .mkt-product-logo {
  margin: 0;
  height: 48px;
}

body.mkt-body .mkt-spotlight-title {
  font-size: 1rem;
  text-align: center;
  margin: 0 0 1rem;
}

body.mkt-body .mkt-spotlight .mkt-scenario {
  font-size: 0.95rem;
}

body.mkt-body .mkt-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

body.mkt-body .mkt-feature-list h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

body.mkt-body .mkt-feature-list p {
  margin: 0;
  color: var(--mkt-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.mkt-body .mkt-eco-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  body.mkt-body .mkt-eco-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

body.mkt-body .mkt-eco-diagram {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 380px);
  margin-inline: auto;
}

body.mkt-body .mkt-eco-orbit {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed var(--mkt-line-strong);
}

body.mkt-body .mkt-eco-orbit-sm {
  inset: 28%;
  border-style: solid;
  border-color: var(--mkt-line);
}

body.mkt-body .mkt-eco-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;

  background-image: url('/static/img/holisfer.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  background-color: rgba(255, 255, 255, .7);
  opacity: .85;

  color: #ffffff;
  text-shadow: 0 0 10px #000000, 0 0 20px #000000;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 6px;
  box-shadow: 0 0 60px -14px color-mix(in srgb, var(--mkt-brass) 65%, transparent);
}

body.mkt-body .mkt-eco-hub span {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 3vw, 0.98rem);
}

body.mkt-body .mkt-eco-hub small {
  display: block;
  font-size: clamp(0.58rem, 2vw, 0.66rem);
  color: #ffffff;
  text-shadow: 0 0 10px #000000, 0 0 20px #000000;
  margin-top: 2px;
}

body.mkt-body .mkt-eco-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: clamp(0.64rem, 2.2vw, 0.76rem);
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--mkt-bg-raised);
  border: 1px solid var(--mkt-line-strong);
}

body.mkt-body .mkt-eco-n1 { left: 50%; top: 4%; }
body.mkt-body .mkt-eco-n2 { left: 85.96%; top: 21.32%; }
body.mkt-body .mkt-eco-n3 { left: 94.85%; top: 60.24%; }
body.mkt-body .mkt-eco-n4 { left: 69.96%; top: 91.44%; }
body.mkt-body .mkt-eco-n5 { left: 30.04%; top: 91.44%; }
body.mkt-body .mkt-eco-n6 { left: 5.15%; top: 60.24%; }
body.mkt-body .mkt-eco-n7 { left: 14.04%; top: 21.32%; }

body.mkt-body .mkt-eco-steps {
  list-style: none;
  counter-reset: mkt-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

body.mkt-body .mkt-eco-steps li {
  counter-increment: mkt-step;
  position: relative;
  padding-inline-start: 2.75rem;
}

body.mkt-body .mkt-eco-steps li::before {
  content: counter(mkt-step);
  position: absolute;
  inset-inline-start: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mkt-brass) 14%, var(--mkt-bg));
  border: 1px solid color-mix(in srgb, var(--mkt-brass) 34%, var(--mkt-bg));
  color: var(--mkt-brass);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

body.mkt-body .mkt-eco-steps h3 {
  font-size: 0.98rem;
  margin: 0 0 0.3rem;
}

body.mkt-body .mkt-eco-steps p {
  margin: 0;
  color: var(--mkt-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.mkt-body .mkt-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

body.mkt-body .card {
  background: var(--mkt-bg-raised);
  border-color: var(--mkt-line);
  color: var(--mkt-ink);
}

body.mkt-body .tile-card {
  background: var(--mkt-bg-raised);
  border-color: var(--mkt-line);
  color: var(--mkt-ink);
}

body.mkt-body .tile-card:hover {
  border-color: color-mix(in srgb, var(--mkt-brass) 40%, var(--mkt-line));
}

body.mkt-body .tile-card-desc {
  color: var(--mkt-ink-soft);
}

body.mkt-body .mkt-tile-cta {
  background: var(--mkt-bg-tint);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

body.mkt-body .mkt-link-arrow {
  color: var(--mkt-brass);
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.25rem;
}

body.mkt-body .text-input, body.mkt-body select.text-input {
  background: var(--mkt-bg);
  border-color: var(--mkt-line-strong);
  color: var(--mkt-ink);
}

body.mkt-body .field-label {
  color: var(--mkt-ink);
}
/* Demo talebi: desktop'ta aciklama + form iki sutun, mobilde alt alta. */
body.mkt-body .mkt-section-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}

@media (min-width: 900px) {
  body.mkt-body .mkt-section-demo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
    align-items: center;
  }
}

body.mkt-body .mkt-demo-info .mkt-scenario {
  margin-bottom: 0;
}

body.mkt-body .mkt-demo-card {
  padding: 2rem;
}

body.mkt-body .mkt-demo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.25rem;
}

@media (min-width: 600px) {
  body.mkt-body .mkt-demo-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mkt-body .mkt-demo-form .mkt-demo-submit {
    justify-self: end;
    width: auto;
    min-width: 10rem;
  }
}

body.mkt-body .mkt-demo-form .field {
  margin: 0;
}

body.mkt-body .mkt-demo-form .mkt-demo-field-wide,
body.mkt-body .mkt-demo-form .mkt-demo-submit {
  grid-column: 1 / -1;
}

body.mkt-body .mkt-demo-form .mkt-demo-submit {
  margin-top: 0.25rem;
}

body.mkt-body .mkt-demo-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  text-align: center;
  color: var(--mkt-success);
  font-weight: 500;
}

body.mkt-body .mkt-demo-success p {
  margin: 0;
}

body.mkt-body .mkt-footer {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  color: var(--mkt-ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--mkt-line);
}

body.mkt-body .mkt-footer a {
  color: var(--mkt-ink-soft);
  text-decoration: none;
}

body.mkt-body .mkt-footer a:hover {
  color: var(--mkt-brass);
}

/* --- Mobil menu (hamburger) - .mkt-nav'in kendisi (yukarida "display:flex"
   olarak tanimli) ile AYNI ozgunlukte oldugundan bu blok dosyanin EN SONUNDA
   olmali - CSS'te esit ozgunlukte iki kural cakistiginda KAYNAK SIRASI
   kazanir, media query bir kurala otomatik oncelik VERMEZ (bu projede bir
   kez bu yuzden mobilde menu hep acik kaldi, bkz. proje notu). --- */
body.mkt-body .mkt-nav-toggle {
  display: none;
  border: 1px solid var(--mkt-line-strong);
  background: transparent;
  color: var(--mkt-ink);
  border-radius: 4px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767px) {
  body.mkt-body .topbar-left {
    gap: 0.75rem;
  }

  body.mkt-body .mkt-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.mkt-body .mkt-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0.75rem 1.5rem 1rem;
    background: var(--mkt-bg);
    border-bottom: 1px solid var(--mkt-line);
  }

  body.mkt-body .mkt-nav.mkt-nav-open {
    display: flex;
  }

  body.mkt-body .mkt-nav a {
    padding: 0.5rem 0;
  }

  body.mkt-body .topbar-right {
    gap: 0.5rem;
  }

  body.mkt-body .topbar-right .lang-select {
    padding: 0.375rem;
    font-size: 0.8rem;
  }

  body.mkt-body .topbar-right .btn-primary {
    padding-inline: 0.75rem;
    font-size: 0.85rem;
  }
}

/* --- Portal (giris sonrasi) topbar mobil menu - yukaridaki mkt-nav-toggle
   ile ayni desen: kullanici adi, Tanitim Sayfasi, dil secici ve Cikis yap
   mobilde tek satira sigmayip ic ice giriyordu, bunlari .topbar-menu-open
   acilana kadar gizli bir acilir menuye topladik. .topbar-menu-open iki
   class'li oldugu icin (ozgunluk 0,0,2,0) asagidaki media query'deki
   .topbar-menu { display:none } (ozgunluk 0,0,1,0) kurali kaynak sirasindan
   bagimsiz her zaman kazanir. */
@media (max-width: 767px) {
  .topbar {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--ink);
    border-bottom: 1px solid var(--surface-border);
    z-index: 20;
  }

  .topbar-menu.topbar-menu-open {
    display: flex;
  }

  .topbar-menu form {
    padding: 0.375rem 0;
  }

  .topbar-menu .lang-select {
    width: 100%;
  }
}

/* --- Ana sayfa widget'ları (templates/portal/widgets/*, static/js/portal-widgets.js) ---
   Sadece mevcut tokenlar (--ink/--accent/--surface-*) kullanılır; yeni palet yok.
   Mantıksal özellikler (inline-start/end) - Arapça dir="rtl" desteği için. */
.hw-card {
  padding: 1rem;
}

.hw-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.hw-muted {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.hw-source {
  margin: 0.6rem 0 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.hw-source a {
  color: inherit;
}

.hw-icon-btn,
.hw-mini-btn {
  border: 1px solid var(--surface-border);
  background: var(--surface-muted);
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.hw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

.hw-mini-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.hw-icon-btn:hover,
.hw-mini-btn:hover {
  border-color: var(--accent);
}

[dir="rtl"] .hw-flip-rtl {
  transform: scaleX(-1);
}

.hw-personalize-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem;
}

.hw-personalize-link:hover {
  text-decoration: underline;
}

/* Analog saat */
.hw-analog {
  display: block;
  width: 9rem;
  height: 9rem;
  margin: 0 auto 0.75rem;
}

.hw-analog-face {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3;
}

.hw-tick {
  stroke: var(--text-secondary);
  stroke-width: 1;
}

.hw-tick-major {
  stroke: var(--ink);
  stroke-width: 2.5;
}

.hw-hand {
  stroke: var(--ink);
  stroke-linecap: round;
}

.hw-hand-h { stroke-width: 5; }
.hw-hand-m { stroke-width: 3.5; }
.hw-hand-s { stroke: var(--danger); stroke-width: 1.5; }
.hw-analog-pin { fill: var(--danger); }

/* Döviz */
/* Kur satırı: kutular üst satırda, hesap makinesi düğmesi AYNI satırda onlarla aynı
   yükseklikte (stretch); kaynak/tarih satırı altta tüm genişlikte. .hw-currency-pairs
   htmx ile doldurulan sarmalayıcı - display:contents ile çocukları doğrudan grid öğesi olur. */
.hw-currency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.hw-currency-pairs {
  display: contents;
}

.hw-currency-pairs > .hw-fx-list,
.hw-currency-pairs > .hw-muted {
  grid-column: 1;
  grid-row: 1;
}

.hw-currency-pairs > .hw-source {
  grid-column: 1 / -1;
  grid-row: 2;
}

.hw-currency-row > .hw-icon-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 3rem;
  height: auto;
  margin-inline-start: 0.75rem;
}

.hw-fx-list {
  display: flex;
  gap: 0.5rem;
}

.hw-fx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.6rem;
  background: var(--surface-muted);
  border-radius: 6px;
}

.hw-fx-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.hw-fx-code {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.hw-fx-quote {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Hesap makinesi (dialog) */
.hw-calc {
  width: min(22rem, 94vw);
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.hw-calc::backdrop {
  background: rgba(27, 31, 25, 0.45);
}

.hw-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.hw-calc-body {
  padding: 0.75rem 1rem 1rem;
}

.hw-calc-display {
  min-height: 2.75rem;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent-soft);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.25rem;
  text-align: right;
  overflow-x: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hw-calc-display.is-error {
  color: var(--danger);
}

.hw-calc.has-memory .hw-calc-display::before {
  content: "M";
  float: left;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.hw-calc-pad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.hw-key {
  padding: 0.55rem 0;
  border: 1px solid var(--surface-border);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.hw-key:hover { border-color: var(--accent); }
.hw-key-num { background: var(--ink); color: #f3f1e6; font-weight: 600; }
.hw-key-op { background: var(--accent-soft); font-weight: 600; }
.hw-key-clear { color: var(--danger); font-weight: 600; }
.hw-key-eq { background: var(--accent); color: #fff; font-weight: 600; }

/* Takvim */
.hw-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.hw-cal-nav {
  display: flex;
  gap: 0.25rem;
}

.hw-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hw-cal-table th {
  padding: 0.25rem 0;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  white-space: nowrap;
}

.hw-cal-table td {
  padding: 0.3rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.hw-cal-table td.is-other {
  color: var(--text-secondary);
  opacity: 0.45;
}

.hw-cal-table td.is-today {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
}

/* Dünya saatleri / kişiler / bağlantılar */
.hw-world-list,
.hw-people,
.hw-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hw-world-list li,
.hw-people li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--surface-border);
}

.hw-world-list li:first-child,
.hw-people li:first-child {
  border-top: 0;
}

.hw-world-time {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.hw-world-time small,
.hw-people-date {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.hw-links li {
  padding: 0.3rem 0;
  font-size: 0.875rem;
}

.hw-links a {
  color: var(--accent);
  text-decoration: none;
}

.hw-links a:hover {
  text-decoration: underline;
}

/* Hava durumu */
.hw-wx-day {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--surface-border);
  font-size: 0.85rem;
}

.hw-title + .hw-wx-day {
  border-top: 0;
}

.hw-wx-when small,
.hw-wx-temp small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.hw-wx-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hw-wx-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.hw-wx-temp {
  text-align: end;
  font-size: 1.1rem;
  font-weight: 500;
}

.hw-wx-today .hw-wx-icon { font-size: 2rem; }
.hw-wx-today .hw-wx-temp { font-size: 1.5rem; }

/* Haberler */
.hw-news.js .hw-news-slide:not(.is-active) {
  display: none;
}

.hw-news-slide {
  margin-bottom: 0.75rem;
}

.hw-news-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hw-news-title a {
  color: var(--accent);
  text-decoration: none;
}

.hw-news-title a:hover {
  text-decoration: underline;
}

.hw-news-summary {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.hw-news-meta {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.hw-news-controls {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

/* Mobil: tarih/saat kutusu en altta (bkz. yukarıdaki .dt-widget order:5) - diğer widget'lar
   onun önüne, kişiselleştirme linki en sona. */
@media (max-width: 959px) {
  .portal-col-left .hw-card { order: 6; }
  .portal-col-left .hw-quick-links { order: 4; }
  .portal-col-right > .hw-card { order: 5; }
  .portal-col-left .hw-personalize-link { order: 8; }
}
