/* Tradornet — core (ortak)
   :root, reset, buton, form, tablo, toast, modal, tooltip, tema, RTL */
/* Tradornet ? B2B Bayi Portal? */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --tn-ink: #0b1220;
  --tn-ink-soft: #f4f7fb;
  --tn-slate: #e8eef6;
  --tn-muted: #64748b;
  --tn-line: rgba(15, 23, 42, 0.1);
  --tn-surface: #ffffff;
  --tn-surface-2: #f8fafc;
  --tn-text: #0f172a;
  --tn-text-dim: #475569;
  --tn-teal: #0d9488;
  --tn-teal-deep: #0f766e;
  --tn-amber: #d97706;
  --tn-amber-deep: #b45309;
  --tn-danger: #dc2626;
  --tn-ok: #059669;
  --tn-radius: 5px;
  --tn-radius-sm: 5px;
  --tn-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --tn-font: 'DM Sans', sans-serif;
  --tn-display: 'Outfit', sans-serif;
  --tn-max: 1180px;
  --tn-sidebar: 260px;
  --tn-toast-top: 1rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--tn-font);
  color: var(--tn-text);
  background: var(--tn-surface);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--tn-display);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--tn-text-dim);
}

/* Layout shell */
.tn-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tn-container {
  width: min(100% - 2rem, var(--tn-max));
  margin-inline: auto;
}

.tn-main {
  flex: 1;
  padding: 0.75rem 0 4rem;
}

/* Buttons */
.tn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--tn-radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

.tn-btn:hover {
  transform: translateY(-1px);
}

.tn-btn:disabled,
.tn-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tn-btn--primary {
  background: var(--tn-teal-deep);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}

.tn-btn--primary:hover:not(:disabled) {
  background: var(--tn-teal);
}

.tn-btn--teal {
  background: var(--tn-teal);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

.tn-btn--teal:hover:not(:disabled) {
  background: var(--tn-teal-deep);
}

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

.tn-btn--ghost:hover:not(:disabled) {
  background: var(--tn-surface-2);
}

.tn-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.tn-btn--block {
  width: 100%;
}

/* Cards / surfaces */
.tn-card {
  background: var(--tn-surface);
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tn-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--tn-surface);
  box-shadow: var(--tn-shadow);
}

.tn-card__title {
  font-family: var(--tn-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.tn-card__meta {
  font-size: 0.82rem;
  color: var(--tn-muted);
}

.tn-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tn-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1.5rem;
}

.tn-stats--dash {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tn-stat {
  padding: 1.1rem 1.2rem;
  border-radius: var(--tn-radius);
  background: linear-gradient(160deg, rgba(13, 148, 136, 0.08), #ffffff);
  border: 1px solid var(--tn-line);
}

.tn-stat--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tn-stat--link:hover {
  border-color: color-mix(in srgb, var(--tn-teal, #0d9488) 45%, var(--tn-line));
  transform: translateY(-1px);
}

.tn-stat--pulse {
  border-color: color-mix(in srgb, var(--tn-teal, #0d9488) 55%, var(--tn-line));
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.tn-stat--warn {
  background: linear-gradient(160deg, rgba(217, 119, 6, 0.1), #ffffff);
}

.tn-stat__label {
  font-size: 0.8rem;
  color: var(--tn-muted);
  margin-bottom: 0.35rem;
}

.tn-stat__value {
  font-family: var(--tn-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.tn-stat__meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--tn-muted);
  line-height: 1.35;
}

.tn-dash-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-dash-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.tn-dash-panel__head .tn-section__title {
  margin-bottom: 0;
}

.tn-empty--compact {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
}

.tn-empty--compact p {
  margin: 0;
  color: var(--tn-muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .tn-dash-grid {
    grid-template-columns: 1fr;
  }
}

/* Searchable select combobox (tn-core.js) */
.tn-combobox {
  position: relative;
  --tn-combobox-rows: 6;
}

.tn-combobox__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.tn-combobox__control {
  cursor: text;
  padding-right: 2.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M11 11l3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

.tn-combobox__hint {
  padding: 0.35rem 0.85rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--tn-text-dim);
  border-bottom: 1px solid var(--tn-line);
  cursor: default;
  user-select: none;
}

.tn-combobox.is-disabled .tn-combobox__control {
  opacity: 0.55;
  cursor: not-allowed;
}

.tn-combobox__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1450;
  max-height: calc(var(--tn-combobox-rows) * 2.45rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.tn-combobox__menu.is-up {
  top: auto;
  bottom: calc(100% + 4px);
}

.tn-combobox__option {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  color: var(--tn-text);
}

.tn-combobox__option:hover,
.tn-combobox__option.is-active {
  background: rgba(20, 184, 166, 0.12);
}

.tn-combobox__option.is-selected {
  font-weight: 600;
}

.tn-combobox__empty {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: var(--tn-text-dim);
}

html[data-theme="dark"] .tn-combobox__menu {
  background: var(--tn-surface);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Forms */
.tn-auth {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.tn-auth--register {
  place-items: stretch;
  padding: 2rem 0 3rem;
}

.tn-auth--login {
  place-items: stretch;
  padding: 2rem 0 3rem;
}

.tn-auth__split {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.tn-auth__card {
  width: min(100%, 440px);
  padding: 2rem;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid var(--tn-line);
  box-shadow: var(--tn-shadow);
  animation: tn-rise 0.55s ease both;
}

.tn-auth__card--form {
  width: 100%;
  max-width: none;
}

.tn-auth__lead {
  margin: 0 0 1.25rem;
  color: var(--tn-text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tn-auth__aside {
  position: sticky;
  top: 5.5rem;
  padding: 1.75rem 1.85rem;
  border-radius: 5px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--tn-teal, #0d9488) 9%, #fff) 0%,
    #fff 55%
  );
  border: 1px solid color-mix(in srgb, var(--tn-teal, #0d9488) 22%, var(--tn-line));
  box-shadow: var(--tn-shadow);
  animation: tn-rise 0.55s ease 0.08s both;
  min-height: 18rem;
}

.tn-auth__type-panel[hidden] {
  display: none;
}

.tn-auth__type-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tn-teal-deep);
}

.tn-auth__type-title {
  margin: 0 0 0.55rem;
  font-family: var(--tn-display);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tn-text);
}

.tn-auth__type-lead {
  margin: 0 0 1.15rem;
  color: var(--tn-text-dim);
  font-size: 0.94rem;
  line-height: 1.55;
}

.tn-auth__benefits-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tn-muted);
}

.tn-auth__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.tn-auth__benefits li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--tn-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tn-auth__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tn-teal, #0d9488) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--tn-teal, #0d9488) 35%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.62rem;
}

.tn-auth__type-note {
  margin: 1.15rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--tn-teal, #0d9488) 8%, var(--tn-surface-2));
  border: 1px solid color-mix(in srgb, var(--tn-teal, #0d9488) 18%, var(--tn-line));
  color: var(--tn-text-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tn-auth__campaign {
  display: flex;
  flex-direction: column;
}

.tn-auth__promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.tn-auth__promo {
  padding: 0.85rem 0.95rem;
  border-radius: 5px;
  background: color-mix(in srgb, #fff 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--tn-teal, #0d9488) 14%, var(--tn-line));
  min-height: 100%;
}

.tn-auth__promo strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tn-teal-deep);
  line-height: 1.3;
}

.tn-auth__promo span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--tn-text-dim);
}

.tn-auth__campaign-cta {
  margin-top: 1.15rem;
  text-align: center;
  text-decoration: none;
}

.tn-auth__campaign-note {
  margin-top: 0.85rem;
}

.tn-auth__campaign-note a {
  color: var(--tn-teal-deep);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .tn-auth__promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .tn-auth__split {
    grid-template-columns: 1fr;
  }

  .tn-auth__aside {
    position: static;
  }
}

.tn-form {
  display: grid;
  gap: 0.95rem;
}

.tn-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tn-text-dim);
}

.tn-input,
.tn-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--tn-radius-sm);
  border: 1px solid var(--tn-line);
  background: #ffffff;
  color: var(--tn-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tn-input:focus,
.tn-select:focus {
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.tn-password {
  position: relative;
  display: block;
}

.tn-password .tn-input {
  padding-right: 2.75rem;
}

.tn-password__toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--tn-muted);
  cursor: pointer;
  padding: 0;
}

.tn-password__icon {
  display: none;
}

.tn-password__toggle[aria-pressed="false"] .tn-password__icon--show,
.tn-password__toggle:not([aria-pressed]) .tn-password__icon--show {
  display: block;
}

.tn-password__toggle[aria-pressed="true"] .tn-password__icon--hide {
  display: block;
}

.tn-password__toggle:hover {
  color: var(--tn-teal);
  background: rgba(20, 184, 166, 0.08);
}

.tn-password__toggle:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.55);
  outline-offset: 1px;
}

.tn-form__row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .tn-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.tn-follow {
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius);
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}

.tn-follow__all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 0.35rem 0 0.6rem;
  cursor: pointer;
}

.tn-follow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.35rem 0.9rem;
}

.tn-follow__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.tn-follow__item input:disabled+span {
  opacity: 0.5;
}

.tn-form__hint {
  font-size: 0.82rem;
  color: var(--tn-muted);
  text-align: center;
}

.tn-form__hint a {
  color: var(--tn-teal);
  font-weight: 600;
}

/* Alerts */
.tn-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--tn-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.tn-alert--error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

.tn-alert--success {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

.tn-alert--info {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.25);
  color: #0f766e;
}

.tn-alert--warn {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.28);
  color: #b45309;
}

/* Page headings */
.tn-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tn-pagehead__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tn-pagehead__sub {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .tn-pagehead {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .tn-pagehead > .tn-actions {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
  }

  .tn-pagehead > .tn-actions .tn-btn {
    flex: 0 1 auto;
  }

  .tn-pagehead > .tn-actions .tn-badge {
    flex: 1 1 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
  }

  /* Üstte ← geri linki varken yinelenen butonu gizle */
  .tn-pagehead:has(.tn-pagehead__sub a) > .tn-actions > .tn-btn:first-child {
    display: none;
  }
}

/* Filters */
.tn-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--tn-radius);
  background: #f8fafc;
  border: 1px solid var(--tn-line);
}

.tn-filters .tn-input,
.tn-filters .tn-select {
  min-width: 160px;
  flex: 1 1 160px;
}

.tn-filters .tn-btn {
  flex: 0 0 auto;
}

/* ?? Toast ?? */
.tn-toast-host {
  position: fixed;
  top: var(--tn-toast-top);
  right: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(100% - 2rem, 380px);
  pointer-events: none;
}

.tn-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--tn-line);
  background: #f8fafc;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.tn-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tn-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.tn-toast__icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.tn-toast--success .tn-toast__icon {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.tn-toast--error .tn-toast__icon {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.tn-toast--info .tn-toast__icon,
.tn-toast--confirm .tn-toast__icon {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.tn-toast--warn .tn-toast__icon {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.tn-toast__body {
  flex: 1;
  min-width: 0;
}

.tn-toast__title {
  font-family: var(--tn-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--tn-text);
}

.tn-toast__message {
  font-size: 0.9rem;
  color: var(--tn-text-dim);
  line-height: 1.4;
}

.tn-toast__action {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tn-teal);
}

.tn-toast__close {
  border: 0;
  background: transparent;
  color: var(--tn-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.tn-toast--success {
  border-color: rgba(5, 150, 105, 0.28);
  background: #f0fdf8;
}

.tn-toast--error {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fef5f5;
}

.tn-toast--warn {
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
}

.tn-toast--info,
.tn-toast--confirm {
  border-color: rgba(13, 148, 136, 0.28);
  background: #f0fdfa;
}

/* ?? Modal ?? */
body.tn-modal-open {
  overflow: hidden;
}

.tn-modal[hidden] {
  display: none !important;
}

.tn-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.tn-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  animation: tn-fade-down 0.25s ease both;
}

.tn-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  text-align: center;
  animation: tn-rise 0.3s ease both;
}

.tn-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  color: var(--tn-muted);
  cursor: pointer;
  line-height: 1;
}

.tn-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0.25rem auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.tn-modal__icon--success {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.tn-modal__icon--error {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.tn-modal__icon--warn {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.tn-modal__icon--confirm {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.tn-modal__title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.tn-modal__message {
  margin: 0 0 1.25rem;
  color: var(--tn-text-dim);
  font-size: 0.95rem;
}

.tn-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.tn-modal__dialog--form {
  width: min(100%, 460px);
  text-align: left;
}

.tn-modal__dialog--form .tn-modal__title {
  padding-right: 1.5rem;
}

.tn-modal__dialog--form .tn-modal__message {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.tn-share-form {
  display: grid;
  gap: 0.75rem;
}

.tn-share-form .tn-label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.88rem;
}

.tn-share-actions {
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.tn-share-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tn-modal__dialog--wide {
  width: min(100%, 540px);
  overflow: visible;
}

.tn-modal__dialog--wide .tn-ship-form {
  overflow: visible;
}

.tn-ship-cards {
  display: grid;
  gap: 0.65rem;
  max-height: min(50vh, 360px);
  overflow: auto;
  margin-bottom: 0.85rem;
}

.tn-ship-card {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--tn-border, #dbe2ea);
  border-radius: 0.65rem;
  background: var(--tn-surface, #fff);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tn-ship-card:hover,
.tn-ship-card.is-selected {
  border-color: var(--tn-primary, #1a6fb5);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tn-primary, #1a6fb5) 25%, transparent);
}

.tn-ship-card strong {
  font-size: 0.95rem;
}

.tn-ship-modal__actions {
  margin-top: 0.5rem;
}

.tn-ship-form {
  display: grid;
  gap: 0.75rem;
}

.tn-ship-row--inactive {
  opacity: 0.72;
}

.tn-ship-selected {
  min-height: 4.5rem;
}

/* Tables */
.tn-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius);
  background: var(--tn-surface);
}

.tn-table-wrap--fit {
  overflow: visible;
}

.tn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tn-table--dense {
  table-layout: fixed;
  font-size: 0.8rem;
}

.tn-table--dense th,
.tn-table--dense td {
  padding: 0.45rem 0.55rem;
  vertical-align: middle;
}

.tn-table--dense th {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.tn-cell-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tn-quote-number {
  overflow-wrap: anywhere;
}

.tn-table--dense .tn-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
}

.tn-table--dense .tn-btn--sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
}

.tn-table th,
.tn-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tn-line);
}

.tn-table th {
  color: var(--tn-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tn-table tr:last-child td {
  border-bottom: 0;
}

.tn-table tr:hover td {
  background: rgba(15, 23, 42, 0.03);
}

.tn-table th.tn-money,
.tn-table td.tn-money,
.tn-money {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.tn-table th.tn-money,
.tn-table td.tn-money {
  white-space: nowrap;
  min-width: 6.5rem;
}

.tn-cart-summary .tn-product__price,
.tn-cart-summary .tn-money,
.tn-detail__panel .tn-product__price {
  text-align: right;
}

.tn-price-input .tn-input,
.tn-input--money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* Sayı alanları: ok (spinner) yok; yanlışlıkla tekerlek ile değişmesin */
input[type="number"].tn-input,
input[type="number"].tn-input--money,
.tn-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.tn-qty-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 11.5rem;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tn-qty-stepper--cart {
  max-width: 9.5rem;
}

.tn-qty-stepper--cart .tn-qty-stepper__btn {
  flex-basis: 2.25rem;
}

.tn-qty-stepper--cart .tn-qty-stepper__input {
  padding: 0.45rem 0.25rem;
}

.tn-qty-stepper:focus-within {
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.tn-qty-stepper__btn {
  flex: 0 0 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--tn-surface-2);
  color: var(--tn-teal-deep);
  cursor: pointer;
}

.tn-qty-stepper__btn:hover:not(:disabled) {
  background: rgba(20, 184, 166, 0.1);
}

.tn-qty-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tn-qty-stepper__input {
  flex: 1 1 auto;
  min-width: 2.5rem;
  width: auto;
  margin: 0;
  padding: 0.65rem 0.35rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.tn-qty-stepper__input:focus {
  box-shadow: none;
  outline: none;
}

input[type="number"].tn-input::-webkit-outer-spin-button,
input[type="number"].tn-input::-webkit-inner-spin-button,
input[type="number"].tn-input--money::-webkit-outer-spin-button,
input[type="number"].tn-input--money::-webkit-inner-spin-button,
.tn-input[type="number"]::-webkit-outer-spin-button,
.tn-input[type="number"]::-webkit-inner-spin-button,
.tn-qty-stepper__input::-webkit-outer-spin-button,
.tn-qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tn-tip--price {
  text-align: right;
}

.tn-tip__v.tn-money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* Empty */
.tn-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--tn-line);
  border-radius: var(--tn-radius);
  background: var(--tn-surface);
}

.tn-empty h3 {
  margin-bottom: 0.4rem;
}

/* Detail */
.tn-detail {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .tn-detail {
    grid-template-columns: 1.1fr 1fr;
  }
}

.tn-detail__media {
  min-height: 320px;
  border-radius: 0;
  border: 1px solid var(--tn-line);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(13, 148, 136, 0.12), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at 30% 30%, rgba(13, 148, 136, 0.08), transparent 50%);
}

.tn-detail__media--photo {
  min-height: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: min(520px, 100%);
}

.tn-detail__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.tn-detail__panel {
  padding: 1.5rem;
  border-radius: 0;
  border: 1px solid var(--tn-line);
  background: #ffffff;
}

.tn-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tn-line);
}

.tn-related__head {
  margin-bottom: 1rem;
}

.tn-related__title {
  font-size: 1.25rem;
}

.tn-select--sm {
  width: auto;
  min-width: 70px;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
}

.tn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tn-toolbar--inline {
  margin-bottom: 0;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.tn-panel-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.75rem;
  flex: 1 1 280px;
  min-width: 0;
}

.tn-toolbar--search {
  margin-bottom: 0;
  flex: 1 1 220px;
  min-width: 0;
}

.tn-toolbar--search .tn-input {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: none;
}

.tn-toolbar__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.tn-empty__actions {
  margin-top: 0.35rem;
}

/* İkon / durum tooltip — yalnızca hover/focus'ta render (scroll taşmasını önler) */
.tn-icon-btn[data-tip],
.tn-status-ico[data-tip],
.tn-btn[data-tip] {
  position: relative;
}

.tn-icon-btn[data-tip]::after,
.tn-icon-btn[data-tip]::before,
.tn-status-ico[data-tip]::after,
.tn-status-ico[data-tip]::before,
.tn-btn[data-tip]::after,
.tn-btn[data-tip]::before {
  content: none;
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 80;
}

.tn-icon-btn[data-tip]:is(:hover, :focus-visible)::after,
.tn-status-ico[data-tip]:is(:hover, :focus-visible)::after,
.tn-btn[data-tip]:is(:hover, :focus-visible)::after {
  content: attr(data-tip);
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(0);
  padding: 0.22rem 0.45rem;
  border-radius: 0.3rem;
  background: var(--tn-teal-deep, #0f766e);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: min(18rem, 75vw);
  text-align: center;
  box-shadow:
    0 4px 12px rgba(15, 118, 110, 0.22),
    0 1px 4px rgba(15, 23, 42, 0.08);
  opacity: 1;
}

.tn-btn[data-tip]:is(:hover, :focus-visible)::after {
  box-shadow:
    0 4px 14px rgba(15, 118, 110, 0.28),
    0 1px 3px rgba(15, 23, 42, 0.12);
}

.tn-icon-btn[data-tip]:is(:hover, :focus-visible)::before,
.tn-status-ico[data-tip]:is(:hover, :focus-visible)::before {
  content: '';
  bottom: calc(100% + 0.08rem);
  transform: translateX(-50%) translateY(0);
  border: 4px solid transparent;
  border-top-color: var(--tn-teal-deep, #0f766e);
  opacity: 1;
}

.tn-btn[data-tip]:is(:hover, :focus-visible)::before {
  content: '';
  bottom: calc(100% + 0.1rem);
  transform: translateX(-50%) translateY(0);
  border: 4px solid transparent;
  border-top-color: var(--tn-teal-deep, #0f766e);
  opacity: 1;
}

html[data-theme="dark"] .tn-btn[data-tip]::after {
  background: var(--tn-teal, #2dd4bf);
  color: var(--tn-ink-soft, #0b1220);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .tn-btn[data-tip]::before {
  border-top-color: var(--tn-teal, #2dd4bf);
}

html[data-theme="dark"] .tn-icon-btn[data-tip]::after,
html[data-theme="dark"] .tn-status-ico[data-tip]::after {
  background: #115e59;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.15);
}

html[data-theme="dark"] .tn-icon-btn[data-tip]::before,
html[data-theme="dark"] .tn-status-ico[data-tip]::before {
  border-top-color: #115e59;
}

.tn-tip {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.tn-tip__trigger {
  border-bottom: 1px dotted color-mix(in srgb, var(--tn-teal, #0d9488) 55%, var(--tn-line));
  cursor: help;
  color: inherit;
}

.tn-tip__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 240px;
  max-width: min(320px, 70vw);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--tn-line);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.tn-tip:hover .tn-tip__panel,
.tn-tip:focus-within .tn-tip__panel,
.tn-tip__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.tn-tip__panel.is-open {
  transform: none;
}

.tn-tip__title {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.tn-tip__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.35rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0.3rem;
}

.tn-tip__k {
  color: var(--tn-muted, #64748b);
}

.tn-tip__v {
  color: var(--tn-text);
  word-break: break-word;
}

.tn-tip__panel--split {
  min-width: 360px;
  max-width: min(460px, 92vw);
}

.tn-tip__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.tn-tip__col {
  min-width: 0;
}

.tn-tip__col+.tn-tip__col {
  padding-left: 0.75rem;
  border-left: 1px solid var(--tn-line);
}

.tn-tip__col-title {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--tn-muted, #64748b);
}

.tn-tip__row--catalog {
  margin-bottom: 0.15rem;
}

.tn-tip__foot {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--tn-line);
  font-size: 0.78rem;
  color: var(--tn-muted, #64748b);
}

.tn-tip__col .tn-tip__foot {
  border-top: none;
  padding-top: 0.25rem;
  margin-top: 0.35rem;
}

.tn-price-input {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.tn-price-input .tn-tip__trigger {
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Prefs switcher (lang / theme) */
.tn-prefs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  overflow: visible;
}

.tn-sector-picker {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

.tn-sector-picker__toggle {
  position: relative;
}

.tn-sector-picker__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--tn-teal-deep);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  pointer-events: none;
}

.tn-sector-picker__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  z-index: 200;
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(26rem, 72vh);
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
  box-shadow: var(--tn-shadow);
}

.tn-sector-picker__title {
  margin: 0 0 0.25rem;
  font-family: var(--tn-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.tn-sector-picker__hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--tn-text-dim);
  line-height: 1.35;
}

.tn-sector-picker__save {
  width: 100%;
  margin-top: 0.65rem;
}

.tn-account-menu {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

.tn-account-menu__toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
  line-height: 0;
}

.tn-account-menu__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  z-index: 200;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.65rem 0.35rem;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
  box-shadow: var(--tn-shadow);
}

.tn-account-menu__title {
  margin: 0 0 0.35rem;
  padding: 0 0.65rem;
  font-family: var(--tn-display);
  font-weight: 700;
  font-size: 0.88rem;
}

.tn-account-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-account-menu__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--tn-radius-xs);
  color: var(--tn-text);
  text-decoration: none;
  font-size: 0.88rem;
}

.tn-account-menu__link:hover,
.tn-account-menu__link.is-active {
  background: var(--tn-teal-soft);
  color: var(--tn-teal-deep);
}

.tn-account-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: calc(100vh - 10rem);
}

.tn-account-layout__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.tn-account-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.tn-account-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tn-account-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
  overflow: hidden;
}

.tn-account-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--tn-line);
  color: var(--tn-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.tn-account-sidebar__link:last-child {
  border-bottom: none;
}

.tn-account-sidebar__link:hover,
.tn-account-sidebar__link.is-active {
  background: var(--tn-teal-soft);
  color: var(--tn-teal-deep);
  font-weight: 600;
}

.tn-account-sidebar__meta {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--tn-text-dim);
}

.tn-account-section__title {
  margin: 0 0 1rem;
  font-family: var(--tn-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.tn-account-section {
  width: 100%;
  flex: 1;
  min-width: 0;
}

.tn-account-section .tn-table-wrap {
  overflow-x: visible;
}

.tn-account-ship-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tn-account-ship-toolbar .tn-card__meta {
  margin: 0;
}

.tn-table--account-ship {
  table-layout: fixed;
  width: 100%;
}

.tn-table--account-ship .tn-table__cell-label {
  width: 34%;
}

.tn-table--account-ship .tn-table__cell-country {
  width: 24%;
}

.tn-table--account-ship .tn-table__cell-city {
  width: 14%;
}

.tn-table--account-ship .tn-table__cell-end {
  width: 28%;
}

.tn-table--account-ship th.tn-table__cell-end,
.tn-table--account-ship td.tn-table__cell-end {
  text-align: right;
  padding-right: 0.75rem;
}

.tn-account-ship-row-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  flex-wrap: nowrap;
}

.tn-account-ship-row-end .tn-badge {
  flex-shrink: 0;
}

.tn-icon-actions--ship {
  display: inline-grid;
  grid-template-columns: repeat(3, 2rem);
  gap: 0.3rem;
  flex-shrink: 0;
}

.tn-icon-actions--ship .tn-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.tn-icon-actions--ship form {
  display: inline-flex;
  margin: 0;
}

.tn-account-contract {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tn-line);
}

.tn-account-contract:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tn-account-contract__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tn-account-layout {
    grid-template-columns: 1fr;
  }

  .tn-account-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
  }

  .tn-account-sidebar__link {
    border: 1px solid var(--tn-line);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .tn-account-sidebar__meta {
    display: none;
  }

  .tn-account-layout {
    min-height: 0;
  }

  .tn-account-section .tn-table-wrap {
    overflow-x: auto;
  }
}

.tn-follow--compact {
  border: 0;
  padding: 0;
  margin: 0;
}

.tn-follow--compact .tn-follow__grid {
  max-height: 11rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.tn-sector-picker__panel .tn-follow--compact .tn-follow__grid {
  grid-template-columns: 1fr;
  max-height: min(17rem, 52vh);
  gap: 0.4rem 0;
  padding-top: 0.15rem;
}

.tn-sector-picker__panel .tn-follow__item span {
  line-height: 1.35;
  word-break: break-word;
}

.tn-prefs__theme,
.tn-prefs__lang {
  overflow: visible;
}

.tn-lang-picker {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

.tn-lang-picker__toggle {
  position: relative;
  min-width: 2rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.tn-lang-picker__globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tn-lang-picker__flag {
  display: none;
  font-size: 1.05rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.tn-lang-flag {
  display: block;
  width: 1.35rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
  background: transparent;
}

.tn-lang-picker__toggle .tn-lang-flag {
  width: 1.35rem;
}

.tn-lang-picker__toggle .tn-lang-flag[src*='tr.svg'] {
  width: 1.55rem;
}

.tn-lang-picker__option-flag .tn-lang-flag {
  width: 1.2rem;
}

.tn-lang-picker--has-locale .tn-lang-picker__globe {
  display: none;
}

.tn-lang-picker--has-locale .tn-lang-picker__flag {
  display: inline;
}

.tn-lang-picker__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  z-index: 200;
  min-width: 10.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: min(20rem, 70vh);
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
  box-shadow: var(--tn-shadow);
}

/* display:flex, [hidden] display:none ile çakışmasın (seçim sonrası menü açık kalmasın) */
.tn-lang-picker__panel[hidden],
.tn-sector-picker__panel[hidden],
.tn-account-menu__panel[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  body.tn-nav-panel-open {
    overflow: hidden;
  }

  body.tn-nav-panel-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(15, 23, 42, 0.45);
  }

  .tn-nav-panel-sheet {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    inset-inline-end: auto !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    z-index: 200 !important;
    max-height: min(32rem, 88vh) !important;
    margin: 0 !important;
    border-radius: 14px 14px 0 0;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.2);
  }

  .tn-follow--compact .tn-follow__grid {
    grid-template-columns: 1fr;
  }
}

.tn-lang-picker__option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.28rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tn-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: start;
  cursor: pointer;
}

.tn-lang-picker__option:hover,
.tn-lang-picker__option:focus-visible {
  background: rgba(13, 148, 136, 0.08);
  outline: none;
}

.tn-lang-picker__option.is-active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--tn-teal-deep);
}

.tn-lang-picker__option-flag {
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}

.tn-lang-picker__option-label {
  flex: 1 1 auto;
  min-width: 0;
}

.tn-prefs__select {
  max-width: 9.5rem;
  height: 2rem;
  padding: 0 0.4rem;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface-2);
  color: var(--tn-text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.tn-prefs__select:hover,
.tn-prefs__select:focus {
  color: var(--tn-text);
  border-color: rgba(13, 148, 136, 0.35);
  outline: none;
}

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

.tn-prefs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface-2);
  color: var(--tn-text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
}

.tn-prefs__btn:hover {
  color: var(--tn-text);
  border-color: rgba(13, 148, 136, 0.35);
}

.tn-prefs__btn[data-tip] {
  position: relative;
}

.tn-prefs__btn[data-tip]::after,
.tn-prefs__btn[data-tip]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 80;
}

.tn-prefs__btn[data-tip]::after {
  content: attr(data-tip);
  top: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(-5px);
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--tn-teal-deep, #0f766e);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  max-width: min(18rem, 75vw);
  text-align: center;
  box-shadow:
    0 8px 22px rgba(15, 118, 110, 0.28),
    0 2px 8px rgba(15, 23, 42, 0.12);
}

.tn-prefs__btn[data-tip]::before {
  content: '';
  top: calc(100% + 0.12rem);
  transform: translateX(-50%) translateY(-5px);
  border: 5px solid transparent;
  border-bottom-color: var(--tn-teal-deep, #0f766e);
}

.tn-prefs__btn[data-tip]:hover::after,
.tn-prefs__btn[data-tip]:hover::before,
.tn-prefs__btn[data-tip]:focus-visible::after,
.tn-prefs__btn[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html[data-theme="dark"] .tn-prefs__btn[data-tip]::after {
  background: #115e59;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.15);
}

html[data-theme="dark"] .tn-prefs__btn[data-tip]::before {
  border-bottom-color: #115e59;
}

.tn-sidebar__footer .tn-prefs {
  margin-bottom: 0.65rem;
}

html[data-theme="dark"] .tn-auth__promo {
  background: color-mix(in srgb, var(--tn-surface-2) 85%, transparent);
  border-color: color-mix(in srgb, var(--tn-teal) 20%, var(--tn-line));
}

html[data-theme="dark"] .tn-footer {
  background: linear-gradient(
    180deg,
    var(--tn-surface) 0%,
    color-mix(in srgb, var(--tn-teal) 8%, var(--tn-surface-2)) 100%
  );
}

html[data-theme="dark"] .tn-footer__mark {
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.18);
}

/* Dark theme */
html[data-theme="dark"] {
  color-scheme: dark;
  --tn-ink: #e8eef6;
  --tn-ink-soft: #0b1220;
  --tn-slate: #1a2332;
  --tn-muted: #94a3b8;
  --tn-line: rgba(148, 163, 184, 0.18);
  --tn-surface: #0f1623;
  --tn-surface-2: #162032;
  --tn-text: #e8eef6;
  --tn-text-dim: #94a3b8;
  --tn-teal: #2dd4bf;
  --tn-teal-deep: #14b8a6;
  --tn-amber: #fbbf24;
  --tn-amber-deep: #f59e0b;
  --tn-danger: #f87171;
  --tn-ok: #34d399;
  --tn-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .tn-shell,
html[data-theme="dark"] .tn-panel,
html[data-theme="dark"] .tn-app,
html[data-theme="dark"] .tn-sidebar,
html[data-theme="dark"] .tn-nav,
html[data-theme="dark"] .tn-panel__bar,
html[data-theme="dark"] .tn-app__mobile-bar,
html[data-theme="dark"] .tn-app__menu-btn,
html[data-theme="dark"] .tn-table-wrap,
html[data-theme="dark"] .tn-detail__panel,
html[data-theme="dark"] .tn-card,
html[data-theme="dark"] .tn-cart-summary,
html[data-theme="dark"] .tn-empty,
html[data-theme="dark"] .tn-auth,
html[data-theme="dark"] .tn-auth__aside,
html[data-theme="dark"] .tn-modal__dialog {
  background: var(--tn-surface);
  color: var(--tn-text);
}

html[data-theme="dark"] .tn-input,
html[data-theme="dark"] .tn-select,
html[data-theme="dark"] select.tn-input,
html[data-theme="dark"] textarea.tn-input {
  background: var(--tn-surface-2);
  color: var(--tn-text);
  border-color: var(--tn-line);
}

html[data-theme="dark"] .tn-btn--ghost {
  color: var(--tn-text-dim);
  border-color: var(--tn-line);
  background: transparent;
}

html[data-theme="dark"] .tn-btn--ghost:hover {
  color: var(--tn-text);
  background: var(--tn-surface-2);
}

html[data-theme="dark"] .tn-msg--mine {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.28);
}

html[data-theme="dark"] .tn-table th {
  background: var(--tn-surface-2);
}

html[data-theme="dark"] .tn-prefs__select {
  background: var(--tn-surface-2);
  color: var(--tn-text);
  border-color: var(--tn-line);
}

html[data-theme="dark"] .tn-panel .tn-input,
html[data-theme="dark"] .tn-panel .tn-select,
html[data-theme="dark"] .tn-panel textarea.tn-input,
html[data-theme="dark"] .tn-panel select.tn-input,
html[data-theme="dark"] .tn-panel .tn-variant-image__file,
html[data-theme="dark"] .tn-panel .tn-prefs__select {
  border-color: color-mix(in srgb, var(--tn-teal, #2dd4bf) 48%, var(--tn-line));
}

html[data-theme="dark"] .tn-panel .tn-input:focus,
html[data-theme="dark"] .tn-panel .tn-select:focus,
html[data-theme="dark"] .tn-panel textarea.tn-input:focus,
html[data-theme="dark"] .tn-panel select.tn-input:focus,
html[data-theme="dark"] .tn-panel .tn-variant-image__file:focus {
  border-color: color-mix(in srgb, var(--tn-teal, #2dd4bf) 78%, var(--tn-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tn-teal, #2dd4bf) 22%, transparent);
}

html[data-theme="dark"] .tn-toast {
  background: var(--tn-surface-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .tn-toast--success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.32);
}

html[data-theme="dark"] .tn-toast--error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.32);
}

html[data-theme="dark"] .tn-toast--warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.32);
}

html[data-theme="dark"] .tn-toast--info,
html[data-theme="dark"] .tn-toast--confirm {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.32);
}

/* RTL (Arabic) */
html[dir="rtl"] .tn-brand-tag {
  margin-left: 0;
  margin-right: 0.35rem;
  padding-left: 0;
  padding-right: 0.85rem;
  border-left: none;
  border-right: 1px solid var(--tn-line);
}

html[dir="rtl"] .tn-nav__links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .tn-sector-picker__badge {
  right: auto;
  left: -0.2rem;
}

html[dir="rtl"] .tn-table th,
html[dir="rtl"] .tn-table td {
  text-align: right;
}

html[dir="rtl"] .tn-table th.tn-money,
html[dir="rtl"] .tn-table td.tn-money {
  text-align: left;
}

html[dir="rtl"] .tn-pagehead__actions,
html[dir="rtl"] .tn-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .tn-modal__foot,
html[dir="rtl"] .tn-form__row--actions {
  flex-direction: row-reverse;
}

/* — shared UI (site + panel + admin) — */
.tn-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.tn-badge--warn {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.tn-badge--danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.tn-badge--ok {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.tn-badge--verified {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.tn-trust-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.tn-trust-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 999px;
}

.tn-trust-checklist__item {
  font-size: 0.88rem;
  color: #6b7280;
  padding: 0.15rem 0;
}

.tn-trust-checklist__item.is-done {
  color: #047857;
}

.tn-actions {
  flex-wrap: wrap;
}

.tn-panel .tn-actions .tn-btn {
  flex: 0 0 auto;
}

.tn-panel .tn-cart-summary {
  max-width: 100%;
}

.tn-panel .tn-quote-log {
  margin-top: 1.25rem;
}

.tn-panel .tn-quote-log__item {
  padding-bottom: 0.75rem;
}

.tn-panel .tn-input--qty {
  max-width: 6.5rem;
}

/* Panel form kontrolleri — varsayılanda görünür teal çerçeve */
.tn-panel .tn-input,
.tn-panel .tn-select,
.tn-panel textarea.tn-input,
.tn-panel select.tn-input,
.tn-panel .tn-variant-image__file,
.tn-panel .tn-prefs__select {
  border: 1px solid color-mix(in srgb, var(--tn-teal, #0d9488) 42%, var(--tn-line));
}

.tn-panel .tn-input:focus,
.tn-panel .tn-select:focus,
.tn-panel textarea.tn-input:focus,
.tn-panel select.tn-input:focus,
.tn-panel .tn-variant-image__file:focus {
  border-color: color-mix(in srgb, var(--tn-teal, #0d9488) 72%, var(--tn-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tn-teal, #0d9488) 18%, transparent);
}

.tn-panel .tn-variant-action {
  border-color: color-mix(in srgb, var(--tn-teal, #0d9488) 35%, var(--tn-line));
}

/* Geniş panel formları (ürün düzenleme, import) */
.tn-panel-form {
  width: 100%;
  max-width: 40rem;
}

.tn-panel-form--wide {
  max-width: min(88rem, 100%);
}

.tn-panel-form--wide .tn-panel-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tn-panel-form--wide .tn-panel-form-grid__span {
  grid-column: 1 / -1;
}

.tn-panel-card--wide {
  max-width: min(56rem, 100%);
}

.tn-panel-form--wide .tn-product-translations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.75rem;
}

.tn-variant-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tn-variant-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--tn-line);
  border-radius: 8px;
  background: var(--tn-surface, #fff);
}

.tn-variant-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.15rem;
}

.tn-variant-row {
  display: grid;
  grid-template-columns:
    minmax(9rem, 1.35fr)
    minmax(7rem, 1fr)
    5.5rem
    6.5rem
    6.5rem
    minmax(9rem, 1.25fr)
    2.75rem
    2.75rem;
  gap: 0.5rem;
  align-items: end;
  min-width: 48rem;
}

.tn-variant-action-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-bottom: 0.35rem;
}

.tn-variant-action-head {
  display: inline-flex;
  justify-content: center;
  margin: 0;
  color: var(--tn-muted);
  line-height: 1;
}

.tn-variant-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--tn-line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--tn-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tn-variant-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.tn-variant-action__face {
  display: inline-flex;
  pointer-events: none;
}

.tn-variant-action:has(input:checked) {
  background: var(--tn-teal, #0d9488);
  border-color: var(--tn-teal, #0d9488);
  color: #fff;
}

.tn-variant-action--danger:has(input:checked) {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.tn-variant-action--danger:not(:has(input:checked)):hover {
  border-color: #fca5a5;
  color: #b91c1c;
}

html[data-theme="dark"] .tn-variant-action {
  background: var(--tn-surface-2, #1a1f26);
}

html[data-theme="dark"] .tn-variant-action--danger:has(input:checked) {
  background: color-mix(in srgb, #b91c1c 18%, var(--tn-surface-2));
}

.tn-variant-image-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 9rem;
}

.tn-variant-image-head {
  margin: 0;
}

.tn-variant-image__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tn-variant-image__thumb {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--tn-line);
  flex-shrink: 0;
}

.tn-variant-image__file {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.2rem 0.25rem;
  border: 1px solid var(--tn-line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--tn-text);
}

.tn-variant-image__path {
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
}

.tn-variant-image__path::placeholder {
  color: var(--tn-muted);
  opacity: 0.85;
}

.tn-variant-image__remove {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--tn-muted);
  cursor: pointer;
}

html[data-theme="dark"] .tn-variant-image__file {
  background: var(--tn-surface-2, #1a1f26);
}

.tn-input--sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
}

.tn-variant-trans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.tn-tier-row {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(6rem, 1fr) minmax(8rem, 1.2fr) 4rem;
  gap: 0.5rem;
  align-items: end;
  max-width: 42rem;
}

html[data-theme="dark"] .tn-variant-block {
  background: var(--tn-surface-2, #1a1f26);
}

@media (max-width: 900px) {
  .tn-panel-form--wide .tn-product-translations {
    grid-template-columns: 1fr;
  }

  .tn-panel-form--wide .tn-panel-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .tn-panel-form--wide .tn-panel-form-grid {
    grid-template-columns: 1fr;
  }
}

.tn-panel .tn-price-input {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* App panels (admin ? sidebar) */
.tn-app {
  display: grid;
  min-height: 100vh;
  background: #ffffff;
}

@media (min-width: 900px) {
  .tn-app {
    grid-template-columns: var(--tn-sidebar) 1fr;
  }
}

.tn-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--tn-line);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tn-sidebar__nav {
  display: grid;
  gap: 0.25rem;
}

.tn-sidebar__link {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  color: var(--tn-text-dim);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.tn-sidebar__link:hover,
.tn-sidebar__link.is-active {
  background: rgba(20, 184, 166, 0.12);
  color: var(--tn-text);
}

.tn-sidebar__footer {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--tn-muted);
}

.tn-app__main {
  padding: 1.5rem 1.25rem 3rem;
  min-width: 0;
}

@media (min-width: 900px) {
  .tn-app__main {
    padding: 2rem 2rem 3rem;
  }
}

.tn-app__mobile-bar,
.tn-app__backdrop {
  display: none;
}

.tn-app__mobile-bar {
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--tn-line);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 45;
}

.tn-app__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--tn-line);
  border-radius: 0.65rem;
  background: #ffffff;
  color: var(--tn-text);
  cursor: pointer;
  flex-shrink: 0;
}

.tn-app__menu-icon,
.tn-app__menu-icon::before,
.tn-app__menu-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
}

.tn-app__menu-icon::before,
.tn-app__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.tn-app__menu-icon::before {
  top: -0.35rem;
}

.tn-app__menu-icon::after {
  top: 0.35rem;
}

.tn-app.is-nav-open .tn-app__menu-icon {
  background: transparent;
}

.tn-app.is-nav-open .tn-app__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.tn-app.is-nav-open .tn-app__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.tn-app__mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.tn-app__mobile-brand .tn-brand__name {
  font-size: 0.95rem;
}

.tn-app__mobile-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tn-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38vw;
}

@media (max-width: 899px) {
  .tn-app {
    display: block;
  }

  .tn-app__mobile-bar {
    display: flex;
  }

  .tn-app__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 48;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    cursor: pointer;
  }

  .tn-app.is-nav-open .tn-app__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.tn-admin-nav-open {
    overflow: hidden;
  }

  .tn-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: min(280px, 88vw);
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: none;
  }

  html[dir="rtl"] .tn-sidebar {
    left: auto;
    right: 0;
    transform: translateX(105%);
  }

  .tn-app.is-nav-open .tn-sidebar {
    transform: translateX(0);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  }

  .tn-app__main {
    padding: 1rem 0.85rem 2.5rem;
    overflow-x: hidden;
  }

  .tn-app__top {
    flex-direction: column;
    align-items: stretch;
  }

  .tn-app__top .tn-btn {
    align-self: stretch;
    justify-content: center;
  }

  .tn-app__top-title .tn-pagehead__sub {
    white-space: normal;
  }

  .tn-app__top--tools {
    align-items: stretch;
  }

  .tn-app .tn-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .tn-app .tn-stat {
    padding: 0.85rem 0.9rem;
  }

  .tn-app .tn-stat__value {
    font-size: 1.35rem;
  }

  .tn-app .tn-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .tn-app .tn-filters .tn-input,
  .tn-app .tn-filters .tn-select,
  .tn-app .tn-filters .tn-btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .tn-app .tn-toolbar .tn-input {
    max-width: none;
    flex: 1 1 100%;
  }

  .tn-app .tn-table-wrap {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .tn-app .tn-table {
    min-width: 36rem;
    font-size: 0.82rem;
  }

  .tn-app .tn-table th,
  .tn-app .tn-table td {
    padding: 0.65rem 0.75rem;
  }

  .tn-app .tn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

@media (min-width: 900px) {
  .tn-app__mobile-bar,
  .tn-app__backdrop {
    display: none !important;
  }
}

.tn-app__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tn-footer {
  margin-top: auto;
  border-top: 1px solid var(--tn-line);
  background: linear-gradient(
    180deg,
    var(--tn-surface) 0%,
    color-mix(in srgb, var(--tn-teal) 5%, var(--tn-surface-2)) 100%
  );
  padding: 2.75rem 0 1.5rem;
  color: var(--tn-muted);
  font-size: 0.875rem;
}

.tn-footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--tn-line);
}

@media (min-width: 640px) {
  .tn-footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .tn-footer__grid {
    grid-template-columns: minmax(260px, 1.5fr) 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.tn-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tn-footer__brand-link {
  text-decoration: none;
  align-self: flex-start;
  max-width: 100%;
}

.tn-footer__brand-link:hover .tn-brand__name {
  color: var(--tn-teal);
}

.tn-footer__brand-link .tn-brand__slogan {
  max-height: none;
}

.tn-footer__mark {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.24);
  flex-shrink: 0;
}

.tn-footer__tagline {
  margin: 0;
  max-width: 24rem;
  line-height: 1.6;
  color: var(--tn-text-dim);
  font-size: 0.8125rem;
}

.tn-footer__col {
  min-width: 0;
}

.tn-footer__heading {
  margin: 0 0 0.85rem;
  font-family: var(--tn-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tn-text-dim);
}

.tn-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tn-footer__list a {
  display: inline-block;
  color: var(--tn-text-dim);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.tn-footer__list a:hover {
  color: var(--tn-teal-deep);
}

.tn-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding-top: 1.25rem;
  font-size: 0.8125rem;
}

.tn-footer__copy,
.tn-footer__meta {
  margin: 0;
  color: var(--tn-muted);
}

.tn-footer__meta {
  color: var(--tn-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.tn-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tn-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  flex: 1 1 auto;
}

.tn-footer__links a {
  color: var(--tn-text-dim);
  text-decoration: none;
}

.tn-footer__links a:hover {
  color: var(--tn-teal-deep);
  text-decoration: underline;
}

.tn-footer__sep {
  color: var(--tn-muted);
  user-select: none;
}

.tn-check--legal {
  align-items: flex-start;
  line-height: 1.5;
  font-size: 0.9rem;
}

.tn-check--legal a {
  color: var(--tn-teal-deep);
  text-decoration: underline;
}

.tn-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
}

.tn-actions .tn-btn {
  flex: 1 1 0;
  white-space: nowrap;
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.tn-section {
  margin-bottom: 2rem;
}

.tn-section__title {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

@keyframes tn-fade-down {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tn-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tn-table__status,
.tn-table__actions {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  text-align: center;
}

.tn-table__status .tn-status-ico {
  cursor: default;
}

.tn-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tn-status-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  border: 1px solid var(--tn-line);
  background: #fff;
  color: var(--tn-text-dim);
  flex-shrink: 0;
}

.tn-status-ico--verified {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
}

.tn-status-ico svg {
  display: block;
}

.tn-status-ico--ok {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.28);
  color: #047857;
}

.tn-status-ico--warn {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.28);
  color: #b45309;
}

.tn-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  overflow: visible;
}

.tn-icon-actions form {
  display: inline-flex;
  margin: 0;
}

.tn-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--tn-line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--tn-text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tn-icon-btn:disabled,
.tn-icon-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.tn-icon-btn:hover {
  background: var(--tn-surface-2);
  border-color: color-mix(in srgb, var(--tn-teal, #0d9488) 40%, var(--tn-line));
}

.tn-icon-btn--ok {
  background: var(--tn-teal, #0d9488);
  border-color: var(--tn-teal, #0d9488);
  color: #fff;
}

.tn-icon-btn--ok:hover {
  background: color-mix(in srgb, var(--tn-teal, #0d9488) 88%, #000);
  border-color: transparent;
  color: #fff;
}

/* Onay bekliyor — beyaz zemin, kırmızı tik */
.tn-icon-btn--unapproved {
  background: #fff;
  border-color: rgba(220, 38, 38, 0.35);
  color: #dc2626;
}

.tn-icon-btn--unapproved:hover {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.5);
  color: #b91c1c;
}

/* Onaylanmış — yeşil zemin, beyaz tik (tıkla → onayı kaldır) */
.tn-icon-btn--approved {
  background: var(--tn-teal, #0d9488);
  border-color: var(--tn-teal, #0d9488);
  color: #fff;
  cursor: pointer;
}

.tn-icon-btn--approved:hover {
  background: color-mix(in srgb, var(--tn-teal, #0d9488) 88%, #000);
  border-color: transparent;
  color: #fff;
}

.tn-icon-btn--warn {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.tn-icon-btn--warn:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.5);
  color: #92400e;
}

.tn-icon-btn--danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Messages (site + panel) */
/* ?? Messages ?? */
.tn-msg-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 720px;
}

.tn-msg-list__item {
  display: block;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--tn-line);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tn-msg-list__item:hover {
  border-color: var(--tn-teal);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.tn-msg-list__item.is-unread {
  border-color: rgba(13, 148, 136, 0.35);
  background: #f0fdfa;
}

.tn-msg-list__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.tn-msg-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.35rem;
}

.tn-msg-list__preview {
  margin: 0.45rem 0 0;
  color: var(--tn-text-dim);
  font-size: 0.92rem;
}

.tn-msg-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.tn-msg {
  max-width: 85%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--tn-radius-sm);
  border: 1px solid var(--tn-line);
  background: var(--tn-surface-2);
}

.tn-msg--mine {
  align-self: flex-end;
  background: #ecfdf5;
  border-color: rgba(13, 148, 136, 0.28);
}

.tn-msg--peer {
  align-self: flex-start;
}

.tn-msg__meta {
  font-size: 0.78rem;
  color: var(--tn-muted);
  margin-bottom: 0.35rem;
}

.tn-msg__body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.tn-msg-compose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--tn-line);
}

.tn-msg-compose .tn-btn {
  align-self: flex-start;
}
