/* Studyo — mobile-first design system */
:root {
  --bg: #f3f5f7;
  --bg-elevated: #ffffff;
  --bg-soft: #e8eef2;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-soft: #ccfbf1;
  --accent: #0f172a;
  --success: #059669;
  --success-soft: #d1fae5;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #0284c7;
  --info-soft: #e0f2fe;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --nav-h: 56px;
  --bottom-nav-h: 64px;
  --sidebar-w: 260px;
  --sidebar-collapsed: 76px;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'DM Sans', system-ui, sans-serif;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.container { width: min(100% - 1.5rem, var(--container)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.landing-body h1, .auth-body h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.landing-body h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.lead { color: var(--ink-soft); max-width: 36rem; }
.muted { color: var(--ink-muted); }
.tiny { font-size: .78rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: .95rem;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: contain; background: #fff;
  flex-shrink: 0;
}
.brand-hero {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: -0.04em; color: var(--ink); margin-bottom: .35rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .65rem 1.1rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; }
.btn-sm { min-height: 36px; padding: .4rem .75rem; font-size: .85rem; }
.danger-block {
  border-color: #fecaca;
}
.danger-block h2 { color: #b91c1c; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--brand-soft);
}
.btn-secondary { background: var(--bg-elevated); border-color: var(--line-strong); }
.btn-ghost { background: transparent; }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
  box-shadow: 0 6px 16px rgba(249,115,22,.25);
}
.btn-gold:hover { filter: brightness(1.05); color: #fff; }
.btn-lg { min-height: 50px; padding: .8rem 1.4rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; border-radius: 12px; }

.form-stack { display: grid; gap: .85rem; min-width: 0; max-width: 100%; }
.form-stack label {
  display: grid;
  gap: .42rem;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.form-stack input,
.form-stack select,
.form-stack textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.4rem;
  padding: .45rem .7rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
  box-sizing: border-box;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.form-stack input::placeholder,
.form-stack textarea::placeholder {
  color: var(--ink-muted);
  font-weight: 400;
}
.form-stack input:hover,
.form-stack select:hover,
.form-stack textarea:hover {
  border-color: #94a3b8;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background-color: #fff;
}
.form-stack select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 2.4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 12px 8px;
}
.form-stack select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%230f766e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 12px 8px;
}
.form-stack select::-ms-expand { display: none; }
.form-stack .select-shell,
.quote-item-row .select-shell {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.form-stack input[type="date"],
.form-stack input[type="datetime-local"],
.form-stack input[type="time"],
.form-stack input[type="number"] {
  font-variant-numeric: tabular-nums;
}
.form-stack input[type="date"],
.form-stack input[type="datetime-local"],
.form-stack input[type="time"],
.form-stack input[type="month"],
.form-stack input[type="week"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  display: block;
}

/* Custom select — ekran taşmasını önler */
.ui-select {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ui-select-native {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}
.ui-select-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.4rem;
  padding: .45rem 2.2rem .45rem .7rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 12px 8px;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ui-select-btn:hover { border-color: #94a3b8; }
.ui-select.is-open .ui-select-btn,
.ui-select-btn:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.ui-select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  width: 100%;
  max-width: 100%;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: .35rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  box-sizing: border-box;
}
.ui-select-option {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: .65rem .75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.ui-select-option:hover,
.ui-select-option:focus {
  background: var(--bg-soft);
  outline: none;
}
.ui-select-option.is-selected {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}
.ui-select-option.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}
.quote-item-row .ui-select-btn {
  min-height: 2.4rem;
  padding: .45rem 1.85rem .45rem .65rem;
  border-radius: 9px;
  font-size: .88rem;
  background-position: right .65rem center;
  background-size: 11px 7px;
}
@media (max-width: 899px) {
  .ui-select-btn { font-size: 16px; }
}
.form-stack input[type="date"]::-webkit-datetime-edit,
.form-stack input[type="datetime-local"]::-webkit-datetime-edit {
  min-width: 0;
  overflow: hidden;
}
.form-stack textarea {
  min-height: 5.5rem;
  resize: vertical;
  padding-top: .55rem;
  padding-bottom: .55rem;
  white-space: pre-wrap;
  overflow: auto;
}
.form-row-2,
.form-row-3 {
  display: grid;
  gap: .65rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
.form-row-2 > *,
.form-row-3 > * {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 720px) {
  .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Kompakt / bölümlü formlar */
.form-dense { gap: .75rem; }
.form-dense .panel-block,
.form-section {
  padding: .85rem .9rem;
}
.form-section-title {
  margin: 0 0 .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font);
}
.form-dense label {
  font-size: .7rem;
  gap: .48rem;
}
.form-dense input,
.form-dense select,
.form-dense textarea,
.form-dense .ui-select-btn {
  min-height: 2.25rem;
  padding: .42rem .65rem;
  font-size: .84rem;
  border-radius: 8px;
}
.form-dense .ui-select-btn {
  padding-right: 2rem;
  background-position: right .7rem center;
  background-size: 11px 7px;
}
.form-dense textarea {
  min-height: 4.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font: inherit;
  font-size: .84rem;
  font-weight: 500;
  padding: .55rem .65rem;
  background: #fff;
  color: var(--ink);
}
.form-dense .form-row-2,
.form-dense .form-row-3 {
  gap: .7rem;
}
.form-dense .form-actions {
  margin-top: .55rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.form-dense .form-actions .btn {
  min-height: 2.4rem;
  padding: .45rem 1.05rem;
  font-size: .88rem;
}

/* Teklif özet / toplamlar */
.quote-footer-grid {
  display: grid;
  gap: .85rem;
  min-width: 0;
}
@media (min-width: 800px) {
  .quote-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .85fr);
    align-items: start;
  }
}
.quote-footer-fields {
  display: grid;
  gap: .65rem;
  min-width: 0;
}
.quote-totals {
  display: grid;
  gap: .35rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  min-width: 0;
}
.quote-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  font-size: .84rem;
  color: var(--ink-soft);
}
.quote-total-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.quote-total-row.is-grand {
  margin-top: .25rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line-strong);
  font-size: .92rem;
  color: var(--ink);
}
.quote-total-row.is-grand strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}
.quote-total-row.is-muted {
  font-size: .8rem;
  color: var(--ink-muted);
}
.quote-total-row.is-muted strong {
  color: var(--ink-soft);
  font-weight: 600;
}
@media (max-width: 899px) {
  .form-stack input,
  .form-stack select,
  .form-stack textarea,
  .form-inline input,
  .form-inline select,
  .quote-item-row .qi-field input,
  .quote-item-row .qi-field select {
    font-size: 16px;
  }
  .panel-block {
    padding: .85rem;
    overflow-x: clip;
  }
}
.check-row {
  display: flex !important;
  align-items: center !important;
  gap: .7rem;
  font-weight: 600 !important;
  font-size: .88rem !important;
  color: var(--ink) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  cursor: pointer;
  user-select: none;
  min-height: 2.25rem;
  margin: 0;
  line-height: 1.35;
}
.check-row > span,
.check-row > a { font-weight: inherit; }
.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 1.45rem;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
  cursor: pointer;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.check-row input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.45rem - 4px);
  height: calc(1.45rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
  transition: transform .2s var(--ease);
}
.check-row input[type="checkbox"]:hover {
  background: #94a3b8;
}
.check-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.check-row input[type="checkbox"]:checked::after {
  transform: translateX(1.1rem);
}
.check-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.check-row input[type="checkbox"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.check-row.is-compact,
.check-row[style*="min-height:auto"] {
  min-height: 0;
  font-size: .8rem !important;
  gap: .5rem;
}
.check-row.is-compact input[type="checkbox"],
.check-row[style*="min-height:auto"] input[type="checkbox"] {
  width: 2.1rem;
  height: 1.2rem;
}
.check-row.is-compact input[type="checkbox"]::after,
.check-row[style*="min-height:auto"] input[type="checkbox"]::after {
  width: calc(1.2rem - 4px);
  height: calc(1.2rem - 4px);
}
.check-row.is-compact input[type="checkbox"]:checked::after,
.check-row[style*="min-height:auto"] input[type="checkbox"]:checked::after {
  transform: translateX(.9rem);
}

.check-grid {
  display: grid;
  gap: .45rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 420px) {
  .check-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  }
}
.check-grid .check-row {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .55rem .7rem;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.check-grid .check-row:hover {
  border-color: rgba(13, 148, 136, .35);
  background: #fff;
}
.check-grid .check-row:has(input:checked) {
  background: var(--brand-soft);
  border-color: rgba(13, 148, 136, .45);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, .12);
}

.form-stack fieldset,
.modal-body fieldset,
.panel-block fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem .9rem 1rem;
  margin: 0;
  background: #fff;
  min-inline-size: 0;
}
.form-stack fieldset legend,
.modal-body fieldset legend,
.panel-block fieldset legend {
  float: none;
  width: auto;
  padding: 0 .4rem;
  margin-left: .15rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-inline .check-row {
  min-height: 0;
  font-size: .8rem !important;
}
.form-stack > .check-row,
.modal-body > .check-row,
.panel-block > .check-row,
.form-stack .form-actions .check-row {
  padding: .55rem .75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form-stack > .check-row:has(input:checked),
.modal-body > .check-row:has(input:checked),
.panel-block > .check-row:has(input:checked) {
  background: var(--brand-soft);
  border-color: rgba(13, 148, 136, .4);
}
.form-inline {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.form-inline input,
.form-inline select {
  min-height: 2.25rem;
  padding: .4rem .7rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
}
.form-inline input[type="search"],
.form-inline input:not([type]),
.form-inline input[type="text"] {
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 22rem;
}
.form-inline select {
  flex: 0 1 10rem;
  min-width: 8rem;
  max-width: 14rem;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.85rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 11px 7px;
}
.form-inline .btn {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: .4rem .85rem;
  font-size: .85rem;
}
.form-inline .check-row {
  flex: 0 0 auto;
}

/* Auth */
.auth-body {
  min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(13,148,136,.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(15,23,42,.08), transparent 45%),
    var(--bg);
}
.auth-shell { width: min(100%, 420px); }
.auth-shell.is-wide { width: min(100%, 920px); }
.auth-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.auth-brand .brand-logo {
  width: auto;
  height: 52px;
  max-width: min(200px, 65vw);
  border-radius: 12px;
  object-fit: contain;
}
.auth-brand .brand-mark {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  border-radius: 14px;
}
.auth-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.45rem; margin-bottom: .75rem; text-align: center; }
.auth-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.auth-tabs a {
  padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-soft);
}
.auth-tabs a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.auth-links, .auth-foot { text-align: center; margin-top: 1rem; font-size: .9rem; }
.auth-links a { color: var(--brand-dark); font-weight: 600; }
.auth-register-cta { margin-top: .85rem; }
.auth-social { margin-top: 1rem; }
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .85rem;
  color: var(--ink-muted, #64748b);
  font-size: .78rem;
  font-weight: 600;
}
.auth-social-divider::before,
.auth-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-social-btns {
  display: grid;
  gap: .5rem;
}
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 46px;
  padding: .65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink, #0f172a);
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-oauth:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.btn-oauth:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-oauth-apple { color: #111; }
.oauth-ico { flex-shrink: 0; }
.auth-social-hint { text-align: center; margin: .55rem 0 0; }
.auth-oauth-banner {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand, #0d9488) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand, #0d9488) 22%, transparent);
  font-size: .88rem;
  color: var(--ink-soft, #334155);
}
.auth-register .auth-social { margin: 0 0 1.1rem; }

/* Kayıt sayfası */
.auth-register-head { text-align: center; margin-bottom: 1rem; }
.auth-register-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-dark, #0f766e);
}
.auth-register-head h1 {
  margin: 0 0 .45rem;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  letter-spacing: -.02em;
}
.auth-register-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft, #475569);
}
.auth-register-lead strong { color: var(--ink, #0f172a); font-weight: 700; }
.auth-perks {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: .7rem .85rem;
  display: grid;
  gap: .45rem;
  background: color-mix(in srgb, var(--brand, #0d9488) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand, #0d9488) 18%, transparent);
  border-radius: 12px;
}
@media (min-width: 560px) {
  .auth-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
}
.auth-perks li {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--ink-soft, #334155);
  margin: 0;
}
.auth-perks strong { color: var(--ink, #0f172a); }
.auth-perk-ico {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand, #0d9488) 16%, #fff);
  color: var(--brand-dark, #0f766e);
}
.auth-fieldset {
  display: grid;
  gap: .7rem;
}
.auth-fieldset + .auth-fieldset {
  margin-top: .15rem;
}
.auth-register-form.form-stack .auth-fieldset legend {
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: none;
  color: var(--ink, #0f172a);
  padding: 0 .35rem;
}
.auth-fieldset-hint {
  margin: 0;
  font-size: .78rem;
  color: var(--ink-muted, #64748b);
  line-height: 1.4;
}
.auth-form-grid {
  display: grid;
  gap: .7rem;
}
@media (min-width: 560px) {
  .auth-form-grid { grid-template-columns: 1fr 1fr; }
}
.auth-pkg-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .auth-pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 880px) {
  .auth-pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.auth-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0;
  padding: 1rem .9rem .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 0;
  height: 100%;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.auth-pkg:hover {
  border-color: color-mix(in srgb, var(--brand, #0d9488) 40%, var(--line));
}
.auth-pkg.is-selected,
.auth-pkg:has(input:checked) {
  border-color: var(--brand, #0d9488);
  background: color-mix(in srgb, var(--brand, #0d9488) 6%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand, #0d9488) 28%, transparent);
}
.auth-pkg.is-featured:not(.is-selected):not(:has(input:checked)) {
  border-color: color-mix(in srgb, var(--brand, #0d9488) 28%, var(--line));
}
.auth-pkg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.auth-pkg-head {
  display: grid;
  gap: .3rem;
  text-align: center;
  justify-items: center;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.auth-pkg-badge {
  display: inline-flex;
  align-items: center;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: #ccfbf1;
  color: #0f766e;
}
.auth-pkg-name {
  font-size: 1rem;
  font-weight: 750;
  color: var(--ink, #0f172a);
  line-height: 1.25;
}
.auth-pkg-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .2rem;
  margin-top: .15rem;
}
.auth-pkg-price em {
  font-style: normal;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink, #0f172a);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.auth-pkg-price span {
  font-size: .75rem;
  color: var(--ink-muted, #64748b);
}
.auth-pkg-yearly {
  font-size: .72rem;
  color: var(--ink-muted, #64748b);
}
.auth-pkg-trial {
  margin-top: .15rem;
  font-size: .74rem;
  font-weight: 650;
  color: var(--brand-dark, #0f766e);
}
.auth-pkg-desc {
  font-size: .74rem;
  line-height: 1.4;
  color: var(--ink-muted, #64748b);
}
.auth-pkg-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  flex: 1;
}
.auth-pkg-feats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem;
  align-items: flex-start;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--ink-soft, #334155);
}
.auth-pkg-check {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .05rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand, #0d9488) 14%, #fff);
  color: var(--brand-dark, #0f766e);
  flex-shrink: 0;
}
.auth-pkg-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 650;
  color: var(--ink-soft, #475569);
}
.auth-pkg-radio {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color .15s;
}
.auth-pkg-radio::after {
  content: '';
  width: .48rem;
  height: .48rem;
  border-radius: 999px;
  background: transparent;
  transition: background .15s;
}
.auth-pkg.is-selected .auth-pkg-radio,
.auth-pkg:has(input:checked) .auth-pkg-radio {
  border-color: var(--brand, #0d9488);
}
.auth-pkg.is-selected .auth-pkg-radio::after,
.auth-pkg:has(input:checked) .auth-pkg-radio::after {
  background: var(--brand, #0d9488);
}
.auth-pkg.is-selected .auth-pkg-pick,
.auth-pkg:has(input:checked) .auth-pkg-pick {
  color: var(--brand-dark, #0f766e);
}
.auth-terms { margin-top: .25rem; }
.auth-register-submit { margin-top: .15rem; min-height: 48px; font-size: .95rem; }
.auth-register-note { margin: .35rem 0 0; text-align: center; }

/* Panel */
.panel-body {
  background: var(--bg);
  overflow-x: hidden;
}
.panel-shell {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: stretch;
}
.sidebar {
  display: none;
  flex-direction: column;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  background: #0b1220;
  color: #e2e8f0;
  padding: .85rem .7rem;
  z-index: 40;
}
.sidebar-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .35rem 1rem;
  flex-shrink: 0;
}
.sidebar .brand { min-width: 0; }
.sidebar .brand-text {
  color: #fff;
  font-size: .95rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .7rem;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 500;
  font-size: .92rem;
  min-width: 0;
}
.sidebar-link:hover,
.sidebar-link.is-active { background: rgba(13,148,136,.18); color: #fff; }
.sidebar-ico {
  display: grid;
  place-items: center;
  width: 22px;
  flex-shrink: 0;
  opacity: .9;
}
.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: .7rem;
  margin-top: auto;
  flex-shrink: 0;
}
.sidebar-user { padding: .35rem .7rem .6rem; min-width: 0; }
.sidebar-user strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Panel switcher (çoklu hesap) */
.panel-switcher {
  position: relative;
  min-width: 0;
}
.panel-switcher--sidebar {
  margin: 0 .35rem .55rem;
}
.panel-switcher-toggle {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.panel-switcher-toggle:hover {
  background: rgba(255,255,255,.1);
}
.panel-switcher-ico { flex-shrink: 0; opacity: .85; display: grid; place-items: center; }
.panel-switcher-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.panel-switcher-kicker {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .65;
}
.panel-switcher-current {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-switcher-chev {
  flex-shrink: 0;
  opacity: .7;
  transition: transform .15s ease;
}
.panel-switcher.is-open .panel-switcher-chev { transform: rotate(180deg); }
.panel-switcher-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 40;
  padding: .35rem;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  max-height: min(50vh, 280px);
  overflow: auto;
}
.panel-switcher-form { margin: 0; }
.panel-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .55rem .6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.panel-switcher-item:hover { background: rgba(255,255,255,.08); }
.panel-switcher-item.is-current {
  background: rgba(13,148,136,.22);
  cursor: default;
}
.panel-switcher-item-label {
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-switcher-item-meta {
  font-size: .7rem;
  opacity: .65;
  flex-shrink: 0;
}
.panel-switcher-badge {
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #5eead4;
}
.panel-switcher--topbar {
  display: none;
}
.panel-switcher--topbar .panel-switcher-toggle {
  width: auto;
  max-width: min(42vw, 220px);
  padding: .4rem .55rem;
  border-color: var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.panel-switcher--topbar .panel-switcher-kicker { color: var(--ink-muted); opacity: 1; }
.panel-switcher--topbar .panel-switcher-menu {
  bottom: auto;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  min-width: 240px;
  background: var(--bg-elevated);
  border-color: var(--line);
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(15,23,42,.14));
}
.panel-switcher--topbar .panel-switcher-item { color: var(--ink); }
.panel-switcher--topbar .panel-switcher-item:hover { background: var(--bg-soft, #f1f5f9); }
.panel-switcher--topbar .panel-switcher-item.is-current { background: rgba(13,148,136,.12); }
.panel-switcher--topbar .panel-switcher-badge { color: #0d9488; }
.panel-switcher--tab {
  margin: 0 0 .35rem;
}
.panel-switcher--tab .panel-switcher-toggle {
  border-color: var(--line);
  background: var(--bg-soft, #f8fafc);
  color: var(--ink);
}
.panel-switcher--tab .panel-switcher-kicker { color: var(--ink-muted); opacity: 1; }
.panel-switcher--tab .panel-switcher-menu {
  bottom: auto;
  top: calc(100% + 4px);
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--ink);
}
.panel-switcher--tab .panel-switcher-item { color: var(--ink); }
.panel-switcher--tab .panel-switcher-item:hover { background: var(--bg-soft, #f1f5f9); }
.panel-switcher--tab .panel-switcher-item.is-current { background: rgba(13,148,136,.12); }
.panel-switcher--tab .panel-switcher-badge { color: #0d9488; }
.tab-more-switch { padding: .35rem .45rem .2rem; }
@media (max-width: 900px) {
  .panel-switcher--sidebar { display: none; }
  .panel-switcher--topbar { display: block; }
}

.panel-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: var(--nav-h);
  padding: .55rem 1rem;
  background: rgba(243,245,247,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.topbar-title {
  flex: 1 1 auto;
  min-width: 0;
}
.topbar-title h1 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.topbar-bell {
  position: relative;
}
.topbar-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.topbar-bell-badge[hidden] { display: none !important; }

.notif-dd {
  position: relative;
}
.notif-dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(92vw, 360px);
  max-height: min(70vh, 480px);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  overflow: hidden;
}
.notif-dd-panel[hidden] { display: none !important; }
.notif-dd-head {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .75rem .85rem .55rem;
  border-bottom: 1px solid var(--line);
}
.notif-dd-head > strong {
  font-size: .95rem;
}
.notif-dd-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.notif-dd-tools .btn {
  padding: .25rem .45rem;
  font-size: .72rem;
}
.notif-dd-danger { color: #b91c1c !important; }
.notif-dd-list {
  list-style: none;
  margin: 0;
  padding: .35rem;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.notif-dd-empty {
  padding: 1.25rem .75rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: .85rem;
}
.notif-dd-item {
  margin: 0;
}
.notif-dd-btn {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  width: 100%;
  padding: .55rem .6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.notif-dd-btn:hover { background: var(--bg-soft, #f1f5f9); }
.notif-dd-item.is-unread .notif-dd-btn { background: rgba(13, 148, 136, .08); }
.notif-dd-dot {
  width: 8px;
  height: 8px;
  margin-top: .4rem;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}
.notif-dd-item.is-unread .notif-dd-dot { background: #0d9488; }
.notif-dd-main {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.notif-dd-main strong {
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.3;
}
.notif-dd-preview {
  font-size: .78rem;
  color: var(--ink-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-dd-time { margin-top: .1rem; }
.notif-dd-foot {
  padding: .55rem .75rem .7rem;
  border-top: 1px solid var(--line);
}
.notif-dd-foot .btn { width: 100%; justify-content: center; }
.notif-modal-body {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: .35rem 0 0;
}
.modal-foot-right {
  display: flex;
  gap: .4rem;
  margin-left: auto;
}
.notif-page-open {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.notif-page-open p { margin: .35rem 0 0; color: var(--ink-muted); font-size: .88rem; }
.notif-item-actions {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex-shrink: 0;
}
.panel-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1rem 1rem calc(1.25rem + var(--bottom-nav-h) + var(--app-safe-bottom));
  box-sizing: border-box;
  overflow-x: clip;
}

.stat-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .8rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .2rem;
}
.stat-value {
  font-family: var(--font);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.panel-grid-2 {
  display: grid;
  gap: 1rem;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
.panel-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.panel-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.panel-block h2 {
  font-size: .95rem;
  margin: 0;
  font-weight: 700;
}

.list-plain { display: grid; gap: .65rem; }
.list-plain li {
  display: grid;
  gap: .15rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.list-plain li:last-child { border-bottom: 0; padding-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: .7rem .5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-table tbody tr[data-href] {
  cursor: pointer;
  transition: background .12s ease;
}
.data-table tbody tr[data-href]:hover {
  background: rgba(13, 148, 136, .06);
}
.data-table tbody tr[data-href]:active {
  background: rgba(13, 148, 136, .1);
}

.alert {
  padding: .85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.alert-warn { background: var(--warning-soft); color: #92400e; }

/* Hub / Yönetim / Ayarlar */
.page-intro { margin-bottom: 1.15rem; }
.page-intro-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.page-intro .eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .35rem;
}
.page-intro h2 {
  font-size: 1.35rem;
  margin: 0 0 .35rem;
}
.page-intro .lead {
  margin: 0;
  font-size: .95rem;
}
.settings-group { margin-bottom: 1.35rem; }
.app-section-head { margin-bottom: .65rem; }
.app-section-head h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}
.settings-group-lead {
  margin: .25rem 0 0;
  font-size: .8rem;
  color: var(--ink-muted);
  line-height: 1.4;
  font-weight: 500;
}
.hub-grid {
  display: grid;
  gap: .75rem;
  margin-bottom: .35rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hub-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .85rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, .28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  color: inherit;
}
.hub-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  flex-shrink: 0;
}
.hub-card-body {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.hub-card-body strong {
  font-size: .98rem;
  letter-spacing: -0.02em;
}
.hub-card-body span {
  font-size: .8rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.hub-card-body em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.hub-card-arrow { color: #94a3b8; font-size: 1.05rem; }
.mb-2 { margin-bottom: 1rem; }
.stat-card[href] { text-decoration: none; color: inherit; transition: transform .15s var(--ease); }
.stat-card[href]:hover { transform: translateY(-2px); }

/* Mobil app-tabbar (Aidatla modeli) */
.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: .15rem;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: .35rem .45rem;
  padding-bottom: max(.35rem, env(safe-area-inset-bottom, 0px), var(--app-safe-bottom, 0px));
  padding-left: max(.45rem, env(safe-area-inset-left, 0px));
  padding-right: max(.45rem, env(safe-area-inset-right, 0px));
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .08);
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 52px;
  padding: .35rem .2rem;
  border-radius: 12px;
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.tab-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: inherit;
}
.tab-ico svg { display: block; }
.tab-lbl {
  font-size: .68rem;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-item-btn { appearance: none; width: 100%; font: inherit; }
.tab-item.is-active,
.tab-item.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.tab-more {
  position: relative;
  display: flex;
  min-width: 0;
}
.tab-more .tab-item { width: 100%; }
.tab-more.is-active .tab-item-btn,
.tab-more.is-open .tab-item-btn {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.tab-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + .45rem);
  min-width: 200px;
  max-width: min(280px, 86vw);
  padding: .45rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  z-index: 320;
}
.tab-more-menu:not([hidden]) { display: grid; gap: .15rem; }
.tab-more-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .75rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
}
.tab-more-ico {
  display: grid;
  place-items: center;
  width: 22px;
  color: var(--ink-muted);
}
.tab-more-link:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
}
.tab-more-link.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.tab-more-link.is-active .tab-more-ico { color: var(--brand-dark); }

.drawer-backdrop { display: none; }
.mobile-only { display: inline-flex; }
.desktop-only { display: none; }

@media (min-width: 900px) {
  /* Kaydırma yalnızca panel-main içinde — sidebar sabit kalsın (Aidatla) */
  html:has(.panel-shell),
  body.panel-body:has(.panel-shell) {
    height: 100%;
    overflow: hidden;
  }
  .panel-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  .mobile-only { display: none !important; }
  .desktop-only { display: inline-flex; }
  .app-tabbar { display: none; }
  .sidebar {
    display: flex;
    position: relative;
    top: auto;
    align-self: stretch;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
  }
  .panel-main {
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .panel-topbar,
  .panel-content {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
  .panel-content {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel-topbar,
  .panel-content {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

/* Toast */
.toast-stack {
  position: fixed; right: 1rem; bottom: calc(1rem + var(--bottom-nav-h) + var(--app-safe-bottom));
  z-index: 80; display: grid; gap: .5rem; width: min(360px, calc(100vw - 2rem));
}
.toast {
  display: flex; gap: .7rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem; box-shadow: var(--shadow); animation: toast-in .25s var(--ease);
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warn { border-left: 4px solid var(--warning); }
.toast-title { display: block; font-size: .85rem; }
.toast-msg { font-size: .88rem; color: var(--ink-soft); }
.toast-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

[data-studyo-app="1"] .panel-content {
  padding-bottom: calc(1rem + var(--bottom-nav-h) + var(--app-safe-bottom));
}
@media (min-width: 900px) {
  [data-studyo-app="1"] .panel-content {
    padding-bottom: 1.5rem;
  }
  .toast-stack { bottom: 1rem; }
}

/* FAZ 2 — CRM / takvim */
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.page-toolbar > .btn,
.page-toolbar > a.btn {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 2.25rem;
  padding: .4rem .95rem;
  font-size: .85rem;
}
.page-toolbar > a.btn-ghost:first-child {
  margin-left: 0;
}
.page-toolbar-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.page-toolbar .form-inline {
  flex: 1 1 16rem;
  min-width: 0;
}

/* Detaylı filtre paneli — alanlar + butonlar aynı satır */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .55rem;
  padding: .75rem .85rem;
  margin-bottom: .75rem;
}
.filter-bar-grid {
  display: contents;
}
.filter-bar-grid .filter-grow {
  flex: 1 1 14rem;
  min-width: 0;
}
.filter-bar label {
  display: grid;
  gap: .3rem;
  margin: 0;
  flex: 0 1 9.5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-muted);
  min-width: 0;
}
.filter-bar input,
.filter-bar select {
  min-height: 2.2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: .38rem .6rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 500;
  box-sizing: border-box;
}
.filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.85rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 11px 7px;
}
.filter-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.2rem;
}
.filter-bar-actions .btn {
  min-height: 2.2rem;
  padding: .38rem .85rem;
  font-size: .84rem;
}
.filter-bar-meta {
  font-size: .78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.filter-bar label.filter-check {
  flex: 0 1 auto;
  align-self: end;
}
.filter-bar .filter-check .check-row {
  min-height: 2.2rem;
  margin: 0;
  padding: .2rem .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 560px) {
  .filter-bar label,
  .filter-bar-grid .filter-grow {
    flex: 1 1 calc(50% - .3rem);
  }
  .filter-bar-actions {
    flex: 1 1 100%;
  }
}

.empty-state {
  text-align: center;
  padding: 1.35rem 1rem;
  color: var(--ink-muted);
}
.empty-state.panel-block {
  padding: 1.5rem 1rem;
}
.empty-state p {
  margin: 0;
  font-size: .9rem;
}
.empty-state .btn {
  margin-top: .75rem;
  min-height: 2.35rem;
  font-size: .88rem;
}
.table-wrap.panel-block {
  padding: 0;
  overflow: hidden;
}
@media (max-width: 720px) {
  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .page-toolbar > .btn,
  .page-toolbar > a.btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .page-toolbar .form-inline {
    width: 100%;
  }
  .form-inline input[type="search"],
  .form-inline input:not([type]),
  .form-inline input[type="text"],
  .form-inline select {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1rem;
}
.page-link {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: .85rem;
}
.page-link.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.detail-tabs {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: .15rem;
}
.detail-tabs a {
  flex: 0 0 auto;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.detail-tabs a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Rezervasyon detay */
.rsv-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: .85rem;
  padding: .9rem 1rem;
}
@media (min-width: 900px) {
  .rsv-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}
.rsv-hero-eyebrow {
  margin: 0 0 .2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rsv-hero-title {
  margin: 0 0 .55rem;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.rsv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  align-items: center;
  font-size: .78rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.rsv-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}
.rsv-hero-meta svg { flex-shrink: 0; opacity: .75; }
.rsv-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #0f766e;
  background: color-mix(in srgb, var(--rsv-status, #0d9488) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--rsv-status, #0d9488) 35%, transparent);
}
.rsv-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rsv-status, #0d9488);
}
.rsv-status-sm { font-size: .68rem; padding: .15rem .45rem; }
.rsv-hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
@media (min-width: 520px) {
  .rsv-hero-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rsv-hero-kpis-embed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rsv-kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .65rem;
  min-width: 0;
}
.rsv-kpi span {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .15rem;
}
.rsv-kpi strong {
  display: block;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}
.rsv-kpi.is-warn strong { color: #b45309; }
.rsv-summary {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .85rem;
}
@media (min-width: 720px) {
  .rsv-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rsv-layout {
  display: grid;
  gap: .85rem;
}
@media (min-width: 900px) {
  .rsv-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr);
    align-items: start;
  }
}
.rsv-side {
  display: grid;
  gap: .85rem;
}
.detail-kv {
  display: grid;
  gap: 0;
  margin: .35rem 0 0;
}
.detail-kv > div {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
  gap: .55rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.detail-kv > div:last-child { border-bottom: 0; }
.detail-kv dt {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: .1rem;
}
.detail-kv dd {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  word-break: break-word;
}
.detail-kv-stack > div {
  grid-template-columns: 1fr;
  gap: .15rem;
}
.rsv-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: end;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.rsv-status-form label {
  display: grid;
  gap: .3rem;
  margin: 0;
  flex: 1 1 12rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.rsv-status-form select {
  min-height: 2.2rem;
  width: 100%;
  padding: .38rem .6rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: .84rem;
}
.rsv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-top: .85rem;
}
.rsv-person {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin-bottom: .65rem;
}
.rsv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.rsv-person strong { display: block; font-size: .95rem; }
.rsv-note {
  margin: .55rem 0 0;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.rsv-notes-body {
  margin-top: .35rem;
  font-size: .9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.rsv-feed {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.rsv-feed li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: .65rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.rsv-feed li:last-child { border-bottom: 0; }
.rsv-feed strong { display: block; font-size: .9rem; }
.rsv-feed .muted { display: block; font-size: .76rem; margin-top: .15rem; }
.rsv-feed-dot {
  width: 10px;
  height: 10px;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.rsv-feed-dot.status-done { background: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.rsv-feed-dot.status-active { background: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }
.rsv-feed-dot.status-pending { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .2); }
.rsv-feed-dot.status-skipped { background: #cbd5e1; box-shadow: none; }

/* Müşteri detay */
.cust-hero-row {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.cust-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.15rem;
}
.cust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .55rem;
}
.cust-tag {
  display: inline-flex;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}
.cust-notes {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.cust-notes h3 {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cust-notes p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cust-upcoming {
  display: grid;
  gap: .35rem;
  text-decoration: none;
  color: inherit;
  padding: .55rem .65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.cust-upcoming:hover { border-color: rgba(13, 148, 136, .4); }
.cust-upcoming strong { font-size: .92rem; }
.cust-upcoming span { font-size: .78rem; color: var(--ink-muted); font-weight: 600; }
.rsv-hero-meta a {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
}
.rsv-hero-meta a:hover { color: var(--brand-dark); }

/* Workflow şablonları */
.wf-layout {
  display: grid;
  gap: .85rem;
}
@media (min-width: 960px) {
  .wf-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
    align-items: start;
  }
}
.wf-list {
  display: grid;
  gap: .65rem;
  margin-top: .35rem;
}
.wf-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
  background: var(--bg);
}
.wf-card.is-active {
  border-color: rgba(13, 148, 136, .45);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .1);
}
.wf-card.is-default {
  background: linear-gradient(180deg, rgba(13, 148, 136, .06), transparent 48%);
}
.wf-card-top {
  display: flex;
  gap: .65rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.wf-card h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}
.wf-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin-top: .3rem;
}
.wf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.wf-steps {
  list-style: none;
  margin: .7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.wf-steps li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .5rem .22rem .28rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.wf-step-num {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}
.wf-form-panel .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
  margin-top: .35rem;
}

/* Personel */
.staff-list {
  display: grid;
  gap: .65rem;
  margin-top: .35rem;
}
.staff-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
  background: var(--bg);
}
.staff-card.is-owner {
  background: linear-gradient(180deg, rgba(13, 148, 136, .06), transparent 50%);
}
.staff-card-top {
  display: flex;
  gap: .65rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.staff-card .rsv-person { margin-bottom: 0; }
.staff-card-meta { margin-top: .15rem; }
.staff-card-meta > div { padding: .35rem 0; }
.staff-edit-form {
  margin-top: .55rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}
.staff-owner-note { margin: .55rem 0 0; }

/* Abonelik */
.sub-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: .85rem;
  padding: 1rem 1.1rem;
}
@media (min-width: 800px) {
  .sub-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, .7fr);
    align-items: center;
  }
}
.sub-hero-label {
  margin: 0 0 .25rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sub-hero-title {
  margin: 0 0 .55rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.sub-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.sub-chip {
  display: inline-flex;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--line);
}
.sub-hero-aside {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sub-hero-price {
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.sub-hero-price span {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .2rem;
}
.sub-hero-price strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.sub-hero-price strong.is-warn { color: #b45309; }

.sub-usage { margin-bottom: .85rem; }
.sub-usage-grid {
  display: grid;
  gap: .75rem;
  margin-top: .25rem;
}
@media (min-width: 700px) {
  .sub-usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sub-usage-item {
  padding: .65rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.sub-usage-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
  margin-bottom: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.sub-usage-top strong {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.sub-usage-top em {
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: .78rem;
}
.sub-limit-bar {
  margin-top: 0;
  height: 6px;
}

.sub-layout {
  display: grid;
  gap: .85rem;
  margin-bottom: .85rem;
}
@media (min-width: 900px) {
  .sub-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr);
    align-items: start;
  }
}
.sub-side {
  display: grid;
  gap: .85rem;
}
.sub-modules {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.sub-modules h3 {
  margin: 0 0 .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sub-packages { margin-top: 0; }

.sub-pricing {
  display: grid;
  gap: .75rem;
  margin-top: .35rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .sub-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .sub-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sub-price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  display: grid;
  gap: .5rem;
  align-content: start;
  box-shadow: var(--shadow);
}
.sub-price-card.is-current {
  border-color: rgba(13, 148, 136, .45);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .12);
  background: linear-gradient(180deg, rgba(13, 148, 136, .07), #fff 38%);
}
.sub-price-card.is-featured:not(.is-current) {
  border-color: rgba(2, 132, 199, .3);
}
.sub-price-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.sub-price-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.sub-price-amount {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
.sub-price-amount span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: .2rem;
}
.sub-price-year {
  margin: -.25rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.sub-price-desc {
  margin: 0;
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.sub-price-limits {
  list-style: none;
  margin: .2rem 0 0;
  padding: .55rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.sub-price-limits li {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sub-price-limits li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.rsv-summary .stat-card.is-warn .stat-value { color: #b45309; }

.quote-show-main {
  display: grid;
  gap: .85rem;
  min-width: 0;
}
.quote-tot-label {
  text-align: right;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.quote-tot-grand td {
  border-top: 2px solid var(--line-strong);
  padding-top: .65rem;
}
.data-table tfoot td {
  background: var(--bg);
  font-size: .88rem;
}

.quote-items {
  display: grid;
  gap: .55rem;
  min-width: 0;
  max-width: 100%;
}
.quote-item-row {
  display: grid;
  gap: .4rem;
  grid-template-columns: minmax(0, 1fr);
  padding: .55rem .6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: end;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.quote-item-row .qi-field {
  display: grid;
  gap: .18rem;
  margin: 0;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 0;
  max-width: 100%;
}
.quote-item-row .qi-field > span {
  line-height: 1.15;
}
.quote-item-row .qi-field input,
.quote-item-row .qi-field select {
  min-height: 2.1rem;
  padding: .3rem .45rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.quote-item-row .qi-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .45rem center;
  background-size: 10px 6px;
}
.quote-item-row .qi-field input:focus,
.quote-item-row .qi-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.quote-item-row .qi-field input[type="number"] {
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: .3rem .35rem;
  font-size: .84rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.quote-item-row .qi-field input[type="number"]::-webkit-outer-spin-button,
.quote-item-row .qi-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quote-item-row .qi-service,
.quote-item-row .qi-title {
  grid-column: 1 / -1;
}
.quote-item-row .qi-nums {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  align-items: end;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1px;
}
.quote-item-row .qi-num {
  flex: 0 0 auto;
}
.quote-item-row .qi-num.qi-sm { width: 3.6rem; }
.quote-item-row .qi-num.qi-md { width: 4.5rem; }
.quote-item-row .qi-num.qi-lg { width: 5.5rem; }
.quote-item-row .qi-num input[type="number"] {
  width: 100%;
}
.quote-item-row .qi-remove {
  flex: 0 0 auto;
  width: 2.1rem;
  min-height: 2.1rem;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-muted);
  align-self: end;
}
.quote-item-row .qi-remove:hover {
  color: var(--danger);
  background: var(--danger-soft);
}
.quote-item-row .ui-select-btn {
  min-height: 2.1rem;
  padding: .3rem 1.55rem .3rem .45rem;
  border-radius: 8px;
  font-size: .86rem;
  background-position: right .45rem center;
  background-size: 10px 6px;
}
@media (min-width: 900px) {
  .quote-item-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
    gap: .4rem .5rem;
  }
  .quote-item-row .qi-service,
  .quote-item-row .qi-title {
    grid-column: auto;
  }
  .quote-item-row .qi-nums {
    grid-column: auto;
    overflow: visible;
  }
}
@media (max-width: 899px) {
  .quote-item-row .qi-field input,
  .quote-item-row .qi-field select,
  .quote-item-row .ui-select-btn {
    font-size: 16px;
  }
  .quote-item-row .qi-field input[type="number"] {
    font-size: 15px;
  }
}
.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .3rem;
}
.cal-weekdays {
  margin-bottom: .3rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
}
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 52px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .3rem .25rem .35rem;
  color: inherit;
  box-sizing: border-box;
}
.cal-cell-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.cal-cell:hover { border-color: rgba(13, 148, 136, .4); }
.cal-cell.is-empty { background: transparent; border-color: transparent; }
.cal-cell.is-empty .cal-cell-hit { display: none; }
.cal-cell.is-today { border-color: var(--brand); background: var(--brand-soft); }
.cal-daynum {
  position: relative;
  z-index: 0;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.cal-dots {
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-top: .25rem;
  min-height: 8px;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-dot-more {
  font-size: .58rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1;
}
.cal-count {
  position: relative;
  z-index: 0;
  display: block;
  margin-top: .15rem;
  text-align: center;
  font-size: .62rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.cal-events-desk { display: none; }
.cal-event {
  position: relative;
  z-index: 2;
  display: flex;
  gap: .25rem;
  align-items: baseline;
  min-width: 0;
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .3rem;
  margin-bottom: .2rem;
  border-radius: 6px;
  background: #fff;
  border-left: 3px solid var(--brand);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.cal-event-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.cal-event-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-toolbar { align-items: flex-start; }
.calendar-nav, .calendar-views { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mobile-cards { display: grid; gap: .65rem; }
.list-card {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.form-inline select {
  min-height: 44px;
  padding: .55rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.desktop-table { display: none; }
@media (min-width: 900px) {
  .desktop-table { display: block; }
  .mobile-cards { display: none; }
  .cal-weekdays, .cal-grid { gap: .35rem; }
  .cal-weekdays { font-size: .75rem; }
  .cal-cell {
    min-height: 110px;
    padding: .35rem;
    align-items: stretch;
  }
  .cal-cell-hit { display: none; }
  .cal-daynum {
    font-size: .78rem;
    text-align: left;
    margin-bottom: .25rem;
  }
  .cal-dots,
  .cal-count { display: none; }
  .cal-events-desk { display: block; min-width: 0; }
}

/* FAZ 3 — Operasyon */
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: .25rem;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: inherit;
}
.timeline-track {
  display: grid;
  gap: .85rem;
  list-style: none;
  counter-reset: tl;
}
.timeline-step {
  position: relative;
  padding: 1rem 1rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-left: 4px solid var(--ink-muted);
  box-shadow: var(--shadow);
}
.timeline-step.is-active { border-left-color: var(--brand); }
.timeline-step.is-done { border-left-color: var(--success); }
.timeline-step.is-skipped { border-left-color: var(--warning); opacity: .85; }
.timeline-step.is-current {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .18);
  background: linear-gradient(180deg, rgba(13, 148, 136, .06), #fff 42%);
}
.timeline-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.tl-level {
  display: inline-block;
  margin-right: .25rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tl-now {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding: .9rem 1rem;
}
.tl-now-compact {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
  justify-content: space-between;
  margin: .35rem 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.tl-now-eyebrow {
  margin: 0 0 .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tl-now-title {
  margin: 0 0 .3rem;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.tl-now-compact .tl-now-title { font-size: 1rem; }
.tl-now-meta {
  margin: 0 0 .55rem;
  font-size: .8rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.tl-now-bar { max-width: 18rem; height: 8px; }
.tl-now-actions { flex: 0 0 auto; }
.perm-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.perm-card {
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.perm-card h3 {
  font-size: .92rem;
  margin-bottom: .55rem;
}
.notif-list { display: grid; gap: .65rem; }
.notif-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.notif-item.is-unread {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.badge.priority-urgent { background: var(--danger-soft); color: var(--danger); }
.badge.priority-high { background: var(--warning-soft); color: var(--warning); }
.badge.priority-low { background: var(--bg-soft); }

/* FAZ 4 — Finans / istatistik */
.chart-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem;
  align-items: end;
  min-height: 180px;
}
.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  height: 180px;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 42px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 8px 8px 4px 4px;
  min-height: 4px;
}

/* FAZ 5 — Müşteri portalı */
.portal-gallery-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.portal-gallery-card {
  display: grid;
  gap: .45rem;
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.portal-gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}
.portal-gallery-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink-muted);
}
.portal-photo-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.portal-photo {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portal-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.portal-photo .badge {
  position: absolute;
  left: .35rem;
  bottom: .35rem;
}
.gallery-manage-grid,
.portal-photo-grid:has(.gallery-photo-card) {
  align-items: start;
}
.gallery-photo-card {
  display: grid;
  gap: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .4rem;
  box-shadow: var(--shadow);
}
.gallery-photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.gallery-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.gallery-photo-card {
  position: relative;
}
.gallery-photo-card.is-favorite {
  border-color: rgba(244, 63, 94, .55);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, .18), var(--shadow);
}
.gallery-photo-card.is-favorite > a[data-gal-lb]::after,
.gallery-photo-card.is-favorite > .portal-photo::after {
  content: "♥";
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  line-height: 1;
  color: #fff;
  background: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, .35);
  pointer-events: none;
}
.gallery-photo-card > a[data-gal-lb],
.gallery-photo-card > .portal-photo {
  position: relative;
  display: block;
}
.btn-fav.is-on,
.gallery-photo-actions .btn.is-fav-on {
  background: #e11d48 !important;
  border-color: #be123c !important;
  color: #fff !important;
  font-weight: 700;
}
.badge-fav {
  background: #e11d48 !important;
  color: #fff !important;
  border: 0;
}

/* FAZ 9 — destek / duyuru */
.ticket-thread { display: grid; gap: .75rem; }
.ticket-msg {
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.ticket-msg.is-staff {
  border-color: rgba(13, 148, 136, .35);
  background: var(--brand-soft);
}
.ticket-msg p { margin: .4rem 0 0; white-space: pre-wrap; }
.announcement-item {
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: .5rem;
}
.announcement-item p { margin: .35rem 0 0; }
.announcement-warning { border-color: #f59e0b; background: #fffbeb; }
.announcement-maintenance { border-color: #ef4444; background: #fef2f2; }
.announcement-feature { border-color: #0d9488; background: var(--brand-soft); }
.announcement-campaign { border-color: #8b5cf6; background: #f5f3ff; }

.checkout-card {
  max-width: 480px;
  margin: 2rem auto;
  padding: 1.5rem;
}
.checkout-amount {
  font-size: 1.75rem;
  font-weight: 700;
  margin: .5rem 0;
}

/* Alert + modal (WhatsApp / formlar) */
.alert-box {
  border-radius: 12px; padding: .85rem 1rem; font-size: .88rem; margin-bottom: 1rem;
  display: flex; gap: .65rem; align-items: flex-start;
}
.alert-box.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-box.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-box.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), visibility .22s;
  overflow: hidden;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  display: flex;
}
.modal {
  width: min(100%, 440px);
  max-height: min(90dvh, 720px);
  background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(17,24,39,.22);
  display: flex; flex-direction: column;
  transform: translateY(12px) scale(.98);
  transition: transform .28s var(--ease);
  overflow: hidden;
  min-height: 0;
  margin: auto;
}
.modal-backdrop.is-open .modal { transform: none; }
.modal > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-head h3 { font-size: 1.1rem; margin: 0; }
.modal-close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); cursor: pointer; font-size: 1.2rem; line-height: 1;
  display: grid; place-items: center; color: var(--ink-soft);
}
.modal-close:hover { background: var(--brand-soft); color: var(--brand); }
.modal-body {
  padding: 1.15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.modal-foot {
  padding: .9rem 1.15rem; border-top: 1px solid var(--line);
  display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap;
  align-items: center;
  background: #fafafa;
  flex-shrink: 0;
}
.modal-foot-right {
  display: flex;
  gap: .4rem;
  margin-left: auto;
  flex-wrap: wrap;
}
body.modal-open { overflow: hidden; }

/* WhatsApp connection page (Aidatla-style) */
.wa-business-warn {
  margin-bottom: 0;
  align-items: flex-start;
  line-height: 1.45;
}
.wa-business-warn strong { flex: 0 0 auto; font-weight: 800; }
.wa-business-warn span { min-width: 0; }
.wa-page { display: grid; gap: 1rem; }
.wa-page.is-busy { opacity: .72; pointer-events: none; }
.wa-top {
  display: grid; gap: 1rem; align-items: stretch;
  min-width: 0;
}
.wa-top > * { min-width: 0; }
@media (min-width: 900px) {
  .wa-top { grid-template-columns: 1.15fr .85fr; }
}
.wa-panel-side {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
  min-width: 0;
}
.wa-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.88)),
    radial-gradient(ellipse at top right, rgba(37,211,102,.14), transparent 50%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
  place-content: center;
  justify-items: center;
  text-align: center;
  min-height: 100%;
}
.wa-stage-on {
  background:
    linear-gradient(145deg, rgba(236,253,245,.95), rgba(255,255,255,.95)),
    radial-gradient(ellipse at top right, rgba(16,185,129,.2), transparent 52%);
  border-color: rgba(16,185,129,.25);
}
.wa-stage-wait {
  background:
    linear-gradient(145deg, rgba(255,247,237,.96), #fff),
    radial-gradient(ellipse at top right, rgba(249,115,22,.18), transparent 55%);
}
.wa-stage-off {
  background:
    linear-gradient(145deg, #fff, rgba(248,250,252,.95)),
    radial-gradient(ellipse at top right, rgba(100,116,139,.1), transparent 55%);
}
.wa-stage-glow {
  position: absolute; inset: -40% -20% auto auto; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,211,102,.22), transparent 68%);
  pointer-events: none;
}
.wa-stage-on .wa-stage-glow { background: radial-gradient(circle, rgba(16,185,129,.28), transparent 68%); }
.wa-stage-wait .wa-stage-glow { background: radial-gradient(circle, rgba(249,115,22,.25), transparent 68%); }
.wa-stage-main {
  position: relative;
  display: flex; flex-direction: column; gap: .85rem;
  align-items: center; justify-content: center;
  min-width: 0; text-align: center;
}
.wa-status-orb {
  width: 76px; height: 76px; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
}
.wa-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.35);
}
.wa-orb-on .wa-orb-ring {
  border-color: rgba(16,185,129,.55);
  animation: wa-pulse 2.2s var(--ease) infinite;
}
.wa-orb-wait .wa-orb-ring {
  border-color: rgba(249,115,22,.5);
  animation: wa-pulse 1.4s var(--ease) infinite;
}
.wa-orb-off .wa-orb-ring { border-color: rgba(100,116,139,.3); }
.wa-orb-core {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #25D366, #128C7E);
  color: #fff; box-shadow: 0 10px 24px rgba(18,140,126,.28);
}
.wa-orb-avatar {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wa-orb-initials {
  font-size: .95rem; font-weight: 800; letter-spacing: .02em; line-height: 1;
}
.wa-orb-off .wa-orb-core {
  background: linear-gradient(145deg, #94a3b8, #64748b);
  box-shadow: none;
}
.wa-orb-wait .wa-orb-core {
  background: linear-gradient(145deg, #fb923c, #f97316);
  box-shadow: 0 10px 24px rgba(249,115,22,.28);
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .55; }
}
.wa-stage-copy { min-width: 0; text-align: center; }
.wa-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .25rem;
}
.wa-stage-copy h3 {
  font-family: var(--display); font-size: 1.55rem; font-weight: 800;
  margin: 0 0 .25rem; color: var(--ink);
}
.wa-stage-copy > p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.wa-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; justify-content: center; }
.wa-pill {
  display: inline-flex; align-items: center;
  padding: .28rem .65rem; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--ink);
}
.wa-pill.muted { color: var(--ink-muted); font-weight: 500; }
.wa-actions {
  position: relative;
  display: flex; flex-wrap: wrap; gap: .45rem;
  align-items: center; justify-content: center;
  width: 100%;
}
.wa-inline-form { display: inline; margin: 0; }
.wa-btn-danger { color: var(--danger) !important; }
.wa-btn-danger:hover { background: var(--danger-soft) !important; }

.wa-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.15rem; box-shadow: var(--shadow);
}
.wa-connected-card h4,
.wa-qr-card h4,
.wa-empty-card h4 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 800; margin: 0 0 .35rem;
}
.wa-connected-card,
.wa-qr-card,
.wa-empty-card { text-align: center; }
.wa-connected-card > p,
.wa-qr-card > p,
.wa-empty-card > p {
  color: var(--ink-soft); font-size: .9rem; margin: 0 0 .85rem;
}
.wa-profile {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  margin-bottom: .85rem;
}
.wa-profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 3px solid rgba(37,211,102,.35);
  box-shadow: 0 8px 20px rgba(18,140,126,.18);
  background: #e2e8f0;
}
.wa-profile-fallback {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #25D366, #128C7E);
  color: #fff; font-weight: 800; font-size: 1.35rem;
  letter-spacing: .02em;
}
.wa-profile-copy h4 {
  margin: 0 0 .2rem;
  font-family: var(--display); font-size: 1.15rem; font-weight: 800;
}
.wa-profile-phone {
  margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink);
}
.wa-profile-status {
  margin: .25rem 0 0; font-size: .82rem; color: var(--ink-muted);
  max-width: 280px; margin-inline: auto;
}
.wa-empty-ico {
  width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink-muted);
}
.wa-steps {
  list-style: decimal;
  text-align: left;
  margin: 0 auto 1rem;
  padding-left: 1.15rem;
  max-width: 320px;
  color: var(--ink-soft);
  font-size: .88rem;
  display: grid; gap: .35rem;
}
.wa-qr-frame {
  width: min(100%, 260px);
  margin: 0 auto 1rem;
  padding: .85rem;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #25D366, #f97316, #128C7E) border-box;
  border: 2px solid transparent;
  box-shadow: 0 12px 32px rgba(18,140,126,.12);
  animation: wa-qr-in .45s var(--ease) both;
}
.wa-qr-frame img {
  width: 100%; height: auto; display: block; border-radius: 12px;
}
@keyframes wa-qr-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.wa-qr-hint { margin-top: .5rem; color: var(--ink-muted); }

.wa-stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem;
}
@media (min-width: 720px) {
  .wa-stat-row { grid-template-columns: repeat(4, 1fr); }
}
.wa-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .75rem .65rem; text-align: center; box-shadow: var(--shadow);
}
.wa-stat span {
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted);
}
.wa-stat strong {
  font-family: var(--display); font-size: 1.25rem; font-weight: 800;
}
.pager {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .35rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .wa-actions .btn { flex: 1 1 calc(50% - .3rem); justify-content: center; min-width: 0; }
  .wa-stage { padding: 1.1rem .9rem 1rem; border-radius: 18px; }
  .wa-panel { padding: .95rem; border-radius: 16px; }
  .wa-qr-frame {
    width: min(100%, 220px);
    margin-inline: auto;
  }
  .wa-qr-frame img { width: 100%; height: auto; }
  .wa-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wa-log-card { overflow: hidden; min-width: 0; }
  .wa-page .page-intro-compact {
    flex-direction: column;
    align-items: stretch;
  }
  .wa-page .page-intro-actions { width: 100%; }
  .wa-page .page-intro-actions .btn { flex: 1 1 auto; }
}

/* Page tabs — Yönetim / Ayarlar üst nav (Aidatla) */
.page-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  margin: 0 0 1rem;
  padding: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs-grouped {
  position: relative;
  z-index: 15;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .25rem;
  padding: .4rem .5rem;
  overflow: visible;
}
.page-tabs-sep {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1;
  padding: 0 .2rem;
  user-select: none;
  pointer-events: none;
}
.page-tabs-dd { position: relative; flex: 0 0 auto; }
.page-tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  opacity: .88;
}
.page-tab-ico svg { display: block; width: 100%; height: 100%; }
.page-tabs-dd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 40px;
  padding: .55rem .8rem;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.page-tabs-dd-trigger::after {
  content: '';
  width: .35rem;
  height: .35rem;
  margin-top: -.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
  flex: 0 0 auto;
}
a.page-tabs-dd-trigger::after { display: none; }
.page-tabs-dd-trigger:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.page-tabs-dd-trigger.is-active,
.page-tabs-dd.is-active-group > .page-tabs-dd-trigger {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}
.page-tabs-dd-menu {
  position: absolute;
  top: calc(100% + .28rem);
  left: 0;
  right: auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 11.5rem;
  max-width: min(18rem, calc(100vw - 1rem));
  padding: .4rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.page-tabs-dd-menu.is-align-end { left: auto; right: 0; }
.page-tabs-dd:hover > .page-tabs-dd-menu,
.page-tabs-dd:focus-within > .page-tabs-dd-menu,
.page-tabs-dd.is-open > .page-tabs-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.page-tabs-dd-item {
  gap: .45rem;
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
}
.page-tabs-dd-item .page-tab-ico { opacity: .75; }
.page-tab.is-active .page-tab-ico,
.page-tabs-dd-trigger.is-active .page-tab-ico { opacity: 1; }
.page-tabs-dd-item.is-active { box-shadow: none; }
.page-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 40px;
  padding: .55rem .85rem;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.page-tab.page-tabs-dd-item {
  justify-content: flex-start;
  text-align: left;
}
.page-tab:hover { background: var(--brand-soft); color: var(--brand-dark); }
.page-tab.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}
@media (max-width: 719px) {
  .page-tabs-grouped {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .15rem .1rem;
    padding: .28rem .3rem;
    align-items: stretch;
  }
  .page-tabs-sep { display: none; }
  .page-tabs-dd,
  .page-tabs-grouped > .page-tabs-dd-trigger {
    width: 100%;
    min-width: 0;
  }
  .page-tabs-dd-trigger {
    width: 100%;
    min-height: 34px;
    padding: .28rem .18rem;
    gap: .18rem;
    font-size: clamp(.58rem, 2.65vw, .68rem);
    line-height: 1.12;
    white-space: normal;
    text-align: center;
    border-radius: 9px;
  }
  .page-tabs-dd-trigger .page-tab-ico {
    width: .8rem;
    height: .8rem;
  }
  .page-tabs-dd-trigger::after {
    width: .26rem;
    height: .26rem;
    margin-top: -.05rem;
  }
  .page-tabs-dd-menu {
    left: 0;
    right: auto;
    min-width: max(100%, 10.5rem);
    max-width: min(16rem, calc(100vw - 1rem));
  }
  .page-tabs-dd-menu.is-align-end { left: auto; right: 0; }
}
@media (min-width: 720px) {
  .page-tabs { flex-wrap: wrap; overflow: visible; }
  .page-tabs-grouped { flex-wrap: wrap; }
}

/* Dashboard */
.dash-intro { margin-bottom: .85rem; }
.dash-intro h2 { font-size: 1.25rem; }
.dash-intro .lead { font-size: .88rem; max-width: 40rem; }
.dash-stats {
  margin-top: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .stat-grid.dash-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .dash-stats .stat-card {
    padding: .65rem .7rem;
  }
  .dash-stats .stat-value {
    font-size: .9rem;
  }
  .dash-stats .stat-label {
    font-size: .62rem;
  }
}
.dash-panels { margin-top: 1rem; }
.dash-panels .panel-block-head {
  align-items: flex-start;
}
.dash-panels .rem-section-lead {
  margin: .15rem 0 0;
  font-size: .75rem;
  color: var(--ink-muted, #64748b);
}
.dash-detail-table td { vertical-align: middle; }
.dash-detail-table th.num,
.dash-detail-table td.num { text-align: right; }
.dash-cell-main {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.dash-cell-main strong {
  font-weight: 650;
  color: var(--ink, #0f172a);
}
.dash-cell-main .firm-badge { align-self: flex-start; }
.dash-detail-table .firm-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}
.firm-badge-on{background:#ccfbf1;color:#0f766e}
.firm-badge-info{background:#e0f2fe;color:#0369a1}
.firm-badge-warn{background:#ffedd5;color:#c2410c}
.firm-badge-off{background:#fee2e2;color:#b91c1c}
.firm-badge-muted{background:#f1f5f9;color:#64748b}
.dash-detail-table .nowrap { white-space: nowrap; }
.dash-when {
  font-weight: 650;
  font-size: .82rem;
  color: var(--ink, #0f172a);
}
.dash-when.is-today { color: #0f766e; }
.dash-due-overdue { color: #b91c1c; font-weight: 650; }
.dash-row-warn td { background: color-mix(in srgb, #fecaca 28%, transparent); }
.dash-list li {
  display: grid;
  gap: .1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.dash-list li:last-child { border-bottom: 0; }
.dash-list .muted { font-size: .75rem; }
.empty-state-sm { padding: 1rem .5rem; }
.empty-state-sm p { font-size: .85rem; margin: 0; }

.quick-actions {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .85rem;
}
@media (min-width: 800px) {
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.qa {
  border: 0;
  border-radius: 12px;
  padding: .75rem .85rem;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: block;
  transition: transform .15s var(--ease), filter .15s;
  width: 100%;
}
.qa:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.04); }
.qa strong { display: block; font-size: .84rem; line-height: 1.25; }
.qa small {
  display: block;
  font-weight: 500;
  opacity: .9;
  margin-top: .2rem;
  font-size: .7rem;
}
.qa.c1 { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.qa.c2 { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.qa.c3 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.qa.c4 { background: linear-gradient(135deg, #334155, #64748b); }

.kpi-grid {
  display: grid;
  gap: .55rem;
  margin-bottom: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .kpi-grid.kpi-grid-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  box-shadow: var(--shadow);
}
a.kpi { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover {
  border-color: rgba(13, 148, 136, .35);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .1);
}
.kpi-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.kpi-ico svg { width: 16px; height: 16px; display: block; }
.kpi-ico.teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.kpi-ico.green { background: linear-gradient(135deg, #059669, #34d399); }
.kpi-ico.amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.kpi-ico.slate { background: linear-gradient(135deg, #334155, #64748b); }
.kpi-ico.cyan { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.kpi strong {
  display: block;
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.15;
}
.kpi span {
  font-size: .68rem;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.25;
}
.dash-hub .hub-card-body strong { font-size: .88rem; }
.dash-hub .hub-card-body span { font-size: .72rem; }
.hub-grid-compact { gap: .55rem; }
.data-table-compact th,
.data-table-compact td {
  font-size: .8rem;
  padding: .45rem .55rem;
}
.panel-block-head h2 { font-size: .95rem; }
.modal.modal-lg { width: min(100%, 520px); }
.modal.modal-rem {
  width: min(100%, 640px);
  max-height: min(92dvh, 860px);
}
.rem-modal-kicker {
  margin: 0 0 .15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rem-modal-body {
  display: grid;
  gap: .85rem;
}
.rem-fieldset {
  margin: 0;
}
.rem-form-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
.rem-form-grid .form-group {
  margin: 0;
  min-width: 0;
}
.rem-form-grid .form-control,
.rem-form-grid .ui-select,
.rem-template {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.rem-span-2 { grid-column: 1 / -1; }
.rem-field-hint {
  margin: .35rem 0 0;
  line-height: 1.35;
}
.rem-fixed-time {
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.rem-template {
  min-height: 11rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
  line-height: 1.45;
  resize: vertical;
}
.rem-vars-box,
.rem-preview-box {
  margin-top: .65rem;
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.rem-vars-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .5rem;
}
.rem-vars-head strong {
  font-size: .78rem;
  font-weight: 700;
}
.rem-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 0;
}
.rem-var-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  padding: .4rem .55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
}
.rem-var-chip code {
  font-size: .68rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: transparent;
}
.rem-var-chip span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.rem-var-chip:hover {
  border-color: rgba(13, 148, 136, .45);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .08);
}
.rem-preview {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ink);
  max-height: 10rem;
  overflow: auto;
}
.rem-fieldset-status {
  background: linear-gradient(180deg, rgba(13, 148, 136, .04), #fff);
}
.rem-status-row {
  width: 100%;
  padding: .15rem 0;
}
.modal-rem .modal-foot {
  justify-content: flex-start;
}
.modal-rem .modal-foot .btn-gold {
  margin-left: auto;
}


/* Hatırlatıcılar / otomasyon */
.rem-top {
  display: grid;
  gap: .75rem;
  margin-bottom: .85rem;
}
@media (min-width: 900px) {
  .rem-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
  }
}
.rem-time-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rem-time-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .15rem;
}
.rem-time-card strong {
  display: block;
  font-size: .92rem;
}
.rem-send-time-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.rem-send-time-actions .form-control {
  max-width: 9rem;
}
.rem-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
.rem-stats > div {
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.rem-stats em {
  display: block;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.rem-stats span {
  display: block;
  margin-top: .15rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.rem-section { margin-bottom: .85rem; }
.rem-section-lead {
  margin: .2rem 0 0;
  font-size: .78rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.rem-list {
  display: grid;
  gap: .55rem;
}
.rem-row {
  display: grid;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.rem-row:hover,
.rem-row:focus-visible {
  border-color: rgba(13, 148, 136, .35);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .08);
  outline: none;
}
.rem-row.is-on {
  background: linear-gradient(180deg, rgba(13, 148, 136, .05), #fff 50%);
  border-color: rgba(13, 148, 136, .28);
}
@media (min-width: 760px) {
  .rem-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.rem-row-main strong {
  display: block;
  margin: .25rem 0 .2rem;
  font-size: .95rem;
}
.rem-row-main p {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.rem-type {
  display: inline-flex;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.rem-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .45rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.rem-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.rem-row-side {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  justify-content: flex-end;
}
.rem-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .rem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .rem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rem-card {
  display: grid;
  gap: .4rem;
  align-content: start;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  min-height: 100%;
}
.rem-card:hover,
.rem-card:focus-visible {
  border-color: rgba(13, 148, 136, .35);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .08);
  outline: none;
}
.rem-card.is-on {
  border-color: rgba(13, 148, 136, .4);
  background: linear-gradient(180deg, rgba(13, 148, 136, .07), #fff 42%);
}
.rem-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
}
.rem-card-date {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rem-card h3 {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}
.rem-card p {
  margin: 0;
  font-size: .76rem;
  color: var(--ink-soft);
  line-height: 1.4;
  min-height: 2.1em;
}
.rem-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}
.rem-card-actions form { margin: 0; }
.soft-chip {
  display: inline-flex;
  align-items: center;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid transparent;
}
.act-btns {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  justify-content: flex-end;
}
.act-btns form { display: inline; margin: 0; }
.act {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.act:hover { color: var(--ink); border-color: rgba(13,148,136,.35); }
.act.del:hover { color: #dc2626; border-color: rgba(220,38,38,.35); }
.rem-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}
.rem-var-chip {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-muted);
}
.rem-var-chip:hover {
  border-color: rgba(13,148,136,.4);
  color: var(--brand-dark);
}
.ui-toggle-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  user-select: none;
}
.ui-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.ui-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.ui-toggle-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .15s;
}
.ui-toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .15s;
}
.ui-toggle input:checked + .ui-toggle-ui { background: var(--brand); }
.ui-toggle input:checked + .ui-toggle-ui::after { transform: translateX(18px); }
.ui-toggle-label { font-size: .9rem; font-weight: 600; }
