/* Destek Talep — modern UI (Plus Jakarta Sans, primary #18B24B) */
:root {
  --color-primary: #18b24b;
  --color-primary-hover: #159c42;
  --color-primary-dark: #0f7a34;
  --color-primary-soft: rgba(24, 178, 75, 0.12);
  --color-primary-glow: rgba(24, 178, 75, 0.22);
  --color-bg: #f1f5f9;
  --color-bg-elevated: #ffffff;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --bottom-nav-h: 96px;
  --sidebar-w: 272px;
  --topbar-h: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* App shell — giriş sayfasıyla uyumlu hafif mesh */
.app-shell {
  position: relative;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(24, 178, 75, 0.07), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(16, 120, 72, 0.05), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, var(--color-bg) 40%, #eef2f7 100%);
}

.layout {
  min-height: 100dvh;
}

.layout--auth .layout__main {
  margin-left: 0;
}

.layout__main {
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0));
}

@media (min-width: 900px) {
  .layout--auth .layout__main {
    margin-left: var(--sidebar-w);
  }
  .layout__main {
    padding-bottom: 0;
  }
}

.layout__content {
  padding: 16px 18px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .layout__content {
    padding: 28px 32px 40px;
  }
}

.layout__content--full {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ——— Sidebar ——— */
.sidebar {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  flex-direction: column;
  z-index: 200;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.sidebar.is-open {
  display: flex;
}

@media (min-width: 900px) {
  .sidebar {
    display: flex;
  }
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar__brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #22c55e 0%, var(--color-primary) 45%, #159c42 100%);
  box-shadow: 0 8px 20px -4px rgba(24, 178, 75, 0.45);
  flex-shrink: 0;
}

.sidebar__logo svg {
  display: block;
  width: 26px;
  height: 26px;
}

.sidebar__logo--image {
  width: auto;
  min-width: 56px;
  max-width: min(236px, 100%);
  height: auto;
  min-height: 56px;
  max-height: 80px;
  padding: 6px 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.sidebar__logo--image img {
  display: block;
  width: auto;
  height: auto;
  max-height: 68px;
  max-width: min(220px, 100%);
  min-height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.sidebar__logo--lg {
  width: 56px;
  height: 56px;
}

.sidebar__nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar__section {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 18px 10px 10px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.sidebar__link:hover {
  background: #f8fafc;
  color: var(--color-text);
  text-decoration: none;
}

.sidebar__link.is-active {
  background: linear-gradient(135deg, rgba(24, 178, 75, 0.14) 0%, rgba(24, 178, 75, 0.08) 100%);
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(24, 178, 75, 0.2);
}

.sidebar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.9;
  flex-shrink: 0;
}

.sidebar__footer {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.sidebar__user-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--color-border);
}

.sidebar__user {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  word-break: break-word;
}

.sidebar__logout-form {
  margin: 0;
  display: inline;
}

.sidebar__logout {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.sidebar__logout:hover {
  text-decoration: underline;
}

/* ——— Topbar ——— */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topbar-h);
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 900px) {
  .topbar {
    display: none;
  }
}

.topbar__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.topbar__menu:hover {
  background: #fff;
  border-color: var(--color-border-strong);
}

.topbar__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
}

.topbar__logo {
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 4px 6px;
}

/* ——— Bottom nav ——— */
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  height: auto;
  min-height: 64px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

@media (min-width: 900px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  text-decoration: none;
  border-radius: 14px;
  transition:
    color 0.15s,
    background 0.15s;
}

.bottom-nav__item:hover {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.bottom-nav__item.is-active {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.bottom-nav__item.is-active .bottom-nav__icon {
  opacity: 1;
  color: var(--color-primary);
}

.bottom-nav__label {
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__item--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 150;
}

.sidebar-backdrop.is-visible {
  display: block;
}

@media (min-width: 900px) {
  .sidebar-backdrop {
    display: none !important;
  }
}

/* ——— Cards ——— */
.card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.95);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card--pad {
  padding: 22px 20px;
}

@media (min-width: 600px) {
  .card--pad {
    padding: 26px 24px;
  }
}

.card--mb {
  margin-bottom: 18px;
}

/* ——— Stats ——— */
.grid--stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .grid--stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

.stat {
  position: relative;
  padding: 18px 16px;
  overflow: hidden;
  border-radius: var(--radius);
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  opacity: 0.35;
}

.stat:nth-child(1)::before {
  background: #64748b;
}
.stat:nth-child(2)::before {
  background: #22c55e;
}
.stat:nth-child(3)::before {
  background: #3b82f6;
}
.stat:nth-child(4)::before {
  background: #f59e0b;
}
.stat:nth-child(5)::before {
  background: #94a3b8;
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat__value {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-top: 4px;
}

/* ——— Section ——— */
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ——— List ——— */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}

.list__row:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-1px);
}

.list__row--block {
  flex-direction: column;
  align-items: stretch;
}

.list__main {
  min-width: 0;
}

.list__title {
  display: block;
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--color-text);
}

.list__meta {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ——— Badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--open {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge--in_progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge--waiting {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--completed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--color-border);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    background 0.2s;
}

.btn--primary {
  background: linear-gradient(180deg, #22c55e 0%, var(--color-primary) 50%, var(--color-primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 178, 75, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(24, 178, 75, 0.45);
  text-decoration: none;
  color: #fff;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--secondary {
  background: #fff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--color-border-strong);
  background: #f8fafc;
  text-decoration: none;
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-dark);
}

.btn--ghost:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.btn--danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn--danger:hover {
  text-decoration: none;
  color: #fff;
}

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

.btn--sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.page-actions {
  margin-bottom: 20px;
}

/* ——— Forms ——— */
.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: inherit;
  color: var(--color-text);
  background: #fafbfc;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.form__input:hover {
  border-color: var(--color-border-strong);
  background: #fff;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: -10px 0 14px;
}

.form--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.form--inline .form__label {
  margin-bottom: 0;
}

.form--inline .form__input {
  margin-bottom: 0;
  min-width: 180px;
}

/* Yeni talep: kompakt dosya alanı */
.form-file-zone {
  position: relative;
  margin-bottom: 16px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  min-height: 48px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.form-file-zone:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.form-file-zone.ticket-dropzone--drag {
  border-color: var(--color-primary);
  border-style: solid;
  background: #f0fdf4;
}

.form-file-zone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.form-file-zone__ui {
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 48px;
  box-sizing: border-box;
}

.form-file-zone__icon {
  display: flex;
  flex-shrink: 0;
  color: #94a3b8;
}

.form-file-zone__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.form-file-zone__line {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.25;
}

.form-file-zone__hint {
  font-size: 0.6875rem;
  color: var(--color-muted);
  line-height: 1.2;
}

.inline-form {
  display: inline;
}

/* ——— Ticket ——— */
.ticket-head__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.ticket-head__meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
}

.ticket-head__title {
  margin: 0 0 14px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-text);
}

.ticket-head__desc {
  margin: 0 0 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.ticket-head__foot {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 500;
}

.attachments {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-border);
}

.attachments__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 8px;
}

.attachments__list {
  margin: 0;
  padding-left: 20px;
}

.attachments__list a {
  font-weight: 600;
}

/* ——— Chat ——— */
.chat {
  margin: 24px 0;
}

.chat__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 16px;
}

.chat__msg {
  display: flex;
  margin-bottom: 14px;
}

.chat__msg--me {
  justify-content: flex-end;
}

.chat__bubble {
  max-width: min(92%, 520px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chat__msg--me .chat__bubble {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(24, 178, 75, 0.25);
}

.chat__bubble--staff {
  border-bottom-left-radius: 6px;
  border-left: 3px solid var(--color-primary);
}

.chat__bubble--supplier {
  border-bottom-left-radius: 6px;
  border-left: 3px solid #94a3b8;
}

.chat__who {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.chat__body {
  word-break: break-word;
  line-height: 1.55;
  color: var(--color-text);
}

.chat__files {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.875rem;
}

.reply-box {
  margin-bottom: 28px;
}

/* ——— Table ——— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.table thead th {
  background: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: #fafbfc;
}

.table__actions {
  white-space: nowrap;
  text-align: right;
}

.table__dept {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  max-width: 220px;
}

.form__fieldset {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}

.form__fieldset .form__label {
  margin-bottom: 4px;
}

.form__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
}

.form__check input {
  width: auto;
  margin: 0;
}

/* ——— Modal ——— */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 600px) {
  .modal {
    align-items: center;
    padding: 24px;
  }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90dvh;
  overflow-y: auto;
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .modal__panel {
    border-radius: var(--radius-lg);
  }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal__head h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition:
    background 0.15s,
    color 0.15s;
}

.modal__close:hover {
  background: #e2e8f0;
  color: var(--color-text);
}

/* ——— Toast ——— */
.toast {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-md);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.toast--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.toast--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ——— Empty ——— */
.empty-state {
  padding: 48px 28px;
  text-align: center;
  color: var(--color-muted);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.empty-state .btn {
  margin-top: 8px;
}

/* ——— Errors ——— */
.empty-state.card {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

/* ——— Admin Ayarlar ——— */
.settings-page__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.settings-page__lead {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.settings-page__preview {
  margin-bottom: 22px;
}

.settings-page__preview-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.settings-page__preview-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  background: #f8fafc;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.settings-page__preview-img {
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.settings-page__form {
  margin-bottom: 16px;
}

.settings-page__form .btn {
  margin-top: 4px;
}

.settings-page__remove {
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .list__row,
  .btn {
    animation: none;
    transition: none;
  }
}
