/* Mini Apartman — Tasarım Sistemi
   Açık tema · indigo (#4f46e5) + emerald (#10b981) · mobil öncelikli */

:root {
  --bg: #f5f6fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --border: #e5e7ef;
  --border-strong: #d4d8e6;
  --text: #1a1d2e;
  --text-soft: #51566b;
  --muted: #8a90a6;
  --primary: #4f46e5;
  --primary-soft: #eef0fe;
  --primary-deep: #3730a3;
  --accent: #10b981;
  --accent-soft: #d1fae5;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info: #0ea5e9;
  --info-soft: #e0f2fe;
  --shadow-sm: 0 1px 2px rgba(28,30,55,.05);
  --shadow: 0 6px 24px -8px rgba(28,30,55,.12), 0 2px 4px rgba(28,30,55,.04);
  --shadow-lg: 0 24px 48px -12px rgba(28,30,55,.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --gap: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(79,70,229,.07), transparent 60%),
    radial-gradient(700px 300px at 0% 0%, rgba(16,185,129,.05), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  border-radius: 11px; color: #fff;
  box-shadow: 0 6px 14px -4px rgba(79,70,229,.45);
}
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav a {
  padding: 8px 12px; color: var(--text-soft); border-radius: 9px;
  font-weight: 500; font-size: 14px; transition: all .15s;
}
.topnav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--text); }
.topnav a.active { background: var(--primary-soft); color: var(--primary-deep); }
.topnav a.ghost { color: var(--text-soft); }
.topnav a.primary-link {
  background: var(--primary); color: #fff !important; padding: 9px 16px;
  border-radius: 10px; box-shadow: 0 4px 10px -2px rgba(79,70,229,.4);
}
.topnav a.primary-link:hover { background: var(--primary-deep); }
.topnav .sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.topnav .me { color: var(--muted); font-size: 13px; padding: 0 6px; }

/* ===== Page ===== */
.page { padding: 28px 0 80px; }
h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.lead { color: var(--text-soft); font-size: 16px; margin: 0 0 20px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head .title h1 { margin-bottom: 4px; }
.page-head .title p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-tight { padding: 16px; }
.card + .card { margin-top: var(--gap); }
.card-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 22px; }
.card-body.tight { padding: 14px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg-soft); border-radius: 0 0 var(--radius) var(--radius); }

/* ===== Grid ===== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-stack { gap: 16px; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}

/* ===== KPI cards ===== */
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
}
.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.kpi .ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.kpi.accent .ico { background: var(--accent-soft); color: #047857; }
.kpi.warn .ico { background: var(--warn-soft); color: #92400e; }
.kpi.danger .ico { background: var(--danger-soft); color: #991b1b; }
.kpi.info .ico { background: var(--info-soft); color: #075985; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none;
  transition: transform .08s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -4px rgba(79,70,229,.45); }
.btn-primary:hover { background: var(--primary-deep); text-decoration: none; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -4px rgba(16,185,129,.45); }
.btn-accent:hover { background: #047857; text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ===== Forms ===== */
form .row { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.input, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
textarea { resize: vertical; min-height: 90px; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-group { grid-template-columns: 1fr; } }

/* ===== Auth pages ===== */
.auth-wrap {
  min-height: calc(100vh - 64px - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 30px 20px;
}
.auth-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px 32px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .lead { font-size: 14px; margin-bottom: 22px; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; min-width: 540px; }
table.t th, table.t td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table.t th { background: var(--bg-soft); font-weight: 600; color: var(--text-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--bg-soft); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Badges ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-ok { background: var(--accent-soft); color: #047857; }
.badge-warn { background: var(--warn-soft); color: #92400e; }
.badge-danger { background: var(--danger-soft); color: #991b1b; }
.badge-info { background: var(--info-soft); color: #075985; }
.badge-muted { background: var(--bg-soft); color: var(--text-soft); }

/* ===== Flash messages ===== */
.flash { padding: 12px 0; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--accent-soft); color: #065f46; }
.flash-error { background: var(--danger-soft); color: #991b1b; }
.flash-info { background: var(--info-soft); color: #075985; }
.flash-warn { background: var(--warn-soft); color: #92400e; }

/* ===== Empty state ===== */
.empty {
  text-align: center; padding: 40px 20px; color: var(--muted);
  border: 2px dashed var(--border); border-radius: var(--radius);
}
.empty .ico { font-size: 36px; opacity: .35; }
.empty h3 { color: var(--text-soft); margin-top: 8px; }

/* ===== Footer ===== */
.footer {
  margin-top: 40px; padding: 22px 0;
  border-top: 1px solid var(--border); background: var(--surface);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 6px;
}

/* ===== QR landing (public homepage) ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, #818cf8 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 48px 36px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(79,70,229,.45);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -100px, rgba(255,255,255,.18), transparent 60%);
}
.hero h1 { color: #fff; font-size: 32px; margin-bottom: 8px; position: relative; }
.hero p { color: rgba(255,255,255,.86); font-size: 16px; margin: 0 0 24px; position: relative; }
.hero .actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; position: relative; }
.hero .actions a { padding: 12px 22px; }

.public-feats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px;
}
@media (max-width: 720px) { .public-feats { grid-template-columns: 1fr; } }
.feat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.feat .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 12px;
}
.feat h3 { font-size: 16px; margin-bottom: 4px; }
.feat p { color: var(--text-soft); font-size: 14px; margin: 0; }

/* ===== Misc helpers ===== */
.row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mr-1 { margin-right: 8px !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }
.small { font-size: 13px; }

.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.amount.pos { color: #047857; }
.amount.neg { color: var(--danger); }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.list-clean li:last-child { border-bottom: 0; }

.qr-img {
  display: inline-block; padding: 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.qr-img img { display: block; }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 6px;
  background: var(--bg-soft); color: var(--text-soft);
  font-size: 12px; font-weight: 500;
}

@media (max-width: 720px) {
  .topnav a { padding: 7px 9px; font-size: 13.5px; }
  .topnav a.primary-link { padding: 8px 13px; }
  .topnav .me { display: none; }
  .topbar-inner { min-height: 58px; }
  .page { padding: 18px 0 60px; }
}

/* ============================================================
   ANASAYFA v2 — Pro tasarım
   ============================================================ */

/* ---------- HERO ---------- */
.hero-v2 {
  position: relative;
  border-radius: 28px;
  padding: 56px 44px;
  margin-top: 8px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(120% 100% at 100% 0%, #818cf8 0%, transparent 55%),
    radial-gradient(80% 80% at 0% 100%, #6366f1 0%, transparent 60%),
    linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
  box-shadow:
    0 40px 80px -30px rgba(67, 56, 202, .55),
    0 12px 30px -10px rgba(67, 56, 202, .35),
    inset 0 1px 0 rgba(255, 255, 255, .15);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55;
  animation: orbFloat 16s ease-in-out infinite;
}
.hero-bg .orb-1 { width: 280px; height: 280px; background: #a78bfa; top: -60px; right: -40px; animation-delay: 0s; }
.hero-bg .orb-2 { width: 220px; height: 220px; background: #34d399; bottom: -80px; left: -30px; animation-delay: -5s; }
.hero-bg .orb-3 { width: 180px; height: 180px; background: #f472b6; top: 40%; left: 35%; animation-delay: -10s; opacity: .25; }
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-30px) scale(1.05); }
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  align-items: center;
}
.hero-content > * { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
.hero-content > *:nth-child(1){ animation-delay: .05s }
.hero-content > *:nth-child(2){ animation-delay: .15s }
.hero-content > *:nth-child(3){ animation-delay: .25s }
.hero-content > *:nth-child(4){ animation-delay: .35s }
.hero-content > *:nth-child(5){ animation-delay: .45s }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 13px; font-weight: 600; color: #fff;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero-title {
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 16px;
}
.hero-title .grad {
  background: linear-gradient(90deg, #fde68a 0%, #34d399 50%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 17px; line-height: 1.6;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-hero-primary {
  background: #fff; color: #3730a3; border: 0;
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  border-radius: 12px; gap: 8px;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.btn-hero-primary:hover {
  text-decoration: none; color: #312e81;
  transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(0,0,0,.3);
}
.btn-hero-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,.30);
  padding: 14px 22px; font-size: 15px; font-weight: 600;
  border-radius: 12px; backdrop-filter: blur(10px);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.btn-hero-install {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff; border: 0;
  padding: 14px 22px; font-size: 15px; font-weight: 600;
  border-radius: 12px; gap: 8px;
  box-shadow: 0 12px 22px -8px rgba(16,185,129,.55);
  display: none; align-items: center;
}
.btn-hero-install:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }

.hero-trust {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 14px 22px; border-radius: 14px;
  background: rgba(255,255,255,.10); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
}
.trust-item { display: flex; flex-direction: column; line-height: 1.2; }
.trust-item strong { font-size: 18px; font-weight: 800; color: #fff; }
.trust-item span { font-size: 12px; color: rgba(255,255,255,.75); }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,.25); }

/* Hero visual */
.hero-visual { position: relative; min-height: 380px; }
.bldg-svg {
  width: 100%; height: auto; max-width: 420px;
  margin: 0 auto; display: block;
  animation: floatY 6s ease-in-out infinite;
}
.bldg-svg .win { animation: winBlink 4s ease-in-out infinite; transform-origin: center; animation-delay: var(--d, 0s); }
@keyframes winBlink { 0%,100%{opacity:1} 50%{opacity:.85} }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 18px 36px -10px rgba(15,17,40,.30);
  animation: floatY 5s ease-in-out infinite;
  min-width: 190px;
}
.float-card strong { display: block; font-size: 13.5px; color: var(--text); }
.float-card .fc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.float-card .fc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-1 { top: 30px; left: -10px; animation-delay: -1s; }
.fc-2 { bottom: 60px; right: -10px; animation-delay: -3s; }

@media (max-width: 920px) {
  .hero-v2 { padding: 40px 26px; border-radius: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 320px; order: -1; }
  .bldg-svg { max-width: 280px; }
  .fc-1 { left: -4px; top: 20px; }
  .fc-2 { right: -4px; bottom: 30px; }
  .hero-trust { gap: 14px; padding: 12px 18px; }
  .trust-item strong { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-v2 { padding: 32px 20px; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 0; }
  .float-card { min-width: 0; padding: 10px 12px; }
  .float-card strong { font-size: 12.5px; }
  .float-card .fc-sub { font-size: 11px; }
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: space-around;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: 0 10px 30px -16px rgba(28,30,55,.18);
}
.stats-strip .stat { text-align: center; flex: 1; }
.stats-strip .num {
  font-size: 36px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 60%, var(--accent) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stats-strip .num .pct { font-size: 22px; opacity: .8; }
.stats-strip .lbl { color: var(--muted); font-size: 13px; margin-top: 6px; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
@media (max-width: 560px) {
  .stats-strip { padding: 16px; gap: 8px; }
  .stats-strip .num { font-size: 26px; }
  .stat-divider { height: 28px; }
}

/* ---------- SECTION ---------- */
.sec { margin-top: 56px; }
.sec-head { margin-bottom: 26px; }
.sec-head .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.sec-head .sec-sub { color: var(--muted); font-size: 15px; margin: 0; max-width: 600px; }

/* ---------- FEATURES v2 ---------- */
.features-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feat-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px 24px;
  position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.feat-v2::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; opacity: 0; transition: opacity .25s;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.feat-v2:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(28,30,55,.22); }
.feat-v2:hover::before { opacity: 1; }
.feat-v2 .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--ico-bg); color: var(--ico-fg);
  transition: transform .25s;
}
.feat-v2:hover .ico { transform: scale(1.08) rotate(-3deg); }
.feat-v2 h3 { font-size: 16px; margin: 0 0 6px; }
.feat-v2 p { color: var(--text-soft); font-size: 14px; margin: 0; line-height: 1.55; }

.feat-v2.t-indigo  { --c1:#4f46e5; --c2:#818cf8; --ico-bg:#eef0fe; --ico-fg:#4f46e5; }
.feat-v2.t-emerald { --c1:#10b981; --c2:#34d399; --ico-bg:#d1fae5; --ico-fg:#047857; }
.feat-v2.t-amber   { --c1:#f59e0b; --c2:#fbbf24; --ico-bg:#fef3c7; --ico-fg:#92400e; }
.feat-v2.t-sky     { --c1:#0ea5e9; --c2:#38bdf8; --ico-bg:#e0f2fe; --ico-fg:#075985; }

@media (max-width: 980px) { .features-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-v2 { grid-template-columns: 1fr; } }

/* ---------- HOW IT WORKS ---------- */
.howto {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px; align-items: stretch;
}
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 22px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px -6px rgba(79,70,229,.5);
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--text-soft); margin: 0; font-size: 14px; line-height: 1.55; }
.step-arrow { display: flex; align-items: center; color: var(--border-strong); }
@media (max-width: 880px) {
  .howto { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}

/* ---------- ANNOUNCEMENTS v2 ---------- */
.tag-count {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: #047857;
  font-size: 12.5px; font-weight: 600;
}
.ann-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ann-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ann-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.ann-card.pinned {
  border-color: rgba(245,158,11,.4);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 60%);
}
.pin-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  color: #92400e; background: var(--warn-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.ann-card h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.35; }
.ann-card p {
  color: var(--text-soft); font-size: 13.5px; line-height: 1.55;
  margin: 0 0 14px; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ann-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.ann-date {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12.5px;
}
@media (max-width: 880px) { .ann-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ann-grid { grid-template-columns: 1fr; } }

/* ---------- FINAL CTA ---------- */
.final-cta {
  margin-top: 64px;
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,.22), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.4);
}
.final-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.cta-inner { position: relative; max-width: 560px; margin: 0 auto; }
.final-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -.02em; }
.final-cta p { color: rgba(255,255,255,.78); font-size: 16px; margin: 0 0 24px; }
.cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .final-cta { padding: 40px 22px; } .cta-actions .btn { flex: 1 1 auto; } }

/* ============================================================
   PWA "Uygulamayı Yükle" Butonu — login & register sayfaları
   ============================================================ */
.install-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 2px 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.install-divider::before,
.install-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7ef, transparent);
}

.install-pwa-btn {
  --ipb-c1: #4f46e5;
  --ipb-c2: #7c3aed;
  --ipb-c3: #ec4899;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ipb-c1) 0%, var(--ipb-c2) 55%, var(--ipb-c3) 100%);
  color: #fff;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 10px 24px -10px rgba(124, 58, 237, .55),
    0 4px 10px -4px rgba(236, 72, 153, .35);
  transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.install-pwa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255, 255, 255, .35) 48%,
    rgba(255, 255, 255, .12) 56%,
    transparent 72%);
  transform: translateX(-120%);
  z-index: 1;
  pointer-events: none;
  animation: ipb-sweep 4.5s ease-in-out 1.5s infinite;
}

.install-pwa-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 36px -12px rgba(124, 58, 237, .65),
    0 8px 18px -6px rgba(236, 72, 153, .45);
}
.install-pwa-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .55);
}
.install-pwa-btn:focus-visible {
  outline: 3px solid #c7d2fe;
  outline-offset: 2px;
}

.install-pwa-btn .ipb-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.install-pwa-btn .ipb-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.install-pwa-btn .ipb-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.install-pwa-btn .ipb-title {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -.005em;
  line-height: 1.15;
}
.install-pwa-btn .ipb-sub {
  font-weight: 500;
  font-size: 12.5px;
  opacity: .88;
  letter-spacing: .005em;
  line-height: 1.3;
}
.install-pwa-btn .ipb-arrow {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: .85;
  transition: transform .2s ease, opacity .2s ease;
}
.install-pwa-btn:hover .ipb-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Standalone modda (uygulama zaten kurulu) butonu gizle */
@media (display-mode: standalone) {
  .install-pwa-btn,
  .install-divider { display: none !important; }
}

/* Reduced motion: parıltı animasyonunu kapat */
@media (prefers-reduced-motion: reduce) {
  .install-pwa-btn::before { animation: none; }
  .install-pwa-btn { transition: none; }
}

@keyframes ipb-sweep {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ============================================================
   APP SHELL v3 — Sidebar + Modern Tasarım Devrimi
   ============================================================ */

/* Modern font ailesi (Plus Jakarta Sans + Inter fallback) */
body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
}
h1, h2, h3, h4, .brand-text, .side-brand-text, .topbar-title h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -.018em;
}

/* SVG icon helper */
.svg-icon {
  display: inline-block; flex-shrink: 0; vertical-align: middle;
  stroke: currentColor; fill: none;
}

/* ---------- App Shell konteyneri ---------- */
body.has-app-shell {
  background:
    radial-gradient(1200px 600px at 100% -200px, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(900px 500px at -200px 200px, rgba(16,185,129,.06), transparent 60%),
    var(--bg);
}
.app-main {
  margin-left: 268px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .25s cubic-bezier(.2,.8,.2,1);
}
.app-content { flex: 1; padding: 26px 0 60px; }

/* ---------- Sidebar ---------- */
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 268px; z-index: 50;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.side-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.side-brand-link {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text); font-weight: 700; font-size: 16px;
  text-decoration: none;
}
.side-brand-link:hover { text-decoration: none; }
.side-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 60%, #818cf8 100%);
  border-radius: 11px; color: #fff;
  box-shadow: 0 6px 14px -4px rgba(79,70,229,.5), inset 0 1px 0 rgba(255,255,255,.2);
}
.side-brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; letter-spacing: -.01em;
}
.side-close {
  display: none;
  appearance: none; border: 0; background: var(--bg-soft);
  width: 34px; height: 34px; border-radius: 9px;
  align-items: center; justify-content: center;
  color: var(--text-soft); cursor: pointer;
}
.side-close:hover { background: var(--border); color: var(--text); }

.side-nav {
  flex: 1; overflow-y: auto;
  padding: 12px 12px 18px;
}
.side-section { margin-bottom: 8px; }
.side-section-title {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
  padding: 14px 14px 6px;
}

.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 11px;
  color: var(--text-soft); font-weight: 500; font-size: 14.5px;
  position: relative; margin-bottom: 1px;
  text-decoration: none;
  transition: background .15s, color .15s, transform .12s;
}
.side-link:hover {
  background: var(--bg-soft); color: var(--text);
  text-decoration: none;
}
.side-link:active { transform: translateX(1px); }
.side-link .svg-icon { color: var(--muted); transition: color .15s; }
.side-link:hover .svg-icon { color: var(--primary); }
.side-link.active {
  background: linear-gradient(90deg, rgba(79,70,229,.10) 0%, rgba(99,102,241,.04) 100%);
  color: var(--primary-deep); font-weight: 600;
}
.side-link.active .svg-icon { color: var(--primary); }
.side-link.active::before {
  content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.side-link span { flex: 1; min-width: 0; }
.side-badge {
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; line-height: 20px; text-align: center;
  box-shadow: 0 4px 8px -2px rgba(239,68,68,.4);
}

.side-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.side-install {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff; font-weight: 600; font-size: 14px;
  border-radius: 11px;
  font-family: inherit;
  box-shadow: 0 8px 16px -6px rgba(124,58,237,.5);
  transition: transform .12s, box-shadow .15s;
}
.side-install:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -6px rgba(124,58,237,.55); }
.side-install .svg-icon { color: #fff; }
.side-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 11px;
  color: var(--text-soft); font-weight: 500; font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.side-logout:hover {
  background: var(--danger-soft); color: #991b1b;
  text-decoration: none;
}
.side-logout .svg-icon { color: var(--muted); }
.side-logout:hover .svg-icon { color: var(--danger); }

/* ---------- Topbar (mini, sidebar layout için) ---------- */
.app-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
}
.topbar-burger {
  display: none;
  appearance: none; border: 0;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft);
  align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
  transition: background .12s, color .12s;
}
.topbar-burger:hover { background: var(--border); color: var(--primary); }

.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 {
  font-size: 19px; font-weight: 700; margin: 0;
  letter-spacing: -.018em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title .topbar-sub {
  margin: 1px 0 0; font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar-actions {
  display: flex; align-items: center; gap: 10px;
}
.topbar-icon-btn {
  appearance: none; border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft); cursor: pointer;
  transition: all .15s;
  position: relative;
}
.topbar-icon-btn:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* ---------- Profile dropdown ---------- */
.profile-menu { position: relative; }
.profile-trigger {
  appearance: none; border: 1px solid transparent;
  background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  font-family: inherit; font-size: 14px;
  transition: background .15s, border-color .15s;
}
.profile-trigger:hover { background: var(--bg-soft); border-color: var(--border); }
.profile-trigger[aria-expanded="true"] { background: var(--bg-soft); border-color: var(--border); }
.profile-name { font-weight: 600; color: var(--text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chev { color: var(--muted); display: inline-flex; transition: transform .2s; }
.profile-trigger[aria-expanded="true"] .profile-chev { transform: rotate(180deg); }

.profile-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 248px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(15,23,42,.22), 0 6px 16px -8px rgba(15,23,42,.12);
  padding: 6px;
  display: none;
  z-index: 60;
  overflow: hidden;
}
.profile-dropdown[data-open] {
  display: block;
  animation: ddFadeIn .16s cubic-bezier(.2,.8,.2,1);
}
@keyframes ddFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.dd-head {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 12px 14px;
  border-bottom: 1px solid var(--border);
  margin: -6px -6px 6px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, transparent 100%);
}
.dd-head-info { min-width: 0; flex: 1; }
.dd-name { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-email { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-dropdown a, .profile-dropdown button {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text); background: transparent;
  border: 0; text-align: left; cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 500;
  transition: background .12s, color .12s;
}
.profile-dropdown a:hover, .profile-dropdown button:hover {
  background: var(--bg-soft); text-decoration: none; color: var(--text);
}
.profile-dropdown a .svg-icon { color: var(--muted); transition: color .12s; }
.profile-dropdown a:hover .svg-icon { color: var(--primary); }
.profile-dropdown .dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.profile-dropdown .dd-danger { color: var(--danger); }
.profile-dropdown .dd-danger:hover { background: var(--danger-soft); color: #991b1b; }
.profile-dropdown .dd-danger .svg-icon { color: var(--danger); }

/* ---------- Sidebar backdrop (mobil) ---------- */
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

/* ---------- App-shell footer (sidebar layout için) ---------- */
.app-footer { border-top: 1px solid var(--border); background: transparent; }

/* ---------- Container override (sidebar layout için) ---------- */
.has-app-shell .container { max-width: 1180px; padding: 0 28px; }

/* ---------- Buton iyileştirmeleri (modern hover) ---------- */
.btn { font-family: inherit; letter-spacing: -.005em; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -8px rgba(79,70,229,.55);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #047857 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -8px rgba(16,185,129,.55);
}

/* ---------- Card hover iyileştirmesi ---------- */
.card {
  transition: box-shadow .2s, border-color .2s, transform .12s;
}
.card.card-hoverable:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* ---------- Mobile/Tablet responsive ---------- */
@media (max-width: 1023px) {
  .app-main { margin-left: 0; }
  .app-sidebar {
    transform: translateX(-100%);
    width: 286px;
    box-shadow: 0 0 60px rgba(15,23,42,.18);
  }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  body.sidebar-open { overflow: hidden; }
  .topbar-burger { display: inline-flex; }
  .side-close { display: inline-flex; }
  .app-topbar { padding: 0 14px; }
  .has-app-shell .container { padding: 0 16px; }
  .app-content { padding: 18px 0 50px; }
}

@media (max-width: 600px) {
  .profile-name, .profile-chev { display: none; }
  .profile-trigger { padding: 4px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title .topbar-sub { font-size: 12px; }
  .topbar-icon-btn { width: 36px; height: 36px; }
  .app-topbar { gap: 8px; min-height: 60px; padding: 0 12px; }
  .profile-dropdown { width: calc(100vw - 24px); right: -8px; }
}

/* ---------- Scrollbar (sidebar) ---------- */
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.side-nav::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .app-sidebar, .app-main, .profile-dropdown, .sidebar-backdrop,
  .btn, .side-link, .card, .kpi { transition: none !important; animation: none !important; }
}
