/* ============================================================
   YENİSU Mali Müşavirlik – Kurumsal Tema
   Renkler: Derin Lacivert #1A3C63 · Platin Gri #B0B0B0
   ============================================================ */

:root {
  --lacivert: #1a3c63;
  --lacivert-koyu: #12293f;
  --lacivert-acik: #24507f;
  --platin: #b0b0b0;
  --platin-acik: #e6e9ed;
  --zemin: #f4f6f9;
  --beyaz: #ffffff;
  --metin: #1f2b38;
  --metin-soft: #64748b;
  --hata: #d64545;
  --basari: #2e9e5b;
  --golge: 0 10px 30px rgba(26, 60, 99, 0.12);
  --golge-sm: 0 2px 8px rgba(26, 60, 99, 0.08);
  --radius: 14px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--metin);
  background: var(--zemin);
  -webkit-font-smoothing: antialiased;
}

/* ================= GİRİŞ SAYFASI ================= */

.giris-sayfasi {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Sol marka paneli */
.marka-panel {
  background: linear-gradient(160deg, var(--lacivert) 0%, var(--lacivert-koyu) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.marka-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  top: -160px;
  right: -160px;
}

.marka-panel::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 176, 176, 0.08) 0%, transparent 70%);
  bottom: -140px;
  left: -120px;
}

.marka-panel .logo-alani {
  position: relative;
  z-index: 1;
}

.marka-panel .logo-alani img {
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.28));
}

/* Logo dosyası yoksa görünen yedek */
.logo-yedek {
  display: none;
  color: #fff;
}
.logo-yedek .ad {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.logo-yedek .alt {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.marka-panel .slogan {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 360px;
}

/* Sağ form paneli */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.giris-kart {
  width: 100%;
  max-width: 400px;
}

.giris-kart h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--lacivert);
}

.giris-kart .aciklama {
  color: var(--metin-soft);
  margin-top: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-grup {
  margin-bottom: 1.2rem;
}

.form-grup label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--metin);
}

.form-grup input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--platin-acik);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fbfcfe;
}

.form-grup input:focus {
  outline: none;
  border-color: var(--lacivert-acik);
  box-shadow: 0 0 0 4px rgba(36, 80, 127, 0.12);
  background: #fff;
}

.giris-btn {
  width: 100%;
  padding: 0.95rem;
  border: none;
  border-radius: 10px;
  background: var(--lacivert);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
  margin-top: 0.5rem;
}

.giris-btn:hover {
  background: var(--lacivert-acik);
}
.giris-btn:active {
  transform: translateY(1px);
}

.hata-mesaji {
  display: none;
  background: rgba(214, 69, 69, 0.08);
  color: var(--hata);
  border: 1px solid rgba(214, 69, 69, 0.25);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.hata-mesaji.goster {
  display: block;
}

.giris-alt {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--platin);
}

/* ================= PANEL (İÇ SAYFA) ================= */

.panel-govde {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas:
    "yan ust"
    "yan icerik";
  min-height: 100vh;
}

/* Üst bar */
.ust-bar {
  grid-area: ust;
  background: #fff;
  border-bottom: 1px solid var(--platin-acik);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.8rem;
  box-shadow: var(--golge-sm);
  z-index: 5;
}

.ust-bar .sayfa-baslik {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lacivert);
}

.ust-bar .kullanici-kutu {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ust-bar .kullanici-ad {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--metin);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lacivert);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.cikis-btn {
  border: 1.5px solid var(--platin-acik);
  background: #fff;
  color: var(--metin-soft);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cikis-btn:hover {
  border-color: var(--hata);
  color: var(--hata);
}

/* Yan menü */
.yan-menu {
  grid-area: yan;
  background: linear-gradient(180deg, var(--lacivert) 0%, var(--lacivert-koyu) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0;
}

.yan-menu .marka {
  padding: 0 1.4rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  text-align: center;
}

.yan-menu .marka img {
  max-width: 170px;
  width: 100%;
  height: auto;
}

.yan-menu .marka .yedek {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.4rem;
}
.yan-menu .marka .yedek small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-link.aktif {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-left-color: var(--platin);
}

.menu-link .ikon {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
}

/* İçerik alanı */
.icerik {
  grid-area: icerik;
  padding: 2rem;
  overflow-y: auto;
}

.bolum {
  display: none;
  animation: solda 0.25s ease;
}
.bolum.aktif {
  display: block;
}

@keyframes solda {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bolum h2 {
  font-size: 1.5rem;
  color: var(--lacivert);
  margin-bottom: 0.3rem;
}

.bolum .bolum-alt {
  color: var(--metin-soft);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
}

.bos-durum {
  background: #fff;
  border: 2px dashed var(--platin-acik);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--metin-soft);
}

.bos-durum .bos-ikon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.bos-durum .bos-baslik {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--metin);
  margin-bottom: 0.4rem;
}

/* ================= GÖSTERGE PANELİ ================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dashboard-stat-card,
.dashboard-card {
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--golge-sm);
}

.dashboard-stat-card {
  padding: 1rem;
}

.dashboard-stat-card span,
.dashboard-stat-card small {
  display: block;
  color: var(--metin-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.dashboard-stat-card strong {
  display: block;
  color: var(--lacivert);
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0.35rem 0;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-card {
  padding: 1rem;
}

.dashboard-wide {
  min-height: 260px;
}

.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.dashboard-card-header h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
}

.dashboard-card-header span {
  color: var(--metin-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.dashboard-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-list-item {
  width: 100%;
  border: 1px solid var(--platin-acik);
  border-left: 5px solid var(--lacivert-acik);
  border-radius: 10px;
  background: #fbfcfe;
  cursor: pointer;
  font-family: var(--font);
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.dashboard-list-item strong,
.dashboard-list-item span {
  display: block;
}

.dashboard-list-item strong {
  color: var(--metin);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.dashboard-list-item span {
  color: var(--metin-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.dashboard-item-danger {
  border-left-color: var(--hata);
  background: rgba(214, 69, 69, 0.05);
}

.dashboard-item-warning {
  border-left-color: #d59b2d;
  background: rgba(213, 155, 45, 0.08);
}

.dashboard-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  color: var(--metin-soft);
  font-size: 0.88rem;
  padding: 1rem;
  text-align: center;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.65rem;
}

.dashboard-action {
  border: 1px solid rgba(36, 80, 127, 0.2);
  border-radius: 10px;
  background: rgba(36, 80, 127, 0.07);
  color: var(--lacivert);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 48px;
  padding: 0.75rem;
}

.dashboard-action:hover,
.dashboard-list-item:hover {
  border-color: var(--lacivert-acik);
  box-shadow: var(--golge-sm);
}

/* ================= AYARLAR / MFA ================= */

.ayar-kart {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.8rem;
  max-width: 580px;
  box-shadow: var(--golge-sm);
}

.ayar-kart h3 {
  color: var(--lacivert);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.ayar-kart p {
  color: var(--metin-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mfa-durum {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--zemin);
  border: 1px solid var(--platin-acik);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.mfa-adim {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--platin-acik);
}

.mfa-qr {
  margin: 1rem 0;
}

.mfa-qr img {
  border: 1px solid var(--platin-acik);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  width: 200px;
  height: 200px;
}

.mfa-secret {
  display: inline-block;
  background: var(--zemin);
  border: 1px solid var(--platin-acik);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-family: "Consolas", monospace;
  letter-spacing: 1px;
  user-select: all;
  margin-top: 0.3rem;
}

.kod-input {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 240px;
}

.buton-ikincil {
  background: #fff !important;
  border: 1.5px solid var(--platin-acik) !important;
  color: var(--metin-soft) !important;
}
.buton-ikincil:hover {
  border-color: var(--hata) !important;
  color: var(--hata) !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 860px) {
  .giris-sayfasi {
    grid-template-columns: 1fr;
  }
  .marka-panel {
    padding: 2.5rem 1.5rem;
  }
  .marka-panel .slogan {
    display: none;
  }
  .panel-govde {
    grid-template-columns: 1fr;
    grid-template-rows: 64px auto 1fr;
    grid-template-areas:
      "ust"
      "yan"
      "icerik";
  }
  .yan-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
  }
  .yan-menu .marka {
    display: none;
  }
  .menu-link {
    white-space: nowrap;
    width: auto;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .menu-link.aktif {
    border-left: none;
    border-bottom-color: var(--platin);
  }
}

/* ==== Notlar ve Hatırlatıcılar ==== */
.note-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1.2rem;
  align-items: start;
}

.note-panel,
.note-list-panel {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--golge-sm);
}

.note-panel h3,
.note-list-panel h3 {
  margin-bottom: 1rem;
  color: var(--lacivert);
  font-size: 1.05rem;
}

.note-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.note-form textarea:focus {
  outline: none;
  border-color: var(--lacivert-acik);
  box-shadow: 0 0 0 4px rgba(36, 80, 127, 0.12);
  background: #fff;
}

.note-list {
  display: grid;
  gap: 0.9rem;
}

.note-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--metin-soft);
  font-size: 0.92rem;
}

.note-card {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  padding: 1rem;
  background: #fbfcfe;
}

.note-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.note-card h4 {
  color: var(--metin);
  font-size: 0.98rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: -0.2rem 0 0.9rem;
  color: var(--metin);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--hata);
}

.important-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(214, 69, 69, 0.1);
  color: var(--hata);
  border: 1px solid rgba(214, 69, 69, 0.25);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.note-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.note-action-btn {
  border: 1px solid var(--platin-acik);
  border-radius: 999px;
  background: #fff;
  color: var(--lacivert);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
}

.note-action-btn:hover {
  border-color: var(--lacivert-acik);
  background: rgba(36, 80, 127, 0.06);
}

.note-cancel-btn {
  margin-top: 0.6rem;
}

/* ==== Vergi Takvimi ==== */
.tax-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
  max-width: 640px;
}

.tax-summary-card {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--golge-sm);
}

.tax-summary-card span,
.tax-summary-card small {
  display: block;
  color: var(--metin-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.tax-summary-card strong {
  display: block;
  color: var(--lacivert);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.15rem 0;
}

.tax-summary-card-alert strong {
  color: var(--hata);
}

.tax-panel {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--golge-sm);
}

.tax-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tax-panel-header h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
}

.tax-panel-header span {
  color: var(--metin-soft);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: capitalize;
}

.tax-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.tax-controls select {
  border: 1.5px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
}

.tax-source-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(36, 80, 127, 0.18);
  border-left: 5px solid var(--lacivert);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 1rem;
  margin-bottom: 1rem;
}

.tax-source-notice p {
  color: var(--metin-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tax-source-notice a,
.tax-official-card a {
  color: var(--lacivert);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.tax-calendar-list {
  display: grid;
  gap: 0.9rem;
}

.tax-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.tax-alert-card {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
}

.tax-alert-card h3 {
  color: var(--lacivert);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.tax-alert-today {
  border-left: 5px solid var(--hata);
}

.tax-alert-upcoming {
  border-left: 5px solid var(--lacivert-acik);
}

.tax-alert-list {
  display: grid;
  gap: 0.65rem;
}

.tax-task-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.9rem;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0.9rem;
}

.tax-task-today {
  border-color: rgba(214, 69, 69, 0.35);
  background: rgba(214, 69, 69, 0.06);
}

.tax-task-upcoming {
  border-color: rgba(36, 80, 127, 0.25);
  background: rgba(36, 80, 127, 0.06);
}

.tax-task-card time {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lacivert);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  padding: 0.65rem;
}

.tax-task-today time {
  background: var(--hata);
}

.tax-task-card h4 {
  color: var(--metin);
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.tax-task-card p {
  color: var(--metin-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tax-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  color: var(--metin-soft);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.tax-official-card {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}

.tax-official-card strong {
  display: block;
  color: var(--lacivert);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.tax-official-card p {
  color: var(--metin-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.tax-official-frame {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
}

.tax-reminder-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 1rem;
  align-items: start;
}

.tax-reminder-form,
.tax-reminder-list-panel {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
}

.tax-reminder-form h3,
.tax-reminder-list-panel h3 {
  color: var(--lacivert);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.tax-reminder-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tax-reminder-form textarea:focus {
  outline: none;
  border-color: var(--lacivert-acik);
  box-shadow: 0 0 0 4px rgba(36, 80, 127, 0.12);
  background: #fff;
}

.tax-reminder-list {
  display: grid;
  gap: 0.8rem;
}

.tax-reminder-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--metin-soft);
  font-size: 0.9rem;
}

.tax-reminder-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 1rem;
}

.tax-reminder-done {
  opacity: 0.72;
}

.tax-reminder-card h4 {
  color: var(--metin);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.tax-reminder-card time {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(36, 80, 127, 0.08);
  color: var(--lacivert);
  padding: 0.3rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tax-reminder-card p {
  color: var(--metin-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tax-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  padding: 1rem;
  background: #fbfcfe;
}

.tax-item-today {
  border-color: rgba(214, 69, 69, 0.35);
  background: rgba(214, 69, 69, 0.06);
}

.tax-date {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--lacivert);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tax-item-today .tax-date {
  background: var(--hata);
}

.tax-date strong {
  font-size: 1.55rem;
  line-height: 1;
}

.tax-date span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tax-body h4 {
  color: var(--metin);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.tax-body p {
  color: var(--metin-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.tax-meta {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(36, 80, 127, 0.08);
  color: var(--lacivert);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.tax-item-today .tax-meta {
  background: rgba(214, 69, 69, 0.12);
  color: var(--hata);
}

@media (max-width: 640px) {
  .tax-summary-grid {
    grid-template-columns: 1fr;
  }

  .tax-source-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .tax-panel-header,
  .tax-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .tax-alert-grid,
  .tax-task-card {
    grid-template-columns: 1fr;
  }

  .tax-reminder-layout {
    grid-template-columns: 1fr;
  }

  .tax-item {
    grid-template-columns: 1fr;
  }
}

/* ==== Şirket Kuruluş Asistanı ==== */
.setup-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(150px, 200px) minmax(150px, 200px);
  gap: 1rem;
  align-items: end;
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--golge-sm);
  margin-bottom: 1.2rem;
}

.form-grup select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--platin-acik);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--metin);
  background: #fbfcfe;
}

.form-grup select:focus {
  outline: none;
  border-color: var(--lacivert-acik);
  box-shadow: 0 0 0 4px rgba(36, 80, 127, 0.12);
  background: #fff;
}

.setup-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.setup-card {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--golge-sm);
}

.setup-card h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.setup-status-card p {
  color: var(--metin-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.setup-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.setup-list li {
  position: relative;
  color: var(--metin);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: 1.4rem;
}

.setup-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lacivert);
}

.setup-reminder-list {
  display: grid;
  gap: 0.85rem;
}

.setup-reminder-item {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 1rem;
}

.setup-reminder-item h4 {
  color: var(--metin);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.setup-reminder-item span {
  display: inline-flex;
  color: var(--lacivert);
  background: rgba(36, 80, 127, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.setup-reminder-item p {
  color: var(--metin-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.setup-saved-card {
  margin-top: 1.2rem;
}

.setup-saved-list {
  display: grid;
  gap: 0.85rem;
}

.setup-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--metin-soft);
  font-size: 0.9rem;
}

.setup-saved-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 1rem;
}

.setup-saved-item h4 {
  color: var(--metin);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.setup-saved-item p {
  color: var(--metin-soft);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.setup-saved-item span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(36, 80, 127, 0.08);
  color: var(--lacivert);
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.setup-saved-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.setup-cancel-btn {
  margin-top: 0;
}

/* ==== Mükellef Bilgileri ve Dijital Kasa ==== */
.security-notice {
  border: 1px solid rgba(36, 80, 127, 0.24);
  border-left: 6px solid var(--lacivert);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  padding: 1rem 1.2rem;
  box-shadow: var(--golge-sm);
  margin-bottom: 1.2rem;
}

.security-notice strong {
  display: block;
  color: var(--lacivert);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.security-notice p {
  color: var(--metin-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.taxpayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.taxpayer-workspace {
  display: grid;
  gap: 1.2rem;
}

.taxpayer-inner-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--golge-sm);
}

.taxpayer-inner-tab {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--metin-soft);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.72rem 0.95rem;
}

.taxpayer-inner-tab.aktif {
  background: var(--lacivert);
  color: #fff;
}

.taxpayer-tab-panel {
  display: none;
}

.taxpayer-tab-panel.aktif {
  display: block;
}

.taxpayer-form {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--golge-sm);
}

.taxpayer-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.taxpayer-form-header h3,
.taxpayer-list-panel h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
}

.taxpayer-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.taxpayer-global-password-toggle {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
}

.taxpayer-cancel-btn {
  max-width: 220px;
  margin-top: 0;
}

.taxpayer-card {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--golge-sm);
}

.taxpayer-card h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.field-help {
  display: block;
  color: var(--metin-soft);
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 0.4rem;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
  color: var(--lacivert);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.85rem 0.8rem;
}

.password-toggle:hover {
  border-color: var(--lacivert-acik);
  background: rgba(36, 80, 127, 0.06);
}

.vault-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.vault-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--lacivert);
}

.vault-check strong,
.vault-check small {
  display: block;
}

.vault-check strong {
  color: var(--metin);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.vault-check small {
  color: var(--metin-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.taxpayer-list-panel {
  background: #fff;
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--golge-sm);
}

.taxpayer-saved-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.taxpayer-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--metin-soft);
  font-size: 0.9rem;
}

.taxpayer-saved-card {
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 0;
  overflow: hidden;
}

.taxpayer-compact-row {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1.1fr) minmax(360px, 2.4fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 54px;
  padding: 0.45rem 0.65rem;
}

.taxpayer-row-select {
  display: flex;
  align-items: center;
  justify-content: center;
}

.taxpayer-row-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--lacivert);
}

.taxpayer-name-toggle {
  border: 0;
  background: transparent;
  color: var(--metin);
  cursor: pointer;
  font-family: var(--font);
  min-width: 0;
  padding: 0.25rem 0.35rem;
  text-align: left;
}

.taxpayer-name-toggle span,
.taxpayer-name-toggle small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxpayer-name-toggle span {
  color: var(--metin);
  font-size: 0.92rem;
  font-weight: 800;
}

.taxpayer-name-toggle small {
  color: var(--metin-soft);
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.taxpayer-name-toggle::after {
  content: "Aç";
  display: inline-flex;
  color: var(--lacivert);
  font-size: 0.68rem;
  font-weight: 800;
  margin-top: 0.18rem;
}

.taxpayer-detail-open .taxpayer-name-toggle::after {
  content: "Kapat";
}

.taxpayer-row-statuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 0.4rem;
  min-width: 0;
}

.declaration-quick-status {
  border: 1px solid rgba(214, 69, 69, 0.22);
  border-radius: 7px;
  background: rgba(214, 69, 69, 0.06);
  color: var(--hata);
  cursor: pointer;
  font-family: var(--font);
  min-height: 38px;
  padding: 0.34rem 0.45rem;
  text-align: left;
}

.declaration-quick-status strong,
.declaration-quick-status span {
  display: block;
  line-height: 1.15;
}

.declaration-quick-status strong {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.declaration-quick-status span {
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 0.16rem;
  white-space: nowrap;
}

.declaration-quick-done {
  border-color: rgba(46, 158, 91, 0.26);
  background: rgba(46, 158, 91, 0.1);
  color: var(--basari);
}

.taxpayer-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.taxpayer-icon-action {
  border: 1px solid rgba(36, 80, 127, 0.2);
  border-radius: 7px;
  background: #fff;
  color: var(--lacivert);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 900;
  min-width: 38px;
  min-height: 34px;
  padding: 0.35rem 0.45rem;
}

.taxpayer-icon-action:hover {
  border-color: var(--lacivert-acik);
  background: rgba(36, 80, 127, 0.06);
}

.taxpayer-detail-panel {
  border-top: 1px solid var(--platin-acik);
  background: #fff;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  animation: taxpayerSlideDown 0.18s ease-out;
}

.taxpayer-detail-panel[hidden] {
  display: none;
}

@keyframes taxpayerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.taxpayer-critical-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.taxpayer-detail-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 0;
}

.taxpayer-critical-grid div {
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fff;
  padding: 0.7rem;
}

.taxpayer-critical-grid span,
.taxpayer-critical-grid strong {
  display: block;
}

.taxpayer-critical-grid span {
  color: var(--metin-soft);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.taxpayer-critical-grid strong {
  color: var(--metin);
  font-size: 0.84rem;
  line-height: 1.35;
}

.taxpayer-declaration-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0;
}

.declaration-status {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(90px, 1fr);
  gap: 0.45rem;
  align-items: center;
}

.declaration-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(214, 69, 69, 0.28);
  border-radius: 8px;
  background: rgba(214, 69, 69, 0.08);
  color: var(--hata);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.58rem 0.85rem;
  min-height: 42px;
}

.declaration-chip-done {
  border-color: rgba(46, 158, 91, 0.28);
  background: rgba(46, 158, 91, 0.12);
  color: var(--basari);
}

.declaration-chip input {
  width: 22px;
  height: 22px;
  accent-color: var(--basari);
}

.declaration-chip-missing input {
  accent-color: var(--hata);
}

.declaration-note {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fff;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 0.58rem 0.65rem;
}

.declaration-note:focus {
  outline: none;
  border-color: var(--lacivert-acik);
  box-shadow: 0 0 0 3px rgba(36, 80, 127, 0.1);
}

.taxpayer-password-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.taxpayer-access-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.65rem;
}

.taxpayer-access-group {
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 0.65rem;
}

.taxpayer-access-group h5 {
  color: var(--lacivert);
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}

.taxpayer-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.taxpayer-delete-action {
  color: var(--hata);
}

.taxpayer-password-row {
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem 0.6rem;
}

.taxpayer-password-row span,
.taxpayer-password-row strong {
  display: block;
}

.taxpayer-password-row span {
  color: var(--metin-soft);
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.taxpayer-password-row strong {
  color: var(--metin);
  font-size: 0.78rem;
  word-break: break-word;
}

/* ==== e-Defter Süreç Takibi ==== */
.edefter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.edefter-summary {
  border: 1px solid rgba(36, 80, 127, 0.18);
  border-left: 5px solid var(--lacivert-acik);
  border-radius: 10px;
  background: #fff;
  color: var(--metin);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.55;
  padding: 0.95rem 1rem;
}

.edefter-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.edefter-alert-card,
.edefter-period-card {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
}

.edefter-alert-urgent {
  border-left: 5px solid var(--lacivert-acik);
}

.edefter-alert-copy {
  border-left: 5px solid var(--hata);
}

.edefter-alert-card h3,
.edefter-period-card h3 {
  color: var(--lacivert);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.edefter-alert-list,
.edefter-period-list,
.edefter-step-list {
  display: grid;
  gap: 0.75rem;
}

.edefter-alert-item,
.edefter-empty,
.edefter-period-note {
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--metin-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 0.72rem 0.8rem;
}

.edefter-alert-copy .edefter-alert-item {
  border-color: rgba(214, 69, 69, 0.24);
  background: rgba(214, 69, 69, 0.06);
  color: var(--hata);
  font-weight: 700;
}

.edefter-period-closed {
  border-color: rgba(46, 158, 91, 0.32);
  background: rgba(46, 158, 91, 0.05);
}

.edefter-period-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.edefter-period-header h3 {
  margin-bottom: 0.25rem;
}

.edefter-period-header p {
  color: var(--metin-soft);
  font-size: 0.86rem;
}

.edefter-status-badge {
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(214, 69, 69, 0.1);
  color: var(--hata);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
}

.edefter-status-done {
  background: rgba(46, 158, 91, 0.13);
  color: var(--basari);
}

.edefter-period-note {
  margin-bottom: 0.85rem;
}

.edefter-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.7rem;
  align-items: start;
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
}

.edefter-step-done {
  border-color: rgba(46, 158, 91, 0.28);
  background: rgba(46, 158, 91, 0.08);
}

.edefter-step input {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  accent-color: var(--basari);
}

.edefter-step span,
.edefter-step strong,
.edefter-step small {
  display: block;
}

.edefter-step span {
  color: var(--metin);
  font-size: 0.9rem;
  line-height: 1.42;
}

.edefter-step strong {
  color: var(--lacivert);
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}

.edefter-step small {
  color: var(--metin-soft);
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ==== WhatsApp PDF Gönderim ==== */
.whatsapp-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.whatsapp-form,
.whatsapp-log-panel {
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--golge-sm);
  padding: 1.2rem;
}

.whatsapp-form-header,
.whatsapp-log-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.whatsapp-form-header h3,
.whatsapp-log-header h3,
.whatsapp-preview h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
}

.whatsapp-form-header span {
  color: var(--metin-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.whatsapp-grid,
.whatsapp-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.85rem;
}

.whatsapp-file-grid {
  margin: 1rem 0;
}

.whatsapp-file-box {
  border: 1.5px dashed rgba(36, 80, 127, 0.28);
  border-radius: 10px;
  background: #fbfcfe;
  cursor: pointer;
  padding: 1rem;
}

.whatsapp-file-box strong,
.whatsapp-file-box span {
  display: block;
}

.whatsapp-file-box strong {
  color: var(--lacivert);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.whatsapp-file-box span {
  color: var(--metin-soft);
  font-size: 0.82rem;
  word-break: break-word;
}

.whatsapp-file-box input {
  display: none;
}

.whatsapp-preview {
  border: 1px solid var(--platin-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 1rem;
  margin-bottom: 1rem;
}

.whatsapp-preview pre,
.whatsapp-log-card pre {
  white-space: pre-wrap;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 0.7rem;
}

.whatsapp-status-list {
  display: grid;
  gap: 0.85rem;
}

.whatsapp-empty {
  border: 2px dashed var(--platin-acik);
  border-radius: 10px;
  color: var(--metin-soft);
  font-size: 0.9rem;
  padding: 1.4rem;
  text-align: center;
}

.whatsapp-log-card {
  border: 1px solid var(--platin-acik);
  border-left: 5px solid var(--lacivert-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 1rem;
}

.whatsapp-log-failed {
  border-left-color: var(--hata);
  background: rgba(214, 69, 69, 0.05);
}

.whatsapp-log-delivered {
  border-left-color: var(--basari);
  background: rgba(46, 158, 91, 0.06);
}

.whatsapp-log-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.whatsapp-log-top h4 {
  color: var(--metin);
  font-size: 0.98rem;
}

.whatsapp-log-top p {
  color: var(--metin-soft);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.whatsapp-log-top span {
  border-radius: 8px;
  background: rgba(36, 80, 127, 0.1);
  color: var(--lacivert);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.6rem;
}

.whatsapp-log-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.55rem;
}

.whatsapp-log-meta div {
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  background: #fff;
  color: var(--metin);
  font-size: 0.78rem;
  padding: 0.55rem 0.65rem;
  word-break: break-word;
}

.whatsapp-log-meta strong {
  display: block;
  color: var(--metin-soft);
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}

.whatsapp-log-card small {
  color: var(--metin-soft);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 0.6rem;
}

/* ==== Toplu Ödeme Hatırlatma ==== */
.bulk-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.bulk-actions strong {
  color: var(--lacivert);
  font-size: 0.9rem;
  margin-right: auto;
}

.bulk-actions .giris-btn {
  max-width: 220px;
  margin-top: 0;
}

.bulk-panel,
.bulk-preview-card,
.bulk-queue-panel {
  border: 1px solid var(--platin-acik);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--golge-sm);
  padding: 1rem;
}

.bulk-table-wrap {
  overflow-x: auto;
}

.bulk-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.bulk-table th,
.bulk-table td {
  border-bottom: 1px solid var(--platin-acik);
  color: var(--metin);
  font-size: 0.82rem;
  padding: 0.7rem;
  text-align: left;
  vertical-align: middle;
}

.bulk-table th {
  color: var(--lacivert);
  font-size: 0.76rem;
  font-weight: 800;
  background: #fbfcfe;
}

.bulk-table input,
.bulk-table select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--platin-acik);
  border-radius: 8px;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 0.5rem 0.55rem;
}

.bulk-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--basari);
}

.bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.bulk-empty-cell,
.bulk-empty {
  color: var(--metin-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.2rem;
}

.bulk-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.bulk-preview-card h3,
.bulk-queue-header h3 {
  color: var(--lacivert);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.bulk-preview-card pre,
.bulk-queue-item pre {
  white-space: pre-wrap;
  color: var(--metin);
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.5;
}

.bulk-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.bulk-queue-list {
  display: grid;
  gap: 0.75rem;
}

.bulk-queue-item {
  border: 1px solid var(--platin-acik);
  border-left: 5px solid var(--lacivert-acik);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0.85rem;
}

.bulk-queue-item h4 {
  color: var(--metin);
  font-size: 0.94rem;
}

.bulk-queue-item p {
  color: var(--metin-soft);
  font-size: 0.8rem;
  margin: 0.2rem 0 0.65rem;
}

@media (max-width: 760px) {
  .edefter-toolbar,
  .edefter-alert-grid,
  .edefter-period-header {
    grid-template-columns: 1fr;
  }

  .edefter-toolbar,
  .edefter-alert-grid {
    display: grid;
  }

  .edefter-period-header {
    display: grid;
  }

  .whatsapp-layout,
  .whatsapp-grid,
  .whatsapp-file-grid,
  .whatsapp-log-meta,
  .bulk-toolbar,
  .bulk-preview-grid,
  .dashboard-grid,
  .dashboard-main,
  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .bulk-actions {
    justify-content: stretch;
  }

  .bulk-actions .giris-btn {
    max-width: none;
  }
}

.taxpayer-missing-list {
  display: grid;
  gap: 0.85rem;
}

.taxpayer-missing-item {
  border: 1px solid rgba(214, 69, 69, 0.28);
  border-left: 5px solid var(--hata);
  border-radius: 10px;
  background: rgba(214, 69, 69, 0.06);
  padding: 1rem;
}

.taxpayer-missing-item h4 {
  color: var(--hata);
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

.taxpayer-missing-item p {
  color: var(--metin);
  font-size: 0.88rem;
  line-height: 1.5;
}

.taxpayer-ok {
  border: 1px solid rgba(46, 158, 91, 0.28);
  border-left: 5px solid var(--basari);
  border-radius: 10px;
  background: rgba(46, 158, 91, 0.08);
  color: var(--basari);
  padding: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .taxpayer-grid,
  .taxpayer-critical-grid,
  .taxpayer-declaration-panel,
  .taxpayer-password-panel,
  .taxpayer-access-panel {
    grid-template-columns: 1fr;
  }

  .declaration-status {
    grid-template-columns: 1fr;
  }

  .taxpayer-compact-row {
    grid-template-columns: 34px minmax(160px, 1fr) minmax(300px, 1.4fr) auto;
  }
}

@media (max-width: 640px) {
  .taxpayer-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .taxpayer-compact-row {
    grid-template-columns: 28px 1fr auto;
    gap: 0.45rem;
  }

  .taxpayer-row-statuses {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
  }

  .declaration-quick-status span {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .setup-controls,
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

.note-card p {
  color: var(--metin-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.note-card time {
  display: inline-flex;
  color: var(--lacivert);
  background: rgba(36, 80, 127, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.close-btn {
  border: none;
  background: transparent;
  color: var(--metin-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem;
}

.close-btn:hover {
  color: var(--hata);
}

#reminder-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 1000;
  width: min(340px, calc(100vw - 2rem));
}

.love-message-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 41, 63, 0.28);
}

.love-message-overlay[hidden] {
  display: none;
}

.love-message-box {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(214, 69, 69, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(18, 41, 63, 0.26);
  padding: 2.2rem 3rem;
  text-align: center;
  animation: loveMessageIn 0.22s ease-out;
}

.love-message-box p {
  color: var(--hata);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.love-message-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--metin-soft);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.love-message-close:hover {
  color: var(--hata);
}

@keyframes loveMessageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reminder-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(36, 80, 127, 0.2);
  border-left: 6px solid var(--lacivert);
  border-radius: 10px;
  padding: 1rem 2.4rem 1rem 1rem;
  box-shadow: 0 16px 36px rgba(26, 60, 99, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.reminder-card-important {
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
  border-color: rgba(214, 69, 69, 0.32);
  border-left-color: var(--hata);
}

.reminder-card-strong {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-color: rgba(36, 80, 127, 0.35);
  border-left-color: var(--lacivert-acik);
}

.reminder-card h3 {
  margin: 0 0 0.3rem 0;
  font-size: 0.98rem;
  color: var(--lacivert);
}

.reminder-card-important h3 {
  color: var(--hata);
}

.reminder-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--metin-soft);
}

.reminder-card .close-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .note-layout {
    grid-template-columns: 1fr;
  }
}

/* ================= MOBIL STABILITE KATMANI ================= */

img,
svg,
canvas,
video {
  max-width: 100%;
}

.panel-govde,
.ust-bar,
.yan-menu,
.icerik,
.bolum,
.dashboard-card,
.tax-panel,
.note-panel,
.note-list-panel,
.setup-saved-card,
.setup-card,
.taxpayer-form,
.taxpayer-card,
.taxpayer-list-panel,
  .edefter-period-card,
.whatsapp-form,
.whatsapp-log-panel,
.bulk-panel,
.bulk-preview-card,
.bulk-queue-panel {
  min-width: 0;
}

.bolum,
.dashboard-list-item,
.note-card,
.tax-task-card,
.tax-reminder-card,
.setup-saved-item,
.taxpayer-saved-card,
.edefter-alert-item,
.edefter-step,
.whatsapp-log-card,
.bulk-queue-item {
  overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.form-grup input,
.form-grup select,
.form-grup textarea,
.tax-controls select,
.setup-controls select,
.setup-controls input,
.taxpayer-form input,
.taxpayer-form select,
.taxpayer-form textarea,
.whatsapp-form input,
.whatsapp-form select,
.whatsapp-form textarea,
.bulk-toolbar select {
  width: 100%;
}

@media (max-width: 860px) {
  body {
    min-width: 320px;
  }

  .panel-govde {
    min-height: 100svh;
  }

  .ust-bar {
    position: sticky;
    top: 0;
    min-height: 60px;
    padding: 0.65rem 0.9rem;
  }

  .ust-bar .sayfa-baslik {
    min-width: 0;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .ust-bar .kullanici-kutu {
    gap: 0.5rem;
    flex: 0 0 auto;
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.86rem;
  }

  .cikis-btn {
    padding: 0.48rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .yan-menu {
    position: sticky;
    top: 60px;
    z-index: 4;
    gap: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .menu-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .menu-link .ikon {
    width: 18px;
    font-size: 0.98rem;
  }

  .icerik {
    padding: 1rem;
    overflow-x: hidden;
  }

  .bolum h2 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .bolum .bolum-alt {
    margin-bottom: 1rem;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .dashboard-card-header,
  .tax-panel-header,
  .tax-reminder-card,
  .setup-saved-item,
  .taxpayer-form-header,
  .taxpayer-saved-header,
  .whatsapp-form-header,
  .whatsapp-log-header,
  .whatsapp-log-top,
  .bulk-queue-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-stat-card,
  .dashboard-card,
  .note-panel,
  .note-list-panel,
  .tax-panel,
  .tax-summary-card,
  .tax-alert-card,
  .tax-official-card,
  .tax-reminder-form,
  .tax-reminder-list-panel,
  .setup-card,
  .setup-saved-card,
  .taxpayer-form,
  .taxpayer-card,
  .taxpayer-list-panel,
  .edefter-alert-card,
  .edefter-period-card,
  .whatsapp-form,
  .whatsapp-log-panel,
  .bulk-panel,
  .bulk-preview-card,
  .bulk-queue-panel,
  .ayar-kart {
    border-radius: 10px;
    padding: 1rem;
  }

  .tax-source-notice,
  .security-notice,
  .edefter-summary {
    padding: 0.85rem;
  }

  .tax-task-card time {
    min-height: 46px;
  }

  .tax-official-frame {
    min-height: 520px;
  }

  .taxpayer-inner-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .taxpayer-inner-tab {
    flex: 1 0 max-content;
    min-height: 44px;
    padding: 0.68rem 0.75rem;
    text-align: center;
  }

  .password-field {
    grid-template-columns: 1fr;
  }

  .password-toggle {
    min-height: 42px;
    padding: 0.68rem 0.75rem;
  }

  .taxpayer-saved-actions,
  .note-actions,
  .setup-saved-actions {
    flex-wrap: wrap;
  }

  .declaration-chip {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.88rem;
  }

  .declaration-note {
    min-height: 40px;
  }

  .edefter-step {
    align-items: flex-start;
  }

  .whatsapp-preview pre,
  .whatsapp-log-card pre,
  .bulk-preview-card pre,
  .bulk-queue-item pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .bulk-table-wrap {
    margin: 0 -0.3rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .bulk-table {
    min-width: 820px;
  }
}

@media (max-width: 520px) {
  .giris-sayfasi {
    min-height: 100svh;
  }

  .marka-panel {
    padding: 1.6rem 1rem;
  }

  .marka-panel .logo-alani img {
    max-width: 220px;
  }

  .form-panel {
    align-items: flex-start;
    padding: 1.2rem 1rem 2rem;
  }

  .giris-kart h1 {
    font-size: 1.35rem;
  }

  .ust-bar {
    gap: 0.6rem;
  }

  .ust-bar .kullanici-ad {
    display: none;
  }

  .yan-menu {
    padding: 0.45rem;
  }

  .menu-link {
    gap: 0.45rem;
    padding: 0.62rem 0.68rem;
    font-size: 0.76rem;
  }

  .icerik {
    padding: 0.75rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card strong {
    font-size: 1.45rem;
  }

  .dashboard-actions {
    gap: 0.5rem;
  }

  .tax-summary-card strong {
    font-size: 1.55rem;
  }

  .tax-task-card,
  .tax-item {
    padding: 0.75rem;
  }

  .tax-date {
    width: 100%;
    height: auto;
    min-height: 48px;
    flex-direction: row;
    gap: 0.4rem;
  }

  .tax-reminder-card {
    padding: 0.85rem;
  }

  .setup-controls {
    gap: 0.7rem;
  }

  .taxpayer-inner-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .taxpayer-inner-tab {
    width: 100%;
  }

  .taxpayer-critical-grid div,
  .taxpayer-password-row {
    padding: 0.65rem;
  }

  .taxpayer-list-header,
  .bulk-actions {
    gap: 0.65rem;
  }

  .taxpayer-global-password-toggle,
  .taxpayer-cancel-btn,
  .bulk-actions .giris-btn,
  .whatsapp-log-header .password-toggle,
  .bulk-queue-header .password-toggle {
    width: 100%;
    max-width: none;
  }

  .whatsapp-log-top span {
    width: fit-content;
  }

  #reminder-container {
    top: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .reminder-card {
    padding: 0.85rem 2.2rem 0.85rem 0.85rem;
  }

  .love-message-box {
    padding: 1.7rem 2rem;
  }

  .love-message-box p {
    font-size: 1.35rem;
  }
}
