:root {
  --brand: #2b6cb0;
  --brand-dark: #1a365d;
  --brand-soft: #ebf3fb;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #1a2435;
  --muted: #64748b;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(15, 23, 42, 0.12);
  --font: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --brand: #00e5ff;
  --brand-dark: #e8eaf0;
  --brand-soft: rgba(0, 229, 255, 0.1);
  --bg: #080810;
  --surface: #0f0f1a;
  --surface-2: #161625;
  --surface-3: #1e1e32;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8eaf0;
  --muted: #6b7280;
  --green: #10b981;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
}

html {
  color-scheme: light dark;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #00e5ff;
    --brand-dark: #e8eaf0;
    --brand-soft: rgba(0, 229, 255, 0.1);
    --bg: #080810;
    --surface: #0f0f1a;
    --surface-2: #161625;
    --surface-3: #1e1e32;
    --border: rgba(255, 255, 255, 0.07);
    --text: #e8eaf0;
    --muted: #6b7280;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  transition: filter 0.15s, background 0.15s, transform 0.05s;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.lg, .btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field-optional { font-weight: 400; font-size: 12px; color: var(--muted); }
.elevator-emergency {
  background: #fee2e2;
  border: 1px solid #dc2626;
  border-radius: 10px;
  padding: 12px 14px;
}
.elevator-emergency-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #b91c1c;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.elevator-emergency-label input { margin-top: 3px; accent-color: #dc2626; }
.input, select.input, textarea.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.input:focus, select.input:focus, textarea.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea.input { resize: vertical; min-height: 90px; }

.baslik-input { display: flex; flex-direction: column; gap: 8px; }
.baslik-input .baslik-custom[hidden] { display: none !important; }
.konu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.konu-row:last-child { border-bottom: none; }
.konu-add-form .toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.konu-add-form .toolbar .input { flex: 1; min-width: 180px; }

.phone-input {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-input .phone-country {
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
  padding-right: 28px;
  cursor: pointer;
}
.phone-input .phone-national {
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .phone-input { flex-direction: column; }
  .phone-input .phone-country { flex: 1; width: 100%; min-width: 0; }
}

.blok-input { display: flex; flex-direction: column; gap: 8px; }
.blok-input .blok-select { width: 100%; }

.randevu-panel { margin-top: 10px; }

.password-field {
  position: relative;
}
.password-field .input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover { color: var(--text); }
.password-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px 20px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
}
.badge.acik { background: #e0f2fe; color: #0369a1; }
.badge.devam { background: #fef3c7; color: #b45309; }
.badge.tamam { background: #dcfce7; color: #15803d; }
.badge.iptal { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .badge.acik { background: #0c3a52; color: #7dd3fc; }
[data-theme="dark"] .badge.devam { background: #4a350c; color: #fcd34d; }
[data-theme="dark"] .badge.tamam { background: #14431f; color: #86efac; }
[data-theme="dark"] .badge.iptal { background: #4a1414; color: #fca5a5; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  object-fit: contain; display: block; flex-shrink: 0;
}
.brand b { font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(43, 108, 176, 0.12); }
.nav a .ic { width: 20px; text-align: center; }
.nav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); padding: 14px 12px 6px; font-weight: 700; }

.sidebar-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; background: var(--brand-soft); color: var(--brand); }

/* ---------- User avatars ---------- */
.user-avatar {
  flex-shrink: 0;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.user-avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.user-avatar.md { width: 36px; height: 36px; font-size: 13px; }
.user-avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.user-avatar img.broken { display: none; }
.user-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.user-avatar.initials { display: inline-grid; }

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-photo-btn { cursor: pointer; margin: 0; }
.profile-photo-btn input { display: none; }

.detail-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.detail-person .user-avatar { flex-shrink: 0; }

.t-meta-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-header-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.msg.mine .msg-row { flex-direction: row-reverse; }
.msg-body { min-width: 0; }
.msg.theirs .msg-body {
  padding: 9px 13px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.mine .msg-body {
  padding: 9px 13px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg .who { font-size: 11px; font-weight: 700; margin-bottom: 3px; opacity: 0.8; }
.msg .time { font-size: 10px; opacity: 0.6; margin-top: 4px; text-align: right; }
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.75;
}
.msg-time { white-space: nowrap; }
.msg-edited { font-style: italic; opacity: 0.85; }
.msg-ticks {
  font-size: 11px;
  letter-spacing: -2px;
  line-height: 1;
  font-weight: 700;
}
.msg-ticks.sent { opacity: 0.55; }
.msg-ticks.delivered { opacity: 0.65; }
.msg-ticks.read { color: #53c4ff; opacity: 1; }
.msg.mine .msg-ticks.sent,
.msg.mine .msg-ticks.delivered { color: rgba(255, 255, 255, 0.65); }
.msg-deleted {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
  opacity: 0.9;
}
.msg-deleted-icon { font-size: 13px; opacity: 0.85; }
.msg-quote {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}
.msg-quote-bar {
  width: 3px;
  flex-shrink: 0;
  background: var(--link, #3182ce);
}
.msg-quote.self .msg-quote-bar { background: var(--primary-light, #90cdf4); }
.msg-quote.mine { background: rgba(255, 255, 255, 0.12); }
.msg-quote.theirs { background: var(--surface-2); }
.msg-quote-body { padding: 6px 8px; min-width: 0; }
.msg-quote-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--link, #3182ce);
  margin-bottom: 2px;
}
.msg-quote.self .msg-quote-author { color: var(--primary-light, #90cdf4); }
.msg-quote-text {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msg.highlighted .msg-body {
  outline: 2px solid rgba(255, 214, 0, 0.85);
  outline-offset: 1px;
}
.msg.theirs { align-self: flex-start; max-width: 88%; background: transparent; border: none; padding: 0; }
.msg.mine { align-self: flex-end; max-width: 88%; background: transparent; border: none; padding: 0; color: inherit; }

.chat-action-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--brand-dark, #1a365d);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-action-bar.hidden { display: none; }
.chat-action-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 64px;
}
.chat-action-btn:hover { background: rgba(255, 255, 255, 0.08); }
.chat-action-btn.danger { color: #feb2b2; }
.chat-action-icon { font-size: 16px; line-height: 1; }
.chat-action-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  padding: 4px 10px;
  cursor: pointer;
}
.chat-compose { border-top: 1px solid var(--border); }
.chat-reply-preview,
.chat-edit-banner { border-bottom: 1px solid var(--border); }
.chat-reply-preview.hidden,
.chat-edit-banner.hidden { display: none; }
.chat-preview-inner,
.chat-edit-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
}
.chat-preview-bar {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--link, #3182ce);
  flex-shrink: 0;
}
.chat-preview-copy { flex: 1; min-width: 0; }
.chat-preview-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--link, #3182ce);
}
.chat-preview-text {
  font-size: 12px;
  color: var(--text-secondary, #718096);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-preview-close,
.chat-edit-cancel {
  border: none;
  background: transparent;
  color: var(--text-hint, #a0aec0);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.chat-edit-inner {
  background: rgba(49, 130, 206, 0.08);
  font-size: 12px;
  font-weight: 600;
}
.chat-edit-icon { color: var(--brand); }
.chat-edit-cancel {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--link, #3182ce);
}

/* ---------- Profile page ---------- */
.profile-stack { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.profile-card.danger { border-color: rgba(220, 38, 38, 0.35); }
.profile-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-card-head .profile-avatar-wrap { flex-shrink: 0; }
.profile-card-head .meta { min-width: 0; }
.profile-card-head .name { font-weight: 700; font-size: 17px; margin: 0 0 2px; }
.profile-card-head .email { font-size: 13px; color: var(--muted); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-section-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.profile-section-title.danger { color: var(--danger); }
.profile-accordion { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 14px 16px; margin-bottom: 12px; }
.profile-accordion > summary.profile-section-title {
  margin: 0;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.profile-accordion > summary.profile-section-title::-webkit-details-marker { display: none; }
.profile-accordion > summary.profile-section-title::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.profile-accordion[open] > summary.profile-section-title::after { transform: rotate(-135deg); }
.profile-accordion > :not(summary) { margin-top: 12px; }
.profile-hint { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.profile-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.profile-toggle:last-of-type { border-bottom: none; }
.profile-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.profile-segment { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-segment label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--surface-2); }
.profile-segment input { accent-color: var(--brand); }
.profile-segment label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.profile-status { font-size: 13px; margin: 4px 0 0; min-height: 18px; }
.profile-status.ok { color: var(--success); }
.profile-status.err { color: var(--danger); }
.profile-sticky-save { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.profile-sticky-save .btn { width: 100%; }

.user-chip .info { overflow: hidden; }
.user-chip .info b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .info span { font-size: 11px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.content { padding: 26px 30px; max-width: 1100px; width: 100%; margin: 0 auto; flex: 1; }

.bottom-nav {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 40;
  align-items: flex-end;
  gap: 0;
  padding: 18px 4px max(10px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
}
.bottom-nav-item,
.bottom-nav-fab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.bottom-nav-item .ic,
.bottom-nav-fab span:first-child { font-size: 20px; line-height: 1; }
.bottom-nav-item small,
.bottom-nav-fab small {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav-item.active { color: var(--brand); font-weight: 700; }
.bottom-nav-fab span:first-child {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-dark, #1a365d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transform: translateY(-8px);
}
.bottom-nav-fab { color: var(--muted); }

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

.home-hero {
  position: relative;
  margin: 0 0 20px;
  padding: 10px 0 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), #3182ce);
  color: #fff;
}
.home-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}
.home-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  width: fit-content;
  max-width: calc(100% - 120px);
  flex: 0 1 auto;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.home-hero-title-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  max-width: 100%;
}
.home-profile-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-hero-role-badge {
  flex: none;
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 10px;
  border-radius: 8px;
}
.home-hero-role-badge-admin { color: #fff; background: #d32f2f; }
.home-hero-role-badge-staff { color: #fff; background: #1565c0; }
.home-hero-role-badge-customer { color: #0d3b66; background: #d6e8ff; }
.home-hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 18px;
}
.home-hero-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 14px;
}
.home-hero-tag {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.home-hero-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #fff;
}
.home-summary-card { margin-top: -12px; position: relative; z-index: 1; }
.home-summary-title {
  margin: 0 0 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-stat {
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: var(--surface-alt, #f7fafc);
}
button.home-stat {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
button.home-stat:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
button.home-stat:active {
  transform: scale(0.98);
}
button.home-stat:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.home-stat strong { display: block; font-size: 22px; line-height: 1.1; }
.home-stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.home-stat.stat-total strong { color: var(--brand); }
.home-stat.stat-open strong { color: #d69e2e; }
.home-stat.stat-progress strong { color: #3182ce; }
.home-stat.stat-done strong { color: #38a169; }

.home-unread-card { margin-top: 16px; }
.home-unread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-unread-head h2 { margin: 0; font-size: 15px; }
.home-unread-count {
  background: #14735c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.home-unread-list { display: grid; gap: 10px; }
.home-unread-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(20, 115, 92, 0.12);
  border-radius: 12px;
  background: var(--surface-2, #edf2f7);
  cursor: pointer;
}
.home-unread-row:hover { border-color: rgba(20, 115, 92, 0.28); }
.home-unread-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(20, 115, 92, 0.12);
  flex-shrink: 0;
}
.home-unread-body { flex: 1; min-width: 0; }
.home-unread-body strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.home-unread-body .muted {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.home-unread-chevron { color: var(--muted); font-size: 18px; padding-top: 2px; }

.in-app-mesaj-banner {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 8px 12px 0;
  pointer-events: none;
}
.in-app-mesaj-banner.hidden { display: none; }
.in-app-mesaj-banner-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #14735c, #0c614d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-align: left;
}
.in-app-mesaj-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.in-app-mesaj-copy { flex: 1; min-width: 0; }
.in-app-mesaj-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.in-app-mesaj-head strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.in-app-mesaj-ticket {
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.in-app-mesaj-preview {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.in-app-mesaj-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.home-admin-btn { margin-top: 16px; }

/* ---------- Stat grid ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.stat .v { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat .ic { float: right; display: flex; align-items: center; justify-content: center; }

/* ---------- Ticket list ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar .input { max-width: 280px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted);
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 18px; cursor: pointer; transition: border 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex; align-items: flex-start; gap: 12px;
}
.ticket:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow); }
.ticket.pinned {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 14%, var(--surface)) 0%, var(--surface) 18%);
  box-shadow: inset 3px 0 0 var(--brand);
}
.ticket .t-pinned { margin-bottom: 6px; }
.ticket .pin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 999px; padding: 4px 10px;
}
.ticket .pin-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent);
}
.ticket-pin-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.ticket-pin-btn:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--brand);
  background: var(--brand-soft);
}
.ticket-pin-btn.is-pinned {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.ticket-pin-btn:active { transform: scale(0.96); }
.ticket .t-main { min-width: 0; flex: 1; }
.ticket .t-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ticket .t-title { font-weight: 700; font-size: 15px; min-width: 0; flex: 1; }
.ticket .t-desc { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket .t-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ticket .t-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.stars { color: #f59e0b; letter-spacing: 1px; }

/* ---------- Detail / chat ---------- */
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.info-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); display: flex; align-items: center; }
.info-row .v { font-weight: 600; text-align: right; }
.info-row-phone .phone-detail-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.phone-detail-number { font-weight: 600; }
.phone-detail-actions { display: inline-flex; gap: 6px; flex-shrink: 0; }
.phone-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--surface);
  text-decoration: none;
  transition: background 0.15s ease;
}
.phone-detail-action:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.detail-label { display: flex; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }

.rating-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #fef3e2;
  border: 1px solid #fde3b8;
}
.rating-cta .icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--warning);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.rating-cta .body { flex: 1; min-width: 0; }
.rating-cta .body h4 { margin: 0; font-size: 14px; }
.rating-cta .body p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
[data-theme="dark"] .rating-cta { background: #2c2210; border-color: #4a350c; }

.rating-survey-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin: -4px -4px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dd6b20, #f0a020);
  color: #fff;
}
.rating-survey-header p { margin: 4px 0 0; font-size: 13px; opacity: 0.92; }
.rating-survey-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.rating-survey-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.rating-survey-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.rating-survey-row:last-child { border-bottom: none; }
.rating-survey-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.rating-survey-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.rating-star-btn {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #cbd5e0;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s, transform 0.15s;
}
.rating-star-btn:hover { transform: scale(1.08); }
.rating-star-btn.active { color: #f59e0b; }
.rating-survey-value {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 999px;
}
.rating-survey-comment { margin-top: 14px; }
.modal.wide .modal-box { max-width: 520px; }

.chat { display: flex; flex-direction: column; height: 520px; }
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--primary-dark, #1a365d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.chat-header-ticket {
  flex: 0 1 48%;
  margin-left: 8px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.chat-header-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.chat-header-name.muted {
  font-weight: 600;
  opacity: 0.75;
}
.chat-header .pdot { flex-shrink: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; font-size: 14px; line-height: 1.4; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input .input { flex: 1; }

.resolve-card {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #38a169 0%, #276749 100%);
  box-shadow: 0 10px 28px rgba(39, 103, 73, 0.22);
}
.resolve-card-inner { padding: 20px 22px; }
.resolve-card-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
}
.resolve-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.resolve-card-copy h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.resolve-card-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.resolve-btn {
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #276749;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.resolve-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.resolve-btn:disabled { opacity: 0.7; cursor: wait; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.file-item .fi { font-size: 18px; }
.proof-list { display: flex; flex-direction: column; gap: 10px; }
.proof-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.proof-item .proof-body { flex: 1; min-width: 0; }
.proof-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; color: #fff; }
.proof-badge.teknik { background: var(--primary); }
.proof-badge.musteri { background: var(--success, #16a34a); }
.eki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.eki-cell { position: relative; }
.eki-thumb { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; background: var(--surface-2); }
.eki-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eki-thumb-video, .eki-thumb-doc { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #e8edf3; color: var(--primary); }
.eki-thumb .proof-badge { position: absolute; top: 6px; left: 6px; }
.eki-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.eki-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proof-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.btn-camera {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn-camera:hover { filter: brightness(1.05); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 4px; }
.milestone { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.milestone .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); margin-top: 4px; flex: none; }
.milestone.done .dot { background: var(--success); }
.milestone .ms-body { flex: 1; }
.milestone .ms-title { font-weight: 600; font-size: 14px; }
.milestone .ms-time { font-size: 12px; color: var(--muted); }

.log-event { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.log-event .le-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab { padding: 10px 16px; border: none; background: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.x-btn { background: none; border: none; font-size: 22px; color: var(--muted); line-height: 1; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; min-width: 240px;
  animation: slideIn 0.2s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 12px; }
.empty > .app-icon--empty { display: block; margin: 0 auto 12px; }
.empty-illustration {
  display: block;
  margin: 0 auto 16px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.icons8-credit {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
  line-height: 1.5;
}

.icons8-credit a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icons8-credit a:hover { color: var(--text); }

/* Android/Figma vektör ikonları (app-icons.js) */
.app-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.2em;
  flex: none;
}
.app-icon--inline { width: 1.1em; height: 1.1em; }
.app-icon--fab { width: 28px; height: 28px; }
.app-icon--stat { width: 22px; height: 22px; opacity: 0.55; }
.app-icon--empty { width: 48px; height: 48px; opacity: 0.45; color: var(--muted); }
.app-icon--auth { width: 48px; height: 48px; color: var(--brand); }
.app-icon--title { width: 18px; height: 18px; vertical-align: -0.15em; flex: none; }
.app-icon--log { width: 18px; height: 18px; }
.app-icon--rating { width: 32px; height: 32px; color: #ecc94b; }
.app-icon--action { width: 16px; height: 16px; }
.app-icon--thumb { width: 28px; height: 28px; opacity: 0.7; }
.app-icon--camera { width: 22px; height: 22px; }

.stat.stat-open .app-icon { color: #3182ce; opacity: 0.85; }
.stat.stat-progress .app-icon { color: #d69e2e; opacity: 0.85; }
.stat.stat-done .app-icon { color: #38a169; opacity: 0.85; }
.stat.stat-cancel .app-icon { color: #e53e3e; opacity: 0.85; }

.info-icon { margin-right: 7px; opacity: 0.85; font-size: 13px; display: inline-flex; align-items: center; vertical-align: middle; }
.info-icon .app-icon { width: 14px; height: 14px; }

.home-unread-icon,
.in-app-mesaj-icon { display: inline-flex; align-items: center; justify-content: center; }
.home-unread-icon .app-icon,
.in-app-mesaj-icon .app-icon { width: 22px; height: 22px; color: var(--brand); }

.nav a .ic,
.bottom-nav-item .ic { display: inline-flex; align-items: center; justify-content: center; }
.nav a .ic .app-icon,
.bottom-nav-item .ic .app-icon,
.bottom-nav-fab .app-icon { width: 20px; height: 20px; }

.le-ic { display: grid; place-items: center; }
.le-ic .app-icon { width: 18px; height: 18px; }

.btn .app-icon--inline { margin-right: 4px; vertical-align: -0.25em; }

.t-meta-time { display: inline-flex; align-items: center; gap: 4px; }
.t-meta-time .app-icon { width: 14px; height: 14px; opacity: 0.7; }

.chat-action-icon,
.chat-edit-icon,
.msg-deleted-icon { display: inline-flex; align-items: center; }

.logo-lg { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; margin: 0 auto 14px; }

.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ---------- Auth page (SnapLoop dark) ---------- */
.auth-wrap {
  --auth-bg: #080810;
  --auth-s1: #0f0f1a;
  --auth-s2: #161625;
  --auth-s3: #1e1e32;
  --auth-border: rgba(255, 255, 255, 0.07);
  --auth-accent: #00e5ff;
  --auth-text: #e8eaf0;
  --auth-muted: #6b7280;
  --auth-mono: "DM Mono", ui-monospace, monospace;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--auth-bg);
  color: var(--auth-text);
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.auth-wrap::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 70%);
  bottom: -100px;
  left: -150px;
  pointer-events: none;
}
.auth-brand-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--auth-border);
}
.auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.14) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.auth-brand-inner { position: relative; max-width: 420px; }
.auth-brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  margin-bottom: 28px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 8px;
}
.auth-brand-panel h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.auth-brand-panel h1 span {
  background: linear-gradient(90deg, var(--auth-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-brand-panel .auth-brand-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--auth-muted);
  margin: 0 0 32px;
}
.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-muted);
}
.auth-feature-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--auth-accent);
}
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: var(--auth-s1);
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--auth-border);
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
}
.auth-card .logo-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.auth-card .app-icon--auth { color: var(--auth-accent); }
.auth-card h2 {
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--auth-text);
}
.auth-card .sub {
  text-align: center;
  color: var(--auth-muted);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.auth-wrap .field label { color: var(--auth-muted); font-family: var(--auth-mono); font-size: 12px; }
.auth-wrap .input,
.auth-wrap select.input,
.auth-wrap textarea.input {
  background: var(--auth-s2);
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
  border-radius: 8px;
}
.auth-wrap .input:focus {
  border-color: rgba(0, 229, 255, 0.35);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}
.auth-wrap .btn {
  background: var(--auth-accent);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}
.auth-wrap .btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 0 40px rgba(0, 229, 255, 0.35); }
.auth-wrap .btn.secondary {
  background: transparent;
  color: var(--auth-text);
  border: 1px solid var(--auth-border);
  box-shadow: none;
}
.auth-wrap .btn.secondary:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.2); }
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--auth-s2);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--auth-border);
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--auth-mono);
}
.auth-tab:hover { color: var(--auth-text); }
.auth-tab.active {
  background: var(--auth-s3);
  color: var(--auth-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.auth-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  font-size: 13px;
  line-height: 1.5;
  color: var(--auth-muted);
  margin-bottom: 20px;
}
.auth-alert svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--auth-accent); margin-top: 1px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--auth-muted); font-family: var(--auth-mono); }
.auth-switch a { font-weight: 600; color: var(--auth-accent); }
.auth-info-links { text-align: center; margin-top: 12px; font-size: 13px; font-family: var(--auth-mono); }
.auth-info-links a { font-weight: 600; color: var(--auth-accent); text-decoration: none; }
.auth-info-links a:hover { text-decoration: underline; }
.auth-home-link { text-align: center; margin-top: 20px; font-size: 14px; font-family: var(--auth-mono); }
.auth-home-link a { color: var(--auth-muted); font-weight: 500; text-decoration: none; }
.auth-home-link a:hover { color: var(--auth-accent); }
.auth-info-list { margin: 0; padding-left: 1.15rem; color: var(--auth-text); }
.auth-info-list li { margin-bottom: 10px; line-height: 1.55; font-size: 14px; }
.auth-about-meta { margin: 0 0 14px; font-size: 14px; color: var(--auth-muted); line-height: 1.6; }
.auth-about-links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.auth-about-links a { font-size: 14px; font-weight: 600; color: var(--auth-accent); }

@media (max-width: 900px) {
  .auth-wrap { flex-direction: column; }
  .auth-brand-panel { padding: 36px 28px 32px; border-right: none; border-bottom: 1px solid var(--auth-border); }
  .auth-brand-panel h1 { font-size: 1.5rem; }
}

/* ---------- Mobile ---------- */
.menu-btn { display: none; background: none; border: none; font-size: 22px; color: var(--text); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 40; }

/* Çevrimiçi durumu noktası */
.pdot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-left: 6px; vertical-align: middle; background: #9ca3af;
}
.pdot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.pdot.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.14); }

@media (max-width: 880px) {
  .home-hero {
    margin: 0 -16px 20px;
    padding: 16px 16px 28px;
    border-radius: 0;
  }
  .home-profile-chip { display: none; }
  .home-hero-top {
    justify-content: flex-end;
    padding: 0;
    margin-bottom: 4px;
  }
  .home-summary-card { margin-top: -20px; }

  .detail-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: min(280px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .sidebar.open { transform: none; }
  .overlay.show { display: block; z-index: 55; }
  .topbar { display: flex; }
  .menu-btn { display: block; }
  .content { padding: 18px 16px 96px; }
  .bottom-nav { display: flex; }
  .app:has(.sidebar.open) .bottom-nav {
    opacity: 0;
    pointer-events: none;
  }
  .app:has(.sidebar.open) .topbar {
    z-index: 20;
  }
}

/* ---------- Onboarding (ilk giriş) ---------- */
.onboarding-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.onboarding-hero {
  position: relative;
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), #3182ce);
  padding: 24px;
}
.onboarding-skip {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
}
.onboarding-icon-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboarding-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.onboarding-emoji {
  font-size: 52px;
  line-height: 1;
}
.onboarding-card {
  margin: -36px 20px 24px;
  padding: 24px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.onboarding-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: var(--text);
}
.onboarding-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}
.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 16px;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.onboarding-dot.active {
  background: var(--brand);
  transform: scale(1.15);
}
.onboarding-next { margin-top: 4px; }

/* ---------- Interactive product tour ---------- */
.product-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}
.product-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  outline: none;
}
#productTourTooltip {
  z-index: 10000;
}
.product-tour-block {
  position: fixed;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.product-tour-ring {
  position: fixed;
  z-index: 2;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #1565C0, 0 0 0 7px rgba(21, 101, 192, 0.35);
  pointer-events: none;
}
.product-tour-pass {
  position: fixed;
  z-index: 3;
  pointer-events: auto;
  background: transparent;
}
.product-tour-skip {
  display: block;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  margin: 0;
  text-align: right;
}
.product-tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-tour-arrow-spacer {
  width: 36px;
  height: 36px;
}
.product-tour-tooltip {
  position: fixed;
  z-index: 9999;
  width: 280px;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}
.product-tour-tooltip:focus { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 2px; }
.product-tour-tooltip h3 {
  margin: 6px 0 8px;
  font-size: 17px;
}
.product-tour-tooltip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.product-tour-step {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.product-tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.product-tour-hint {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}
.product-tour-arrow,
.product-tour-done {
  border: none;
  cursor: pointer;
}
.product-tour-arrow {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  pointer-events: auto;
}
.product-tour-arrow:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.24);
}
.product-tour-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.product-tour-done {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  pointer-events: auto;
}

/* ---------- Landing (index.html) ---------- */
.lp-body { position: relative; overflow-x: hidden; }
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(21, 101, 192, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(13, 59, 102, 0.08), transparent),
    var(--bg);
}
[data-theme="dark"] .lp-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(77, 159, 230, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(13, 59, 102, 0.35), transparent),
    var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .site-header {
  background: rgba(14, 23, 38, 0.88);
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.site-brand:hover { text-decoration: none; }
.site-brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}
.site-brand small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a:not(.btn) {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, #0d3b66 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #7ec8ff 0%, #4d9fe6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.badge-live {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
[data-theme="dark"] .badge-live { background: rgba(34, 197, 94, 0.15); color: #86efac; }

.hero-pro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-pro-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  color: var(--brand-dark);
}
.hero-pro-copy .lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-pro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.hero-stats > div { min-width: 0; }
.hero-stats dt {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.hero-pro-visual {
  position: relative;
  min-height: 340px;
}
.dashboard-card {
  position: absolute;
  width: min(100%, 320px);
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.dashboard-card:nth-child(1) { top: 0; right: 0; z-index: 3; }
.dashboard-card.card-offset { top: 88px; left: 0; z-index: 2; transform: rotate(-2deg); }
.dashboard-card.card-offset-2 { top: 168px; right: 24px; z-index: 1; transform: rotate(1.5deg); }
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dashboard-time { font-size: 12px; color: var(--muted); }
.dashboard-title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.dashboard-meta { font-size: 13px; color: var(--muted); margin: 0; }
.dashboard-progress {
  height: 5px;
  background: var(--surface-2);
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
}
.dashboard-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #1e88e5);
  border-radius: 999px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--brand-dark);
}
.section-head .sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.features-pro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bento-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.bento-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.steps-pro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: none;
}
.steps-list li { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps-list h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.steps-list p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

.platform-pro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.platform-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-soft) 100%);
}
.platform-inner h2 { margin: 8px 0 0; font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); }
.platform-inner .sub { margin: 8px 0 0; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.cta-band-pro {
  background: linear-gradient(135deg, #0d3b66 0%, #1565c0 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.cta-band-inner { max-width: 560px; margin: 0 auto; }
.cta-band-pro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-band-pro p { opacity: 0.9; margin: 0 0 28px; font-size: 1.05rem; line-height: 1.6; }
.btn.white { background: #fff; color: #0d3b66; border-color: transparent; }
.btn.white:hover { filter: brightness(0.97); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: var(--surface);
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}
.site-footer-brand .logo { border-radius: 10px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--brand); text-decoration: none; }
.site-footer-copy { width: 100%; margin: 8px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-pro { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-pro-visual { min-height: 280px; order: -1; }
  .dashboard-card { width: min(100%, 280px); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; }
  .steps-list { grid-template-columns: 1fr; }
  .platform-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stats dt { font-size: 1.25rem; }
}

/* ---------- Legal / static pages ---------- */
.legal-page { font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; max-width: 720px; margin: 0 auto; padding: 24px 20px; color: var(--text); background: var(--bg); min-height: 100vh; }
.legal-page h1 { font-size: 1.5rem; margin-bottom: 0.25rem; color: var(--brand-dark); }
.legal-page h2 { font-size: 1.1rem; margin-top: 1.75rem; color: var(--brand); }
.legal-page p, .legal-page li { font-size: 15px; }
.legal-page .meta { color: var(--muted); font-size: 14px; margin-bottom: 1.5rem; }
.legal-page ul, .legal-page ol { padding-left: 1.25rem; }
.legal-page .box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.legal-page .app-info { background: var(--brand-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 1.25rem; }
.legal-page .app-info strong { color: var(--brand-dark); }
.legal-page pre { background: var(--surface-2); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.legal-page .note { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 12px 16px; margin: 16px 0; font-size: 14px; }
.legal-page code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

/* ---------- Auth action page ---------- */
.auth-action-page {
  --auth-primary: #1e4d8c;
  --auth-primary-light: #2b6cb0;
  --auth-card: var(--surface);
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(160deg, var(--auth-primary) 0%, var(--auth-primary-light) 45%, var(--bg) 45%);
  color: var(--text);
  padding: 24px 16px 48px;
}
[data-theme="dark"] .auth-action-page {
  --auth-primary: #1a365d;
  --auth-primary-light: #2b6cb0;
}

.bottom-nav.keyboard-hidden {
  display: none !important;
}

/* ---------- Event calendar ---------- */
.event-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card {
  display: block;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.event-card-poster {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--surface-2);
}

.event-card-body {
  padding: 14px 16px;
}

.event-card-type {
  margin-bottom: 8px;
}

.event-card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.event-card-date {
  font-size: 13px;
}

.event-detail-wrap {
  max-width: 720px;
}

.event-detail-banner {
  background: #f57c00;
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.event-detail-banner p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

.event-detail-card {
  overflow: hidden;
  padding: 0;
}

.event-detail-poster {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--surface-2);
}

.event-detail-body {
  padding: 16px 18px 18px;
}

.event-detail-type {
  font-weight: 700;
  font-size: 16px;
}

.event-detail-fakulte {
  color: #b90000;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
}

.event-detail-name {
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.35;
}

.event-detail-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.event-detail-date {
  margin-top: 12px;
  font-size: 13px;
}

.event-detail-body .btn {
  margin-top: 16px;
}
