@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a1f1a;
  --ink-2: #143c31;
  --brand: #0d766d;
  --brand-2: #16b8a6;
  --brand-dark: #0a5d55;
  --brand-soft: #e7f5ef;
  --lime: #d9f36b;
  --lime-dark: #c2e64a;
  --bg: #f2f4ed;
  --surface: #ffffff;
  --surface-2: #f7f9f3;
  --line: #e5e9df;
  --line-strong: #d2d9cb;
  --text: #15221d;
  --muted: #64736c;
  --muted-2: #93a19a;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #b45309;
  --amber-soft: #fff7ed;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --shadow: 0 1px 2px rgba(10, 31, 26, 0.03), 0 12px 30px rgba(10, 31, 26, 0.05);
  --shadow-lg: 0 30px 80px rgba(10, 31, 26, 0.2);
  --radius: 20px;
  --radius-sm: 13px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font: var(--font-body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(22, 184, 166, 0.08), transparent 58%),
    radial-gradient(900px 500px at -10% 5%, rgba(217, 243, 107, 0.14), transparent 55%),
    linear-gradient(180deg, #f6f7f1 0%, #f1f3ec 70%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, h4, .brand-name, .page-title, .stat-value, .modal-head h3,
.auth-head h2, .auth-brand-name, .panel-title, .quick-action strong, .display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.hidden { display: none !important; }

/* Yükleniyor */
.app-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.app-loading p { font-size: 14px; }

/* Marka */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, #e4ff9d 0%, var(--lime) 45%, #b8e94d 100%);
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px; line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(200, 241, 105, 0.28);
}
.brand-mark-lg { width: 54px; height: 54px; border-radius: 17px; font-size: 32px; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: inherit; }
.brand-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

/* Giriş / kurulum */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  background: var(--surface);
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 54px;
  color: #f2f8f4;
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 241, 105, 0.16), transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(20, 184, 166, 0.26), transparent 40%),
    linear-gradient(150deg, #0b1f1a 0%, #0e352c 55%, #0b4f45 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.auth-visual::after {
  content: "";
  position: absolute;
  right: -110px; bottom: -130px;
  width: 370px; height: 370px;
  border: 1px solid rgba(200, 241, 105, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(200, 241, 105, 0.04), 0 0 0 88px rgba(200, 241, 105, 0.03);
}
.auth-visual .brand { position: relative; z-index: 1; }
.auth-visual .brand-name { color: #fff; }
.auth-visual .brand-tag { color: rgba(255,255,255,0.55); }
.auth-hero { position: relative; z-index: 1; max-width: 480px; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
}
.auth-hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.auth-hero p { margin-top: 20px; color: rgba(244, 250, 246, 0.72); font-size: 16px; max-width: 430px; }
.auth-features { display: flex; flex-direction: column; gap: 13px; margin-top: 32px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(244,250,246,0.9); }
.auth-feature .feature-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(200, 241, 105, 0.12); color: var(--lime);
}
.auth-visual-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,0.42); }
.auth-panel {
  padding: 48px 36px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(200, 241, 105, 0.12), transparent 34%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 470px; }
.auth-card > .brand { display: none; }
.auth-head { margin-bottom: 26px; }
.auth-head h2 { font-size: 29px; letter-spacing: -0.035em; line-height: 1.15; }
.auth-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-submit { width: 100%; justify-content: center; padding: 13px 18px; margin-top: 4px; }
.auth-foot { margin-top: 24px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.demo-box {
  margin-top: 22px; padding: 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.65);
}
.demo-box h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.demo-account {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  transition: background 0.15s ease;
}
.demo-account:hover { background: var(--brand-soft); }
.demo-account + .demo-account { margin-top: 3px; }
.demo-account strong { display: block; font-size: 13px; }
.demo-account span { display: block; font-size: 11px; color: var(--muted); }
.demo-account .demo-fill { font-size: 11px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute; right: 7px; top: 7px;
  width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  display: grid; place-items: center;
}
.password-toggle:hover { background: var(--surface-2); color: var(--text); }

/* Formlar */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 11.5px; font-weight: 700; color: #3d4a45; letter-spacing: 0.01em; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfcf8;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bfc9b8; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(13, 118, 109, 0.12);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--surface-2); color: var(--muted); cursor: not-allowed;
}
.field .hint { font-size: 11px; color: var(--muted); line-height: 1.45; }
.field .err { font-size: 12px; color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title { font-size: 12px; font-family: var(--font-display); font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; }
.check-row input[type="checkbox"], .check-row input[type="radio"] { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); }
.check-row span small { display: block; color: var(--muted); font-size: 11.5px; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 10px 16px; font-size: 12.8px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: -0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #123a2f 0%, #081f19 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 31, 26, 0.18);
}
.btn-primary:hover { background: linear-gradient(180deg, #1a4c3d 0%, #0b2a22 100%); box-shadow: 0 10px 22px rgba(10, 31, 26, 0.24); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-lime {
  background: linear-gradient(180deg, #e4fa8a 0%, var(--lime) 100%);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(217, 243, 107, 0.3);
}
.btn-lime:hover { background: linear-gradient(180deg, #ecffa1 0%, #d0ed55 100%); box-shadow: 0 12px 26px rgba(217, 243, 107, 0.38); }
.btn-secondary { background: rgba(255,255,255,0.9); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface); border-color: #b9c4b4; box-shadow: 0 4px 10px rgba(10,31,26,0.06); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-ghost { background: var(--red-soft); color: var(--red); }
.btn-danger-ghost:hover { background: #fee2e2; }
.btn-sm { padding: 7px 11px; font-size: 11.5px; border-radius: 10px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.btn-icon svg { width: 17px; height: 17px; }
.btn-block { width: 100%; }

/* Ana kabuk */
.shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background:
    radial-gradient(520px 340px at 50% -10%, rgba(217, 243, 107, 0.12), transparent 62%),
    linear-gradient(180deg, #081b16 0%, #0a241d 48%, #081c17 100%);
  color: #dbe8e2;
  padding: 20px 14px 14px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
  z-index: 80;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 0; }
.sidebar .brand-name { color: #fff; font-size: 23px; letter-spacing: -0.05em; }
.sidebar .brand-tag { color: rgba(255,255,255,0.42); font-size: 9px; }
.sidebar-close { display: none; background: transparent; border: 0; color: #cfe1d8; }
.sidebar-workspace {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 4px 0; padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.ws-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(217,243,107,0.12); color: var(--lime); flex: 0 0 auto; }
.ws-mark svg { width: 14px; height: 14px; }
.sidebar-workspace strong { display: block; font-size: 11px; color: #fff; font-family: var(--font-display); }
.sidebar-workspace div > span { display: block; font-size: 9.5px; color: rgba(255,255,255,0.42); }
.ws-live { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,243,107,0.12); }
.sidebar-cta {
  display: flex; align-items: center; gap: 9px; width: 100%;
  margin: 0 2px; padding: 10px 11px;
  border: 1px solid rgba(217,243,107,0.22); border-radius: 12px;
  background: linear-gradient(140deg, rgba(217,243,107,0.16), rgba(217,243,107,0.04));
  color: #fff; text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar-cta:hover { background: linear-gradient(140deg, rgba(217,243,107,0.24), rgba(217,243,107,0.08)); border-color: rgba(217,243,107,0.4); }
.sidebar-cta-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; }
.sidebar-cta-icon svg { width: 15px; height: 15px; }
.sidebar-cta > span:nth-child(2) { flex: 1; min-width: 0; }
.sidebar-cta strong { display: block; font-size: 11.5px; font-family: var(--font-display); }
.sidebar-cta span span { display: block; font-size: 9.5px; color: rgba(255,255,255,0.48); }
.sidebar-cta > svg { width: 15px; height: 15px; color: rgba(255,255,255,0.45); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.nav-section {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 10px 4px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); font-weight: 700;
}
.nav-section::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,0.07); }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 11px;
  color: rgba(235, 245, 239, 0.66);
  font-size: 13px; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.nav-link.active {
  background: linear-gradient(90deg, rgba(217, 243, 107, 0.16) 0%, rgba(217, 243, 107, 0.03) 100%);
  color: var(--lime);
  box-shadow: inset 2px 0 0 var(--lime);
}
.nav-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-active-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,243,107,0.1); }
.nav-link .nav-count {
  margin-left: auto; font-size: 10px; background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.7); border-radius: 20px; padding: 1px 7px;
}
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.user-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 13px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
}
.user-mini .user-mini-text { min-width: 0; }
.user-mini strong { display: block; color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); }
.user-mini span { display: block; color: rgba(255,255,255,0.45); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini .btn-icon { margin-left: auto; color: rgba(255,255,255,0.6); }
.user-mini .btn-icon:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-note { font-size: 10px; color: rgba(255,255,255,0.28); padding: 0 10px; line-height: 1.5; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 30px;
  background: rgba(246, 247, 241, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(229, 233, 223, 0.8);
}
.mobile-toggle { display: none; }
.topbar-title { min-width: 0; }
.topbar-title h1 { font-family: var(--font-display); font-size: 18px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.topbar-title p { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.today-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  border-radius: 11px; padding: 8px 11px;
  font-size: 11px; color: var(--muted);
}
.today-chip svg { width: 14px; height: 14px; }
.topbar-user {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  border-radius: 12px; padding: 4px 10px 4px 5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.topbar-user:hover { border-color: var(--line-strong); background: var(--surface); }
.topbar-user .avatar { width: 28px; height: 28px; font-size: 10px; }
.topbar-user-text { line-height: 1.2; }
.topbar-user-text strong { display: block; font-size: 11.5px; font-family: var(--font-display); }
.topbar-user-text span { display: block; font-size: 10px; color: var(--muted); }
.content { padding: 26px 30px 50px; max-width: 1520px; width: 100%; margin: 0 auto; animation: contentIn 0.24s ease; }
@keyframes contentIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.content > .page-head:first-child { margin-top: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.page-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mobile-tabbar { display: none; }

/* Grid ve kartlar */
.grid { display: grid; gap: 15px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 19px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.stat-card > * { position: relative; z-index: 1; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(10, 31, 26, 0.09); border-color: #d6e0d2; }
.stat-card.accent {
  background:
    radial-gradient(circle at 90% 4%, rgba(217, 243, 107, 0.24), transparent 40%),
    linear-gradient(150deg, #081f19 0%, #0e3a2e 62%, #0a4a40 100%);
  color: #fff; border-color: #0b332b;
}
.stat-card.accent::after {
  content: ""; position: absolute; right: -60px; bottom: -92px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(217, 243, 107, 0.16);
  box-shadow: 0 0 0 30px rgba(217, 243, 107, 0.035);
  pointer-events: none;
}
.stat-card.accent:hover { box-shadow: 0 22px 50px rgba(10, 31, 26, 0.28); }
.stat-card.accent .stat-label, .stat-card.accent .stat-foot { color: rgba(255,255,255,0.64); }
.stat-card.accent .stat-icon { background: rgba(217,243,107,0.16); color: var(--lime); border-color: rgba(217,243,107,0.12); }
.stat-card.accent .trend.up { background: rgba(217,243,107,0.13); color: var(--lime); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.stat-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #eff9f5 0%, var(--brand-soft) 100%);
  color: var(--brand);
  border: 1px solid rgba(13, 118, 109, 0.09);
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.045em; margin-top: 10px; line-height: 1.05; }
.stat-value small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.stat-foot { margin-top: 9px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.trend svg { width: 12px; height: 12px; }
.trend.up { background: #eaf7ea; color: #2b7a3b; }
.trend.down { background: var(--red-soft); color: var(--red); }
.trend.flat { background: var(--surface-2); color: var(--muted); }
.stat-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-mini { background: rgba(255,255,255,0.07); border-radius: 9px; padding: 7px 9px; }
.stat-mini span { display: block; font-size: 9px; color: rgba(255,255,255,0.55); }
.stat-mini strong { display: block; font-size: 11.5px; margin-top: 2px; color: #fff; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 0;
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 0;
}
.panel-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.panel-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.panel-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.panel-body { padding: 16px 20px 20px; }
.panel-body.flush { padding: 0; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.split-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 15px; }
.stack { display: flex; flex-direction: column; gap: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-variant-numeric: tabular-nums; }
.strong { font-weight: 800; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.wrap { flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spacer { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }

/* Filtre çubuğu */
.filterbar {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(10,31,26,0.02);
  backdrop-filter: blur(8px);
}
.filter-grid { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.filter-grid .field { min-width: 130px; flex: 1 1 130px; }
.filter-grid .field.grow { flex: 1 1 220px; }
.filter-grid .field.wide { flex: 1 1 260px; }
.filter-grid .field.narrow { flex: 0 1 110px; }
.filter-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.preset-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.preset-btn {
  border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: 10.5px; font-weight: 700;
  border-radius: 9px; padding: 6px 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.preset-btn:hover { background: var(--brand-soft); color: var(--brand); }
.preset-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 4px 10px rgba(10,31,26,0.16); }

/* Tablolar */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 20px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.075em;
  color: #5c6b64; font-weight: 800;
  padding: 12px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
  background: linear-gradient(180deg, #f8faf5 0%, #eef3eb 100%);
}
.data-table th:first-child { border-top-left-radius: 10px; padding-left: 18px; }
.data-table th:last-child { border-top-right-radius: 10px; padding-right: 18px; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #edf1ea; vertical-align: middle; transition: background 0.12s ease; }
.data-table td:first-child { padding-left: 18px; }
.data-table td:last-child { padding-right: 18px; }
.data-table th { overflow: hidden; text-overflow: ellipsis; }
.data-table td { overflow-wrap: anywhere; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafcf7; }
.data-table tbody tr:focus-within td { background: #f5faf2; }
.data-table .nowrap { white-space: nowrap; }
.data-table .desc-cell { min-width: 180px; max-width: 320px; }
.data-table .desc-cell strong { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table .desc-cell span { display: block; color: var(--muted); font-size: 10.5px; }
.data-table .actions-cell { text-align: right; white-space: nowrap; }
.data-table tfoot td { font-weight: 800; background: var(--surface-2); }
.data-table.compact td, .data-table.compact th { padding: 9px 12px; }
.data-table.compact td:first-child, .data-table.compact th:first-child { padding-left: 14px; }
.data-table.compact td:last-child, .data-table.compact th:last-child { padding-right: 14px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-actions .btn-icon { width: 29px; height: 29px; }
.row-actions .btn-icon svg { width: 15px; height: 15px; }
.table-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* Rozetler */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 20px; padding: 3px 8px;
  font-size: 10.5px; font-weight: 750; line-height: 1.5;
  white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { background: #e9f7ec; color: #217a37; }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: #f1f4ef; color: #63736c; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-purple { background: #f3efff; color: #6d4bd1; }
.badge-lime { background: #f1fbdc; color: #4b7611; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px 7px; font-size: 10.5px; color: var(--muted);
}
.chip svg { width: 12px; height: 12px; }

/* Kullanıcı hücresi */
.user-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 800; flex: 0 0 auto;
  border: 1px solid rgba(15,118,110,0.12);
}
.avatar.sm { width: 26px; height: 26px; font-size: 9px; }
.avatar.lime { background: #f1fbdc; color: #4b7611; }
.avatar.amber { background: var(--amber-soft); color: var(--amber); }
.avatar.blue { background: var(--blue-soft); color: var(--blue); }
.avatar.purple { background: #f3efff; color: #6d4bd1; }
.user-cell-text { min-width: 0; }
.user-cell-text strong { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-cell-text span { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Boş durum */
.empty { padding: 34px 20px; text-align: center; }
.empty-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; margin: 0 auto 11px;
  background: var(--brand-soft); color: var(--brand);
}
.empty-icon svg { width: 21px; height: 21px; }
.empty h4 { font-size: 13.5px; margin-bottom: 4px; }
.empty p { font-size: 12px; color: var(--muted); max-width: 340px; margin: 0 auto; line-height: 1.55; }
.empty .btn { margin-top: 13px; }

/* Grafik */
.chart-box { padding: 8px 0 0; }
.bar-chart {
  display: flex; align-items: stretch; gap: 5px; height: 185px; padding-top: 10px;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), rgba(229, 233, 223, 0.7) calc(25% - 1px), rgba(229, 233, 223, 0.7) 25%);
  background-size: 100% 100%;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 5px; min-width: 2px; position: relative; }
.bar-col:hover .bar-fill { filter: brightness(1.08); }
.bar-fill {
  background: linear-gradient(180deg, #2ed3bd 0%, #0d766d 100%);
  border-radius: 6px 6px 2px 2px;
  min-height: 3px; transition: filter 0.15s ease;
}
.bar-fill.alt { background: linear-gradient(180deg, #e6fa93 0%, var(--lime) 100%); }
.bar-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 9.5px; color: var(--muted-2); }
.chart-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--brand-2); }
.breakdown-list { display: flex; flex-direction: column; gap: 10px; }
.breakdown-row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.breakdown-row .bd-name { width: 88px; flex: 0 0 auto; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breakdown-row .bd-track { flex: 1; height: 7px; background: var(--surface-2); border-radius: 10px; overflow: hidden; display: block; }
.breakdown-row .bd-fill { display: block; height: 100%; border-radius: 10px; background: var(--brand-2); }
.breakdown-row .bd-val { width: 74px; text-align: right; font-weight: 750; font-size: 11px; white-space: nowrap; }

/* Sekmeler */
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 10px 13px; font-size: 12.5px; font-weight: 700;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Yarışmalar */
.competition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.competition-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.competition-card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  background: var(--lime); border-radius: 0 4px 4px 0;
}
.competition-card.done::before { background: var(--line-strong); }
.comp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-left: 6px; }
.comp-top h3 { font-size: 15px; letter-spacing: -0.015em; }
.comp-desc { color: var(--muted); font-size: 12px; line-height: 1.5; padding-left: 6px; }
.comp-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); padding-left: 6px; }
.comp-meta svg { width: 12px; height: 12px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.progress.sm { height: 5px; }
.progress-bar { height: 100%; border-radius: 10px; background: var(--brand-2); transition: width 0.4s ease; }
.progress-bar.alt { background: var(--lime); }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 9px; font-size: 12px;
}
.rank-row:nth-child(odd) { background: var(--surface-2); }
.rank-row.me { background: var(--brand-soft); }
.rank-no { width: 22px; text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); flex: 0 0 auto; }
.rank-no.top { color: var(--amber); }
.rank-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-value { font-weight: 750; font-size: 11px; white-space: nowrap; }
.tie-note { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted); }
.rank-crown { color: var(--amber); }
.rank-crown svg { width: 14px; height: 14px; }

/* Zaman çizelgesi / denetim */
.timeline { display: flex; flex-direction: column; gap: 0; }
.audit-item { display: flex; gap: 11px; position: relative; padding-bottom: 16px; }
.audit-item:last-child { padding-bottom: 0; }
.audit-item::before { content: ""; position: absolute; left: 12px; top: 25px; bottom: 0; width: 1px; background: var(--line); }
.audit-item:last-child::before { display: none; }
.audit-dot { width: 25px; height: 25px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.audit-dot svg { width: 12px; height: 12px; }
.audit-body { min-width: 0; flex: 1; }
.audit-body strong { font-size: 12px; }
.audit-body .audit-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.audit-body p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.diff-list { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.diff-row { display: flex; gap: 8px; padding: 5px 8px; font-size: 10.5px; border-bottom: 1px solid #edf1ea; }
.diff-row:last-child { border-bottom: 0; }
.diff-key { width: 110px; flex: 0 0 auto; color: var(--muted); }
.diff-old { color: var(--red); text-decoration: line-through; }
.diff-new { color: #217a37; font-weight: 700; }

/* Çağrı kutuları */
.callout { display: flex; gap: 10px; padding: 12px 13px; border-radius: 11px; font-size: 12px; line-height: 1.55; border: 1px solid transparent; }
.callout svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.callout-info { background: var(--blue-soft); color: #1e4b9c; border-color: #dbe8fd; }
.callout-warn { background: var(--amber-soft); color: #92400e; border-color: #fde8cc; }
.callout-success { background: var(--brand-soft); color: #11614f; border-color: #ceeae2; }
.callout-danger { background: var(--red-soft); color: #991b1b; border-color: #fde2e2; }
.callout strong { font-weight: 800; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 31, 26, 0.48); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 18px; overflow-y: auto;
  animation: fadeIn 0.15s ease;
}
.modal {
  width: 100%; max-width: 520px;
  background: var(--surface); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: slideUp 0.2s ease;
  margin: auto 0;
}
.modal.modal-lg { max-width: 760px; }
.modal.modal-xl { max-width: 980px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 19px 20px 0; }
.modal-head h3 { font-size: 17px; letter-spacing: -0.02em; }
.modal-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-head .close-btn { margin-left: auto; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
.close-btn {
  width: 32px; height: 32px; border-radius: 9px;
  border: 0; background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; flex: 0 0 auto;
}
.close-btn:hover { background: #eef2eb; color: var(--text); }
.close-btn svg { width: 16px; height: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Bildirimler */
.toast-stack { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; max-width: min(390px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--ink); color: #fff;
  border-radius: 11px; padding: 11px 13px;
  font-size: 12px; line-height: 1.45;
  box-shadow: 0 14px 40px rgba(11,31,26,0.22);
  animation: slideUp 0.2s ease;
}
.toast svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.toast-success { background: #0d5f4d; }
.toast-error { background: #991b1b; }
.toast-warn { background: #92400e; }
.toast-info { background: #1e3a8a; }

/* Diğer */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12px; border-bottom: 1px solid #f0f3ed; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 650; text-align: right; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented button { border: 0; background: transparent; border-radius: 7px; padding: 6px 11px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.detail-summary .box { background: var(--surface-2); border-radius: 10px; padding: 9px 10px; }
.detail-summary .box span { display: block; font-size: 9.5px; color: var(--muted); }
.detail-summary .box strong { display: block; font-size: 13px; margin-top: 2px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tier-editor { display: flex; flex-direction: column; gap: 8px; }
.tier-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.tier-row .btn { height: 38px; }

/* Duyarlı */
@media (max-width: 1180px) {
  .cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-main { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); }
  .data-table .hide-mobile { display: none; }
}
@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 22px; }
  .auth-card > .brand { display: flex; margin-bottom: 26px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px;
    transform: translateX(-102%); transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg); z-index: 90;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; place-items: center; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 85; background: rgba(8, 27, 22, 0.42); backdrop-filter: blur(2px); }
  .mobile-toggle { display: inline-flex; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .content { padding: 20px 16px 112px; }
  .topbar-user-text { display: none; }
  .topbar-user { padding: 4px; }
  .today-chip { display: none; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-main { grid-template-columns: 1fr; }
  .competition-grid { grid-template-columns: 1fr; }
  .data-table .hide-mobile { display: none; }
  .mobile-tabbar {
    display: grid; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(229, 233, 223, 0.9); border-radius: 20px;
    box-shadow: 0 18px 50px rgba(10, 31, 26, 0.18);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    align-items: center;
  }
  .mobile-tabbar.has-fab { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-tabbar.no-fab { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mobile-tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 2px; border-radius: 12px; color: var(--muted);
    font-size: 9.5px; font-weight: 650; text-decoration: none; min-width: 0;
  }
  .mobile-tab svg { width: 19px; height: 19px; }
  .mobile-tab:hover { text-decoration: none; color: var(--text); }
  .mobile-tab.active { color: var(--brand); background: var(--brand-soft); }
  .mobile-fab {
    width: 46px; height: 46px; border-radius: 15px; border: 3px solid rgba(255,255,255,0.95);
    background: var(--ink); color: var(--lime); display: grid; place-items: center;
    justify-self: center; margin-top: -20px;
    box-shadow: 0 10px 22px rgba(10, 31, 26, 0.28);
  }
  .mobile-fab svg { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .cards-4, .cards-3, .cards-5, .cards-2 { grid-template-columns: 1fr; }
  .stat-value { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .page-title { font-size: 24px; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .filter-grid .field, .filter-grid .field.grow, .filter-grid .field.wide, .filter-grid .field.narrow { flex: 1 1 100%; }
  .filter-actions { width: 100%; margin-left: 0; }
  .filter-actions .btn { flex: 1; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
  .auth-panel { padding: 24px 16px; }
  .auth-head h2 { font-size: 25px; }
  .modal-backdrop { padding: 10px; }
  .modal { border-radius: 16px; }
  .modal-body { padding: 14px 15px; }
  .modal-head { padding: 15px 15px 0; }
  .modal-foot { padding: 12px 15px; }
  .detail-summary { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr 1fr; }
  .tier-row .btn { grid-column: span 2; width: 100%; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title p { display: none; }
  .mobile-tab { font-size: 9px; }
  .mobile-tab svg { width: 18px; height: 18px; }
}

/* Sade giriş ekranı */
.auth-page.auth-page-simple {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 34px 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 241, 105, 0.26), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(20, 184, 166, 0.14), transparent 34%),
    linear-gradient(180deg, #f8faf5 0%, #eef4ec 100%);
  position: relative;
  overflow: hidden;
}
.auth-page.auth-page-simple::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  left: -180px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 0 0 52px rgba(15, 118, 110, 0.025), 0 0 0 104px rgba(15, 118, 110, 0.018);
  pointer-events: none;
}
.auth-shell {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.auth-card.auth-card-simple {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 38px 34px 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(11, 31, 26, 0.1);
  backdrop-filter: blur(14px);
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 25px;
}
.auth-brand .brand-mark-lg {
  margin: 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(200, 241, 105, 0.24);
}
.auth-brand-name {
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.auth-brand-tag {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.auth-card-simple .auth-head {
  margin-bottom: 21px;
  text-align: center;
}
.auth-card-simple .auth-head h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.auth-card-simple .auth-head p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-card-simple .auth-form {
  gap: 13px;
}
.auth-card-simple .field label {
  font-size: 11.5px;
}
.auth-card-simple .field input {
  height: 44px;
  border-radius: 11px;
  background: #fbfcfa;
}
.auth-card-simple .field input:focus {
  background: var(--surface);
}
.auth-card-simple .auth-submit {
  margin-top: 5px;
  height: 45px;
  border-radius: 11px;
  font-size: 14px;
}
.auth-card-simple .auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-copyright {
  margin-top: 18px;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted-2);
}
.auth-card-error {
  padding-top: 32px;
}
.auth-connection {
  margin: 0 0 16px;
  border: 1px solid #f4d7d7;
  background: #fffafa;
  border-radius: 13px;
  padding: 13px;
}
.auth-connection-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
}
.auth-connection-head > div {
  min-width: 0;
}
.auth-connection-head strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: #7f1d1d;
  margin-bottom: 4px;
}
.auth-connection-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
}
.auth-connection p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #6b4646;
}
.auth-connection-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted);
}
.auth-connection-meta code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  padding: 3px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #f0dada;
  color: #374151;
  word-break: break-all;
}
.auth-error-details {
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--muted);
}
.auth-error-details summary {
  cursor: pointer;
  user-select: none;
}
.auth-error-details pre {
  margin: 7px 0 0;
  padding: 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #f0e1e1;
  color: #604b4b;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.auth-connection .btn {
  margin-top: 10px;
  width: 100%;
}
.auth-card-error .callout {
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .auth-page.auth-page-simple { padding: 18px 12px; }
  .auth-card.auth-card-simple { padding: 27px 20px 22px; border-radius: 20px; }
  .auth-brand-name { font-size: 24px; }
  .auth-brand .brand-mark-lg { width: 46px; height: 46px; font-size: 26px; }
  .auth-copyright { margin-top: 14px; }
}

/* Gelişmiş prim kuralı alanları */
.rule-advanced {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 0 14px;
}
.rule-advanced > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  list-style: none;
}
.rule-advanced > summary::-webkit-details-marker { display: none; }
.rule-advanced > summary::after { content: "+"; margin-left: auto; font-size: 16px; color: var(--muted-2); }
.rule-advanced[open] > summary::after { content: "−"; }
.rule-advanced .form-grid { padding: 0 0 14px; }
.rule-advanced .form-section { margin-top: 0; padding-top: 12px; }
.rule-hint { display: block; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); border: 1px solid #dbe8fd; }
.rule-hint-box-warn { background: var(--amber-soft); border-color: #fde8cc; }
.rule-hint-info, .rule-hint-warn { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; line-height: 1.5; }
.rule-hint-info { color: #1e4b9c; }
.rule-hint-warn { color: #92400e; }
.rule-hint-info svg, .rule-hint-warn svg { flex: 0 0 auto; margin-top: 1px; }

/* Satış listesinde prim sütunu */
.commission-cell { min-width: 92px; }
.commission-cell strong { display: block; font-variant-numeric: tabular-nums; }
.commission-cell .badge { margin-top: 3px; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.66);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.quick-action:hover {
  border-color: rgba(13, 118, 109, 0.35);
  background: var(--surface);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(10, 31, 26, 0.07);
}
.quick-action.primary {
  background: linear-gradient(140deg, #0b2c23 0%, #0a4a3f 100%);
  border-color: #0b3a2f;
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 31, 26, 0.2);
}
.quick-action.primary:hover {
  background: linear-gradient(140deg, #0e362b 0%, #0c574a 100%);
  border-color: #0c574a;
  box-shadow: 0 18px 36px rgba(10, 31, 26, 0.26);
}
.quick-action .qa-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.quick-action.primary .qa-icon {
  background: rgba(217, 243, 107, 0.16);
  color: var(--lime);
}
.quick-action > span:last-child { min-width: 0; }
.quick-action strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-action span span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-action.primary span span { color: rgba(255, 255, 255, 0.6); }

/* Satış prim etkisi */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.impact-card {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 13px;
  min-width: 0;
}
.impact-card.included {
  background: var(--brand-soft);
  border-color: #cfeae2;
}
.impact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.impact-card-head strong { font-size: 11.5px; }
.impact-amount {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.035em;
  margin-bottom: 7px;
}
.impact-meta {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.impact-meta strong { color: var(--text); font-weight: 700; }
.impact-note {
  margin-top: 7px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--amber);
}
.impact-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}
.impact-total span { font-size: 11px; color: rgba(255,255,255,0.62); }
.impact-total strong { font-size: 18px; letter-spacing: -0.025em; color: var(--lime); }

@media (max-width: 1180px) {
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .quick-actions { grid-template-columns: 1fr; }
  .quick-action strong, .quick-action span span { white-space: normal; }
  .impact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1360px) {
  .data-table .hide-mobile { display: none; }
  .data-table:has(.actions-cell) th:last-child {
    position: sticky; right: 0; z-index: 3;
    background: linear-gradient(180deg, #f8faf5 0%, #eef3eb 100%);
    box-shadow: -8px 0 12px rgba(10, 31, 26, 0.05);
  }
  .data-table td.actions-cell {
    position: sticky; right: 0; z-index: 2;
    background: var(--surface);
    box-shadow: -8px 0 12px rgba(10, 31, 26, 0.05);
  }
  .data-table tbody tr:hover td.actions-cell { background: #fafcf7; }
}

/* Excel içe aktarma sihirbazı */
.import-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.import-step {
  flex: 1 1 0; min-width: 150px; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700;
}
.import-step-no {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #e9eee5; color: var(--muted); font-size: 11px; font-weight: 800; flex: 0 0 auto;
}
.import-step.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(11,31,26,.18); }
.import-step.active .import-step-no { background: var(--lime); color: var(--ink); }
.import-step.done { background: var(--brand-soft); border-color: #cfe9e2; color: var(--brand); }
.import-step.done .import-step-no { background: var(--brand); color: #fff; }
.import-step.done .import-step-no svg { width: 12px; height: 12px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  text-align: center; min-height: 210px; padding: 30px 20px;
  border: 1.5px dashed #bccbb6; border-radius: 16px; cursor: pointer;
  background: radial-gradient(circle at 50% 0%, rgba(20,184,166,.07), transparent 60%), var(--surface-2);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.dropzone:hover, .dropzone.dragging {
  border-color: var(--brand);
  background: radial-gradient(circle at 50% 0%, rgba(20,184,166,.12), transparent 62%), #f4fbf8;
}
.dropzone.dragging { transform: scale(.995); }
.dropzone strong { font-size: 15px; letter-spacing: -0.01em; }
.dropzone > span:last-child { font-size: 12px; color: var(--muted); }
.dropzone-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, #e6f7f1, #d6efe7); color: var(--brand);
  margin-bottom: 4px; box-shadow: 0 8px 18px rgba(15,118,110,.12);
}
.dropzone-icon svg { width: 24px; height: 24px; }

.import-template-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.import-template-row > div { min-width: 0; }
.import-template-row strong { display: block; font-size: 12.5px; }
.import-template-row span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.import-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.import-tip { display: flex; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.import-tip-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.import-tip-ico svg { width: 15px; height: 15px; }
.import-tip strong { display: block; font-size: 11.5px; }
.import-tip span:last-child { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.import-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 210px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--muted);
}
.import-loading strong { color: var(--text); font-size: 13px; }
.import-loading span:last-child { font-size: 11.5px; }
.import-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #dce7d8; border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.import-filebar { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.import-file-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(150deg,#e6f7f1,#d6efe7); color: var(--brand); flex: 0 0 auto; }
.import-file-text { min-width: 0; flex: 1; }
.import-file-text strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file-text span { display: block; font-size: 10.5px; color: var(--muted); }

.import-map-block { margin-top: 16px; }
.import-block-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.import-block-head strong { font-size: 13px; }
.import-block-head span { font-size: 11px; color: var(--muted); }
.mapping-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.mapping-field { padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.mapping-field.required { border-left: 3px solid var(--brand); }
.mapping-label { font-size: 11.5px; font-weight: 800; color: #34423d; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mapping-optional { font-size: 9.5px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mapping-field select { height: 36px; padding: 6px 10px; }
.mapping-field .hint { font-size: 10px; }

.import-summary-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.import-summary { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 750; }
.import-summary svg { width: 12px; height: 12px; }
.import-summary.ready { background: #e9f7ec; color: #217a37; }
.import-summary.warning { background: var(--amber-soft); color: var(--amber); }
.import-summary.duplicate { background: #f1f4ef; color: #63736c; }
.import-summary.error { background: var(--red-soft); color: var(--red); }
.import-skip { margin-left: auto; padding: 0; font-size: 11.5px; }

.import-table-wrap { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.import-table { min-width: 760px; }
.import-table th { position: sticky; top: 0; z-index: 1; }
.import-row-no { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.import-row-message { display: block; color: var(--muted); font-size: 10px; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
.import-row.error td { background: #fffafa; }
.import-row.error .import-row-message { color: var(--red); }
.import-row.warning td { background: #fffdf7; }
.import-row.warning .import-row-message { color: var(--amber); }
.import-row.duplicate td { background: #fafbf9; }
.import-table-note { padding: 8px 12px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 12px 12px; }

.import-foot { display: flex; align-items: center; gap: 10px; width: 100%; flex-wrap: wrap; }
.import-foot-note { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; font-size: 10.5px; color: var(--muted); }
.import-foot-note svg { width: 13px; height: 13px; }

.import-result-hero { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 14px; border: 1px solid #cfe9e2; background: linear-gradient(150deg,#f2fbf7,#e7f6f0); }
.import-result-hero.partial { border-color: #fde8cc; background: linear-gradient(150deg,#fffbf4,#fdf2e3); }
.import-result-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: 0 0 auto; }
.import-result-hero.partial .import-result-icon { background: var(--amber); }
.import-result-icon svg { width: 22px; height: 22px; }
.import-result-hero strong { display: block; font-size: 14.5px; letter-spacing: -0.015em; }
.import-result-hero span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.import-result-card { border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; background: var(--surface); }
.import-result-card span { display: block; font-size: 10.5px; color: var(--muted); }
.import-result-card strong { display: block; font-size: 24px; letter-spacing: -0.03em; margin-top: 3px; }
.import-result-card small { display: block; font-size: 10.5px; color: var(--muted); }
.import-result-card.success strong { color: var(--brand); }
.import-result-card.danger strong { color: var(--red); }
.import-error-list { border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.import-error-text { color: var(--red); font-size: 11px; line-height: 1.45; }

@media (max-width: 640px) {
  .import-steps { gap: 5px; }
  .import-step { min-width: 0; padding: 7px 9px; font-size: 10.5px; align-items: flex-start; }
  .import-step span:last-child { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
  .import-tips { grid-template-columns: 1fr; }
  .mapping-grid { grid-template-columns: 1fr; }
  .import-template-row { flex-direction: column; align-items: flex-start; }
  .import-skip { margin-left: 0; }
  .import-foot-note { width: 100%; margin: 0 0 2px; }
  .import-foot .btn { flex: 1; }
  .toast-stack { top: 62px; bottom: auto; left: 12px; right: 12px; max-width: none; }
  .page-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .page-actions .btn { flex: 1 1 calc(50% - 4px); width: auto; }
  .page-actions .btn:last-child:nth-child(odd) { flex-basis: 100%; }
}

/* Klavye / komut paleti */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 700; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.command-trigger {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.command-trigger:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-2); }
.command-trigger svg { width: 14px; height: 14px; }
.command-trigger kbd, .command-search kbd, .command-foot kbd, .command-item-shortcut, kbd {
  font-family: inherit; font-size: 9px; font-weight: 800; line-height: 1;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  padding: 3px 5px; color: var(--muted-2); background: var(--surface-2);
}
.command-backdrop {
  position: fixed; inset: 0; z-index: 180; background: rgba(11, 31, 26, 0.55);
  backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center;
  padding: 11vh 16px 24px;
}
.command-panel {
  width: 100%; max-width: 600px; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: slideUp 0.16s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.command-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.command-search > svg { color: var(--muted); width: 18px; height: 18px; }
.command-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); min-width: 0; }
.command-results { max-height: min(58vh, 430px); overflow-y: auto; padding: 8px; }
.command-group-label { padding: 9px 10px 4px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; color: var(--muted-2); }
.command-item {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--text);
}
.command-item:hover, .command-item.active { background: var(--brand-soft); }
.command-item.active { box-shadow: inset 2px 0 0 var(--brand); }
.command-item-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: 0 0 auto; }
.command-item.active .command-item-icon { background: var(--brand); color: #fff; }
.command-item-text { flex: 1; min-width: 0; }
.command-item-text strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.command-item-text span { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.command-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 20px; text-align: center; color: var(--muted); }
.command-empty svg { width: 22px; height: 22px; margin-bottom: 4px; color: var(--muted-2); }
.command-empty strong { font-size: 13px; color: var(--text); }
.command-empty span { font-size: 11.5px; }
.command-foot { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 10px; }
.command-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* Aktif filtre çipleri */
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.filter-chips-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.filter-chips-label svg { width: 12px; height: 12px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 20px; padding: 4px 9px; font-size: 10.5px; font-weight: 650; }
.filter-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.filter-chip svg { width: 11px; height: 11px; opacity: 0.7; }
.filter-chip-clear { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 700; padding: 4px 6px; }
.filter-chip-clear:hover { color: var(--red); }
.filter-chip-clear svg { width: 11px; height: 11px; }

/* Kurulum rehberi */
.setup-card {
  border: 1px solid #d7e8dd; border-radius: 18px;
  background: radial-gradient(circle at 100% 0%, rgba(200, 241, 105, 0.16), transparent 40%), linear-gradient(150deg, #ffffff, #f5faf7);
  box-shadow: var(--shadow); padding: 15px 17px; margin-bottom: 15px;
}
.setup-head { display: flex; align-items: flex-start; gap: 11px; }
.setup-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--lime); flex: 0 0 auto; }
.setup-icon svg { width: 18px; height: 18px; }
.setup-head-text { flex: 1; min-width: 0; }
.setup-head-text strong { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.setup-head-text span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.setup-dismiss { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-2); display: grid; place-items: center; flex: 0 0 auto; }
.setup-dismiss:hover { background: var(--surface-2); color: var(--text); }
.setup-dismiss svg { width: 14px; height: 14px; }
.setup-progress { height: 6px; border-radius: 20px; background: #e8efe6; overflow: hidden; margin: 12px 0; }
.setup-progress > div { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 0.4s ease; }
.setup-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); min-width: 0; transition: border-color 0.15s ease, background 0.15s ease; }
.setup-step:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-soft); }
.setup-step.done { background: var(--surface-2); }
.setup-step.done .setup-step-text strong { color: var(--muted); }
.setup-check { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.setup-step.done .setup-check { background: #e9f7ec; color: #217a37; }
.setup-check svg { width: 13px; height: 13px; }
.setup-step-text { min-width: 0; flex: 1; }
.setup-step-text strong { display: block; font-size: 10.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-step-text span { display: block; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-arrow { color: var(--muted-2); flex: 0 0 auto; }
.setup-arrow svg { width: 13px; height: 13px; }

/* Yardım merkezi */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.help-card { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.help-card-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.help-card-icon svg { width: 15px; height: 15px; }
.help-card strong { display: block; font-size: 12px; }
.help-card p { margin-top: 3px; font-size: 10.8px; color: var(--muted); line-height: 1.5; }
.help-shortcuts { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.help-shortcuts-title { padding: 9px 12px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shortcut-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 11.5px; border-bottom: 1px solid #edf1ea; }
.shortcut-row:last-child { border-bottom: 0; }
.shortcut-row > span:last-child { display: inline-flex; gap: 4px; }

@media (max-width: 1180px) {
  .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .command-trigger span, .command-trigger kbd { display: none; }
  .command-trigger { width: 36px; padding: 0; justify-content: center; }
  .topbar-help { display: none; }
}
@media (max-width: 640px) {
  .command-backdrop { padding: 8px; }
  .command-panel { border-radius: 15px; margin-top: 8vh; }
  .command-results { max-height: 64vh; }
  .filter-chips-label { width: 100%; }
  .setup-steps { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .command-trigger { width: 34px; height: 34px; }
  .topbar-actions { gap: 6px; }
}

/* Panel · canlı özet */
.dash-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px; padding: 28px 30px; margin-bottom: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 8%, rgba(217, 243, 107, 0.16), transparent 38%),
    linear-gradient(135deg, #081f19 0%, #0b3a2f 60%, #0a4a3f 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(10, 31, 26, 0.22);
}
.dash-hero::before {
  content: ""; position: absolute; right: -120px; top: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(217, 243, 107, 0.14);
  box-shadow: 0 0 0 42px rgba(217, 243, 107, 0.03), 0 0 0 84px rgba(217, 243, 107, 0.02);
  pointer-events: none;
}
.dash-hero::after {
  content: "w"; position: absolute; right: 24px; bottom: -110px;
  font-family: var(--font-display); font-size: 290px; font-weight: 800; line-height: 0.8;
  color: rgba(255, 255, 255, 0.035); pointer-events: none;
}
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero-copy { max-width: 640px; }
.dash-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800;
  color: var(--lime);
}
.dash-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 243, 107, 0.12);
  animation: livePulse 2.4s ease infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(217, 243, 107, 0.12); }
  50% { box-shadow: 0 0 0 9px rgba(217, 243, 107, 0.03); }
}
.dash-eyebrow-date {
  margin-left: 2px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.44); letter-spacing: 0.06em;
}
.dash-hero h2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.02; letter-spacing: -0.055em; margin-top: 12px; color: #fff; }
.dash-dot { color: var(--lime); }
.dash-hero-copy p { margin-top: 10px; color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.6; max-width: 480px; }
.dash-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.dash-hero-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
.dash-hero-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.24); }
.dash-hero-side { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.hero-today {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 14px 15px; backdrop-filter: blur(10px);
}
.hero-today-top { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: rgba(255,255,255,0.5); }
.hero-live { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); }
.hero-live span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(217,243,107,0.15); }
.hero-today > strong { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.045em; margin-top: 5px; color: #fff; }
.hero-today small { display: block; font-size: 10.5px; color: rgba(255,255,255,0.5); }
.hero-spark { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 10px; }
.hero-spark span { flex: 1; min-height: 5px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--lime), rgba(217,243,107,0.2)); }
.hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-mini > div { border: 1px solid rgba(255,255,255,0.1); border-radius: 13px; background: rgba(255,255,255,0.04); padding: 10px 12px; }
.hero-mini span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255,255,255,0.45); }
.hero-mini strong { display: block; font-family: var(--font-display); font-size: 16px; margin-top: 3px; color: #fff; }
@media (max-width: 1180px) {
  .dash-hero { grid-template-columns: 1.2fr 0.8fr; }
}
@media (max-width: 980px) {
  .dash-hero { grid-template-columns: 1fr; padding: 24px; }
  .dash-hero-side { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}
@media (max-width: 640px) {
  .dash-hero { padding: 20px; border-radius: 20px; }
  .dash-hero h2 { font-size: 32px; }
  .dash-hero-side { grid-template-columns: 1fr; }
  .dash-hero::after { font-size: 200px; right: -10px; }
  .dash-hero-actions .btn { flex: 1; }
}

.me-hero {
  background:
    radial-gradient(circle at 86% 8%, rgba(217, 243, 107, 0.2), transparent 40%),
    linear-gradient(135deg, #08322a 0%, #0b5a4d 60%, #0d766d 100%);
}

.recent-sales-body { padding-top: 8px; }
.recent-sales { display: flex; flex-direction: column; gap: 2px; }
.recent-sale {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 11px; color: var(--text);
  transition: background 0.14s ease;
}
.recent-sale:hover { background: var(--surface-2); text-decoration: none; }
.recent-sale-main { flex: 1; min-width: 0; }
.recent-sale-main strong { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-sale-main span { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-sale-amount { text-align: right; white-space: nowrap; }
.recent-sale-amount strong { display: block; font-size: 12px; }
.recent-sale-amount span { display: block; font-size: 9.5px; color: var(--muted); }
.recent-sale-state { flex: 0 0 auto; }
@media (max-width: 640px) {
  .recent-sale-state { display: none; }
}

/* Giriş ekranı · yeni görsel dil */
.auth-page.auth-page-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 1.04fr) minmax(420px, 0.96fr);
  background: var(--bg);
}
.auth-page-split .auth-visual {
  position: relative;
  overflow: hidden;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  color: #f2f8f4;
  background:
    radial-gradient(circle at 16% 8%, rgba(217, 243, 107, 0.16), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(22, 184, 166, 0.22), transparent 40%),
    linear-gradient(150deg, #061813 0%, #0b2c23 55%, #0a463c 100%);
}
.auth-page-split .auth-visual::before {
  content: "w";
  position: absolute;
  right: -40px;
  bottom: -170px;
  font-family: var(--font-display);
  font-size: 540px;
  font-weight: 800;
  line-height: 0.8;
  color: rgba(217, 243, 107, 0.045);
  pointer-events: none;
}
.auth-page-split .auth-visual::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(217, 243, 107, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(217, 243, 107, 0.03), 0 0 0 88px rgba(217, 243, 107, 0.02);
  pointer-events: none;
}
.auth-page-split .auth-visual .brand { position: relative; z-index: 1; }
.auth-page-split .auth-visual .auth-brand { flex-direction: row; align-items: center; text-align: left; gap: 12px; margin: 0; }
.auth-page-split .auth-visual .auth-brand .brand-mark-lg { margin: 0; }
.auth-page-split .auth-visual .auth-brand-name { color: #fff; font-size: 26px; }
.auth-page-split .auth-visual .auth-brand-tag { color: rgba(255,255,255,0.5); margin-top: 3px; }
.auth-page-split .auth-hero { position: relative; z-index: 1; max-width: 530px; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
  padding: 6px 10px; border: 1px solid rgba(217, 243, 107, 0.22);
  border-radius: 20px; background: rgba(217, 243, 107, 0.07);
}
.auth-kicker svg { width: 13px; height: 13px; }
.auth-page-split .auth-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: #fff;
}
.auth-page-split .auth-hero h1 em { font-style: normal; color: var(--lime); }
.auth-page-split .auth-hero > p {
  margin-top: 18px;
  color: rgba(244, 250, 246, 0.68);
  font-size: 14px;
  line-height: 1.65;
  max-width: 440px;
}
.auth-page-split .auth-features { margin-top: 28px; gap: 15px; }
.auth-page-split .auth-feature { align-items: flex-start; gap: 11px; }
.auth-page-split .auth-feature .feature-ico {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(217, 243, 107, 0.14);
  background: rgba(217, 243, 107, 0.09);
  color: var(--lime);
}
.auth-page-split .auth-feature strong { display: block; font-family: var(--font-display); font-size: 12px; color: #fff; }
.auth-page-split .auth-feature div > span { display: block; font-size: 10.5px; color: rgba(255,255,255,0.48); margin-top: 1px; }
.auth-preview {
  margin-top: 30px;
  width: min(370px, 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(10px);
  padding: 14px 15px;
}
.auth-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); font-weight: 700; }
.auth-preview-trend { display: inline-flex; align-items: center; gap: 3px; color: var(--lime); }
.auth-preview-trend svg { width: 12px; height: 12px; }
.auth-preview strong { display: block; font-family: var(--font-display); font-size: 27px; letter-spacing: -0.045em; margin-top: 5px; color: #fff; }
.auth-preview-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 10px; }
.auth-preview-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--lime), rgba(217,243,107,0.22)); min-height: 6px; }
.auth-page-split .auth-visual-foot { position: relative; z-index: 1; font-size: 10.5px; color: rgba(255,255,255,0.34); letter-spacing: 0.02em; }
.auth-page-split .auth-panel {
  position: relative;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 0%, rgba(217, 243, 107, 0.14), transparent 36%),
    radial-gradient(circle at 8% 100%, rgba(22, 184, 166, 0.08), transparent 34%),
    var(--bg);
}
.auth-card.auth-card-split {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 34px 34px 28px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(10, 31, 26, 0.1);
  backdrop-filter: blur(16px);
}
.auth-card-split .auth-head { text-align: left; margin-bottom: 22px; }
.auth-card-split .auth-head h2 { font-size: 25px; letter-spacing: -0.04em; color: var(--ink); }
.auth-card-split .auth-head p { font-size: 12.5px; margin-top: 6px; }
.auth-card-split .auth-form { gap: 13px; }
.auth-card-split .field label { font-size: 11px; }
.auth-card-split .field input { height: 46px; border-radius: 12px; }
.auth-card-split .auth-submit { height: 47px; border-radius: 12px; font-size: 13px; margin-top: 4px; }
.auth-card-split .auth-foot { margin-top: 18px; text-align: center; font-size: 11px; }
.auth-mobile-brand { display: none; }
.auth-page-split .auth-copyright { margin-top: 16px; text-align: center; font-size: 10px; color: var(--muted-2); }

@media (max-width: 980px) {
  .auth-page.auth-page-split { grid-template-columns: 1fr; }
  .auth-page-split .auth-visual { display: none; }
  .auth-page-split .auth-panel { min-height: 100vh; padding: 28px 18px; }
  .auth-mobile-brand { display: flex; justify-content: center; margin-bottom: 24px; }
  .auth-card.auth-card-split { padding: 28px 24px 24px; border-radius: 22px; }
  .auth-card-split .auth-head { text-align: center; }
}
@media (max-width: 520px) {
  .auth-page-split .auth-panel { padding: 20px 12px; }
  .auth-card.auth-card-split { padding: 24px 20px 20px; }
  .auth-card-split .auth-head h2 { font-size: 22px; }
}

