:root {
  --bg: #0a0e13;
  --bg-card: #141a22;
  --bg-elev: #1d2530;
  --bg-hover: #232c39;
  --border: #2a3441;
  --border-light: #344050;
  --text: #e8edf3;
  --text-dim: #a8b4c2;
  --muted: #6b7785;
  --primary: #c8102e;          /* ASSUVA red */
  --primary-hover: #e01a3c;
  --primary-soft: rgba(200,16,46,0.12);
  --gold: #c8a85a;
  --gold-hover: #d4b96b;
  --danger: #e05151;
  --warn: #e8a13a;
  --ok: #4ec07a;
  --info: #4a90e2;
  --shadow: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-hover); }

.muted { color: var(--muted); }
.text-warn { color: var(--warn); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.ml-auto { margin-left: auto; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* ============ LAYOUT ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0d1218 0%, #141a22 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.sidebar-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(200,16,46,0.3));
}
.sidebar-brand .brand-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}
.sidebar-brand .brand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
.sidebar-nav li { margin: 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-nav a:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-left-color: var(--gold);
}
.sidebar-nav a.active {
  background: var(--primary-soft);
  color: var(--text);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-nav .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
}
.sidebar-nav .badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.sidebar-footer .user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sidebar-footer .user-role { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.sidebar-footer a.logout {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-elev);
  color: var(--text-dim);
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
  transition: all .15s;
}
.sidebar-footer a.logout:hover { background: var(--primary); color: #fff; }

.main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { max-width: 1500px; margin: 0; padding: 28px 36px; flex: 1; width: 100%; }

/* ============ MOBILE TOP BAR ============ */
.mobile-topbar {
  display: none; /* Desktop: gizli */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(90deg, #0d1218, #141a22);
  border-bottom: 2px solid var(--primary);
  z-index: 200;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.mobile-brand img { width: 32px; height: 32px; }
.mobile-brand strong { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.mobile-user { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s;
}
.hamburger:hover { border-color: var(--gold); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============ RESPONSIVE — TABLET (<=1024px) ============ */
@media (max-width: 1024px) {
  .sidebar { width: 230px; }
  .main { margin-left: 230px; }
  .container { padding: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ RESPONSIVE — TABLET & MOBILE (<=900px) ============ */
@media (max-width: 900px) {
  /* Mobil topbar göster */
  .mobile-topbar { display: flex; }

  /* Sidebar: gizli, slide-in */
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 300;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0,0,0,0.6);
  }

  /* Overlay göster */
  .sidebar-overlay { display: block; }

  /* Main — full width, topbar boşluğu */
  .main { margin-left: 0; padding-top: 56px; }
  .container { padding: 18px 16px; }

  /* Body scroll kilidi (menü açıkken) */
  body.menu-open { overflow: hidden; }

  /* Grid'ler tek sütun */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Tablolar — yatay scroll */
  .card > .table,
  .card > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .table { min-width: 600px; }

  /* Form grid tek sütun */
  .form-grid { grid-template-columns: 1fr; gap: 8px 0; }
  .form-grid .full { grid-column: 1; }

  /* Filter bar — stack */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-bar input,
  .filter-bar select { width: 100%; min-width: 0; }
  .filter-bar .ml-auto { margin-left: 0; margin-top: 8px; }

  /* Welcome Hero */
  .welcome-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
  }
  .welcome-clock { text-align: left; }

  /* Cashflow */
  .cashflow-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Info rows (lookup sayfası) */
  .info-row { flex-direction: column; gap: 2px; padding: 10px 0; }
  .info-row .label { width: auto; font-size: 10px; }

  /* Bottom nav — mobilde göster */
  .bottom-nav { display: flex; }
  .main { padding-bottom: 68px; }
}

/* ============ RESPONSIVE — MOBILE (<=768px) ============ */
@media (max-width: 768px) {
  .container { padding: 16px 14px; }

  /* Tipografi */
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 14px; }
  h1 + p.subtitle { font-size: 12px; margin-bottom: 16px; }

  /* Kartlar */
  .card { padding: 16px 14px; margin-bottom: 14px; border-radius: 8px; }
  .card.compact { padding: 12px; }

  .kpi-grid { grid-template-columns: 1fr; gap: 12px; }

  /* KPI kartları */
  .kpi-card { padding: 16px 18px; }
  .kpi-value { font-size: 22px; }
  .kpi-label { font-size: 10px; }

  /* Stat kartları */
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }

  .table th, .table td { padding: 9px 10px; font-size: 12px; }
  .table th { font-size: 10px; }

  /* Butonlar */
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn-block { width: 100%; }
  .btn-sm { padding: 7px 10px; font-size: 12px; }

  /* Alert */
  .alert { font-size: 12px; padding: 10px 14px; }

  /* Details */
  details { padding: 14px 16px; }

  /* Footer */
  footer.footer { padding: 16px; font-size: 11px; }

  .welcome-text .greeting { font-size: 11px; }
  .welcome-text .hero-title { font-size: 22px; }
  .welcome-text .welcome-msg { font-size: 13px; }
  .clock-time { font-size: 28px; }
  .clock-date { font-size: 10px; }

  /* Cashflow takvim */
  .cashflow-month { font-size: 18px; text-align: center; }
  .cashflow-calendar { gap: 3px; }
  .cf-header { font-size: 9px; padding: 6px 0; }
  .cf-cell {
    min-height: 70px;
    padding: 6px 4px;
    font-size: 11px;
  }
  .cf-day { font-size: 12px; }
  .cf-income, .cf-expense { font-size: 9px; }
  .cf-net { font-size: 8px; }
  .cashflow-legend { font-size: 10px; gap: 12px; }

  /* Login sayfası */
  .login-card { padding: 28px 24px; width: 100%; }
  .login-logo img { width: 80px; height: 80px; }
  .login-card h1 { font-size: 22px; letter-spacing: 3px; }

  .info-row .value { font-size: 14px; }

  /* Inline ödeme formu */
  .card .table td form[style*="display:flex"] {
    flex-direction: column;
    gap: 4px;
  }
  .card .table td form[style*="display:flex"] input { width: 100% !important; }
}

/* ============ RESPONSIVE — KÜÇÜK TELEFON (<=400px) ============ */
@media (max-width: 400px) {
  .container { padding: 12px 10px; }
  .stats-grid { grid-template-columns: 1fr; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 20px; }
  .stat-value { font-size: 16px; }
  .welcome-text .hero-title { font-size: 19px; }
  .clock-time { font-size: 24px; }

  /* Cashflow — çok dar ekranda gün numarası + sadece renkli dot */
  .cf-cell { min-height: 50px; padding: 4px 2px; }
  .cf-income, .cf-expense { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cf-net { display: none; }
  .cf-day { font-size: 11px; }
}

/* ============ BOTTOM NAV (Mobilde hızlı erişim çubuğu) ============ */
.bottom-nav {
  display: none; /* Masaüstünde gizli, 900px altında gösterilir */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #141a22, #0d1218);
  border-top: 1px solid var(--border);
  z-index: 200;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  min-width: 56px;
  text-align: center;
  transition: color .15s, background .15s;
}
.bottom-nav a .bnav-icon {
  font-size: 18px;
  line-height: 1;
}
.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--gold);
  background: rgba(200,168,90,0.08);
}
.bottom-nav a .bnav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  min-width: 14px;
  text-align: center;
}

/* ============ TYPOGRAPHY ============ */
h1 {
  font-size: 26px;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h1 + p.subtitle { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
h2 { font-size: 20px; margin: 0 0 16px; color: var(--text); }
h3 { font-size: 15px; margin: 0 0 14px; color: var(--text); font-weight: 600; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card.compact { padding: 16px 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }


/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-light); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
}
.stat-card.gold::before { background: var(--gold); }
.stat-card.warn::before { background: var(--warn); }
.stat-card.ok::before { background: var(--ok); }
.stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
  font-weight: 600;
}
.stat-value { font-size: 24px; font-weight: 700; color: #fff; }
.stat-value.small { font-size: 18px; }

/* ============ TABLES ============ */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: rgba(0,0,0,0.15);
}
.table tbody tr { transition: background .1s; }
.table tbody tr:hover td { background: rgba(255,255,255,0.025); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============ FORMS ============ */
label {
  display: block;
  margin: 14px 0 5px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=month], input[type=file], input[type=email], select, textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
textarea { resize: vertical; min-height: 70px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 18px;
  margin-top: 12px;
}
.form-grid .full { grid-column: 1 / -1; }

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select { width: auto; min-width: 160px; margin-top: 0; }
.filter-bar label { margin: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,16,46,0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); color: #fff; }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: var(--gold-hover); color: #1a1a1a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #f06060; color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-dim);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }

/* ============ ALERTS ============ */
.alert {
  padding: 13px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}
.alert-error { background: rgba(224,81,81,0.12); border-color: rgba(224,81,81,0.4); color: #ffb8b8; }
.alert-info { background: rgba(74,144,226,0.12); border-color: rgba(74,144,226,0.4); color: #9ec5f0; }
.alert-success { background: rgba(78,192,122,0.12); border-color: rgba(78,192,122,0.4); color: #9be0b0; }
.alert-warn { background: rgba(232,161,58,0.12); border-color: rgba(232,161,58,0.4); color: #f0c98a; }

/* ============ STATUS BADGES ============ */
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-pending { background: rgba(232,161,58,0.15); color: var(--warn); border: 1px solid var(--warn); }
.status-approved { background: rgba(74,144,226,0.15); color: var(--info); border: 1px solid var(--info); }
.status-fulfilled { background: rgba(78,192,122,0.15); color: var(--ok); border: 1px solid var(--ok); }
.status-rejected { background: rgba(224,81,81,0.15); color: var(--danger); border: 1px solid var(--danger); }

details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 20px;
}
details summary {
  cursor: pointer;
  padding: 4px 0;
  color: var(--gold);
  font-weight: 600;
  list-style: none;
}
details summary::before { content: '▸ '; transition: transform .15s; display: inline-block; }
details[open] summary::before { content: '▾ '; }
details[open] { padding-bottom: 22px; }

/* ============ LOGIN ============ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(200,16,46,0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0a0e13 0%, #141a22 100%);
  padding: 20px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 44px;
  width: 420px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 14px 14px 0 0;
}
.login-logo {
  text-align: center;
  margin-bottom: 22px;
}
.login-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(200,16,46,0.4));
}
.login-card h1 {
  color: var(--gold);
  margin: 0;
  font-size: 28px;
  letter-spacing: 4px;
  text-align: center;
  font-weight: 700;
}
.login-card .login-sub {
  text-align: center;
  margin: 6px 0 28px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

footer.footer {
  text-align: center;
  padding: 22px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 12px;
  margin-top: 30px;
}

/* Sale info card on lookup */
.info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .label { width: 180px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.info-row .value { flex: 1; color: var(--text); font-weight: 500; }

.warranty-active { color: var(--ok); font-weight: 700; }
.warranty-expired { color: var(--danger); font-weight: 700; }

/* ============ PATRON PANELİ ============ */
.welcome-hero {
  background: linear-gradient(135deg, #1a2129 0%, #232c39 50%, #1a2129 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 36px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.welcome-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}
.welcome-hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-text { flex: 1; position: relative; z-index: 1; }
.welcome-text .greeting {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.welcome-text .hero-title {
  font-size: 32px;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.welcome-text .welcome-msg {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 600px;
}
.welcome-text .welcome-msg strong { color: var(--gold); }

.welcome-clock {
  text-align: right;
  position: relative;
  z-index: 1;
}
.clock-time {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}
.clock-date {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============ KPI Cards (4 büyük kart) ============ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.kpi-primary::before { background: var(--primary); }
.kpi-gold::before { background: var(--gold); }
.kpi-info::before { background: var(--info); }
.kpi-warn::before { background: var(--warn); }

.kpi-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}
.kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 8px;
}
.kpi-meta {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.kpi-meta a { color: var(--gold); }

.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.trend-up { background: rgba(78,192,122,0.15); color: var(--ok); border: 1px solid rgba(78,192,122,0.3); }
.trend-down { background: rgba(224,81,81,0.15); color: var(--danger); border: 1px solid rgba(224,81,81,0.3); }

/* ============ CASHFLOW (Nakit Akış Takvimi) ============ */
.cashflow-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cashflow-month {
  font-size: 22px;
  margin: 0;
  color: var(--gold);
  text-transform: capitalize;
  letter-spacing: 1px;
  flex: 1;
  text-align: center;
}
.cashflow-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.cf-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  background: rgba(0,0,0,0.2);
  border-radius: 5px;
}
.cf-cell {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 8px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, transform .15s;
}
.cf-cell.cf-active {
  background: linear-gradient(135deg, rgba(78,192,122,0.05), rgba(232,161,58,0.05));
  border-color: var(--border-light);
}
.cf-cell.cf-active:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}
.cf-cell.cf-empty { background: transparent; border-color: transparent; }
.cf-day {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.cf-income {
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cf-expense {
  font-size: 11px;
  color: var(--warn);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cf-net {
  font-size: 10px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  font-variant-numeric: tabular-nums;
}
.cf-net-pos { color: var(--ok); }
.cf-net-neg { color: var(--danger); }

.cashflow-legend {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}
.cashflow-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-income { background: var(--ok); }
.dot-expense { background: var(--warn); }
.dot-net { background: var(--gold); }
