@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;1,9..40,400&family=Poppins:wght@500;600;700&display=swap');

:root {
  --py-primary: #4F46E5;
  --py-primary-hover: #4338CA;
  --py-primary-soft: #EEF2FF;
  --py-surface: #F8FAFC;
  --py-sidebar-bg: #1E293B;
  --py-sidebar-border: #334155;
  --py-sidebar-active-bg: #334155;
  --py-sidebar-active-border: #4F46E5;
  --py-sidebar-text: #CBD5E1;
  --py-sidebar-heading: #64748B;
  --py-card-radius: 12px;
  --py-success: #059669;
  --py-success-soft: #ECFDF5;
  --py-warning: #D97706;
  --py-warning-soft: #FFFBEB;
  --py-danger: #E11D48;
  --py-danger-soft: #FFF1F2;
  --py-info: #0EA5E9;
  --py-info-soft: #F0F9FF;
  --py-text: #0F172A;
  --py-text-muted: #64748B;
  --py-border: #E2E8F0;
  --py-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --py-font-heading: 'Poppins', system-ui, sans-serif;
  --py-font-body: 'DM Sans', system-ui, sans-serif;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  margin: 0;
  font-family: var(--py-font-body);
  color: var(--py-text);
  background: var(--py-surface);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--py-font-heading);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--py-sidebar-bg);
  border-right: 1px solid var(--py-sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.app-sidebar-brand {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--py-sidebar-border);
}

.app-sidebar-brand .brand-title {
  font-family: var(--py-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #F8FAFC;
  margin: 0;
}

.app-sidebar-brand .brand-sub {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

.app-nav {
  padding: 0.85rem 0.5rem 1.1rem;
  flex: 1;
}

.app-nav-group-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--py-sidebar-heading);
  padding: 1rem 0.75rem 0.55rem;
  margin: 0;
  line-height: 1.35;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  margin: 0.14rem 0.35rem;
  border-radius: 8px;
  color: var(--py-sidebar-text);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.app-nav-link:hover {
  background: #334155;
  color: #F8FAFC;
}

.app-nav-link.active {
  background: var(--py-sidebar-active-bg);
  color: #F8FAFC;
  border-left-color: var(--py-sidebar-active-border);
  font-weight: 600;
}

.app-nav-link:focus-visible {
  outline: 2px solid var(--py-primary);
  outline-offset: 2px;
}

.app-nav-link .bi {
  font-size: 1.15rem;
  opacity: 0.85;
}

.app-sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--py-sidebar-border);
  font-size: 0.75rem;
  color: #94A3B8;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--py-border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-topbar-title {
  font-family: var(--py-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.app-breadcrumb {
  font-size: 0.9rem;
  color: var(--py-text-muted, #6c757d);
}

.app-breadcrumb strong {
  color: var(--py-text, #212529);
  font-weight: 600;
}

.role-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem;
}

.role-badge-superadmin {
  background: rgba(79, 70, 229, 0.12);
  color: var(--py-primary);
}

.role-badge-admin {
  background: #FEF3C7;
  color: #92400E;
}

.table-actions {
  white-space: nowrap;
}

.btn-icon-only {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-dev-accounts {
  border-top: 1px solid var(--py-border);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--py-text-muted);
}

.auth-dev-accounts-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--py-text-muted);
}

.auth-dev-accounts-list {
  padding-left: 1.1rem;
}

.auth-dev-accounts-hint {
  font-size: 0.78rem;
}

.page-head .page-title {
  font-family: var(--py-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.9rem;
}

/* --- Admin list UI (NebimV3 parity) --- */

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-page-header__main {
  flex: 1;
  min-width: 0;
}

.admin-page-header__actions {
  flex-shrink: 0;
}

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

.table-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
}

.btn-icon-only .bi {
  font-size: 0.95rem;
  line-height: 1;
}

.btn-primary .bi,
.btn-outline-primary .bi {
  margin-right: 0.35rem;
}

.btn-primary .bi:only-child,
.btn-outline-primary .bi:only-child {
  margin-right: 0;
}

.badge.rounded-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
}

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

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

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

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.file-upload {
  border: 2px dashed var(--py-border, #dee2e6);
  border-radius: var(--py-card-radius, 0.75rem);
  padding: 1.5rem;
  text-align: center;
  background: #f8f9fa;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-upload:hover,
.file-upload.is-dragover {
  border-color: var(--py-primary, #0d6efd);
  background: rgba(13, 110, 253, 0.06);
}

.file-upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  color: #6c757d;
}

.file-upload-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.15rem;
}

.file-upload-text strong {
  color: var(--py-primary, #0d6efd);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--py-border, #dee2e6);
  border-radius: var(--py-card-radius, 0.75rem);
  background: #fff;
}

.file-preview-thumb {
  border-radius: 8px;
  object-fit: contain;
}

.file-preview-meta {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-all;
}

.app-content {
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
}

.card-py {
  background: #fff;
  border: 1px solid var(--py-border);
  border-radius: var(--py-card-radius);
  box-shadow: var(--py-shadow);
}

.card-py .card-header {
  background: transparent;
  border-bottom: 1px solid var(--py-border);
  font-family: var(--py-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
}

.card-py .card-body {
  padding: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-grid .span-full {
  grid-column: 1 / -1;
}

.kpi-card {
  padding: 1rem 1.1rem;
  height: 100%;
}

.kpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--py-text-muted);
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-family: var(--py-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.kpi-meta {
  font-size: 0.75rem;
  color: var(--py-text-muted);
  margin-top: 0.35rem;
}

.kpi-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.kpi-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.kpi-card-danger .kpi-value {
  color: var(--py-danger);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-status-info { background: var(--py-info-soft); color: #0369A1; }
.badge-status-warning { background: var(--py-warning-soft); color: #B45309; }
.badge-status-success { background: var(--py-success-soft); color: #047857; }
.badge-status-danger { background: var(--py-danger-soft); color: #BE123C; }
.badge-status-muted { background: #F1F5F9; color: #475569; }

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

.health-dot-success { background: var(--py-success); }
.health-dot-warning { background: var(--py-warning); }
.health-dot-danger { background: var(--py-danger); }
.health-dot-muted { background: #CBD5E1; }

.table-py {
  font-size: 0.8125rem;
}

.product-thumb-col {
  width: 52px;
}

.product-thumb-btn {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: zoom-in;
}

.product-thumb-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.product-thumb-zoom {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.product-thumb-empty {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--py-border, #e5e7eb);
  border-radius: 4px;
}

.table-py thead th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--py-text-muted);
  background: #F8FAFC;
  border-bottom: 1px solid var(--py-border);
  white-space: nowrap;
}

.table-py tbody tr:hover {
  background: #F8FAFC;
}

.table-py .row-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.table-py .row-link:hover {
  color: var(--py-primary);
  text-decoration: underline;
}

.table-py .order-no {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

.claim-customer-note {
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: normal;
}

.filter-bar {
  background: #fff;
  border: 1px solid var(--py-border);
  border-radius: var(--py-card-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--py-primary);
  border-color: var(--py-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--py-primary-hover);
  border-color: var(--py-primary-hover);
}

.btn-outline-primary {
  color: var(--py-primary);
  border-color: var(--py-primary);
}

.btn-outline-primary:hover {
  background: var(--py-primary);
  border-color: var(--py-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--py-primary);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.timeline {
  position: relative;
  padding-left: 1.25rem;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--py-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--py-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--py-primary-soft);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-title {
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline-meta {
  font-size: 0.75rem;
  color: var(--py-text-muted);
}

.timeline-scroll {
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.timeline-scroll .timeline {
  padding-right: 0.35rem;
}

.trend-chart {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0.5rem 0;
}

.trend-bar {
  flex: 1;
  background: var(--py-primary-soft);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
}

.trend-bar-fill {
  background: var(--py-primary);
  border-radius: 4px 4px 0 0;
  width: 100%;
  position: absolute;
  bottom: 0;
}

.activity-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--py-border);
  font-size: 0.8125rem;
}

.activity-item:last-child {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--py-text-muted);
}

.error-state-card {
  max-width: 420px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
}

.error-state-card .error-icon {
  font-size: 2.5rem;
  color: var(--py-text-muted);
  opacity: 0.7;
}

.log-row-error {
  border-left: 3px solid var(--py-danger);
}

.log-endpoint-btn {
  max-width: 100%;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.log-json-view {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.45;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.settings-field .form-control[readonly] {
  background: #F8FAFC;
  cursor: not-allowed;
}

.settings-connection-card .card-header {
  padding-bottom: 0.75rem;
}

.settings-header-desc {
  font-size: 0.8125rem;
  color: var(--py-text-muted);
  margin-top: 0.25rem;
}

.settings-header-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--py-primary-soft);
  color: var(--py-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.settings-alert {
  padding: 0 1.25rem 0.75rem;
}

.settings-connection-form {
  max-width: none;
}

.settings-secret-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--py-text-muted);
}

@media (max-width: 991.98px) {
  .app-sidebar {
    width: 72px;
  }

  .app-sidebar-brand .brand-sub,
  .app-nav-group-title,
  .app-nav-link span,
  .app-sidebar-footer span.text {
    display: none;
  }

  .app-nav-link {
    justify-content: center;
    padding: 0.7rem;
  }

  .app-nav-link .bi {
    margin: 0;
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .app-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .app-nav-group-title {
    display: none;
  }

  .app-nav-link span {
    display: inline;
  }
}

/* --- Auth pages (login, forgot password, reset) --- */

.auth-skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: #fff;
  color: var(--py-primary);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.auth-skip-link:focus {
  left: 0.75rem;
}

.auth-page {
  min-height: 100vh;
  background: var(--py-surface);
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

.auth-brand-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(160deg, var(--py-sidebar-bg) 0%, #0F172A 48%, #1E3A5F 100%);
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  max-width: 520px;
  width: 100%;
  z-index: 1;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.auth-brand-favicon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
}

.auth-brand-title {
  font-family: var(--py-font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #F8FAFC;
}

.auth-brand-sub {
  font-size: 1.05rem;
  color: #B8C5D6;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* Ürün panosu — login sol panel */
.auth-product-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
}

.auth-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  color: #E2E8F0;
  min-height: 10rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-product-card:hover,
.auth-product-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.78);
  outline: none;
  transform: translateY(-1px);
}

.auth-product-card:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.auth-product-card.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background:
    linear-gradient(165deg, rgba(30, 58, 138, 0.42) 0%, rgba(15, 23, 42, 0.72) 65%),
    rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
}

.auth-product-card--mutabakat {
  border-color: rgba(148, 163, 184, 0.38);
  background:
    linear-gradient(165deg, rgba(14, 165, 233, 0.14) 0%, rgba(15, 23, 42, 0.62) 55%),
    rgba(15, 23, 42, 0.55);
}

.auth-product-card--mutabakat.is-active {
  border-color: rgba(56, 189, 248, 0.6);
  background:
    linear-gradient(165deg, rgba(14, 165, 233, 0.28) 0%, rgba(15, 23, 42, 0.72) 60%),
    rgba(15, 23, 42, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.22),
    0 8px 24px rgba(2, 6, 23, 0.28);
}

.auth-product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.auth-product-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93C5FD;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.auth-product-card--mutabakat .auth-product-card__icon {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7DD3FC;
}

.auth-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.auth-product-card__title {
  font-family: var(--py-font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: #F8FAFC;
}

.auth-product-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94A3B8;
}

.auth-product-card__points {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-product-card__points li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #A5B4C8;
}

.auth-product-card__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #38BDF8;
}

.auth-product-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.auth-product-card__badge--panel {
  background: rgba(148, 163, 184, 0.14);
  color: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.3);
}

.auth-product-note[hidden] {
  display: none !important;
}

.auth-card--mutabakat .auth-card-product-label {
  color: #0369A1;
}

.auth-brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-marketplace-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
}

.auth-marketplace-badge--trendyol {
  background: rgba(242, 122, 26, 0.18);
  color: #FDBA74;
  border-color: rgba(242, 122, 26, 0.35);
}

.auth-marketplace-badge--hepsiburada {
  background: rgba(255, 96, 0, 0.16);
  color: #FDBA74;
  border-color: rgba(255, 96, 0, 0.32);
}

.auth-marketplace-badge--n11 {
  background: rgba(123, 45, 142, 0.22);
  color: #E9D5FF;
  border-color: rgba(167, 85, 247, 0.35);
}

.auth-marketplace-badge--pttavm {
  background: rgba(255, 209, 0, 0.16);
  color: #FEF08A;
  border-color: rgba(255, 209, 0, 0.35);
}

.auth-marketplace-badge--idefix {
  background: rgba(227, 24, 55, 0.18);
  color: #FECACA;
  border-color: rgba(227, 24, 55, 0.35);
}

.auth-marketplace-badge--pazarama {
  background: rgba(21, 128, 61, 0.18);
  color: #BBF7D0;
  border-color: rgba(21, 128, 61, 0.35);
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
}

.marketplace-badge--trendyol {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.25);
}

.marketplace-badge--hepsiburada {
  background: #fff7ed;
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.22);
}

.marketplace-badge--n11 {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
}

.marketplace-badge--pttavm {
  background: #fefce8;
  color: #a16207;
  border-color: rgba(202, 138, 4, 0.25);
}

.marketplace-badge--idefix {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
}

.marketplace-badge--pazarama {
  background: #f0fdf4;
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.22);
}

.auth-main {
  flex: 0 0 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

.auth-card-header {
  margin-bottom: 1.5rem;
}

.auth-card-product-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--py-primary);
}

.auth-card-title {
  font-family: var(--py-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--py-text);
}

.auth-card-desc {
  font-size: 0.875rem;
  color: var(--py-text-muted);
  margin: 0;
  line-height: 1.5;
}

.auth-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--py-text);
}

.auth-form .form-control {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  border-color: var(--py-border);
}

.auth-form .input-group .input-group-text {
  border-color: var(--py-border);
  border-radius: 8px 0 0 8px;
  color: var(--py-text-muted);
}

.auth-form .input-group .form-control {
  border-radius: 0 8px 8px 0;
}

.auth-form .input-group:focus-within .input-group-text,
.auth-form .input-group:focus-within .form-control {
  border-color: var(--py-primary);
}

.auth-form .input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
  border-radius: 8px;
}

.auth-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.auth-form-footer a {
  font-size: 0.8125rem;
  color: var(--py-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-form-footer a:hover {
  color: var(--py-primary-hover);
  text-decoration: underline;
}

.auth-submit {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-family: var(--py-font-heading);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--py-text-muted);
  text-decoration: none;
  margin-top: 1rem;
}

.auth-back-link:hover {
  color: var(--py-primary);
}

.auth-alert {
  border-radius: 8px;
  font-size: 0.875rem;
}

.auth-alert-success {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--py-success-soft);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.auth-alert-success .bi {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-field-error,
.auth-form .field-validation-error {
  display: block;
  font-size: 0.75rem;
  color: var(--py-danger);
  margin-top: 0.35rem;
}

.auth-success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--py-success-soft);
  color: var(--py-success);
  font-size: 1.65rem;
}

.auth-card--centered .auth-card-header {
  margin-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-brand-panel {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .auth-brand {
    max-width: none;
    text-align: center;
  }

  .auth-brand-row {
    justify-content: center;
  }

  .auth-product-board {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-brand-badges {
    justify-content: center;
  }

  .auth-main {
    flex: 1;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-product-board {
    grid-template-columns: 1fr;
  }
}

/* --- Profile page --- */

.profile-page {
  max-width: 960px;
}

.profile-card .card-header {
  padding: 1.1rem 1.25rem;
}

.profile-header-desc {
  font-size: 0.8125rem;
  color: var(--py-text-muted);
  margin-top: 0.25rem;
  line-height: 1.45;
}

.profile-avatar {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--py-primary-soft);
  color: var(--py-primary);
  font-size: 1.65rem;
  flex-shrink: 0;
}

.profile-alert {
  padding: 0 1.25rem;
  margin-top: 1rem;
}

.profile-alert-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.profile-alert-box--success {
  background: var(--py-success-soft);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.profile-alert-box--success .bi {
  font-size: 1rem;
  flex-shrink: 0;
}

.py-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 0;
  border-bottom: 1px solid var(--py-border);
  background: #FAFBFC;
}

.py-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--py-text-muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.py-tabs .nav-link:hover {
  color: var(--py-text);
  background: rgba(79, 70, 229, 0.04);
}

.py-tabs .nav-link.active {
  color: var(--py-primary);
  background: #fff;
  border-bottom-color: var(--py-primary);
  font-weight: 600;
}

.py-tabs .nav-link .bi {
  font-size: 0.95rem;
}

.profile-tab-content {
  padding: 1.5rem 1.25rem 1.75rem;
}

.profile-info-card {
  background: var(--py-surface);
  border: 1px solid var(--py-border);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
}

.profile-page .profile-info-card {
  height: 100%;
}

.profile-info-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--py-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--py-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--py-border);
}

.profile-info-card-header .bi {
  color: var(--py-primary);
  font-size: 1rem;
}

.profile-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--py-text-muted);
  margin-bottom: 0.25rem;
}

.profile-info-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--py-text);
  word-break: break-word;
}

.profile-form-section {
  background: #fff;
  border: 1px solid var(--py-border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
}

.profile-form-section--narrow {
  max-width: 520px;
}

.profile-form-title {
  font-family: var(--py-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--py-text);
}

.profile-form-desc {
  font-size: 0.8125rem;
  color: var(--py-text-muted);
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.profile-form .form-label,
.py-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--py-text);
}

.profile-form .form-control,
.py-form .form-control {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  border-color: var(--py-border);
}

.profile-form .input-group .form-control,
.py-form .input-group .form-control {
  border-radius: 0 8px 8px 0;
}

.profile-form .input-group .input-group-text,
.py-form .input-group .input-group-text {
  border-color: var(--py-border);
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: var(--py-text-muted);
}

.profile-form .input-group:focus-within .input-group-text,
.profile-form .input-group:focus-within .form-control,
.py-form .input-group:focus-within .input-group-text,
.py-form .input-group:focus-within .form-control {
  border-color: var(--py-primary);
}

.profile-form .input-group:focus-within,
.py-form .input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
  border-radius: 8px;
}

.profile-form .form-control.profile-readonly,
.profile-form .form-control[readonly],
.py-form .form-control.profile-readonly,
.py-form .form-control[readonly] {
  background: #F8FAFC;
  cursor: not-allowed;
}

.profile-form .form-control.profile-readonly:focus,
.profile-form .form-control[readonly]:focus,
.py-form .form-control.profile-readonly:focus,
.py-form .form-control[readonly]:focus {
  box-shadow: none;
  border-color: var(--py-border);
}

.profile-field-error,
.profile-form .field-validation-error,
.py-form .field-validation-error {
  display: block;
  font-size: 0.75rem;
  color: var(--py-danger);
  margin-top: 0.35rem;
}

.profile-validation-summary,
.profile-form .validation-summary-errors,
.py-form .validation-summary-errors {
  background: var(--py-danger-soft);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: #BE123C;
  margin-bottom: 1rem;
}

.profile-validation-summary.validation-summary-valid,
.profile-form .validation-summary-valid,
.py-form .validation-summary-valid {
  display: none;
}

.profile-form-actions {
  padding-top: 0.75rem;
  border-top: 1px solid var(--py-border);
  margin-top: 0.75rem;
}

.account-profile-grid {
  align-items: start;
}

.account-profile-card .card-body {
  display: flex;
  flex-direction: column;
}

.account-profile-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-profile-form .profile-form-desc {
  margin-bottom: 1rem;
}

.account-profile-logout {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--py-border);
}

@media (max-width: 767.98px) {
  .account-profile-form-grid {
    grid-template-columns: 1fr;
  }
}

.profile-form .btn-primary,
.py-form .btn-primary {
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--py-font-heading);
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
}

.app-topbar .profile-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--py-text);
  text-decoration: none;
  border: 1px solid var(--py-border);
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.app-topbar .profile-topbar-link:hover {
  border-color: var(--py-primary);
  color: var(--py-primary);
  background: var(--py-primary-soft);
}

.app-topbar .profile-topbar-link .bi {
  font-size: 1rem;
  color: var(--py-primary);
}

.app-topbar .profile-topbar-link--active {
  border-color: var(--py-primary);
  color: var(--py-primary);
  background: var(--py-primary-soft);
  font-weight: 600;
}

.app-topbar .profile-topbar-link--active .bi {
  color: var(--py-primary);
}

@media (max-width: 575.98px) {
  .profile-page {
    max-width: none;
  }

  .profile-card .card-header {
    padding: 1rem;
  }

  .py-tabs {
    padding: 0.5rem 0.75rem 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .py-tabs::-webkit-scrollbar {
    display: none;
  }

  .py-tabs .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .py-tabs .nav-link span {
    display: none;
  }

  .py-tabs .nav-link .bi {
    font-size: 1.05rem;
  }

  .profile-tab-content {
    padding: 1.15rem 1rem 1.35rem;
  }

  .profile-form-section {
    padding: 1rem;
  }

  .profile-form-actions .btn-primary {
    width: 100%;
  }
}

/* --- Erişim süresi kartı --- */

.access-card {
  border: 1px solid var(--py-border, #e2e8f0);
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.access-card--unlimited {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.access-card--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.access-card--critical {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.access-card-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.access-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--py-primary, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.access-card--unlimited .access-card-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.access-card--warning .access-card-icon {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.access-card--critical .access-card-icon {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.access-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.access-card-sub {
  font-size: 0.85rem;
  color: #64748b;
}

.access-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-left: auto;
}

.access-badge--unlimited {
  background: #dcfce7;
  color: #166534;
}

.access-countdown {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.access-countdown-unit {
  min-width: 4.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
}

.access-countdown-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.access-countdown-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 0.15rem;
}

.access-progress {
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.access-progress-bar {
  height: 100%;
  background: var(--py-primary, #2563eb);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.access-card--warning .access-progress-bar {
  background: #d97706;
}

.access-card--critical .access-progress-bar {
  background: #dc2626;
}

/* Eski banner sınıfları (geriye dönük) */
.access-banner {
  border: 1px solid var(--py-border, #e2e8f0);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 1.25rem;
}

.access-banner--unlimited {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.access-banner--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.access-banner--critical {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.access-banner-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.access-banner-text {
  font-size: 0.95rem;
}

.access-banner-progress {
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.access-banner-progress-bar {
  height: 100%;
  background: var(--py-primary, #2563eb);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.access-banner--warning .access-banner-progress-bar {
  background: #d97706;
}

.access-banner--critical .access-banner-progress-bar {
  background: #dc2626;
}

.support-attachment-preview img {
  max-height: 220px;
  object-fit: contain;
  width: 100%;
}

@media (max-width: 575.98px) {
  .access-countdown-unit {
    min-width: calc(33.333% - 0.5rem);
    flex: 1 1 calc(33.333% - 0.5rem);
  }

  .access-card-inner {
    flex-direction: column;
  }

  .access-badge {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .access-banner-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .access-banner-progress {
    flex: 0 0 40%;
    max-width: 280px;
  }
}

/* --- Manuel operasyon UI --- */

.operasyon-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  counter-reset: operasyon-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.operasyon-stepper-item {
  position: relative;
  padding: 0.55rem 0.45rem 0.55rem 2.15rem;
  border-radius: 10px;
  border: 1px solid var(--py-border);
  background: #fff;
  min-height: 2.85rem;
  min-width: 0;
}

.operasyon-stepper-marker {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid var(--py-border);
  background: #fff;
  flex-shrink: 0;
}

.operasyon-stepper-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 1199.98px) {
  .operasyon-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .operasyon-stepper-item {
    padding-left: 2rem;
  }
}

.stepper-step--done {
  border-color: rgba(5, 150, 105, 0.35);
  background: var(--py-success-soft);
}

.stepper-step--done .operasyon-stepper-marker {
  border-color: var(--py-success);
  background: var(--py-success);
  box-shadow: inset 0 0 0 3px #fff;
}

.stepper-step--active {
  border-color: rgba(79, 70, 229, 0.45);
  background: var(--py-primary-soft);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.stepper-step--active .operasyon-stepper-marker {
  border-color: var(--py-primary);
  background: var(--py-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.stepper-step--pending {
  opacity: 0.85;
}

.stepper-step--disabled {
  opacity: 0.55;
}

.stepper-step--error {
  border-color: rgba(225, 29, 72, 0.35);
  background: var(--py-danger-soft);
}

.stepper-step--error .operasyon-stepper-marker {
  border-color: var(--py-danger);
  background: var(--py-danger);
}

.operasyon-actions-panel {
  position: sticky;
  top: 1rem;
  z-index: 2;
}

.operasyon-actions .btn-outline {
  background: var(--surface, #fff);
  border-color: var(--border-strong, #cbd5e1);
  color: var(--text, #334155);
  font-weight: 600;
}

.operasyon-actions .btn-outline:hover:not(:disabled):not(.disabled) {
  border-color: var(--primary, var(--py-primary));
  color: var(--primary, var(--py-primary));
  background: var(--primary-soft, rgba(79, 70, 229, 0.08));
}

.operasyon-actions .btn-outline:disabled,
.operasyon-actions .btn-outline.disabled,
.operasyon-actions span.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

.operasyon-actions .btn-action-warn {
  border-color: #f59e0b;
  color: #b45309;
  background: #fffbeb;
}

.operasyon-actions .btn-action-warn:hover:not(:disabled):not(.disabled) {
  border-color: #d97706;
  color: #92400e;
  background: #fef3c7;
}

.operasyon-actions .btn-action-muted {
  border-color: var(--border-strong, #cbd5e1);
  color: var(--text-muted, #64748b);
  background: #f8fafc;
}

.operasyon-actions .btn-action-muted:hover:not(:disabled):not(.disabled) {
  border-color: #94a3b8;
  color: #475569;
  background: #f1f5f9;
}

.line-decision-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

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

.line-decision-label {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--py-border, #e2e8f0);
  background: #fff;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  user-select: none;
}

.line-decision-label:hover {
  border-color: var(--py-primary, #4f46e5);
  color: var(--py-primary, #4f46e5);
}

.line-decision-input:checked + .line-decision-label--approve {
  border-color: var(--py-primary, #4f46e5);
  background: rgba(79, 70, 229, 0.1);
  color: var(--py-primary, #4f46e5);
}

.line-decision-input:checked + .line-decision-label--dispute {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.line-decision-input:checked + .line-decision-label--reject {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #475569;
}

.line-decision-input:checked + .line-decision-label--reject-gp {
  border-color: #d97706;
  background: #fffbeb;
  color: #b45309;
}

.line-decision-input:checked + .line-decision-label--postpone {
  border-color: #0d9488;
  background: #f0fdfa;
  color: #0f766e;
}

.line-decision-cell .btn-group {
  flex-wrap: wrap;
}

.preview-html {
  max-height: 320px;
  overflow: auto;
}

/* İade detay — Bootstrap grid + mockup tema */
.return-detail-page .nav-tabs {
  border-bottom-color: var(--py-border, #e2e8f0);
}

.return-detail-page .nav-tabs .nav-link {
  color: var(--text-muted, #64748b);
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
}

.return-detail-page .nav-tabs .nav-link.active {
  color: var(--py-primary, #4f46e5);
  background: transparent;
  border-bottom-color: var(--py-primary, #4f46e5);
}

.return-detail-page .modal-content {
  border-radius: var(--radius, 12px);
  border-color: var(--py-border, #e2e8f0);
}

.return-detail-page .modal-header {
  border-bottom-color: var(--py-border, #e2e8f0);
}

.return-detail-page .modal-footer {
  border-top-color: var(--py-border, #e2e8f0);
}

.badge-manual-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--py-warning-soft);
  color: #B45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.table-py tbody tr.row-status-error {
  border-left: 3px solid var(--py-danger);
}

.table-py tbody tr.row-status-error > td:first-child {
  box-shadow: inset 3px 0 0 var(--py-danger);
}

/* --- Admin bildirim zili --- */

.admin-notification-bell {
  position: relative;
  flex-shrink: 0;
}

.topbar-left {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar .breadcrumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-right {
  flex: 0 0 auto;
  gap: 0.5rem;
}

@media (max-width: 1100px) {
  .topbar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .topbar-right > .user-menu > .user-chip > span {
    display: none;
  }

  .topbar-right > .user-menu > .user-chip {
    padding-right: 0.35rem;
  }
}

@media (max-width: 768px) {
  .admin-notification-bell__menu {
    position: fixed;
    top: calc(var(--header-h, 4rem) + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    min-width: 0;
    max-height: min(24rem, calc(100vh - var(--header-h, 4rem) - 1.5rem));
  }
}

.admin-notification-bell__menu {
  width: min(22rem, 92vw);
  max-height: 24rem;
  overflow: hidden;
  min-width: 280px;
}

.admin-notification-bell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border, var(--py-border));
  font-size: 0.85rem;
}

.admin-notification-bell__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
}

.admin-notification-bell__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--danger, #dc2626);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.admin-notification-bell__empty {
  padding: 1rem 0.85rem;
  font-size: 0.85rem;
}

.admin-notification-bell__list {
  max-height: 16rem;
  overflow-y: auto;
}

.admin-notification-bell__item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--py-border);
  text-decoration: none;
  color: inherit;
}

.admin-notification-bell__item:hover {
  background: var(--py-primary-soft, #eef2ff);
}

.admin-notification-bell__item.is-read {
  opacity: 0.7;
}

.admin-notification-bell__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-notification-bell__message {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.admin-notification-bell__time {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.admin-notification-bell__footer {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--py-border);
  font-size: 0.8rem;
  text-align: center;
}

.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--py-border);
  padding-bottom: 0.75rem;
}

.settings-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--py-border);
}

.settings-subnav-link:hover {
  color: var(--py-primary, #4f46e5);
  border-color: #c7d2fe;
}

.settings-subnav-link.active {
  color: #fff;
  background: var(--py-primary, #4f46e5);
  border-color: var(--py-primary, #4f46e5);
}

/* --- Destek dosya yükleme --- */

.py-upload-zone {
  position: relative;
}

.py-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.py-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  border: 2px dashed var(--py-border);
  border-radius: 10px;
  background: #FAFBFC;
  color: var(--py-text-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.py-upload-label .bi {
  font-size: 1.65rem;
  color: var(--py-primary);
}

.py-upload-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--py-text);
}

.py-upload-hint {
  font-size: 0.75rem;
  color: var(--py-text-muted);
  max-width: 22rem;
  line-height: 1.45;
}

.py-upload-label:hover,
.py-upload-input:focus-visible + .py-upload-label {
  border-color: var(--py-primary);
  background: var(--py-primary-soft);
  color: var(--py-primary);
}

.py-upload-files {
  padding: 0.35rem 0.15rem 0;
  word-break: break-all;
}

.manual-gp-reason {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 22rem;
}

.manual-gp-reason .form-select,
.manual-gp-reason .form-input {
  flex: 1 1 10rem;
  min-width: 0;
}

.manual-gp-table.returns-list-table th,
.manual-gp-table.returns-list-table td {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.report-stat {
  background: #fff;
  border: 1px solid var(--py-border);
  border-radius: var(--py-card-radius);
  padding: 0.85rem 1rem;
}

.report-stat__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--py-text-muted);
  margin-bottom: 0.2rem;
}

.report-table--top.returns-list-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.report-table--top .report-product-cell {
  width: auto;
}

.report-stat strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.report-table.returns-list-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.report-table.returns-list-table th,
.report-table.returns-list-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table.returns-list-table .report-product-cell,
.report-table.returns-list-table .report-wrap {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-table.returns-list-table .report-product,
.report-table.returns-list-table .report-wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.report-table--top.returns-list-table .report-product-cell,
.report-table--top.returns-list-table .report-product {
  min-width: 0;
  max-width: none;
  width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.report-table--top.returns-list-table th,
.report-table--top.returns-list-table td {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.returns-list-wrap {
  overflow-x: auto;
}

.report-table th,
.report-table td {
  padding: 0.4rem 0.55rem;
  vertical-align: middle;
}

.report-table .report-fit {
  white-space: nowrap;
}

.report-table .report-rank,
.report-col-rank {
  color: var(--py-text-muted);
  font-variant-numeric: tabular-nums;
}

.report-product {
  font-weight: 600;
  line-height: 1.35;
}

.report-product-cell {
  white-space: normal;
}

.report-table tbody tr:nth-child(odd) {
  background: #f3f4f6;
}

.report-table tbody tr:nth-child(even) {
  background: #fff;
}

.report-table.table-py tbody tr:hover {
  background: #e8eef6;
}

.report-table .badge-status {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .report-stats {
    grid-template-columns: 1fr;
  }
}

.finance-sync-topnote {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.9rem 1.5rem;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 0.95rem;
}

.finance-sync-topnote.is-ok {
  background: #d1fae5;
  color: #065f46;
  border-bottom: 1px solid #6ee7b7;
}

.finance-sync-topnote.is-err {
  background: #fee2e2;
  color: #991b1b;
  border-bottom: 1px solid #fca5a5;
}

.finance-sync-toast {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  left: auto;
  z-index: 2000;
  width: min(22rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  margin: 0;
  padding: 0.85rem 1rem;
  white-space: normal;
  overflow: visible;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.finance-sync-toast strong {
  display: block;
  margin-bottom: 0.25rem;
}
