:root {
  color-scheme: light dark;
  --brand: #0071e3;
  --brand-strong: #0066cc;
  --brand-soft: #eaf3ff;
  --success: #12805c;
  --success-soft: #e5f8f0;
  --warning: #a15c00;
  --danger: #be3447;
  --danger-soft: #fff0f2;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #e5e5e7;
  --border-strong: #c8c8cd;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --focus: 0 0 0 4px rgba(49, 92, 246, 0.2);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--canvas);
}

.auth-brand {
  position: fixed;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand span:last-child {
  display: grid;
  gap: 2px;
}

.auth-brand small {
  color: var(--text-muted);
  letter-spacing: .12em;
}

.auth-card {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgb(0 0 0 / .18);
}

.auth-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-security {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: .86rem;
}

.dashboard-content {
  display: grid;
  gap: 24px;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 12px 0 8px;
}

.dashboard-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.store-link {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--brand);
  text-decoration: none;
  background: var(--surface);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.metric-grid span,
.summary-list dt {
  color: var(--text-muted);
  font-size: .82rem;
}

.metric-grid strong {
  font-size: 1.2rem;
}

.release-proof-card {
  margin-bottom: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.release-proof-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); }
.release-proof-heading h2 { margin: 0; font-size: 24px; }
.release-proof-heading p:not(.eyebrow) { max-width: 720px; margin: var(--space-2) 0 0; color: var(--text-muted); line-height: 1.55; }
.proof-progress { display: grid; min-width: 112px; padding: var(--space-3) var(--space-4); border: 1px solid currentColor; border-radius: var(--radius-sm); text-align: center; }
.proof-progress strong { font-size: 22px; }
.proof-progress span { margin-top: 2px; font-size: 11px; font-weight: 750; }
.proof-seal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.proof-seal-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-muted); }
.proof-seal-grid strong { display: block; font-size: 13px; }
.proof-seal-grid p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.proof-seal-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }
.proof-status-label { align-self: center; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); font-size: 10px; font-weight: 800; white-space: nowrap; }
.proof-status-pending { color: var(--warning); }
.proof-status-passed { color: var(--success); }
.proof-status-blocked { color: var(--danger); }
.release-proof-offline { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--warning); color: var(--text-muted); background: color-mix(in srgb, var(--warning) 7%, var(--surface)); font-size: 12px; line-height: 1.5; }
.release-proof-offline strong { color: var(--text); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 20px;
}

.domain-management {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.domain-heading,
.domain-card-title,
.domain-control,
.domain-stages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.domain-heading h2 { margin: 0; }
.domain-heading p:last-child,
.domain-card > p { margin: 7px 0 0; color: var(--text-muted); line-height: 1.5; }
.domain-shell-badge,
.domain-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  font-size: 11px;
  font-weight: 800;
}
.domain-status-reserved { color: var(--brand-strong); background: var(--brand-soft); }
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.domain-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-muted); }
.domain-card-title > div { display: grid; gap: 5px; min-width: 0; }
.domain-card-title span:first-child,
.domain-control label > span { color: var(--text-muted); font-size: 12px; }
.domain-card-title strong { overflow-wrap: anywhere; }
.domain-control { align-items: end; margin-top: 18px; }
.domain-control label { display: grid; flex: 1 1 auto; gap: 7px; }
.domain-control input:disabled { cursor: not-allowed; opacity: .72; }
.domain-control .button:disabled { cursor: not-allowed; opacity: .55; }
.domain-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.domain-stages li { justify-content: flex-start; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.domain-stages li > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); font-size: 11px; font-weight: 900; }
.domain-stages li > div { display: grid; gap: 4px; min-width: 0; }
.domain-stages small { color: var(--text-muted); line-height: 1.4; }
.domain-stages b { margin-left: auto; color: var(--warning); font-size: 11px; }
.domain-security { margin: 0; padding: 14px 16px; border-radius: 12px; color: var(--text-muted); background: var(--surface-muted); font-size: 12px; line-height: 1.5; }
.domain-security span { margin-right: 8px; color: var(--success); }

.summary-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.summary-list dd {
  margin: 0;
  font-weight: 700;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  background: var(--surface);
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary > span:last-child {
  display: grid;
}

.account-menu summary small {
  color: var(--text-muted);
}

.account-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgb(0 0 0 / .2);
}

.account-popover p {
  margin: 6px 0 16px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .domain-grid,
  .domain-stages { grid-template-columns: 1fr; }

  .dashboard-hero {
    align-items: start;
    flex-direction: column;
  }

  .proof-seal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .domain-management { padding: 18px; }
  .domain-heading,
  .domain-control { align-items: stretch; flex-direction: column; }

  .auth-brand {
    position: static;
    margin-bottom: 24px;
  }

  .auth-shell {
    display: block;
  }

  .release-proof-card { padding: var(--space-4); border-radius: var(--radius-md); }
  .release-proof-heading { flex-direction: column; }
  .proof-progress { width: 100%; }
  .proof-seal-grid li { grid-template-columns: auto minmax(0, 1fr); }
  .proof-status-label { grid-column: 2; justify-self: start; }
}

html[data-theme="dark"] {
  --brand: #64a9fa;
  --brand-strong: #8abfff;
  --brand-soft: #1c2b3d;
  --success: #79d8b5;
  --success-soft: #173c31;
  --warning: #ffc56d;
  --danger: #ff9bab;
  --danger-soft: #4b2029;
  --canvas: #111112;
  --surface: #1d1d1f;
  --surface-muted: #29292c;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --border: #38383b;
  --border-strong: #505054;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --brand: #64a9fa;
    --brand-strong: #8abfff;
    --brand-soft: #1c2b3d;
    --success: #79d8b5;
    --success-soft: #173c31;
    --warning: #ffc56d;
    --danger: #ff9bab;
    --danger-soft: #4b2029;
    --canvas: #111112;
    --surface: #1d1d1f;
    --surface-muted: #29292c;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --border: #38383b;
    --border-strong: #505054;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: var(--canvas); color: var(--text); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: -80px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--surface);
}
.skip-link:focus { top: var(--space-4); }
:focus-visible { outline: none; box-shadow: var(--focus); }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; padding: 0 var(--space-2); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: var(--text);
  box-shadow: none;
}
.brand span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 17px; letter-spacing: .02em; }
.brand small { margin-top: 5px; font-size: 9px; letter-spacing: .2em; color: var(--text-muted); }
.sidebar nav { display: grid; gap: var(--space-2); }
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 46px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav-item span { width: 20px; color: var(--text-muted); font-size: 18px; text-align: center; }
.nav-item.active { color: var(--brand-strong); background: var(--brand-soft); }
.nav-item.active span { color: var(--brand); }
.nav-item.muted { pointer-events: none; }
.secure-note {
  margin-top: auto;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.secure-note span { color: var(--success); margin-right: var(--space-2); }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}
.secure-pill { color: var(--success); font-size: 12px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: var(--space-3); }
.locale-link { min-height: 40px; display: grid; place-items: center; padding: 0 var(--space-3); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }
.theme-switcher { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); }
.theme-option { padding: 7px 10px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.theme-option.selected { background: var(--surface); color: var(--brand-strong); box-shadow: 0 2px 8px rgba(30, 42, 78, .08); }

.content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: var(--space-7) 0 72px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: var(--space-7); align-items: end; margin-bottom: var(--space-6); }
.eyebrow { margin: 0 0 var(--space-2); color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 720px; margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.hero > div > p:last-child { max-width: 670px; margin: var(--space-4) 0 0; color: var(--text-muted); line-height: 1.65; }
.progress-card { display: flex; align-items: flex-start; justify-content: center; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.progress-step { width: 76px; display: grid; justify-items: center; gap: var(--space-2); color: var(--text-muted); font-size: 10px; line-height: 1.25; text-align: center; }
.progress-step b { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--border-strong); border-radius: 50%; color: var(--text-muted); }
.progress-step.current { color: var(--brand-strong); font-weight: 700; }
.progress-step.current b { border-color: var(--brand); color: #fff; background: var(--brand); }
.progress-step.done b { border-color: var(--success); color: #fff; background: var(--success); }
.progress-line { flex: 1; height: 2px; margin-top: 13px; background: var(--border); }

.identity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
}
.identity-card.ready { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: var(--success-soft); }
.identity-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--warning); background: var(--surface); font-weight: 900; }
.identity-card.ready .identity-icon { color: var(--success); }
.identity-card strong { display: block; margin-bottom: 3px; }
.identity-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }

.onboarding-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: var(--space-5); align-items: start; }
.form-card, .preview-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.form-card { padding: var(--space-6); }
.preview-card { position: sticky; top: 96px; padding: var(--space-5); }
.card-heading { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-6); }
.step-number { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; color: var(--brand-strong); background: var(--brand-soft); font-size: 13px; font-weight: 900; }
.card-heading h2 { margin: 0; font-size: 20px; }
.card-heading p { margin: 5px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.field { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, .field legend { color: var(--text); font-size: 13px; font-weight: 750; }
.field small { color: var(--text-muted); font-size: 11px; }
input:not([type="checkbox"]):not([type="radio"]), select {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
}
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover { border-color: var(--brand); }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
/* TR: Onay kutusu ve seçim düğmesi alan kuralına girmez; yerel kontrol vurgu rengiyle sabit boyutta kalır. */
input:is([type="checkbox"], [type="radio"]) { inline-size: 18px; block-size: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); cursor: pointer; }
input:is([type="checkbox"], [type="radio"]):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.slug-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-muted); overflow: hidden; }
.slug-control:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.slug-control input { border: 0; border-radius: 0; box-shadow: none; }
.slug-control small { padding-right: var(--space-4); color: var(--text-muted); }
.model-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; border: 0; }
.model-field legend { grid-column: 1 / -1; margin-bottom: var(--space-2); }
.model-field label { position: relative; }
.model-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.model-field span { display: flex; align-items: center; gap: var(--space-3); min-height: 58px; padding: 0 var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 700; cursor: pointer; }
.model-field b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-muted); color: var(--brand); }
.model-field input:checked + span { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.model-field input:focus-visible + span { box-shadow: var(--focus); }

.preview-section + .preview-section { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.preview-section h3 { margin: 0 0 var(--space-3); font-size: 13px; }
.chip-list, .role-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-list li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); font-size: 12px; font-weight: 650; }
.chip-icon { color: var(--brand); }
.role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-list li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; color: var(--text-muted); font-size: 12px; }
.avatar { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.empty-preview { padding: var(--space-5); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); text-align: center; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 46px; padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-sm); text-decoration: none; font-weight: 800; cursor: pointer; }
.button-primary { width: 100%; margin-top: var(--space-5); color: #fff; background: var(--brand); box-shadow: 0 12px 24px rgba(49, 92, 246, .24); }
.button-primary:hover:not(:disabled) { background: var(--brand-strong); transform: translateY(-1px); }
.button-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.button-secondary { color: var(--brand-strong); border-color: var(--border); background: var(--surface); white-space: nowrap; }
.submit-help { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: 11px; text-align: center; }
.result { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-sm); font-size: 13px; }
.result.success { color: var(--success); background: var(--success-soft); }
.result.error { color: var(--danger); background: var(--danger-soft); }
.result-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }
.result p { margin: 3px 0; color: var(--text-muted); line-height: 1.4; }

.gateway-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) var(--space-6) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.auth-card > .gateway-status { margin: 0 0 var(--space-5); }
.gateway-status-ready { border-color: color-mix(in srgb, var(--success) 48%, var(--border)); }
.gateway-status-degraded { border-color: color-mix(in srgb, var(--warning) 55%, var(--border)); }
.gateway-status-blocked { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.gateway-status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--success);
  font-weight: 900;
}
.gateway-status-degraded .gateway-status-icon { color: var(--warning); }
.gateway-status-blocked .gateway-status-icon { color: var(--danger); }
.gateway-status strong, .gateway-status p, .gateway-status small { display: block; }
.gateway-status p { margin: 2px 0 0; color: var(--text-muted); line-height: 1.4; }
.gateway-status small { margin-top: 4px; color: var(--text-muted); overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .gateway-status { grid-template-columns: auto minmax(0, 1fr); margin-inline: var(--space-3); }
  .gateway-status .button { grid-column: 1 / -1; width: 100%; }
  .auth-card > .gateway-status { margin-inline: 0; }
}

footer { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: auto; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 11px; }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 86px minmax(0, 1fr); }
  .sidebar { align-items: center; padding-inline: var(--space-3); }
  .brand span:last-child, .nav-item:not(.active), .nav-item.active { font-size: 0; }
  .nav-item { justify-content: center; width: 50px; padding: 0; pointer-events: auto; }
  .nav-item span { font-size: 18px; }
  .secure-note { display: none; }
  .hero { grid-template-columns: 1fr; }
  .onboarding-grid { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}

@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar nav, .secure-note { display: none; }
  .brand span:last-child { display: flex; }
  .topbar { min-height: 62px; padding: 0 var(--space-4); }
  .topbar > div:first-child, .theme-option:first-child { display: none; }
  .content { width: min(100% - 28px, 620px); padding-top: var(--space-6); }
  .hero { gap: var(--space-5); }
  .progress-card { overflow-x: auto; justify-content: flex-start; padding: var(--space-4); }
  .progress-step { flex: 0 0 64px; }
  .identity-card { grid-template-columns: auto 1fr; padding: var(--space-4); }
  .identity-card .button { grid-column: 1 / -1; }
  .form-card, .preview-card { padding: var(--space-4); border-radius: var(--radius-md); }
  .form-fields, .model-field { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  footer { padding-inline: var(--space-4); }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .nav-item, .theme-option { transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
}

/* Ortak admin girişi: görünür +90 önekli telefon alanı ve açık SMS seçimi. */
.phone-input { display: flex; align-items: stretch; min-width: 0; }
.phone-prefix { display: inline-flex; align-items: center; padding: 0 var(--space-3); border: 1px solid var(--border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--text-muted); background: var(--surface); font-weight: 750; }
.phone-input input { flex: 1; min-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.auth-alternative { margin: var(--space-4) 0 0; font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); color: var(--text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth-sms { width: 100%; }
.business-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.business-option { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.business-name { font-weight: 700; overflow-wrap: anywhere; }
.business-slug, .business-sector { grid-column: 1; color: var(--text-muted); font-size: 12px; }
.business-option .button, .business-current { grid-column: 2; grid-row: 1 / span 3; }
.business-current { color: var(--success); font-size: 12px; font-weight: 700; }

/* TR: Billing alanı yalnız mevcut light/dark tokenlarını ve logical yerleşimi kullanır. */
.billing-content { max-inline-size: 1080px; display: grid; gap: var(--space-4); }
.billing-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-3); }
.billing-nav a, .billing-panel button { min-block-size: 44px; display: inline-flex; align-items: center; }
.billing-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.billing-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.billing-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-inline-start: auto; }
.billing-checkbox { display: flex; align-items: center; gap: var(--space-3); }
.billing-checkbox input { inline-size: 22px; block-size: 22px; flex: 0 0 auto; }
.billing-help summary { cursor: pointer; min-block-size: 44px; font-weight: 700; }
.billing-help li { margin-block: var(--space-3); line-height: 1.6; }
.billing-inline-form { display: inline-flex; margin-block-start: var(--space-3); }
@media (max-width: 680px) { .billing-card-actions { margin-inline-start: 0; inline-size: 100%; } .billing-card-actions form { flex: 1; } .billing-card-actions button { inline-size: 100%; } }

/* IF4362: Calm authenticated application shell. Existing sign-in and payment authority stays separate. */
.admin-app { background:var(--canvas); color:var(--text); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; line-height:1.55; }
.admin-shell { min-height:100dvh; display:grid; grid-template-columns:228px minmax(0,1fr); }
.admin-sidebar { padding:24px 12px; background:var(--surface); border-inline-end:1px solid var(--border); }
.admin-brand { display:flex; gap:12px; align-items:center; padding:0 12px 24px; text-decoration:none; color:var(--text); }
.admin-brand strong { font-size:19px; letter-spacing:.015em; }
.admin-brand small { display:block; font-size:12px; color:var(--text-muted); }
.admin-brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:var(--brand); color:var(--surface); font-size:21px; font-weight:700; }
.admin-navigation > summary { display:none; }
.admin-nav-group { margin:0 0 18px; }
.admin-nav-group h2 { margin:0 12px 6px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); font-weight:650; }
.admin-nav-group ul { list-style:none; margin:0; padding:0; }
.admin-nav-item { display:flex; align-items:center; min-height:40px; padding:9px 12px; font-size:13px; font-weight:500; border-radius:7px; color:var(--text-muted); text-decoration:none; }
.admin-nav-item:hover { background:var(--surface-muted); color:var(--text); }
.admin-nav-item.is-current { color:var(--brand-strong); background:var(--brand-soft); font-weight:650; }
.admin-workspace { min-width:0; display:flex; flex-direction:column; }
.admin-header { min-height:80px; padding:16px clamp(20px,3vw,48px); display:flex; align-items:center; justify-content:space-between; gap:20px; background:var(--surface); border-bottom:1px solid var(--border); }
.admin-business-context { display:grid; text-decoration:none; color:var(--text); }
.admin-business-context small { font-size:11px; color:var(--text-muted); }
.admin-business-context strong { font-size:15px; font-weight:650; }
.admin-header-actions { display:flex; align-items:center; gap:20px; }
.admin-language { color:var(--text-muted); font-size:13px; }
.admin-account-menu { position:relative; }
.admin-account-menu > summary { cursor:pointer; min-height:40px; display:flex; align-items:center; padding:8px 12px; border:1px solid var(--border); border-radius:8px; font-size:13px; }
.admin-account-panel { position:absolute; z-index:10; inset-inline-end:0; top:calc(100% + 8px); width:260px; padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 8px 24px #1d1d1f12; }
.admin-account-panel a { display:block; margin-block:12px; }
.admin-account-panel p { font-size:12px; color:var(--text-muted); }
.admin-content { width:100%; max-width:1280px; padding:28px clamp(20px,3vw,48px) 48px; margin-inline:auto; flex:1; }
.admin-breadcrumbs { display:flex; gap:10px; font-size:12px; color:var(--text-muted); margin-bottom:20px; }
.admin-breadcrumbs a { color:var(--text-muted); text-decoration:none; }
.admin-page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:30px; }
.admin-page-heading h1 { margin:0 0 8px; font-size:clamp(24px,2.1vw,32px); font-weight:650; letter-spacing:-.035em; line-height:1.25; }
.admin-page-heading p { margin:0; max-width:65ch; font-size:14px; color:var(--text-muted); }
.admin-page-heading > a { flex-shrink:0; }
.admin-page-heading > div { flex:1; min-width:0; }
.admin-page-heading > .button-primary { width:auto; max-width:100%; margin-top:0; flex:0 0 auto; }
.admin-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.admin-metric-grid article { padding:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.admin-metric-grid span { display:block; font-size:12px; color:var(--text-muted); margin-bottom:12px; }
.admin-metric-grid strong { font-size:24px; font-weight:650; overflow-wrap:anywhere; }
.admin-overview-grid,.admin-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:24px; }
.admin-panel,.admin-app .form-card { padding:24px; border-radius:12px; border:1px solid var(--border); background:var(--surface); box-shadow:none; margin-bottom:20px; }
.admin-panel h2,.admin-app .form-card h2 { font-size:17px; line-height:1.35; letter-spacing:-.015em; margin:0 0 12px; font-weight:650; }
.admin-panel p { color:var(--text-muted); font-size:14px; margin-bottom:20px; }
.admin-panel > a { display:inline-flex; margin-inline-end:18px; font-size:13px; font-weight:600; min-height:40px; align-items:center; }
.admin-facts { margin:16px 0; }
.admin-facts > div { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid var(--border); font-size:13px; }
.admin-facts dt { color:var(--text-muted); }
.admin-facts dd { margin:0; font-weight:550; text-align:end; overflow-wrap:anywhere; }
.admin-filter { display:flex; flex-wrap:wrap; align-items:flex-end; gap:16px; padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:12px; margin-bottom:16px; }
.admin-filter label { display:grid; gap:7px; font-size:12px; font-weight:600; }
.admin-filter input { min-height:42px; padding:10px 12px; border:1px solid var(--border-strong); border-radius:7px; background:var(--surface); color:var(--text); font:inherit; }
.admin-search { flex:1; min-width:180px; }
.admin-table-scroll { overflow:auto; border:1px solid var(--border); border-radius:12px; background:var(--surface); margin:20px 0; }
.admin-table { width:100%; border-collapse:collapse; font-size:13px; }
.admin-table caption { padding:16px; text-align:start; font-weight:650; font-size:14px; }
.admin-table th,.admin-table td { padding:14px 18px; text-align:start; border-top:1px solid var(--border); white-space:nowrap; }
.admin-table thead { color:var(--text-muted); background:var(--surface-muted); }
.admin-table tbody th { font-weight:550; }
.admin-table .number { text-align:end; font-variant-numeric:tabular-nums; }
.admin-state { padding:24px; border:1px solid var(--border); background:var(--surface); border-radius:12px; margin-bottom:24px; }
.admin-state h2 { font-size:17px; font-weight:600; margin:0 0 12px; }
.admin-state p { color:var(--text-muted); max-width:75ch; font-size:14px; }
.admin-state-error { border-inline-start:3px solid var(--danger); }
.admin-note,.admin-observed { font-size:12px; color:var(--text-muted); max-width:85ch; }
.admin-observed { font-variant-numeric:tabular-nums; }
.admin-help { padding:20px 24px; background:var(--surface-muted); border:1px solid var(--border); border-radius:12px; margin-top:24px; font-size:13px; }
.admin-help summary { cursor:pointer; font-weight:650; min-height:32px; }
.admin-help li { color:var(--text-muted); padding-block:5px; }
.admin-tag-list { display:flex; flex-wrap:wrap; list-style:none; gap:8px; padding:0; }
.admin-tag-list li { padding:6px 10px; border-radius:6px; background:var(--surface-muted); border:1px solid var(--border); font-size:12px; }
.admin-theme-options { display:flex; flex-wrap:wrap; gap:8px; }
.admin-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:20px clamp(20px,3vw,48px); border-top:1px solid var(--border); font-size:12px; color:var(--text-muted); background:var(--surface); }
.admin-footer div { display:flex; gap:20px; }
.admin-footer a { color:var(--text-muted); }
.admin-app .button { min-height:42px; border-radius:8px; box-shadow:none; font-size:13px; }
.admin-app a:focus-visible,.admin-app button:focus-visible,.admin-app input:focus-visible,.admin-app summary:focus-visible { outline:3px solid var(--brand); outline-offset:3px; box-shadow:none; }
.admin-app .auth-form { max-width:680px; }
.admin-app .billing-help { margin-top:24px; }
@media (max-width:1100px) { .admin-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:800px) {
 .admin-shell { grid-template-columns:minmax(0,1fr); }
 .admin-sidebar { padding:12px 20px; border-inline-end:0; border-bottom:1px solid var(--border); }
 .admin-brand { padding:0 0 12px; }
 .admin-navigation > summary { display:flex; align-items:center; min-height:44px; font-size:14px; font-weight:600; cursor:pointer; }
 .admin-navigation nav { padding-top:16px; }
 .admin-header { padding:16px 20px; }
 .admin-header-actions { gap:8px; }
 .admin-content { padding:24px 20px 36px; }
 .admin-page-heading { flex-direction:column; gap:16px; }
 .admin-overview-grid,.admin-detail-grid { grid-template-columns:minmax(0,1fr); gap:0; }
 .admin-filter { align-items:stretch; }
 .admin-filter label,.admin-filter button { flex:1 1 150px; }
 .admin-footer { padding:20px; }
}
@media (max-width:420px) { .admin-metric-grid { grid-template-columns:1fr; } .admin-header { align-items:flex-start; } .admin-language { padding:10px 0; } }
@media (prefers-reduced-motion:reduce) { .admin-app *,.admin-app *::before,.admin-app *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

/* TR: Sade yönetim görünümü; giriş yöntemleri, alanlar ve tüm mevcut akışlar korunur. */
.auth-shell .auth-brand { z-index: 2; }
.auth-shell .auth-brand .brand-mark { display: none; }
.auth-shell .auth-brand strong { font-size: 20px; font-weight: 650; letter-spacing: -.05em; }
.auth-shell .auth-brand small { font-size: 10px; letter-spacing: .04em; }
.auth-shell .auth-card { width: min(100%, 420px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-card > .eyebrow { display: none; }
.auth-card h1 { font-size: 22px; font-weight: 550; line-height: 1.2; letter-spacing: -.035em; text-align: center; }
.auth-card > p:not(.auth-alternative):not(.auth-security) { color: var(--text-muted); font-size: 14px; line-height: 1.6; text-align: center; }
.auth-card .auth-form { margin-top: 28px; gap: 18px; }
.auth-card .field { font-size: 13px; }
.auth-card .field input { min-height: 48px; border-radius: 9px; background: var(--surface); }
.auth-card .field small { font-size: 11px; color: var(--text-muted); }
.auth-card .auth-security { font-size: 11px; line-height: 1.6; text-align: center; }
.auth-card .surface-auth-preferences { position: absolute; inset-block-start: 20px; inset-inline-end: 28px; display: flex; flex-wrap: nowrap; align-items: end; gap: 10px; width: auto; max-inline-size: none; padding: 0; border: 0; background: transparent; }
.auth-card .surface-auth-preferences label { flex: 0 0 auto; font-size: 10px; color: var(--text-muted); }
.auth-card .surface-auth-preferences select { width: auto; inline-size: auto; min-height: 34px; padding: 4px 6px; border: 0; background: transparent; font-size: 12px; }
.auth-card .surface-auth-preferences .button { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.auth-card .button { border-radius: 9px; box-shadow: none; }
.auth-card > .button-secondary { display: flex; margin-top: 18px; border: 0; background: transparent; color: var(--brand-strong); font-size: 13px; }
.auth-alternative { text-align: center; font-size: 13px; }
.auth-card > .gateway-status-ready { display: none; }
.button-primary, .admin-app .button-primary { background: #0071e3; color: #fff; box-shadow: none; }
.button-primary:hover, .admin-app .button-primary:hover { background: #0066cc; }
.admin-sidebar { background: var(--surface-muted); }
.admin-brand-mark { background: var(--text); color: var(--surface); }
.admin-panel, .admin-app .form-card { box-shadow: none; border-radius: 10px; }
.admin-metric-grid article { box-shadow: none; border-radius: 10px; }
.admin-header .surface-auth-preferences { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.admin-header .surface-auth-preferences label { flex: 0 0 auto; gap: 3px; font-size: 10px; color: var(--text-muted); }
.admin-header .surface-auth-preferences select { inline-size: auto; min-block-size: 36px; padding: 4px 8px; border-radius: 8px; background: var(--surface); font-size: 12px; }
.admin-header .surface-auth-preferences .button { min-height: 36px; padding: 5px 10px; font-size: 12px; }
@media (max-width: 640px) {
  .auth-shell { padding: 150px 24px 48px; }
  .auth-brand { position: absolute; inset-block-start: 24px; inset-inline-start: 24px; }
  .auth-card .surface-auth-preferences { inset-block-start: 72px; inset-inline-start: 24px; inset-inline-end: 24px; justify-content: flex-end; }
  .admin-header { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .admin-business-context { flex-basis: 100%; min-width: 0; }
  .admin-header-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .admin-header .surface-auth-preferences { flex-wrap: wrap; }
}

/* TR: Yönetim paneli görünüm katmanı: sakin gri zemin, beyaz gruplanmış kartlar, iOS ayar satırları, ikonlu kenar menüsü ve hap butonlar. Rotalar, formlar ve yetki akışı değişmez. */
:root {
  --ap-canvas: #f5f5f7;
  --ap-surface: #ffffff;
  --ap-sidebar: #fbfbfd;
  --ap-text: #1d1d1f;
  --ap-secondary: #6e6e73;
  --ap-tertiary: #86868b;
  --ap-separator: #00000014;
  --ap-separator-strong: #00000024;
  --ap-fill: #7878801f;
  --ap-fill-hover: #7878802e;
  --ap-row-hover: #0000000a;
  --ap-accent: #0071e3;
  --ap-accent-hover: #0077ed;
  --ap-accent-soft: #0071e31a;
  --ap-accent-text: #0066cc;
  --ap-shadow: #0000000a;
  --ap-green: #248a3d;
  --ap-orange: #c93400;
  --ap-blue: #0071e3;
  --ap-purple: #8944ab;
  --ap-amber: #ff9f0a;
}
html[data-theme="dark"] {
  --ap-canvas: #000000;
  --ap-surface: #1c1c1e;
  --ap-sidebar: #0f0f11;
  --ap-text: #f5f5f7;
  --ap-secondary: #a1a1a6;
  --ap-tertiary: #7c7c80;
  --ap-separator: #ffffff17;
  --ap-separator-strong: #ffffff2b;
  --ap-fill: #7878803d;
  --ap-fill-hover: #78788052;
  --ap-row-hover: #ffffff0a;
  --ap-accent: #0a84ff;
  --ap-accent-hover: #409cff;
  --ap-accent-soft: #0a84ff29;
  --ap-accent-text: #4da3ff;
  --ap-shadow: #00000000;
  --ap-green: #30d158;
  --ap-orange: #ff9f0a;
  --ap-blue: #0a84ff;
  --ap-purple: #bf5af2;
  --ap-amber: #ffd60a;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --ap-canvas: #000000;
    --ap-surface: #1c1c1e;
    --ap-sidebar: #0f0f11;
    --ap-text: #f5f5f7;
    --ap-secondary: #a1a1a6;
    --ap-tertiary: #7c7c80;
    --ap-separator: #ffffff17;
    --ap-separator-strong: #ffffff2b;
    --ap-fill: #7878803d;
    --ap-fill-hover: #78788052;
    --ap-row-hover: #ffffff0a;
    --ap-accent: #0a84ff;
    --ap-accent-hover: #409cff;
    --ap-accent-soft: #0a84ff29;
    --ap-accent-text: #4da3ff;
    --ap-shadow: #00000000;
    --ap-green: #30d158;
    --ap-orange: #ff9f0a;
    --ap-blue: #0a84ff;
    --ap-purple: #bf5af2;
    --ap-amber: #ffd60a;
  }
}

/* Kabuk ve kenar menüsü */
.admin-app { background: var(--ap-canvas); color: var(--ap-text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.admin-app .admin-shell.py-shell { grid-template-columns: 248px minmax(0, 1fr); background: var(--ap-canvas); }
.admin-app .admin-sidebar.py-sidebar { padding: 18px 12px 28px; background: var(--ap-sidebar); border-inline-end: 1px solid var(--ap-separator); }
.admin-app .admin-nav-group { margin: 0 0 16px; }
.admin-app .admin-nav-group h2 { margin: 0 10px 6px; color: var(--ap-tertiary); font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.admin-app .admin-nav-group:first-child h2 { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-app .admin-nav-group ul { display: grid; gap: 2px; }
.admin-app .admin-sidebar .admin-nav-item { display: flex; align-items: center; gap: 10px; min-block-size: 34px; padding: 6px 10px; border-radius: 8px; color: var(--ap-text); font-size: 13.5px; font-weight: 500; line-height: 1.25; text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.admin-app .admin-sidebar .admin-nav-item .admin-icon { inline-size: 19px; block-size: 19px; flex: none; color: var(--ap-accent); }
.admin-app .admin-sidebar .admin-nav-item:hover { background: var(--ap-fill); color: var(--ap-text); }
.admin-app .admin-sidebar .admin-nav-item.is-current { background: var(--ap-accent-soft); color: var(--ap-accent-text); font-weight: 600; }
.admin-app .admin-nav-label { min-inline-size: 0; overflow-wrap: anywhere; }

/* Sayfa başlığı ve gezinti izi */
.admin-app .admin-content.py-main { max-inline-size: 1120px; padding: 30px clamp(20px, 4vw, 56px) 56px; }
.admin-app .admin-breadcrumbs { gap: 6px; margin-bottom: 8px; color: var(--ap-tertiary); font-size: 12.5px; }
.admin-app .admin-breadcrumbs a { color: var(--ap-secondary); }
.admin-app .admin-content[data-admin-current-page="overview"] .admin-breadcrumbs { display: none; }
.admin-app .admin-page-heading { align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.admin-app .admin-page-heading h1 { margin: 0 0 6px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.admin-app .admin-page-heading p { max-inline-size: 70ch; color: var(--ap-secondary); font-size: 15px; line-height: 1.45; }

/* Butonlar */
.admin-app .button { min-block-size: 36px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; transition: background-color .12s ease; }
.admin-app .button.button-primary { inline-size: auto; margin-top: 0; background: var(--ap-accent); color: #ffffff; box-shadow: none; }
.admin-app .button.button-primary:hover:not(:disabled) { background: var(--ap-accent-hover); transform: none; }
.admin-app .button.button-secondary { background: var(--ap-fill); color: var(--ap-accent-text); }
.admin-app .button.button-secondary:hover { background: var(--ap-fill-hover); }
.admin-app .admin-page-heading > .button.button-primary { min-block-size: 38px; padding-inline: 20px; }

/* Kartlar */
.admin-app :is(.admin-panel, .form-card, .admin-state, .admin-filter, .admin-table-scroll) { background: var(--ap-surface); border: 1px solid var(--ap-separator); border-radius: 14px; box-shadow: 0 1px 2px var(--ap-shadow); }
.admin-app :is(.admin-panel, .form-card) { padding: 22px 24px; }
.admin-app :is(.admin-panel, .form-card, .admin-state) h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.admin-app :is(.admin-panel, .form-card) > p { margin: 0 0 14px; color: var(--ap-secondary); font-size: 14px; line-height: 1.5; }
.admin-app :is(.admin-overview-grid, .admin-detail-grid) { gap: 16px; margin-bottom: 16px; }
.admin-app :is(.admin-overview-grid, .admin-detail-grid) > :is(.admin-panel, .form-card) { margin: 0; }
.admin-app .admin-panel > a { display: inline-flex; align-items: center; gap: 2px; min-block-size: 32px; margin: 2px 22px 0 0; color: var(--ap-accent-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.admin-app .admin-panel > a::after { content: "\203A"; font-size: 19px; line-height: 1; transform: translateY(-1px); }
html[dir="rtl"] .admin-app .admin-panel > a { margin: 2px 0 0 22px; }
html[dir="rtl"] .admin-app .admin-panel > a::after { content: "\2039"; }
.admin-app .admin-panel > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-app .form-card > summary, .admin-app details.form-card > summary { cursor: pointer; min-block-size: 32px; font-size: 15px; font-weight: 600; }

/* Bilgi satırları (iOS ayar listesi) */
.admin-app .admin-facts { margin: 2px 0 12px; padding: 0; }
.admin-app .admin-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 44px; padding: 10px 0; border-bottom: 1px solid var(--ap-separator); font-size: 14px; }
.admin-app .admin-facts > div:last-child { border-bottom: 0; }
.admin-app .admin-facts dt { color: var(--ap-text); }
.admin-app .admin-facts dd { margin: 0; color: var(--ap-secondary); font-weight: 500; text-align: end; }
.admin-app .summary-list { margin: 4px 0 14px; padding: 0; list-style: none; }
.admin-app .summary-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 44px; padding: 10px 0; border-bottom: 1px solid var(--ap-separator); font-size: 14px; }
.admin-app .summary-list li:last-child { border-bottom: 0; }
.admin-app .summary-list li > span { color: var(--ap-text); }
.admin-app .summary-list li > strong { color: var(--ap-secondary); font-weight: 500; text-align: end; overflow-wrap: anywhere; }

/* Özet kutuları */
.admin-app .admin-metric-grid { gap: 14px; margin-bottom: 16px; }
.admin-app .admin-metric-grid article { --ap-tone: var(--ap-blue); display: grid; align-content: start; gap: 3px; padding: 18px 20px; background: var(--ap-surface); border: 1px solid var(--ap-separator); border-radius: 14px; box-shadow: 0 1px 2px var(--ap-shadow); }
.admin-app .admin-metric-grid article[data-tone="green"] { --ap-tone: var(--ap-green); }
.admin-app .admin-metric-grid article[data-tone="orange"] { --ap-tone: var(--ap-orange); }
.admin-app .admin-metric-grid article[data-tone="purple"] { --ap-tone: var(--ap-purple); }
.admin-app .admin-metric-grid .admin-metric-icon { position: relative; display: grid; place-items: center; inline-size: 32px; block-size: 32px; margin: 0 0 10px; border-radius: 9px; color: var(--ap-tone); isolation: isolate; }
.admin-app .admin-metric-grid .admin-metric-icon::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: .14; }
.admin-app .admin-metric-grid .admin-metric-icon .admin-icon { inline-size: 18px; block-size: 18px; }
.admin-app .admin-metric-grid article > span:not(.admin-metric-icon) { margin: 0; color: var(--ap-secondary); font-size: 13px; }
.admin-app .admin-metric-grid strong { color: var(--ap-text); font-size: 22px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }

/* Etiketler, tablolar, filtreler, alanlar */
.admin-app .admin-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.admin-app .admin-tag-list li { padding: 5px 11px; border: 0; border-radius: 999px; background: var(--ap-fill); color: var(--ap-text); font-size: 12.5px; font-weight: 500; }
.admin-app .admin-table-scroll { margin: 16px 0; padding: 0; overflow: auto; }
.admin-app .admin-table { font-size: 14px; }
.admin-app .admin-table caption { padding: 16px 20px 6px; font-size: 15px; font-weight: 600; }
.admin-app .admin-table thead { background: transparent; color: var(--ap-secondary); }
.admin-app .admin-table th, .admin-app .admin-table td { padding: 12px 20px; border-top: 1px solid var(--ap-separator); }
.admin-app .admin-table thead th { font-size: 12px; font-weight: 600; }
.admin-app .admin-table tbody tr:hover { background: var(--ap-row-hover); }
.admin-app .admin-filter { gap: 14px; padding: 18px 20px; margin-bottom: 14px; }
.admin-app .admin-filter label, .admin-app .field > span { color: var(--ap-secondary); font-size: 12.5px; font-weight: 600; }
.admin-app :is(.admin-filter, .form-card, .admin-panel) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { min-block-size: 38px; padding: 8px 12px; border: 1px solid var(--ap-separator-strong); border-radius: 10px; background: var(--ap-surface); color: var(--ap-text); font: inherit; font-size: 14px; }
.admin-app :is(.admin-filter, .form-card, .admin-panel) :is(input, select, textarea):focus-visible { border-color: var(--ap-accent); outline: 0; box-shadow: 0 0 0 4px var(--ap-accent-soft); }
.admin-app .billing-card { padding: 16px 18px; border: 1px solid var(--ap-separator); border-radius: 12px; }
.admin-app :is(.auth-form, .form-fields, .billing-panel) > .button { justify-self: start; inline-size: auto; min-inline-size: 160px; }
.admin-app .submit-help { text-align: start; }

/* Durum, notlar ve yardım */
.admin-app .admin-state { padding: 22px 24px; }
.admin-app .admin-state p { color: var(--ap-secondary); }
.admin-app :is(.admin-note, .admin-observed, .submit-help) { color: var(--ap-tertiary); font-size: 12.5px; line-height: 1.5; }
.admin-app .admin-status-note { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--ap-fill); color: var(--ap-secondary); font-size: 13.5px; }
.admin-app .admin-status-note::before { content: ""; inline-size: 8px; block-size: 8px; flex: none; border-radius: 50%; background: var(--ap-amber); }
.admin-app .card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.admin-app .card-heading h2 { margin: 0 0 4px; }
.admin-app .card-heading p { margin: 0; color: var(--ap-secondary); font-size: 14px; }
.admin-app .step-number { display: grid; place-items: center; inline-size: 40px; block-size: 40px; flex: none; border-radius: 11px; background: var(--ap-accent-soft); color: var(--ap-accent); }
.admin-app .step-number .admin-icon { inline-size: 20px; block-size: 20px; }
.admin-app .admin-help { margin-top: 22px; padding: 0; background: transparent; border: 0; font-size: 13px; }
.admin-app .admin-help > summary { display: inline-flex; align-items: center; gap: 8px; min-block-size: 32px; color: var(--ap-accent-text); font-weight: 500; list-style: none; cursor: pointer; }
.admin-app .admin-help > summary::-webkit-details-marker { display: none; }
.admin-app .admin-help > summary::before { content: ""; inline-size: 7px; block-size: 7px; border-inline-end: 1.6px solid currentColor; border-block-end: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
html[dir="rtl"] .admin-app .admin-help > summary::before { transform: rotate(135deg); }
.admin-app .admin-help[open] > summary::before { transform: rotate(45deg); }
.admin-app .admin-help ol { margin: 8px 0 0; padding: 14px 20px 14px 36px; background: var(--ap-surface); border: 1px solid var(--ap-separator); border-radius: 12px; color: var(--ap-secondary); }
.admin-app .admin-help li { color: var(--ap-secondary); }
.admin-app .admin-footer.py-footer { background: transparent; border-top: 1px solid var(--ap-separator); color: var(--ap-tertiary); font-size: 12px; }
.admin-app .admin-footer a { color: var(--ap-secondary); }

@media (max-width: 1100px) { .admin-app .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .admin-app .admin-shell.py-shell { display: flex; flex-direction: column; }
  .admin-app .admin-sidebar.py-sidebar { padding: 8px 16px; border-inline-end: 0; border-bottom: 1px solid var(--ap-separator); }
  .admin-app .admin-content.py-main { padding: 22px 16px 40px; }
  .admin-app .admin-page-heading { align-items: flex-start; }
}
@media (max-width: 420px) { .admin-app .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .admin-app .admin-metric-grid article { padding: 14px; } .admin-app .admin-metric-grid .admin-metric-icon { margin-bottom: 8px; } .admin-app .admin-metric-grid strong { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .admin-app .admin-help > summary::before { transition: none; } }

/* TR: Onay satırları, işletme seçim kartları ve kart içi form düzeni. */
label.checkbox, .billing-checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14px; line-height: 1.45; cursor: pointer; }
label.checkbox input, .billing-checkbox input { margin-top: 1px; }
.tenant-option-list { display: grid; gap: 10px; margin: 6px 0 4px; padding: 0; list-style: none; }
.tenant-option { display: flex; align-items: center; gap: 14px; min-block-size: 60px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.tenant-option:hover { border-color: var(--border-strong); }
.tenant-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.tenant-option input { inline-size: 20px; block-size: 20px; }
.tenant-option-text { display: grid; gap: 2px; min-inline-size: 0; }
.tenant-option-text strong { color: var(--text); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tenant-option-text small { color: var(--text-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.admin-app :is(.form-card, details.form-card) > form:not(.billing-inline-form):not(.form-fields) { display: grid; gap: 14px; justify-items: stretch; }
.admin-app :is(.form-card, details.form-card) > form:not(.billing-inline-form):not(.form-fields) > .button { justify-self: start; inline-size: auto; min-inline-size: 160px; }
.admin-app .eyebrow { margin: 0 0 6px; color: var(--ap-accent-text); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.admin-app .result { display: block; margin: 6px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--ap-fill); color: var(--ap-text); font-size: 14px; }
.admin-app .result.success { background: var(--success-soft); color: var(--success); }
.admin-app .result.error { background: var(--danger-soft); color: var(--danger); }

/* TR: W5 — "Uygulamalar" indirme sayfası: hero, platform kartları, adım listesi, bilgi satırları ve arşiv. Yalnız --ap-* tokenları; koyu tema ve RTL otomatik. */
.admin-app .apps-page { display: grid; gap: 20px; }
.admin-app .apps-hero { display: grid; gap: 6px; padding: 4px 0 4px; }
.admin-app .apps-hero .eyebrow { margin: 0; color: var(--ap-accent-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.admin-app .apps-hero h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.admin-app .apps-hero > p { margin: 0; max-inline-size: 72ch; color: var(--ap-secondary); font-size: 15px; line-height: 1.5; }
.admin-app .apps-hero .apps-session { color: var(--ap-tertiary); font-size: 13px; }
.admin-app .apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.admin-app .apps-card { position: relative; display: grid; align-content: start; gap: 16px; padding: 22px 24px 24px; background: var(--ap-surface); border: 1px solid var(--ap-separator); border-radius: 16px; box-shadow: 0 1px 2px var(--ap-shadow); }
.admin-app .apps-page[data-detected] .apps-card:first-child { border-color: var(--ap-accent); box-shadow: 0 0 0 3px var(--ap-accent-soft); }
.admin-app .apps-page[data-detected] .apps-grid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(260px, 1fr)); }
.admin-app .apps-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.admin-app .apps-card-icon { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; background: var(--ap-fill); color: var(--ap-text); }
.admin-app .apps-card-icon .apps-icon { inline-size: 24px; block-size: 24px; }
.admin-app .apps-card-titles { min-inline-size: 0; }
.admin-app .apps-card h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.admin-app .apps-card-version { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; color: var(--ap-secondary); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.admin-app .apps-card-head .apps-badge { grid-column: 3; }
.admin-app .apps-badge { display: inline-flex; align-items: center; min-block-size: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.admin-app .apps-badge[hidden] { display: none; }
.admin-app .apps-badge-channel { background: color-mix(in srgb, var(--ap-amber) 18%, transparent); color: var(--ap-orange); }
.admin-app .apps-badge-detected { background: var(--ap-accent-soft); color: var(--ap-accent-text); }
.admin-app .apps-steps { display: grid; gap: 10px; margin: 0; padding: 0 0 0 22px; }
.admin-app .apps-steps > li { padding: 12px 14px 12px 8px; border: 1px solid var(--ap-separator); border-radius: 12px; background: var(--ap-canvas); font-size: 13.5px; }
.admin-app .apps-steps > li::marker { color: var(--ap-accent-text); font-weight: 700; }
.admin-app .apps-steps strong { display: block; margin-bottom: 4px; font-weight: 600; }
.admin-app .apps-steps p { margin: 0 0 10px; color: var(--ap-secondary); font-size: 13px; line-height: 1.5; }
.admin-app .apps-steps .button { min-block-size: 44px; padding: 0 14px; font-size: 13px; }
.admin-app .apps-certificate-method { display: grid; gap: 6px; margin-block-start: 14px; padding-block-start: 12px; border-block-start: 1px solid var(--ap-separator); }
.admin-app .apps-certificate-method h4 { margin: 0; font-size: 13.5px; font-weight: 600; }
.admin-app .apps-certificate-method p { margin: 0; }
.admin-app .apps-certificate-wizard { display: grid; gap: 4px; margin: 0; padding-inline-start: 20px; color: var(--ap-secondary); font-size: 13px; line-height: 1.5; }
.admin-app .apps-certificate-command { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--ap-separator); border-radius: 10px; background: var(--ap-surface); }
.admin-app .apps-certificate-command code { flex: 1 1 200px; min-inline-size: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; user-select: all; }
.admin-app .apps-certificate-command .apps-copy { min-block-size: 44px; min-inline-size: 44px; padding: 0 14px; }
.admin-app .apps-steps .apps-certificate-after { margin: 14px 0 0; color: var(--ap-text); font-weight: 600; }
.admin-app .apps-card .button-primary.apps-primary { display: inline-flex; justify-content: center; gap: 6px; inline-size: 100%; min-block-size: 44px; font-size: 15px; }
.admin-app .apps-primary-version { opacity: .8; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-app .apps-help, .admin-app .apps-update-policy { margin: 0; color: var(--ap-secondary); font-size: 13px; line-height: 1.5; }
.admin-app .apps-update-policy { padding-top: 12px; border-top: 1px solid var(--ap-separator); color: var(--ap-tertiary); font-size: 12.5px; }
.admin-app .apps-facts { display: grid; margin: 0; padding: 0; }
.admin-app .apps-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-block-size: 40px; padding: 9px 0; border-top: 1px solid var(--ap-separator); font-size: 13.5px; }
.admin-app .apps-facts dt { flex: 0 0 auto; color: var(--ap-secondary); }
.admin-app .apps-facts dd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 8px; margin: 0; min-inline-size: 0; color: var(--ap-text); font-weight: 500; text-align: end; overflow-wrap: anywhere; }
.admin-app .apps-facts dd small { color: var(--ap-tertiary); font-weight: 400; font-variant-numeric: tabular-nums; }
.admin-app .apps-facts dd a { color: var(--ap-accent-text); text-decoration: none; }
.admin-app .apps-facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-app .apps-fact-digest { flex-direction: column; align-items: stretch; gap: 6px; }
.admin-app .apps-fact-digest dd { justify-content: space-between; align-items: center; text-align: start; }
.admin-app .apps-fact-digest code { flex: 1 1 auto; min-inline-size: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.45; letter-spacing: .01em; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.admin-app .apps-copy { flex: 0 0 auto; min-block-size: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--ap-fill); color: var(--ap-accent-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.admin-app .apps-copy:hover { background: var(--ap-fill-hover); }
.admin-app .apps-notes { border: 1px solid var(--ap-separator); border-radius: 12px; background: var(--ap-canvas); }
.admin-app .apps-notes summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.admin-app .apps-notes pre { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ap-secondary); font: inherit; font-size: 13px; line-height: 1.55; }
.admin-app .apps-state { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--ap-canvas); color: var(--ap-secondary); font-size: 13.5px; line-height: 1.5; }
.admin-app .apps-card[data-state="unavailable"] .apps-state { border-inline-start: 3px solid var(--ap-orange); }
.admin-app .apps-ios-ready { display: grid; gap: 14px; }
.admin-app .apps-ios-scan { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.admin-app .apps-qr-frame { padding: 8px; border: 1px solid var(--ap-separator); border-radius: 12px; background: #ffffff; }
.admin-app .apps-qr-frame .app-qr { display: block; inline-size: 100%; block-size: auto; }
.admin-app .apps-archive { padding: 0; border: 1px solid var(--ap-separator); border-radius: 14px; background: var(--ap-surface); }
.admin-app .apps-archive > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; min-block-size: 48px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.admin-app .apps-archive-count { display: inline-grid; place-items: center; min-inline-size: 22px; block-size: 22px; padding: 0 6px; border-radius: 999px; background: var(--ap-fill); color: var(--ap-secondary); font-size: 12px; }
.admin-app .apps-archive-note { margin: 0; padding: 0 20px 12px; color: var(--ap-secondary); font-size: 13px; }
.admin-app .apps-archive-table { margin: 0; border: 0; border-top: 1px solid var(--ap-separator); border-radius: 0 0 14px 14px; }
.admin-app .apps-archive-table code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; direction: ltr; unicode-bidi: isolate; }
.admin-app .apps-archive-table a { color: var(--ap-accent-text); text-decoration: none; font-weight: 500; }
@media (max-width: 1240px) { .admin-app .apps-page[data-detected] .apps-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 560px) { .admin-app .apps-card { padding: 18px; } .admin-app .apps-ios-scan { grid-template-columns: 104px minmax(0, 1fr); } }
html[dir="rtl"] .admin-app .apps-steps { padding: 0 22px 0 0; }
html[dir="rtl"] .admin-app .apps-steps > li { padding: 12px 8px 12px 14px; }

/* TR: Plan ve faturalama yüzeyi (örnek ekranlar 9–14): tek sütun ferah kartlar, ortalı plan seçimi, yuvarlak özet kartı. Yalnız --ap-* ve aşağıdaki --sub-* token'ları kullanılır. */
:root {
  --sub-red: #d70015;
  --sub-test: #7a4b00;
  --sub-test-soft: #fff1cc;
  --sub-featured-a: #eaf3ff;
  --sub-featured-b: #ffffff;
  --sub-elevated: #ffffff;
  --sub-elevated-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}
html[data-theme="dark"] {
  --sub-red: #ff453a;
  --sub-test: #ffd60a;
  --sub-test-soft: #33290a;
  --sub-featured-a: #15304f;
  --sub-featured-b: #1c1c1e;
  --sub-elevated: #2c2c2e;
  --sub-elevated-shadow: none;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --sub-red: #ff453a;
    --sub-test: #ffd60a;
    --sub-test-soft: #33290a;
    --sub-featured-a: #15304f;
    --sub-featured-b: #1c1c1e;
    --sub-elevated: #2c2c2e;
    --sub-elevated-shadow: none;
  }
}

/* Alt akış başlığı: geri oku, plan seçiminde ortalı başlık */
.admin-app .admin-back-link { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; flex: none; border-radius: 999px; background: var(--ap-fill); color: var(--ap-text); transition: background-color .15s ease; }
.admin-app .admin-back-link:hover { background: var(--ap-fill-hover); }
.admin-app .admin-back-link:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--ap-accent-soft); }
.admin-app .admin-back-link svg { inline-size: 20px; block-size: 20px; }
html[dir="rtl"] .admin-app .admin-back-link svg { transform: scaleX(-1); }
.admin-app .admin-content[data-admin-variant] .admin-breadcrumbs { display: none; }
.admin-app .admin-content[data-admin-variant] .admin-page-heading { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.admin-app .admin-content:is([data-admin-variant="change"], [data-admin-variant="cancel"], [data-admin-variant="trial"]) .admin-page-heading h1 { margin: 0; }
.admin-app .admin-content.py-main[data-admin-variant="plans"] { max-inline-size: 1240px; }
.admin-app .admin-content[data-admin-variant="plans"] .admin-page-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; text-align: center; margin-bottom: 20px; }
.admin-app .admin-content[data-admin-variant="plans"] .admin-page-heading > div { grid-column: 2; }
.admin-app .admin-content[data-admin-variant="plans"] .admin-page-heading h1 { font-size: clamp(28px, 3.2vw, 40px); }
.admin-app .admin-content[data-admin-variant="plans"] .admin-page-heading p { margin-inline: auto; }
.admin-app .admin-content.py-main[data-admin-variant="change"] { max-inline-size: 1120px; }

/* Sayfa iskeleti ve tonlar */
.admin-app .sub-page { display: grid; gap: 32px; max-inline-size: 760px; }
.admin-app .sub-page-plans { max-inline-size: none; gap: 28px; }
.admin-app .sub-page-change { max-inline-size: none; gap: 24px; }
.admin-app :is(.sub-page-cancel, .sub-page-trial) { max-inline-size: 620px; }
.admin-app .sub-page-license { margin-bottom: 20px; }
.admin-app .sub-page [data-tone] { --sub-tone: var(--ap-secondary); }
.admin-app .sub-page [data-tone="green"] { --sub-tone: var(--ap-green); }
.admin-app .sub-page [data-tone="blue"] { --sub-tone: var(--ap-blue); }
.admin-app .sub-page [data-tone="orange"] { --sub-tone: var(--ap-orange); }
.admin-app .sub-page [data-tone="red"] { --sub-tone: var(--sub-red); }
.admin-app .sub-icon { inline-size: 20px; block-size: 20px; flex: none; }

/* Sekmeler ve test modu şeridi */
.admin-app .sub-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: -10px; }
.admin-app .sub-tabs a { display: inline-flex; align-items: center; min-block-size: 40px; padding: 0 16px; border-radius: 999px; color: var(--ap-secondary); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.admin-app .sub-tabs a:hover { background: var(--ap-fill); color: var(--ap-text); }
.admin-app .sub-tabs a[aria-current="page"] { background: var(--ap-fill); color: var(--ap-text); font-weight: 600; }
.admin-app .sub-tabs a:focus-visible, .admin-app .sub-segmented a:focus-visible, .admin-app .sub-option:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--ap-accent-soft); }
.admin-app .sub-test-banner { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--sub-test-soft); color: var(--sub-test); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.admin-app .sub-test-banner .sub-icon { inline-size: 18px; block-size: 18px; }

/* Bölüm, kart ve satırlar (12.png) */
.admin-app .sub-section { display: grid; gap: 12px; }
.admin-app .sub-section-head h2 { margin: 0; color: var(--ap-text); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.admin-app .sub-section-head p { margin: 4px 0 0; color: var(--ap-secondary); font-size: 14px; line-height: 1.45; }
.admin-app .sub-page .sub-card { padding: 0 20px; background: var(--ap-surface); border: 1px solid var(--ap-separator); border-radius: 16px; }
.admin-app .sub-page .sub-card.sub-card-padded { padding: 20px; }
.admin-app .sub-row { display: flex; align-items: center; gap: 14px; min-block-size: 56px; padding: 12px 0; border-top: 1px solid var(--ap-separator); color: var(--ap-text); font-size: 14px; }
.admin-app .sub-card > .sub-row:first-child, .admin-app .sub-card > div:first-child > .sub-meter:first-child, .admin-app .sub-card > :first-child { border-top: 0; }
.admin-app .sub-row > strong { margin-inline-start: auto; color: var(--ap-secondary); font-weight: 500; text-align: end; }
.admin-app .sub-row > strong small { color: var(--ap-tertiary); font-size: 12.5px; font-weight: 400; }
.admin-app .sub-row-lead { padding-block: 18px; }
.admin-app .sub-row-text { display: grid; flex: 1; gap: 3px; min-inline-size: 0; }
.admin-app .sub-row-text > strong { color: var(--ap-text); font-size: 15px; font-weight: 600; }
.admin-app .sub-row-text > span { color: var(--ap-secondary); font-size: 13.5px; line-height: 1.45; }
.admin-app .sub-row > .button, .admin-app .sub-row > .sub-inline-form { flex: none; }
.admin-app .sub-row-stack { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 16px; }
.admin-app .sub-row-icon { display: grid; place-items: center; inline-size: 40px; block-size: 40px; flex: none; border-radius: 12px; background: var(--ap-fill); color: var(--ap-secondary); }
.admin-app .sub-row-icon[data-tone="blue"] { background: var(--ap-accent-soft); color: var(--sub-tone); }
.admin-app .sub-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.admin-app .sub-inline-form { display: inline-flex; margin: 0; }
.admin-app .sub-empty { margin: 0; padding: 20px 0; color: var(--ap-secondary); font-size: 14px; }
.admin-app .sub-plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-app .sub-plan-current { color: var(--ap-text); font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.admin-app .sub-money { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.admin-app .sub-badge { display: inline-flex; align-items: center; gap: 6px; min-block-size: 24px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--sub-tone) 14%, transparent); color: var(--sub-tone); font-size: 12px; font-weight: 600; white-space: nowrap; }
.admin-app .sub-badge::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.admin-app .sub-badge.sub-badge-featured { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.admin-app .sub-badge.sub-badge-featured::before { display: none; }
.admin-app .sub-observed { margin: -16px 0 0; color: var(--ap-tertiary); font-size: 12.5px; }
.admin-app .sub-fine { margin: 0; color: var(--ap-tertiary); font-size: 12.5px; line-height: 1.5; }

/* Uyarı kutuları */
.admin-app .sub-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--sub-tone) 26%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--sub-tone) 9%, var(--ap-surface)); }
.admin-app .sub-callout > .sub-icon { inline-size: 22px; block-size: 22px; color: var(--sub-tone); }
.admin-app .sub-callout-text { display: grid; flex: 1; gap: 2px; min-inline-size: 0; color: var(--ap-text); font-size: 14px; line-height: 1.45; }
.admin-app .sub-callout-text > strong { font-weight: 600; }
.admin-app .sub-callout-text > span { color: var(--ap-secondary); }
.admin-app .sub-callout > .button, .admin-app .sub-callout > .sub-inline-form { flex: none; }
.admin-app .sub-callout.sub-callout-lead { align-items: flex-start; padding: 18px 20px; }
.admin-app .sub-callout.sub-callout-lead .sub-callout-text > strong { font-size: 16px; }

/* Kullanım çubukları */
.admin-app .sub-meter { padding: 16px 0; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-meter-head { display: flex; justify-content: space-between; gap: 12px; color: var(--ap-text); font-size: 14px; font-weight: 600; }
.admin-app .sub-meter-value { color: var(--ap-secondary); font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-app .sub-meter-bar { display: block; inline-size: 100%; block-size: 6px; margin-top: 10px; border: 0; border-radius: 999px; background: var(--ap-fill); overflow: hidden; -webkit-appearance: none; appearance: none; }
.admin-app .sub-meter-bar::-webkit-progress-bar { border-radius: 999px; background: var(--ap-fill); }
.admin-app .sub-meter-bar::-webkit-progress-value { border-radius: 999px; background: var(--ap-accent); transition: inline-size .3s ease; }
.admin-app .sub-meter-bar::-moz-progress-bar { border-radius: 999px; background: var(--ap-accent); }
.admin-app .sub-meter[data-high] .sub-meter-bar::-webkit-progress-value { background: var(--ap-orange); }
.admin-app .sub-meter[data-high] .sub-meter-bar::-moz-progress-bar { background: var(--ap-orange); }

/* Özellik listeleri, kart işareti, anahtar */
.admin-app .sub-check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-app .sub-check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ap-text); font-size: 14px; line-height: 1.4; }
.admin-app .sub-check-list .sub-icon { inline-size: 18px; block-size: 18px; margin-top: 1px; color: var(--ap-accent); }
.admin-app .sub-check-list li[data-tone] .sub-icon { color: var(--sub-tone); }
.admin-app .sub-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.admin-app .sub-limit-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ap-separator); list-style: none; }
.admin-app .sub-limit-list li { padding: 6px 12px; border-radius: 999px; background: var(--ap-fill); color: var(--ap-text); font-size: 13px; font-weight: 500; }
.admin-app .sub-card-mark { display: grid; place-items: center; min-inline-size: 54px; block-size: 36px; padding: 0 8px; flex: none; border-radius: 8px; background: var(--ap-text); color: var(--ap-surface); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.admin-app .sub-invoice-amount { color: var(--ap-text); font-weight: 600; }
.admin-app .sub-invoice-item { border-top: 1px solid var(--ap-separator); }
.admin-app .sub-invoice-item > summary { border-top: 0; list-style: none; cursor: pointer; }
.admin-app .sub-invoice-item > summary::-webkit-details-marker { display: none; }
.admin-app .sub-invoice-item > summary::after { content: ""; flex: none; inline-size: 8px; block-size: 8px; border-right: 1.8px solid var(--ap-secondary); border-bottom: 1.8px solid var(--ap-secondary); transform: rotate(45deg); transition: transform .2s ease; }
.admin-app .sub-invoice-item[open] > summary::after { transform: rotate(-135deg); }
.admin-app .sub-invoice-body { display: grid; gap: 16px; padding-bottom: 18px; }
.admin-app .sub-invoice-payment { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-invoice-payment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ap-text); font-size: 14.5px; }
.admin-app .sub-invoice-payment > strong { color: var(--ap-text); font-size: 14.5px; font-weight: 600; }
.admin-app .sub-invoice-attempt { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-invoice-payment > p { margin: 0; color: var(--ap-secondary); font-size: 13.5px; line-height: 1.5; }
.admin-app .sub-invoice-payment > .button { justify-self: start; }
.admin-app .sub-summary-line > strong { color: var(--ap-text); font-weight: 600; }
.admin-app .button.sub-button-danger { background: color-mix(in srgb, var(--sub-red) 12%, transparent); color: var(--sub-red); }
.admin-app .button.sub-button-danger:hover { background: color-mix(in srgb, var(--sub-red) 20%, transparent); }
.admin-app .sub-cancel-form .button.sub-button-danger { background: var(--sub-red); color: #ffffff; }
.admin-app .button[aria-disabled="true"] { cursor: default; }

/* Plan seçimi (13.png, 14.png, 9.png); GÖREV D: raf anahtarı (Bireysel/Kurumsal) dönem anahtarının üstünde, ikisi de ortalı. */
.admin-app .sub-plan-switches { display: grid; justify-items: center; gap: 12px; }
.admin-app .sub-segmented { display: inline-flex; justify-self: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--ap-fill); }
.admin-app .sub-segmented a { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 128px; min-block-size: 40px; padding: 0 22px; border-radius: 999px; color: var(--ap-secondary); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.admin-app .sub-segmented a:hover { color: var(--ap-text); }
.admin-app .sub-segmented a[aria-current="page"] { background: var(--ap-surface); color: var(--ap-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.admin-app .sub-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; gap: 20px; inline-size: 100%; max-inline-size: 1180px; margin-inline: auto; }
.admin-app .sub-plan-grid:has(> :only-child) { max-inline-size: 420px; }
.admin-app .sub-plan { position: relative; display: flex; flex-direction: column; gap: 14px; min-inline-size: 0; padding: 28px; border: 1px solid var(--ap-separator-strong); border-radius: 24px; background: var(--ap-surface); transition: box-shadow .2s ease, border-color .2s ease; }
.admin-app .sub-plan:hover { box-shadow: var(--sub-elevated-shadow); }
.admin-app .sub-plan[data-featured] { border-color: var(--ap-accent); background: linear-gradient(170deg, var(--sub-featured-a), var(--sub-featured-b) 78%); }
.admin-app .sub-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-block-size: 28px; }
.admin-app .sub-plan-name { margin: 0; color: var(--ap-text); font-size: 17px; font-weight: 650; }
.admin-app .sub-plan-summary { margin: 4px 0 0; color: var(--ap-text); font-size: 23px; font-weight: 650; letter-spacing: -.02em; line-height: 1.22; }
.admin-app .sub-plan-description { margin: 0; color: var(--ap-secondary); font-size: 14.5px; line-height: 1.55; }
.admin-app .sub-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; }
.admin-app .sub-plan-amount { color: var(--ap-text); font-size: 40px; font-weight: 650; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.admin-app .sub-plan-per { color: var(--ap-secondary); font-size: 15px; }
.admin-app .sub-plan-unavailable { display: flex; align-items: center; min-block-size: 42px; color: var(--ap-secondary); font-size: 15px; font-weight: 500; }
.admin-app .sub-plan-tax { margin: -8px 0 0; color: var(--ap-tertiary); font-size: 12.5px; }
.admin-app .button.sub-plan-cta { inline-size: 100%; min-block-size: 46px; margin-top: 4px; }
.admin-app .button.sub-plan-cta.button-secondary { border: 1px solid var(--ap-separator-strong); background: transparent; color: var(--ap-text); }
.admin-app .button.sub-plan-cta.button-secondary:hover { background: var(--ap-fill); }
.admin-app .button.sub-plan-cta[aria-disabled="true"] { background: var(--ap-fill); color: var(--ap-secondary); }
.admin-app .sub-plan-trial { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ap-green); font-size: 13.5px; font-weight: 500; }
.admin-app .sub-plan-trial .sub-icon { inline-size: 18px; block-size: 18px; }
.admin-app .sub-plan-trial[data-tone="gray"] { color: var(--ap-secondary); }
.admin-app .sub-plan-alt { align-self: center; margin-top: -4px; color: var(--ap-accent-text); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.admin-app .sub-plan-alt:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-app .sub-page .sub-card.sub-trial { padding: 4px 24px 24px; }
.admin-app .sub-trial-icon { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; background: color-mix(in srgb, var(--ap-green) 14%, transparent); color: var(--ap-green); }
.admin-app .button:disabled, .admin-app .button[disabled] { opacity: .45; cursor: not-allowed; }
.admin-app .sub-plan-includes { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-plan-includes h3 { margin: 0; color: var(--ap-secondary); font-size: 13px; font-weight: 600; }
.admin-app .sub-plans-foot { margin: 0; color: var(--ap-tertiary); font-size: 12.5px; line-height: 1.5; text-align: center; }
.admin-app .sub-empty-state { display: grid; justify-items: center; gap: 8px; padding: 40px 24px; text-align: center; }
.admin-app .sub-empty-state .sub-icon { inline-size: 32px; block-size: 32px; color: var(--ap-tertiary); }
.admin-app .sub-empty-state > strong { color: var(--ap-text); font-size: 16px; font-weight: 600; }
.admin-app .sub-empty-state > span { color: var(--ap-secondary); font-size: 14px; }
.admin-app .sub-empty-state > .button { margin-top: 8px; }

/* Planını yapılandır (10.png) */
.admin-app .sub-configure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; gap: 40px; }
.admin-app .sub-configure-main { display: grid; gap: 32px; min-inline-size: 0; }
.admin-app .sub-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.admin-app .sub-option { display: flex; align-items: center; gap: 14px; min-block-size: 64px; padding: 14px 16px; border: 1px solid var(--ap-separator-strong); border-radius: 14px; background: var(--ap-surface); color: var(--ap-text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.admin-app a.sub-option:hover { border-color: var(--ap-accent); }
.admin-app .sub-option:is([aria-current="page"], [aria-current="true"]) { border-color: var(--ap-accent); box-shadow: 0 0 0 1px var(--ap-accent); }
.admin-app .sub-option[aria-disabled="true"] { border-color: transparent; background: var(--ap-fill); color: var(--ap-secondary); }
.admin-app .sub-option > .sub-icon { margin-inline-start: auto; color: var(--ap-tertiary); }
.admin-app .sub-radio { inline-size: 20px; block-size: 20px; flex: none; border: 1.5px solid var(--ap-separator-strong); border-radius: 50%; }
.admin-app .sub-option:is([aria-current="page"], [aria-current="true"]) .sub-radio { border: 6px solid var(--ap-accent); }
.admin-app .sub-option-text { display: grid; gap: 2px; min-inline-size: 0; }
.admin-app .sub-option-text strong { font-size: 14.5px; font-weight: 600; }
.admin-app .sub-option-text > span { color: var(--ap-secondary); font-size: 13px; line-height: 1.4; }
.admin-app .sub-card-options { display: grid; gap: 10px; min-inline-size: 0; margin: 0 0 12px; padding: 0; border: 0; }
.admin-app .sub-card-options > legend { margin-block-end: 8px; padding: 0; color: var(--ap-secondary); font-size: 13px; font-weight: 600; }
.admin-app .sub-card-options .sub-option { cursor: pointer; }
.admin-app .sub-card-options .sub-option > input[type="radio"] { flex: none; inline-size: 20px; block-size: 20px; margin: 0; accent-color: var(--ap-accent); }
.admin-app .sub-card-options .sub-option:has(> input:checked) { border-color: var(--ap-accent); box-shadow: 0 0 0 1px var(--ap-accent); }
.admin-app .sub-card-options .sub-option:has(> input:focus-visible) { box-shadow: 0 0 0 4px var(--ap-accent-soft); }
.admin-app .sub-card-options .sub-option > .sub-badge { margin-inline-start: auto; }
.admin-app .sub-card-options > .sub-new-card { margin: 0; margin-inline-start: 34px; text-align: start; }
.admin-app .sub-card-options:has(> .sub-option > #subscription-pay-card-new:not(:checked)) > .sub-new-card { display: none; }
.admin-app [data-subscription-period-ends] .sub-row-text > span:first-child { color: var(--ap-text); font-size: 14px; }
.admin-app .sub-disclosure { padding: 0 18px; border: 1px solid var(--ap-separator); border-radius: 14px; background: var(--ap-surface); }
.admin-app .sub-disclosure > summary { display: flex; align-items: center; gap: 8px; min-block-size: 52px; color: var(--ap-text); font-size: 14.5px; font-weight: 600; list-style: none; cursor: pointer; }
.admin-app .sub-disclosure > summary::-webkit-details-marker { display: none; }
.admin-app .sub-disclosure > summary::after { content: ""; inline-size: 8px; block-size: 8px; margin-inline-start: auto; border-right: 1.8px solid var(--ap-secondary); border-bottom: 1.8px solid var(--ap-secondary); transform: rotate(45deg); transition: transform .2s ease; }
.admin-app .sub-disclosure[open] > summary::after { transform: rotate(-135deg); }
.admin-app .sub-disclosure > p { margin: 0 0 12px; color: var(--ap-secondary); font-size: 13.5px; line-height: 1.5; }
.admin-app .sub-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding-bottom: 18px; }
.admin-app .sub-field-wide { grid-column: 1 / -1; }
.admin-app .sub-page .field { display: grid; gap: 6px; }
.admin-app .sub-page .field > span { color: var(--ap-secondary); font-size: 12.5px; font-weight: 600; }
.admin-app .sub-page .field input { inline-size: 100%; min-block-size: 44px; padding: 10px 12px; border: 1px solid var(--ap-separator-strong); border-radius: 10px; background: var(--ap-surface); color: var(--ap-text); font: inherit; font-size: 14px; }
.admin-app .sub-page .field input:focus-visible { border-color: var(--ap-accent); outline: 0; box-shadow: 0 0 0 4px var(--ap-accent-soft); }
.admin-app .sub-summary { position: sticky; inset-block-start: 24px; display: grid; gap: 14px; padding: 28px; border: 1px solid var(--ap-separator); border-radius: 28px; background: var(--sub-elevated); box-shadow: var(--sub-elevated-shadow); }
.admin-app .sub-summary h2 { margin: 0; color: var(--ap-text); font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.admin-app .sub-summary-label { margin: 2px 0 0; color: var(--ap-secondary); font-size: 13px; }
.admin-app .sub-summary-lines { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-summary-line { display: flex; justify-content: space-between; gap: 12px; color: var(--ap-secondary); font-size: 13.5px; }
.admin-app .sub-summary-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-summary-total > span { color: var(--ap-text); font-size: 16px; font-weight: 650; }
.admin-app .sub-summary-total > strong { color: var(--ap-text); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.admin-app .button.sub-summary-cta { inline-size: 100%; min-block-size: 50px; font-size: 16px; }
.admin-app .sub-summary-fine { margin: 0; color: var(--ap-tertiary); font-size: 12px; line-height: 1.5; }
.admin-app .sub-pay { display: grid; gap: 16px; }
.admin-app .sub-pay-amount { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.admin-app .sub-pay-amount > span { color: var(--ap-secondary); font-size: 14px; }
.admin-app .sub-pay-amount > strong { color: var(--ap-text); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.admin-app .sub-pay-method { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.admin-app .sub-pay-method > span { color: var(--ap-secondary); font-size: 14px; }
.admin-app .sub-pay-method > strong { color: var(--ap-text); font-size: 14.5px; font-weight: 600; }
.admin-app .sub-pay-form { display: grid; gap: 14px; margin: 0; }
.admin-app .button.sub-pay-action { inline-size: 100%; min-block-size: 48px; font-size: 16px; }
.admin-app .sub-pay .sub-fine { text-align: center; }
.admin-app .sub-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--ap-text); font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.admin-app .sub-consent input { inline-size: 20px; block-size: 20px; flex: none; margin: 0; accent-color: var(--ap-accent); }
/* TR: Havale yöntemi (#785): ödeme kodu vurgulu tek satır, hesaplar ayrı kutular, bildirim özeti etiketli satırlar. Kod ve IBAN tek dokunuşla seçilir. */
.admin-app .sub-transfer { display: grid; gap: 14px; }
.admin-app .sub-transfer-lead { margin: 0; color: var(--ap-secondary); font-size: 14px; line-height: 1.5; }
.admin-app .sub-transfer-heading { margin: 4px 0 0; color: var(--ap-secondary); font-size: 13px; font-weight: 600; }
.admin-app .sub-transfer-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; border-radius: 14px; background: var(--ap-fill); }
.admin-app .sub-transfer-code > span { color: var(--ap-secondary); font-size: 14px; }
.admin-app .sub-transfer-code code { color: var(--ap-text); font-size: 20px; font-weight: 700; letter-spacing: .04em; user-select: all; }
/* TR: Değer ve Kopyala düğmesi yan yana durur; dar ekranda düğme değerin altına iner, satır taşmaz. Düğme betiksiz sayfada gizlidir. */
.admin-app .sub-copy-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-inline-size: 0; }
.admin-app .sub-copy { flex: none; min-block-size: 32px; padding: 0 12px; border: 1px solid var(--ap-separator-strong); border-radius: 999px; background: transparent; color: var(--ap-accent-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.admin-app .sub-copy:hover { background: var(--ap-fill-hover); }
.admin-app .sub-copy:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--ap-accent-soft); }
.admin-app .sub-pay .sub-transfer .sub-transfer-hint { margin-block-start: -6px; text-align: start; }
.admin-app .sub-transfer-accounts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-app .sub-transfer-account { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--ap-separator-strong); border-radius: 14px; background: var(--ap-surface); }
.admin-app .sub-transfer-account > strong { color: var(--ap-text); font-size: 15px; font-weight: 600; }
.admin-app .sub-pay .sub-transfer-account .sub-fine { text-align: start; }
.admin-app .sub-transfer :is(dl, dd) { margin: 0; }
.admin-app .sub-transfer dl { display: grid; gap: 6px; }
.admin-app .sub-transfer dl > div { display: grid; grid-template-columns: minmax(104px, max-content) minmax(0, 1fr); gap: 2px 16px; align-items: baseline; }
.admin-app .sub-transfer dt { color: var(--ap-secondary); font-size: 13px; }
.admin-app .sub-transfer dd { color: var(--ap-text); font-size: 14px; overflow-wrap: anywhere; }
.admin-app .sub-transfer dd code { font-size: 14.5px; font-weight: 600; user-select: all; }
/* TR: Kod ve IBAN her dilde aynı yazı tipiyle ve soldan sağa yalıtılmış yazılır (Arapça sayfada tarayıcının varsayılan eş aralıklı yazı tipi farklıdır). */
.admin-app .sub-transfer code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; unicode-bidi: isolate; }
.admin-app .sub-transfer-summary { padding-inline: 2px; }
.admin-app .sub-transfer-fields { padding-bottom: 0; }
/* TR: Plan sayfasında yöntem seçici kartların üstünde, çerçevesiz durur; havale açıklamasının ince satırı sola yaslıdır. */
.admin-app .sub-change-method { padding-inline: 4px; }
.admin-app .sub-pay .sub-change-transfer-fine { text-align: start; }
.admin-app .button.sub-transfer-withdraw { inline-size: 100%; min-block-size: 44px; }

/* İptal onayı */
.admin-app .sub-page .sub-card.sub-cancel { padding: 4px 24px 24px; }
.admin-app .sub-cancel-head { display: grid; justify-items: start; gap: 8px; padding: 20px 0 16px; }
.admin-app .sub-cancel-icon { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; background: color-mix(in srgb, var(--sub-red) 12%, transparent); color: var(--sub-red); }
.admin-app .sub-cancel-head h2 { margin: 6px 0 0; color: var(--ap-text); font-size: 22px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.admin-app .sub-cancel-head p { margin: 0; color: var(--ap-secondary); font-size: 14px; line-height: 1.5; }
.admin-app .sub-cancel-form { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (max-width: 960px) {
  .admin-app .sub-configure { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .admin-app .sub-summary { position: static; }
}
@media (max-width: 640px) {
  .admin-app .sub-page { gap: 26px; }
  .admin-app .sub-page .sub-card { padding: 0 16px; }
  .admin-app .sub-row { flex-wrap: wrap; }
  .admin-app .sub-callout { flex-wrap: wrap; }
  .admin-app :is(.sub-row, .sub-callout) > :is(.button, .sub-inline-form) { inline-size: 100%; }
  .admin-app :is(.sub-row, .sub-callout) .sub-inline-form .button { inline-size: 100%; }
  .admin-app .sub-invoice .sub-row-text { flex-basis: 100%; }
  .admin-app .sub-check-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-app .sub-plan-switches { inline-size: 100%; }
  .admin-app .sub-segmented { inline-size: 100%; }
  .admin-app .sub-segmented a { flex: 1; min-inline-size: 0; padding: 0 12px; }
  .admin-app .sub-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-app .sub-plan { padding: 22px; }
  .admin-app .sub-plan-amount { font-size: 34px; }
  .admin-app .sub-field-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-app .sub-transfer dl > div { grid-template-columns: minmax(0, 1fr); }
  .admin-app .sub-copy { min-block-size: 40px; }
  .admin-app .sub-summary { padding: 22px; border-radius: 22px; }
  .admin-app .sub-actions > * { flex: 1; }
}

/* TR: Planını yapılandır — seçilebilir ödeme yolu (izole kart sayfası ile kart kaydı); radyo girişi görsel olarak gizlidir, seçim çerçeveyle gösterilir. */
.admin-app .sub-autorenew-form { display: grid; gap: 12px; justify-items: start; margin: 0; }

/* TR: Faturalar listesinde satır eylemleri: belgeyi aç ve indir; satır açıkken de yerinde durur. */
.admin-app .sub-invoice-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; border-top: 1px solid var(--ap-separator); }
.admin-app .sub-invoice-entry:first-child { border-top: 0; }
.admin-app .sub-invoice-entry > .sub-invoice-item { min-inline-size: 0; border-top: 0; }
.admin-app .sub-invoice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-block: 12px; }
.admin-app .sub-invoice-actions .button { inline-size: auto; min-height: 44px; margin: 0; padding: 0 12px; }

/* TR: Fatura belgesi: kâğıt temadan bağımsız açık kalır; tonlar kâğıt üstünde okunacak koyulukta sabittir. */
.admin-app .sub-page-document { max-inline-size: 860px; gap: 16px; }
.admin-app .sub-document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-app .sub-document-actions .button { inline-size: auto; margin: 0; }
.admin-app .sub-document-actions [hidden] { display: none; }
.admin-app .sub-document { --paper: #ffffff; --paper-ink: #1d1d1f; --paper-muted: #636369; --paper-rule: #e5e5e7; --paper-band: #f5f5f7; --paper-brand: #0071e3; --paper-green: #12805c; --paper-orange: #a15c00; --paper-red: #be3447; --paper-gray: #636369; --paper-notice: #fff7e8; color-scheme: light; display: grid; gap: 22px; padding: 44px 48px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-rule); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .10), 0 14px 34px rgba(0, 0, 0, .12); font-size: 14px; line-height: 1.45; }
.admin-app .sub-document [data-tone] { --sub-tone: var(--paper-gray); }
.admin-app .sub-document [data-tone="green"] { --sub-tone: var(--paper-green); }
.admin-app .sub-document [data-tone="orange"] { --sub-tone: var(--paper-orange); }
.admin-app .sub-document [data-tone="red"] { --sub-tone: var(--paper-red); }
.admin-app .sub-document :is(h2, h3, dl, dd, p) { margin: 0; }
.admin-app .sub-document dt { color: var(--paper-muted); font-weight: 400; }
.admin-app .sub-document dd { color: var(--paper-ink); }
.admin-app .sub-document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--paper-brand); }
.admin-app .sub-document-logo { display: block; inline-size: 136px; block-size: auto; flex: none; }
.admin-app .sub-document-heading { display: grid; gap: 8px; justify-items: end; text-align: end; }
.admin-app .sub-document-heading h2 { color: var(--paper-ink); font-size: 25px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.admin-app .sub-document-heading dl { display: grid; gap: 2px; font-size: 13px; }
.admin-app .sub-document-heading dl > div { display: flex; justify-content: flex-end; gap: 8px; }
.admin-app .sub-document-heading dd { font-weight: 600; }
.admin-app .sub-document-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.admin-app .sub-document-parties section { display: grid; align-content: start; gap: 4px; min-inline-size: 0; }
.admin-app .sub-document .sub-document-parties h3 { color: var(--paper-muted); font-size: 12px; font-weight: 400; }
.admin-app .sub-document .sub-document-payment h3 { color: var(--paper-ink); font-size: 14px; font-weight: 700; }
.admin-app .sub-document-parties strong { overflow-wrap: anywhere; color: var(--paper-ink); font-size: 14.5px; font-weight: 700; }
.admin-app .sub-document-parties dl { display: grid; gap: 1px; font-size: 13px; }
.admin-app .sub-document-parties dl > div, .admin-app .sub-document-payment dl > div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.admin-app .sub-document-summary { display: grid; grid-template-columns: 46fr 27fr 27fr; gap: 12px; padding: 14px 16px; background: var(--paper-band); }
.admin-app .sub-document-summary > div { display: grid; align-content: start; gap: 3px; min-inline-size: 0; }
.admin-app .sub-document-summary dt { font-size: 12px; }
.admin-app .sub-document-summary dd { font-size: 14px; font-weight: 700; }
.admin-app .sub-document-summary .sub-badge { min-block-size: 0; padding: 0; background: transparent; font-size: 14px; font-weight: 700; }
.admin-app .sub-document-summary .sub-badge::before { display: none; }
.admin-app .sub-document .sub-document-state { margin-top: -8px; color: var(--sub-tone); font-size: 13.5px; font-weight: 700; }
.admin-app .sub-document-lines { inline-size: 100%; border-collapse: collapse; background: transparent; color: var(--paper-ink); font-size: 14px; }
.admin-app .sub-document-lines th { padding: 0 0 8px; border-bottom: 1px solid var(--paper-ink); background: transparent; color: var(--paper-muted); font-size: 12px; font-weight: 400; text-align: start; }
.admin-app .sub-document-lines td { padding: 8px 0; border-bottom: 1px solid var(--paper-rule); background: transparent; color: var(--paper-ink); text-align: start; }
.admin-app .sub-document-lines :is(th, td):last-child { text-align: end; white-space: nowrap; }
.admin-app .sub-document .sub-document-totals { display: grid; gap: 6px; inline-size: min(100%, 50%); margin-inline-start: auto; }
.admin-app .sub-document-totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.admin-app .sub-document-totals .sub-document-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--paper-ink); font-size: 17px; font-weight: 700; }
.admin-app .sub-document-total :is(dt, dd) { color: var(--paper-ink); font-weight: 700; }
.admin-app .sub-document-payment { display: grid; gap: 6px; }
.admin-app .sub-document-payment dl { display: grid; gap: 2px; font-size: 13.5px; }
.admin-app .sub-document-payment dt { min-inline-size: 150px; }
.admin-app .sub-document-notice { padding: 12px 16px; border-inline-start: 3px solid var(--paper-orange); background: var(--paper-notice); color: var(--paper-ink); font-size: 13px; font-weight: 700; }
@media (max-width: 720px) {
  .admin-app .sub-invoice-entry { grid-template-columns: minmax(0, 1fr); }
  .admin-app .sub-invoice-actions { justify-content: flex-start; padding-block: 0 14px; }
  .admin-app .sub-document { padding: 24px 20px; }
  .admin-app .sub-document-head { flex-direction: column; }
  .admin-app .sub-document-heading { justify-items: start; text-align: start; }
  .admin-app .sub-document-heading dl > div { justify-content: flex-start; }
  .admin-app :is(.sub-document-parties, .sub-document-summary) { grid-template-columns: minmax(0, 1fr); }
  .admin-app .sub-document-totals { inline-size: 100%; }
}

/* TR: Baskı stili: yalnız kâğıt çıkar. Menü, üst bant, başlık, düğmeler ve alt bilgi fatura belgesi sayfasında kâğıda geçmez. */
@media print {
  @page { size: A4; margin: 14mm; }
  html:has(.sub-document), body:has(.sub-document) { background: #ffffff !important; color-scheme: light; }
  body:has(.sub-document) :is(.skip-link, .admin-header, .admin-sidebar, .admin-footer, .admin-breadcrumbs, .admin-page-heading, .sub-document-actions) { display: none !important; }
  body:has(.sub-document) :is(.admin-shell, .admin-workspace, .admin-content) { display: block !important; inline-size: auto !important; min-block-size: 0 !important; max-inline-size: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .admin-app .sub-page-document { display: block; max-inline-size: none; }
  .admin-app .sub-document { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .admin-app .sub-document, .admin-app .sub-document * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* TR: Destek bölümü (taleplerim, yeni talep, ayrıntı). Renkler tema değişkenlerinden; yön mantıksal özelliklerle (RTL). */
.support-page { display: grid; gap: var(--space-4); }
.support-page .admin-filter select { min-height: 42px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.support-table .support-subject { white-space: normal; min-width: 14rem; overflow-wrap: anywhere; }
.support-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); white-space: nowrap; }
.support-status[data-status="waiting_customer"] { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.support-status[data-status="resolved"] { color: var(--success); background: var(--success-soft); }
.support-status[data-status="closed"] { color: var(--text-muted); background: var(--surface-muted); }
.support-pager { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.support-form form { display: grid; gap: var(--space-2); }
.support-form textarea, .support-form select, .support-form input[type="text"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.support-form small { color: var(--text-muted); }
.support-form button { justify-self: start; margin-block-start: var(--space-2); }
.support-thread { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.support-message { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-inline-start: 3px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.support-message[data-author="operator"] { border-inline-start-color: var(--brand); background: var(--brand-soft); }
.support-message-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-1); color: var(--text-muted); font-size: 12px; }
.support-message-meta strong { color: var(--text); }
.support-message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  /* TR: Dar ekranda talep satırı etiketli kart olur; durum ve son güncelleme yatay kaydırmaya kaybolmaz. */
  .support-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .support-table tr { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); }
  .support-table th, .support-table td { display: flex; justify-content: space-between; gap: var(--space-3); padding: 0; border: 0; white-space: normal; min-width: 0; text-align: start; }
  .support-table th[data-label]::before, .support-table td[data-label]::before { content: attr(data-label); color: var(--text-muted); font-weight: 500; flex: none; }
  .support-table .support-subject { min-width: 0; }
  .support-pager { justify-content: stretch; }
  .support-pager > * { flex: 1; }
  .support-form button { justify-self: stretch; }
}
