/* ==========================================================================
   BÜTÇE PANELİ — MODERN RESPONSIVE, AUTH & SYNC STİLLER
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background-color: #060913;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

/* Tipografi & Yardımcılar */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.muted { color: #64748b; }
.small { font-size: 12px; }
.hidden { display: none !important; }

/* Renk Tonları */
.tone-green { color: #34d399 !important; }
.tone-red { color: #f87171 !important; }
.tone-amber { color: #fbbf24 !important; }
.tone-sky { color: #38bdf8 !important; }

/* ==========================================================================
   ANA KONTEYNER (RESPONSIVE WRAPPER)
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px) clamp(12px, 2vw, 24px) 80px;
}

/* ==========================================================================
   ÜST BAŞLIK & AY GEZİNİMİ & KULLANICI / KİLİT / SENKRONİZASYON
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e293b;
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

h1 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.icon-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.icon-btn:hover:not(:disabled) {
  background: #334155;
  border-color: #475569;
}

.icon-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.month-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 120px;
  text-align: center;
  display: inline-block;
  padding: 0 4px;
}

/* Senkronizasyon Durum Hapı */
.sync-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 4px 8px 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.sync-pill-synced  { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); color: #34d399; }
.sync-pill-syncing { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.08); color: #38bdf8; }
.sync-pill-pending { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); color: #fbbf24; }
.sync-pill-offline { border-color: #334155; background: rgba(100, 116, 139, 0.08); color: #94a3b8; }
.sync-pill-error   { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: #f87171; }

.sync-action-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.15s, transform 0.15s;
}

.sync-action-btn:hover:not(:disabled) {
  opacity: 1;
  transform: scale(1.1);
}

.sync-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.spin-anim {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Kullanıcı & Kilit Hapı */
.user-session-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 4px 10px;
  border-radius: 10px;
}

.user-name-tag {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.lock-pill-btn {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.lock-pill-btn:hover {
  background: rgba(248, 113, 113, 0.25);
  border-color: #f87171;
}

/* ==========================================================================
   BİLDİRİM BARI
   ========================================================================== */
.notif-cta {
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.notif-cta:hover {
  background: rgba(245, 158, 11, 0.14);
}

.notif-ok {
  margin-top: 12px;
  font-size: 12px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.file-label {
  cursor: pointer;
}

/* ==========================================================================
   ÜST DETAYLI ÖZET KARTLARI (DASHBOARD GRID)
   ========================================================================== */
.summary-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 640px) {
  .summary-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .summary-dashboard {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.dash-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, border-color 0.15s;
}

.dash-card:hover {
  border-color: #334155;
}

.dash-card-genel { border-top: 3px solid #38bdf8; }
.dash-card-card  { border-top: 3px solid #fbbf24; }
.dash-card-loan  { border-top: 3px solid #60a5fa; }
.dash-card-bill  { border-top: 3px solid #34d399; }

.dash-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-icon {
  font-size: 16px;
}

.dash-title {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-metrics-grid {
  display: grid;
  gap: 10px;
}

.dash-metrics-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.dash-metrics-grid.cols-4 {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 480px) and (max-width: 639px) {
  .dash-metrics-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-metric-item {
  display: flex;
  flex-direction: column;
  background: rgba(2, 6, 23, 0.4);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.dash-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  color: #f1f5f9;
}

.dash-value small {
  font-size: 10px;
  font-weight: 400;
  color: #64748b;
  margin-left: 2px;
}

.dash-sub-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dash-sub-row strong {
  color: #34d399;
}

/* ==========================================================================
   KİŞİ BAZLI ÖDEME BARI
   ========================================================================== */
.person-bars-wrapper {
  margin-top: 18px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
}

.person-bars-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 12px;
}

.person-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .person-bars {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.person-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(2, 6, 23, 0.4);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.person-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid;
}

.p-remzi {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.p-feri {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

.p-ortak {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.bar-track {
  height: 6px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fill-sky { background: #38bdf8; }
.fill-green { background: #34d399; }

/* ==========================================================================
   KATEGORİLER VE HARCAMA KARTLARI (RESPONSIVE GRID)
   ========================================================================== */
.sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.section {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
}

.section-head-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-icon {
  font-size: 16px;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.cat-count {
  font-size: 12px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.add-btn {
  font-size: 12px;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.add-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.empty {
  font-size: 12px;
  color: #64748b;
  border: 1px dashed #1e293b;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  background: rgba(2, 6, 23, 0.3);
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   TEKİL KALEM KARTI (ITEM COMPONENT)
   ========================================================================== */
.item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-left: 3px solid #1e293b;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.item:focus-within {
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.item.cat-card { border-left-color: #fbbf24; }
.item.cat-loan { border-left-color: #38bdf8; }
.item.cat-bill { border-left-color: #34d399; }

.item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed #334155;
  border-radius: 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 0;
  outline: none;
  flex: 1;
  min-width: 0;
  transition: border-color 0.15s;
}

.name-input:focus {
  border-bottom-color: #38bdf8;
}

.name-input::placeholder {
  color: #475569;
  font-weight: 400;
}

.person-select {
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  padding: 4px 6px;
  border: 1px solid;
  background: #020617;
  color: #e2e8f0;
  cursor: pointer;
  outline: none;
}

.del-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 15px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.del-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Ödeme Türü (Segmented Buttons) */
.paytype-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  border: 1px solid #1e293b;
  border-radius: 6px;
  overflow: hidden;
  background: #020617;
}

.seg-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.seg-btn + .seg-btn {
  border-left: 1px solid #1e293b;
}

.seg-active-amber {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

.seg-active-green {
  background: rgba(52, 211, 153, 0.2) !important;
  color: #34d399 !important;
}

/* Form Giriş Alanları Grid */
.field-grid {
  display: grid;
  gap: 8px;
}

.field-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.field-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.field {
  display: flex;
  flex-direction: column;
}

.field span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 600;
}

.field input {
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

/* Tarih Satırı */
.date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-row input[type="date"] {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #cbd5e1;
  outline: none;
  cursor: pointer;
}

.date-row input[type="date"]:focus {
  border-color: #38bdf8;
}

.cal-ic {
  font-size: 13px;
}

.date-badge-container {
  display: inline-flex;
}

.badge {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  border: 1px solid;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.badge-red   { color: #f87171; background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); }
.badge-amber { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.badge-slate { color: #94a3b8; background: rgba(148, 163, 184, 0.1); border-color: #334155; }
.badge-muted { color: #64748b; background: rgba(100, 116, 139, 0.05); border-color: #1e293b; }

/* Kart Alt Kısmı */
.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.row-remaining-val {
  font-weight: 700;
}

.paid-btn {
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.paid-btn:hover:not(:disabled) {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #475569;
}

.paid-btn-done {
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
  background: rgba(52, 211, 153, 0.12) !important;
  cursor: default !important;
}

/* ==========================================================================
   KİLİT & GİRİŞ EKRANI (AUTH SCREENS)
   ========================================================================== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #0f172a 0%, #060913 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInAuth 0.3s ease-out;
}

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

.auth-card.shake-anim {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.auth-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
}

.auth-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.auth-user-badge {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-field input {
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: #38bdf8;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper input {
  padding-right: 40px;
}

.pwd-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  opacity: 0.7;
}

.pwd-toggle:hover {
  opacity: 1;
}

.auth-error-msg {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s, transform 0.1s;
}

.auth-submit-btn:hover {
  background: #0369a1;
}

.auth-submit-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   MODAL (ŞİFRE DEĞİŞTİRME)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
}

.modal-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: #f1f5f9;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-secondary {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #334155;
}

/* ==========================================================================
   ALT AKSİYONLAR VE BUTONLAR
   ========================================================================== */
.app-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.new-month-btn {
  width: 100%;
  max-width: 480px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.15s;
}

.new-month-btn:hover {
  background: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
}

.backup-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
