:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --line: #d9e2ec;
  --text: #10233f;
  --muted: #5a6b85;
  --primary: #0f4c81;
  --primary-soft: #e5f0f8;
  --success: #0f9d76;
  --danger: #cc3d4a;
  --shadow: 0 22px 60px rgba(16, 35, 63, 0.12);
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.18), transparent 30%),
    radial-gradient(circle at right, rgba(46, 164, 79, 0.14), transparent 25%),
    var(--bg);
  color: var(--text);
}
body.theme-dark {
  --bg: #08111f;
  --surface: rgba(12, 23, 39, 0.88);
  --surface-strong: #0f1b2d;
  --line: rgba(148, 163, 184, 0.14);
  --text: #edf3ff;
  --muted: #93a4bd;
  --primary: #79a8ff;
  --primary-soft: rgba(121, 168, 255, 0.14);
  --success: #45d4a5;
  --danger: #ff7b8d;
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.42);
  background:
    radial-gradient(circle at top left, rgba(121, 168, 255, 0.14), transparent 30%),
    radial-gradient(circle at right, rgba(69, 212, 165, 0.1), transparent 25%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88rem; }

.guest-shell { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.auth-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 32px; align-items: center; min-height: calc(100vh - 96px); }
.auth-brand h1, .page-header h1 { margin: 8px 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; }
.auth-brand p, .page-header p, .auth-panel__header p { color: var(--muted); max-width: 56ch; }
.eyebrow, .badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-cards, .stats-grid { display: grid; gap: 16px; }
.auth-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.mini-card, .stat-card, .table-card, .detail-card, .form-card, .auth-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.mini-card { padding: 18px; }
.mini-card strong, .stat-card strong { display: block; margin-bottom: 6px; }
.mini-card span, .stat-card span { color: var(--muted); }
.stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-panel { padding: 28px; }
.auth-form, .stack-form { display: grid; gap: 16px; margin-top: 24px; }
label span { display: block; margin-bottom: 8px; font-weight: 600; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.86);
}
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.86);
  resize: vertical;
  min-height: 120px;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: rgba(15, 27, 45, 0.92);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.16);
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #7f91ab;
}
.kod-alani,
.json-kodu {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.btn, .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--primary-soft); color: var(--primary); }
.btn-block { width: 100%; }
.btn-link { padding: 0; background: transparent; }
.danger { color: var(--danger); }
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-divider span {
  position: relative;
  padding: 0 14px;
  background: transparent;
}

.app-shell { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; transition: grid-template-columns 0.22s ease; }
.sidebar {
  padding: 28px 24px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,247,251,0.96));
  border-right: 1px solid rgba(16, 35, 63, 0.08);
  color: var(--text);
  transition: padding 0.22s ease;
}
body.theme-dark .sidebar {
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.98), rgba(9, 19, 33, 0.98));
  border-right-color: rgba(148, 163, 184, 0.1);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 24px;
  margin-bottom: 12px;
}
.sidebar-brand__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6cf7, #3a57f4);
  color: #fff;
  box-shadow: 0 18px 35px rgba(79, 108, 247, 0.22);
}
.sidebar-brand__icon svg {
  width: 28px;
  height: 28px;
}
.sidebar-brand__icon-module {
  background: linear-gradient(135deg, #45d4e6, #67d09a);
  color: #0b1f36;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(69, 212, 230, 0.18);
}
.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}
.sidebar-brand strong {
  font-size: 1.2rem;
  color: #22324d;
  letter-spacing: -0.02em;
}
body.theme-dark .sidebar-brand strong {
  color: #f3f7ff;
}
.sidebar-brand span {
  color: #8190a8;
  margin-top: 5px;
  font-size: 0.92rem;
}
body.theme-dark .sidebar-brand span,
body.theme-dark .sidebar-section-title {
  color: #7e91ad;
}
.sidebar-section-title {
  padding: 8px 12px 14px;
  color: #9aa7bc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar-menu {
  display: grid;
  gap: 8px;
}
.sidebar-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #44526b;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
body.theme-dark .sidebar-menu__item {
  color: #b8c6da;
}
.sidebar-menu__item:hover {
  background: rgba(79, 108, 247, 0.08);
  color: #3150e2;
  transform: translateX(2px);
}
body.theme-dark .sidebar-menu__item:hover {
  background: rgba(121, 168, 255, 0.14);
  color: #90b7ff;
}
.sidebar-menu__item-active {
  background: #eaf0ff;
  color: #4263eb;
  box-shadow: inset 0 0 0 1px rgba(66, 99, 235, 0.08);
}
body.theme-dark .sidebar-menu__item-active {
  background: rgba(121, 168, 255, 0.14);
  color: #9bbcff;
  box-shadow: inset 0 0 0 1px rgba(121, 168, 255, 0.16);
}
.sidebar-menu__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}
.sidebar-menu__icon svg {
  width: 22px;
  height: 22px;
}
.sidebar-menu__label {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sidebar-divider {
  height: 1px;
  background: rgba(16, 35, 63, 0.08);
  margin: 18px 10px;
}
.sidebar-menu-secondary .sidebar-menu__item {
  color: #5e6d86;
}
.content-shell { padding: 0 24px 24px; }
.topbar, .page-header, .card-head, .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar {
  min-height: 92px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
  margin-bottom: 24px;
}
body.theme-dark .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}
.topbar-search-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.topbar-icon-btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #75839a;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.06);
}
body.theme-dark .topbar-icon-btn,
body.theme-dark .topbar-search {
  background: rgba(12, 23, 39, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
  color: #9cb0cb;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}
.topbar-icon-btn svg {
  width: 22px;
  height: 22px;
}
.topbar-search {
  max-width: 520px;
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.06);
}
.topbar-search__icon {
  color: #8a97ad;
  display: inline-flex;
  align-items: center;
}
.topbar-search__icon svg {
  width: 20px;
  height: 20px;
}
.topbar-search input {
  border: 0;
  padding: 0;
  background: transparent;
  min-width: 0;
  color: #516077;
  font-weight: 600;
}
body.theme-dark .topbar-search input {
  color: #dbe7ff;
}
.topbar-search input::placeholder {
  color: #94a1b7;
}
body.theme-dark .topbar-search input::placeholder,
body.theme-dark .topbar-search__shortcut,
body.theme-dark .topbar-user__meta span,
body.theme-dark .topbar-user__chevron {
  color: #88a0bf;
}
body.theme-dark .topbar-search__shortcut {
  border-color: rgba(148, 163, 184, 0.14);
}
.topbar-search__shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  color: #7e8ca4;
  font-size: 0.82rem;
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-icon-btn-notify {
  position: relative;
}
.topbar-icon-btn-notify::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff8b38;
  box-shadow: 0 0 0 2px #fff;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
}
.topbar-user__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6cf7, #8ba2ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(79, 108, 247, 0.18);
}
.topbar-user__meta strong,
.topbar-user__meta span {
  display: block;
}
.topbar-user__meta strong {
  font-size: 0.98rem;
}
body.theme-dark .topbar-user__meta strong {
  color: #eef4ff;
}
.topbar-user__meta span {
  color: #8c99ae;
  font-size: 0.82rem;
  margin-top: 2px;
}
.topbar-user__chevron {
  display: inline-flex;
  color: #8c99ae;
}
.topbar-user__chevron svg {
  width: 18px;
  height: 18px;
}
.topbar-logout .btn {
  min-height: 48px;
}
.page-header {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 2px 0 0;
}
.page-header > :first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}
.page-header > :first-child p {
  flex: 1 0 100%;
  margin: 0;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.45;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.page-header .eyebrow {
  align-self: center;
  flex-shrink: 0;
}
.page-header .header-actions {
  padding-top: 4px;
}
.page-header-compact {
  gap: 18px;
}
.page-header-compact__content {
  max-width: 760px;
}
.page-header-compact h1 {
  font-size: clamp(2.05rem, 3vw, 2.95rem);
}
.page-header-compact p {
  max-width: 78ch;
  font-size: 1rem;
}
.page-header-compact .header-actions {
  padding-top: 4px;
}
.page-content { display: grid; gap: 24px; }
.stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats-grid-kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}
.stat-card, .table-card, .detail-card, .form-card { padding: 22px; }
.stat-card-kpi {
  padding: 24px;
  min-height: 156px;
}
.stat-card-kpi strong {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-card-kpi-danger {
  border-color: rgba(204, 61, 74, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255, 240, 242, 0.92));
}
body.theme-dark .stat-card-kpi-danger {
  background: linear-gradient(180deg, rgba(12, 23, 39, 0.92), rgba(49, 18, 28, 0.88));
  border-color: rgba(255, 123, 141, 0.18);
}
.dashboard-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.report-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.report-metric-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
body.theme-dark .report-metric-item {
  background: rgba(15, 27, 45, 0.5);
}
.report-metric-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.report-metric-item strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}
body.theme-dark th,
body.theme-dark td {
  border-bottom-color: rgba(148, 163, 184, 0.08);
}
body.theme-dark .json-kodu {
  background: #07111f;
  color: #d9e8ff;
}
body.theme-dark .flash-error {
  background: rgba(138, 29, 42, 0.22);
  color: #ffb2bd;
}
body.theme-dark .flash-success {
  background: rgba(16, 104, 79, 0.22);
  color: #9ff0d2;
}

.data-table-toolbar,
.data-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.data-table-toolbar {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}
.data-table-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.toolbar-group,
.toolbar-group-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-group-end { justify-content: flex-end; }
.toolbar-select,
.toolbar-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.toolbar-select select,
.toolbar-search input {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 0;
}
.toolbar-search input { min-width: 220px; }
.form-section {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
}
body.theme-dark .form-section {
  background: rgba(10, 20, 34, 0.76);
  border-color: rgba(148, 163, 184, 0.12);
}
.section-heading h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.selection-panel {
  display: grid;
  gap: 12px;
}
.selection-panel__title {
  font-weight: 700;
}
.image-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}
body.theme-dark .image-preview-card {
  background: rgba(10, 20, 34, 0.76);
  border-color: rgba(148, 163, 184, 0.12);
}
.image-preview-card__image {
  width: 100%;
  max-width: 280px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
body.theme-dark .image-preview-card__image {
  background: #091220;
  border-color: rgba(148, 163, 184, 0.12);
}
.image-preview-card__path {
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-all;
}
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab-strip__button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.18s ease;
}
.tab-strip__button-active {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
}
body.theme-dark .tab-strip__button {
  border-color: rgba(148, 163, 184, 0.16);
}
.tab-panel {
  display: none;
}
.tab-panel-active {
  display: grid;
  gap: 16px;
}
.form-note-box {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  align-content: start;
}
body.theme-dark .form-note-box {
  background: rgba(121, 168, 255, 0.12);
  color: #b8d2ff;
}
.etiket-kapsul-soft {
  background: rgba(15, 76, 129, 0.08);
  color: var(--muted);
}
body.theme-dark .etiket-kapsul-soft {
  background: rgba(148, 163, 184, 0.12);
  color: #bfd0e8;
}
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 14px; border-bottom: 1px solid #edf2f7; text-align: left; vertical-align: middle; }
thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
tbody tr:hover { background: rgba(15, 76, 129, 0.035); }
.actions { justify-content: flex-start; }
.actions form { margin: 0; }
.uuid-cell { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.82rem; }
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.user-cell strong {
  display: block;
  font-size: 0.95rem;
}
.user-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
}
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dcecff, #eef5ff);
  color: var(--primary);
  font-weight: 800;
}
.durum-etiketi {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.durum-aktif {
  background: #ebfbf5;
  color: #10684f;
}
.durum-pasif {
  background: #fff0f1;
  color: #8d1d2a;
}
.durum-beklemede {
  background: #fff6e6;
  color: #9a6700;
}
.satir-aciklamasi {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 6px;
  max-width: 58ch;
}
.satir-eylemleri {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.satir-eylemleri form { margin: 0; }
.satir-baglantisi {
  color: var(--primary);
  font-weight: 700;
}
.sayfalama {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sayfa-dugmesi {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}
.sayfa-dugmesi:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sayfa-dugmesi-aktif {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.split-panel {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
}
.stacked-management-layout {
  display: grid;
  gap: 24px;
}
.form-card-full {
  width: 100%;
}
.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid-span-two {
  grid-column: 1 / -1;
}
.form-toggle-grid,
.checkbox-grid {
  display: grid;
  gap: 14px;
}
.form-toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 76, 129, 0.04);
  border: 1px solid rgba(15, 76, 129, 0.08);
}
.toggle-card input {
  width: auto;
  margin-top: 2px;
}
.toggle-card strong,
.toggle-card span {
  display: block;
}
.toggle-card span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
}
.field-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}
.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.inline-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.qr-generator-panel .split-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
}
.qr-preview-card {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}
.qr-preview-box {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(255, 255, 255, 0.82));
  border: 1px solid var(--line);
}
body.theme-dark .qr-preview-box {
  background: linear-gradient(180deg, rgba(121, 168, 255, 0.08), rgba(15, 27, 45, 0.92));
}
.qr-preview-box canvas {
  width: min(100%, 320px);
  height: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 35, 63, 0.12);
}
.qr-bulk-box {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 76, 129, 0.04);
}
.qr-bulk-box summary {
  cursor: pointer;
  font-weight: 700;
}
.form-section {
  display: grid;
  gap: 16px;
}
.section-heading h3 {
  margin: 0;
  font-size: 1rem;
}
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.dil-ozet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 76, 129, 0.05);
  border: 1px solid rgba(15, 76, 129, 0.08);
}
.dil-ozet span {
  color: var(--muted);
  font-size: 0.9rem;
}
.dil-ozet b {
  color: var(--primary);
}
.dil-kart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dil-karti {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 76, 129, 0.1);
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.06), rgba(15, 76, 129, 0.02));
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dil-karti-secili {
  border-color: rgba(15, 76, 129, 0.32);
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.1), rgba(15, 76, 129, 0.04));
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
}
.dil-karti__ust {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dil-karti__ust input {
  width: auto;
}
.dil-karti__ust strong,
.dil-karti__ust span,
.dil-karti__varsayilan span {
  display: block;
}
.dil-karti__ust span:last-child,
.dil-karti__varsayilan span {
  color: var(--muted);
  font-size: 0.84rem;
}
.dil-karti__bayrak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.dil-karti__varsayilan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 76, 129, 0.12);
}
.dil-karti__varsayilan input {
  width: auto;
}
.dil-karti__varsayilan input:disabled + span {
  opacity: 0.45;
}
.toggle-card-compact {
  padding: 14px;
}
.form-actions-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-select strong {
  font-size: 1rem;
  color: var(--text);
}
.toolbar-result-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.stats-grid-firma {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.uygulama-kart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.katalog-grid,
.paket-karti-grid {
  display: grid;
  gap: 24px;
}
.katalog-karti {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}
.pricing-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #eef4fb;
  margin: 22px 0 8px;
}
.pricing-switcher--standalone {
  margin: 0 0 18px;
}
.pricing-switcher__item {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}
.pricing-switcher__item-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.08);
}
.paket-karti-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}
.paket-karti-grid-fiyat {
  align-items: stretch;
}
.paket-karti {
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,254,0.96));
  position: relative;
}
.paket-karti-onerilen {
  border-color: rgba(15, 76, 129, 0.35);
  box-shadow: 0 18px 40px rgba(15, 76, 129, 0.12);
}
.onerilen-rozet {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.paket-karti__ust {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.plan-kategori {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fiyat-vitrini {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b1f36, #14365a);
  color: #fff;
  margin-bottom: 18px;
}
.fiyat-vitrini__ana {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.fiyat-vitrini__ana strong {
  font-size: 2rem;
  line-height: 1;
}
.fiyat-vitrini__ana span {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
}
.fiyat-vitrini__alt {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}
.detay-bolumu {
  margin-bottom: 18px;
}
.detay-bolumu h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.etiket-listesi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.etiket-kapsul {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}
.minimal-liste {
  display: grid;
  gap: 8px;
}
.minimal-liste__satir {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}
.minimal-detay-listesi {
  display: grid;
  gap: 10px;
}
.minimal-detay-listesi__satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 76, 129, 0.04);
  border: 1px solid rgba(15, 76, 129, 0.08);
}
.minimal-detay-listesi__satir strong {
  font-size: 0.92rem;
}
.trial-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 76, 129, 0.1);
}
.uygulama-secim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.uygulama-secim-karti {
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(242,247,252,0.92));
  box-shadow: 0 20px 48px rgba(16, 35, 63, 0.08);
  display: grid;
  gap: 18px;
}
.uygulama-secim-karti h2,
.satin-alma-hero h2 {
  margin: 10px 0 0;
}
.uygulama-secim-karti p,
.satin-alma-hero p {
  margin: 0;
  color: var(--muted);
}
.uygulama-secim-karti__ust {
  display: flex;
  align-items: center;
  gap: 16px;
}
.uygulama-secim-ikon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f4c81, #14365a);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}
.uygulama-secim-ozetleri {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.uygulama-secim-ozeti {
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 76, 129, 0.05);
  border: 1px solid rgba(15, 76, 129, 0.08);
}
.uygulama-secim-ozeti strong,
.satin-alma-hero__meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}
.uygulama-secim-ozeti span,
.satin-alma-hero__meta span {
  color: var(--muted);
  font-size: 0.88rem;
}
.satin-alma-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0b1f36, #173d64);
  color: #fff;
}
.satin-alma-hero .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.satin-alma-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 320px;
}
.satin-alma-hero__meta div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.uygulama-karti {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}
.uygulama-karti h3 {
  margin: 12px 0 8px;
}
.uygulama-karti p {
  color: var(--muted);
}
.uygulama-karti__ust,
.uygulama-karti__alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.uygulama-karti__icerik {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.ozellik-listesi-tek {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}
.metin-aktif {
  color: #10684f;
  font-weight: 700;
}
.metin-pasif {
  color: #8d1d2a;
  font-weight: 700;
}
.ozellik-listesi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ozellik-karti {
  background: rgba(15, 76, 129, 0.04);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 18px;
  padding: 18px;
}
.json-kodu {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0b1f36;
  color: #dcecff;
  border-radius: 20px;
  padding: 18px;
  overflow: auto;
}

dl { display: grid; gap: 18px; margin: 0; }
dt { color: var(--muted); font-size: 0.88rem; }
dd { margin: 4px 0 0; font-weight: 600; }

.flash {
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}
.flash-error { background: #fff0f1; color: #8d1d2a; }
.flash-success { background: #ebfbf5; color: #10684f; }
.bos-durum {
  display: grid;
  gap: 14px;
  justify-items: flex-start;
  padding: 24px 0 4px;
}
.bos-durum h3 {
  margin: 0;
  font-size: 1.1rem;
}
.bos-durum p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.sidebar-mini .app-shell {
  grid-template-columns: 104px 1fr;
}
.sidebar-mini.sidebar-hover .app-shell {
  grid-template-columns: 320px 1fr;
}
.sidebar-mini .sidebar {
  padding-left: 16px;
  padding-right: 16px;
}
.sidebar-mini.sidebar-hover .sidebar {
  padding-left: 24px;
  padding-right: 24px;
}
.sidebar-mini .sidebar-brand,
.sidebar-mini .sidebar-menu__item,
.sidebar-mini .sidebar-section-title {
  justify-content: center;
}
.sidebar-mini.sidebar-hover .sidebar-brand,
.sidebar-mini.sidebar-hover .sidebar-menu__item,
.sidebar-mini.sidebar-hover .sidebar-section-title {
  justify-content: flex-start;
}
.sidebar-mini .sidebar-brand > div:last-child,
.sidebar-mini .sidebar-menu__label,
.sidebar-mini .sidebar-section-title,
.sidebar-mini .topbar-user__meta,
.sidebar-mini .topbar-logout {
  display: none;
}
.sidebar-mini.sidebar-hover .sidebar-brand > div:last-child,
.sidebar-mini.sidebar-hover .sidebar-menu__label,
.sidebar-mini.sidebar-hover .sidebar-section-title,
.sidebar-mini.sidebar-hover .topbar-user__meta,
.sidebar-mini.sidebar-hover .topbar-logout {
  display: block;
}
.sidebar-mini .sidebar-brand {
  padding-left: 0;
  padding-right: 0;
}
.sidebar-mini.sidebar-hover .sidebar-brand {
  padding-left: 10px;
  padding-right: 10px;
}
.sidebar-mini .sidebar-menu__item {
  padding-left: 0;
  padding-right: 0;
}
.sidebar-mini.sidebar-hover .sidebar-menu__item {
  padding-left: 16px;
  padding-right: 16px;
}
.sidebar-mini .sidebar-menu__icon {
  width: 24px;
  height: 24px;
}
.sidebar-mini .sidebar-divider {
  margin-left: 0;
  margin-right: 0;
}
.sidebar-mini.sidebar-hover .sidebar-divider {
  margin-left: 10px;
  margin-right: 10px;
}

.analytics-kpi-grid,
.analytics-grid,
.analytics-list-grid {
  display: grid;
  gap: 18px;
}
.analytics-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}
.analytics-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  margin-bottom: 20px;
}
.analytics-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.analytics-kpi-card,
.analytics-card {
  padding: 22px 22px 20px;
}
.analytics-kpi-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.analytics-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.analytics-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.analytics-card-wide {
  min-height: 360px;
}
.analytics-card .card-head {
  margin-bottom: 18px;
}
.analytics-canvas {
  width: 100%;
  height: 280px;
  display: block;
}
.analytics-canvas-donut,
.analytics-canvas-bar {
  height: 250px;
}
.analytics-legend {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.analytics-legend-item,
.analytics-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}
body.theme-dark .analytics-legend-item,
body.theme-dark .analytics-list-item {
  background: rgba(15, 27, 45, 0.68);
}
.analytics-legend-item strong,
.analytics-list-item strong {
  display: block;
  font-size: 0.96rem;
}
.analytics-legend-item b,
.analytics-list-item b {
  font-size: 1rem;
}
.analytics-legend-item span,
.analytics-list-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}
.analytics-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.analytics-list {
  display: grid;
  gap: 12px;
}
.analytics-empty {
  padding: 24px 18px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .auth-grid, .app-shell, .stats-grid, .stats-grid-firma, .stats-grid-kpi, .ozellik-listesi, .uygulama-kart-grid, .paket-karti-grid, .katalog-grid, .uygulama-secim-grid, .uygulama-secim-ozetleri, .satin-alma-hero__meta, .split-panel, .form-grid-two, .form-toggle-grid, .dil-kart-grid, .dashboard-report-grid, .report-metric-list, .analytics-kpi-grid, .analytics-grid, .analytics-list-grid { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 0; }
  .content-shell { padding-top: 0; }
  .data-table-toolbar,
  .data-table-footer,
  .page-header,
  .topbar,
  .satin-alma-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-search-wrap,
  .topbar-actions {
    width: 100%;
  }
  .topbar-search {
    max-width: none;
  }
  .topbar-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .toolbar-search input { min-width: 100%; }
}
