/* SUBXIT — editorial utility theme */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,600;0,8..60,700;1,8..60,400&display=swap");

:root {
  --bg: #111210;
  --bg-elevated: #181917;
  --bg-hover: #222120;
  --bg-inset: #141312;
  --border: rgba(232, 226, 214, 0.09);
  --border-hover: rgba(232, 226, 214, 0.16);
  --text: #ece8e0;
  --text-secondary: #a8a39a;
  --text-muted: #7a766f;
  --text-faint: #56534d;
  --accent: #c9a84c;
  --accent-fg: #111210;
  --accent-muted: rgba(201, 168, 76, 0.14);
  --danger: #c45c4a;
  --danger-muted: rgba(196, 92, 74, 0.12);
  --success: #6b9e7a;
  --success-muted: rgba(107, 158, 122, 0.12);
  --warn: #c9a84c;
  --warn-muted: rgba(201, 168, 76, 0.1);
  --cat-streaming: #7a9e8e;
  --cat-telecom: #8a9bb5;
  --cat-fitness: #b8956b;
  --cat-software: #9a8fb0;
  --cat-tv: #a67c7c;
  --radius: 6px;
  --radius-lg: 10px;
  --font: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.35);
  --max: 42rem;
  --max-wide: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 168, 76, 0.04) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 40%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.sx-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.sx-main,
.sx-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.sx-topbar {
  width: 100%;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.sx-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  background: transparent;
}

.sx-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.sx-logo__img {
  display: block;
  height: 62px;
  width: auto;
  max-width: min(100%, 16rem);
  min-width: 0;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .sx-header {
    padding: 0.3rem 1.5rem 0.2rem;
    gap: 0.5rem 1.25rem;
    flex-wrap: nowrap;
  }

  .sx-logo__img {
    height: 120px;
    max-width: 24rem;
    margin-block: -0.35rem -0.55rem;
  }

  .sx-header-nav {
    margin-left: auto;
  }
}

.sx-header__meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

a.sx-header__meta:hover {
  color: var(--text);
}

.sx-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  font-size: 0.8125rem;
}

.sx-header-nav a {
  color: var(--text-muted);
  transition: color 0.12s;
}

.sx-header-nav a:hover {
  color: var(--text);
}

.sx-header-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Main — içerik ortada, dengeli */
.sx-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.sx-main > .sx-hero,
.sx-main > .sx-landing-seo,
.sx-main > .sx-hero--tool,
.sx-main > .sx-section-label,
.sx-main > .sx-list,
.sx-main > .sx-cat-tabs,
.sx-main > .sx-guide-grid-wrap {
  width: 100%;
  max-width: var(--max);
}

.sx-main > .sx-results {
  width: 100%;
  max-width: var(--max-wide);
}

/* Hero */
.sx-hero {
  padding-top: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .sx-hero {
    padding-top: 4rem;
  }
}

.sx-hero__title,
.sx-panel-head__title,
.sx-landing-seo__title,
.sx-legal-page__title {
  font-family: var(--font-display);
  font-weight: 600;
}

.sx-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.625rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
}

.sx-hero__lead {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sx-hero__sub {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Search */
.sx-search-wrap {
  position: relative;
  margin: 2rem auto 0;
  width: 100%;
}

.sx-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0 1rem;
  height: 3.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.sx-search:focus-within {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.sx-search__icon {
  flex-shrink: 0;
  color: var(--text-faint);
}

.sx-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text);
}

.sx-search__input::placeholder {
  color: var(--text-faint);
}

.sx-search__kbd {
  display: none;
  font-size: 0.6875rem;
  color: var(--text-faint);
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
}

@media (min-width: 640px) {
  .sx-search__kbd {
    display: block;
  }
}

.sx-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.sx-dropdown.hidden {
  display: none;
}

.sx-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.sx-dropdown__item:hover,
.sx-dropdown__item--active {
  background: var(--bg-hover);
}

.sx-dropdown__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.sx-dropdown__cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Chips */
.sx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 100%;
}

.sx-chip {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.sx-chip:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

/* Section label */
.sx-section-label {
  margin: 3.5rem 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Trending list */
.sx-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sx-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.sx-list__item:last-child {
  border-bottom: none;
}

.sx-list__item:hover {
  background: var(--bg-hover);
}

.sx-list__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.sx-list__tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sx-list__item[data-cat="streaming"] {
  border-left: 3px solid var(--cat-streaming);
}
.sx-list__item[data-cat="telecom"] {
  border-left: 3px solid var(--cat-telecom);
}
.sx-list__item[data-cat="fitness"] {
  border-left: 3px solid var(--cat-fitness);
}
.sx-list__item[data-cat="software"] {
  border-left: 3px solid var(--cat-software);
}
.sx-list__item[data-cat="tv"] {
  border-left: 3px solid var(--cat-tv);
}

/* Category filter tabs */
.sx-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.sx-cat-tabs__btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.sx-cat-tabs__btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.sx-cat-tabs__btn--active {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
}

.sx-guide-grid-wrap .sx-list {
  border: none;
  border-radius: 0;
  background: transparent;
  gap: 0.5rem;
}

.sx-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .sx-guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sx-guide-grid .sx-list__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}

/* Panel summary strip */
.sx-panel-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.125rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sx-panel-summary__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}

.sx-panel-summary__value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.sx-card--priority {
  border-color: rgba(201, 168, 76, 0.22);
}

.sx-card--priority .sx-card__title {
  color: var(--accent);
}

/* Results panel */
.sx-results {
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
}

.sx-results.hidden {
  display: none;
}

.sx-results.sx-animate-in {
  animation: sxIn 0.4s var(--ease) forwards;
}

@keyframes sxIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel header */
.sx-panel-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sx-panel-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sx-panel-head__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sx-panel-head__title {
  margin: 0;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sx-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sx-meta-row dd {
  margin: 0;
}

.sx-meta-row strong {
  font-weight: 500;
  color: var(--text-secondary);
}

.sx-meta-row__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Badges */
.sx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--bg-inset);
}

.sx-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.sx-badge__dot--ok {
  background: var(--success);
}
.sx-badge__dot--warn {
  background: var(--warn);
}
.sx-badge__dot--hard {
  background: var(--danger);
}

/* Grid */
.sx-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .sx-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.sx-card--full {
  grid-column: 1 / -1;
}

.sx-faq-list {
  margin: 0;
}

.sx-faq-list > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.sx-faq-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sx-faq-list > div:first-child {
  padding-top: 0;
}

.sx-faq-list dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.sx-faq-list dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sx-contact-list {
  margin: 0;
}

.sx-contact-list > div {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.sx-contact-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sx-contact-list > div:first-child {
  padding-top: 0;
}

.sx-contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.sx-contact-list dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.sx-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-timeline > li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.sx-timeline > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sx-timeline > li:first-child {
  padding-top: 0;
}

.sx-timeline__label {
  font-weight: 600;
  color: var(--text);
}

.sx-timeline__text {
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .sx-timeline > li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Card */
.sx-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.sx-card__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sx-card__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Status tags */
.sx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-inset);
}

.sx-tag--yes {
  border-color: rgba(74, 222, 128, 0.2);
  color: #86efac;
  background: var(--success-muted);
}

.sx-tag__indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}

.sx-tag--yes .sx-tag__indicator {
  background: var(--success);
}

/* Progress */
.sx-progress {
  margin-top: 1.25rem;
}

.sx-progress__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.sx-progress__label {
  color: var(--text-muted);
}

.sx-progress__value {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sx-progress__value--easy {
  color: #86efac;
}
.sx-progress__value--mid {
  color: #fde047;
}
.sx-progress__value--hard {
  color: #fca5a5;
}

.sx-progress__track {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}

.sx-progress__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--text-muted);
  transition: width 0.5s var(--ease);
}

.sx-progress__fill--easy {
  background: #22c55e;
}
.sx-progress__fill--mid {
  background: #ca8a04;
}
.sx-progress__fill--hard {
  background: var(--danger);
}

/* Buttons */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}

.sx-btn--primary {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.sx-btn--primary:hover {
  filter: brightness(1.08);
}

.sx-btn--danger {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.sx-btn--danger:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
}

.sx-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.sx-btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-hover);
}

.sx-btn--text {
  padding: 0.25rem 0;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sx-btn--text:hover {
  color: var(--text-secondary);
}

.sx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.12s;
}

.sx-link:hover {
  color: var(--text);
}

.sx-link svg {
  opacity: 0.6;
}

/* Alert */
.sx-alert {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--warn-muted);
  color: var(--text-secondary);
}

/* Steps */
.sx-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-steps li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.sx-steps li:last-child {
  border-bottom: none;
}

.sx-steps__num {
  flex-shrink: 0;
  width: 1.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  padding-top: 0.1rem;
}

/* Bullets */
.sx-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-bullets li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sx-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.sx-footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.5;
}

/* Doc tags */
.sx-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sx-doc-tag {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

/* Form controls */
.sx-field {
  margin-bottom: 1rem;
}

.sx-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sx-input,
.sx-select,
.sx-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.12s;
}

.sx-input:focus,
.sx-select:focus,
.sx-textarea:focus {
  border-color: var(--border-hover);
}

.sx-textarea {
  resize: vertical;
  min-height: 4rem;
}

.sx-code {
  margin-top: 0.75rem;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre-wrap;
}

.sx-fee {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sx-form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .sx-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Insight */
.sx-insight {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.sx-insight:last-of-type {
  border-bottom: none;
}

/* Empty state layout */
.sx-empty {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .sx-empty {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.sx-empty__title {
  margin: 0.5rem 0 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.sx-empty__lead {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.sx-empty__status {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.sx-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.sx-row-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.sx-row-btn__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.sx-row-btn__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sx-subhead {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sx-success-msg {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #86efac;
}

.sx-success-msg.hidden {
  display: none;
}

.sx-thanks {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--success);
}

.sx-thanks.hidden {
  display: none;
}

/* Footer */
.sx-footer {
  width: 100%;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.sx-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.sx-footer__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.sx-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-faint);
}

.sx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* Footer nav */
.sx-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sx-footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.12s;
}

.sx-footer-nav a:hover {
  color: var(--text);
}

/* Legal & SEO intro — kısa, araç önünde kalır */
.sx-legal-page {
  text-align: left;
  max-width: var(--max);
}

.sx-legal-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.sx-legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.sx-legal-page p,
.sx-legal-page li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sx-legal-page ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.sx-legal-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sx-legal-updated {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.sx-seo-intro {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

/* SEO landing — ince üst, araç önde */
.sx-landing-seo {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sx-landing-seo__title {
  margin-top: 0.5rem;
}

.sx-landing-seo__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.sx-hero--tool {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.sx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.sx-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.sx-breadcrumb a:hover {
  color: var(--text);
}

.sx-breadcrumb__sep {
  opacity: 0.5;
  user-select: none;
}

.sx-hero--landing .sx-hero__title {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
}

.sx-search-wrap--compact {
  margin-top: 1rem;
}

.sx-search-wrap--compact .sx-search {
  max-width: 22rem;
}

.sx-seo-faq {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--text-muted);
}

.sx-seo-faq summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  list-style: none;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.12s, background 0.12s;
}

.sx-seo-faq summary:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.sx-seo-faq summary::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
}

.sx-seo-faq[open] summary::after {
  content: "−";
}

.sx-seo-faq summary::-webkit-details-marker {
  display: none;
}

.sx-seo-faq[open] summary {
  margin-bottom: 0.75rem;
}

.sx-seo-faq__list {
  margin: 0;
  text-align: left;
}

.sx-seo-faq__list > div {
  margin-bottom: 0.65rem;
}

.sx-seo-faq__list dt {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.sx-seo-faq__list dd {
  margin: 0;
  line-height: 1.45;
}

.sx-legal-actions {
  margin-top: 1.5rem;
}

/* Panel actions */
.sx-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sx-loading {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sx-dropdown__item--active {
  background: var(--bg-hover);
}

.sx-dropdown__item--active .sx-dropdown__name {
  color: var(--text);
}

/* Focus */
:focus-visible {
  outline: 2px solid rgba(250, 250, 250, 0.85);
  outline-offset: 2px;
}

.sx-search-wrap[aria-expanded="true"] .sx-search {
  border-color: var(--border-hover);
}

/* ——— Mobil (≤639px) ——— */
@media (max-width: 639px) {
  .sx-header {
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left));
  }

  .sx-logo {
    flex: 1;
    min-width: 0;
  }

  .sx-logo__img {
    height: 66px;
    max-width: min(250px, 64vw);
  }

  .sx-header__meta {
    flex-shrink: 0;
    font-size: 0.6875rem;
    padding-bottom: 0.35rem;
  }

  .sx-main {
    padding: 0 max(1rem, env(safe-area-inset-right)) max(3rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .sx-hero {
    padding-top: 1.5rem;
  }

  .sx-hero__lead {
    font-size: 1rem;
  }

  .sx-hero__sub {
    font-size: 0.8125rem;
  }

  .sx-search-wrap {
    margin-top: 1.5rem;
  }

  .sx-search {
    height: 3rem;
    padding: 0 0.875rem;
  }

  .sx-search__input,
  .sx-input,
  .sx-select,
  .sx-textarea {
    font-size: 16px;
  }

  .sx-chips {
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 1rem;
  }

  .sx-chip {
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
  }

  .sx-section-label {
    margin-top: 2.5rem;
    text-align: left;
  }

  .sx-list__item,
  .sx-dropdown__item {
    min-height: 3rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .sx-dropdown__item {
    flex-wrap: wrap;
    gap: 0.15rem 0.75rem;
  }

  .sx-dropdown__cat {
    width: 100%;
    text-align: left;
  }

  .sx-results {
    margin-top: 2rem;
  }

  .sx-panel-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .sx-panel-head__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sx-panel-head__title {
    font-size: 1.25rem;
    word-break: break-word;
  }

  .sx-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .sx-panel-actions .sx-btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .sx-meta-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .sx-meta-row__note {
    margin-top: 0.25rem;
  }

  .sx-card {
    padding: 1rem;
  }

  .sx-progress__head {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  .sx-progress__value {
    font-size: 0.75rem;
  }

  .sx-btn--danger,
  .sx-btn--primary {
    min-height: 2.75rem;
  }

  .sx-form-row {
    grid-template-columns: 1fr;
  }

  .sx-field--full {
    grid-column: auto;
  }

  .sx-code {
    padding: 0.75rem;
    font-size: 0.6875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .sx-letter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .sx-letter-actions .sx-btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .sx-refund-matrix-details {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .sx-refund-matrix {
    min-width: 18rem;
  }

  .sx-refund-matrix__scenario {
    max-width: 9rem;
  }

  .sx-row-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-height: 3rem;
  }

  .sx-empty {
    gap: 1.75rem;
  }

  .sx-empty__title {
    font-size: 1.125rem;
    word-break: break-word;
  }

  .sx-footer {
    margin-top: 2.5rem;
  }

  .sx-footer__inner {
    padding: 2rem max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));
    text-align: left;
  }

  .sx-footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .sx-legal-page__title {
    font-size: 1.375rem;
  }
}

@media (max-width: 380px) {
  .sx-panel-actions {
    grid-template-columns: 1fr;
  }

  .sx-letter-actions {
    grid-template-columns: 1fr;
  }

  .sx-header__meta {
    display: none;
  }
}

/* Talep — iptal / iade tek kart */
.sx-letter-panel {
  margin-top: 0.75rem;
}

.sx-letter-output {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sx-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sx-refund-extras {
  margin-top: 0.75rem;
}

.sx-refund-extras .sx-link {
  display: inline-flex;
  margin-bottom: 0.35rem;
}

.sx-refund-hint {
  margin-top: 0.35rem;
}

.sx-refund-context {
  margin: 0.75rem 0;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.sx-refund-context__head {
  margin-bottom: 0.5rem;
}

.sx-refund-summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sx-refund-step {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text);
}

.sx-refund-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 4px;
}

.sx-refund-badge--none {
  background: rgba(120, 120, 130, 0.2);
  color: var(--text-muted);
}

.sx-refund-badge--low {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

.sx-refund-badge--conditional {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.sx-refund-badge--possible {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.sx-refund-badge--channel {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.sx-alert--info {
  margin-top: 0.75rem;
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.25);
}

.sx-refund-fields {
  margin-bottom: 1rem;
}

.sx-field--full {
  grid-column: 1 / -1;
}

.sx-refund-matrix-details {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sx-refund-matrix-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
}

.sx-refund-matrix-details summary:hover {
  color: var(--text);
}

.sx-refund-matrix {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.sx-refund-matrix th,
.sx-refund-matrix td {
  padding: 0.5rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.sx-refund-matrix th {
  font-weight: 500;
  color: var(--text-muted);
}

.sx-refund-matrix__scenario {
  color: var(--text-secondary);
  padding-right: 0.75rem;
}

/* Durum / niyet girişi */
.sx-intent {
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
}

.sx-intent__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sx-intent__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.sx-intent__chip {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.sx-intent__chip:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.sx-intent__chip--active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* Senaryo paneli — ince akış */
.sx-scenario-lead {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 36rem;
}

.sx-scenario-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--max-wide);
}

.sx-scenario-bridge {
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--border);
}

.sx-chips--left {
  justify-content: flex-start;
}

.sx-descriptor-results {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sx-descriptor-hint {
  margin: 0 0 0.25rem;
}

.sx-bank-details {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.sx-bank-details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}

.sx-bank-letter {
  margin-top: 0.75rem;
  max-height: 12rem;
  overflow: auto;
}

/* Ödeme kanalı */
.sx-channel-picker {
  margin-bottom: 1rem;
}

.sx-channel-picker .sx-label {
  margin-bottom: 0.5rem;
}

.sx-channel-chips {
  margin-top: 0;
}

.sx-channel-chip--active {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.sx-post-cancel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sx-bullets--compact {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
}

.sx-bullets--compact li {
  margin-bottom: 0.35rem;
}

/* Print — iptal / iade metni */
@media print {
  body::before,
  body::after,
  .sx-topbar,
  .sx-hero,
  .sx-search-wrap,
  .sx-chips,
  .sx-section-label,
  .sx-list,
  .sx-footer,
  .sx-grid .sx-card:not(.sx-print-target) {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .sx-results {
    display: block !important;
  }

  .sx-code {
    border: 1px solid #ccc;
    color: #000;
    background: #fff;
    font-size: 11pt;
  }
}
