/**
 * JETRU — global tema (açık / koyu)
 * html.dark sınıfı ile aktif olur (theme.js)
 */

html {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --brand-color: #2563eb;
  --color-bg-page: #f9fafb;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-bg-muted: #f3f4f6;
  --color-bg-subtle: #f9fafb;
  --color-bg-hover: #f3f4f6;
  --color-bg-active: #f3f4f6;
  --color-border: #d1d5db;
  --color-border-light: #e5e7eb;
  --color-border-strong: #9ca3af;
  --color-text: #111827;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #ffffff;
  --color-accent: #2563eb;
  --color-accent-soft: #dbeafe;
  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-success-border: #bbf7d0;
  --color-danger: #991b1b;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;
  --color-warning-text: #b45309;
  --color-info-bg: #eff6ff;
  --color-info-border: #bfdbfe;
  --color-overlay: rgba(17, 24, 39, 0.55);
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-input-bg: #ffffff;
  --color-input-border: #b8c4d0;
  --color-input-focus: #3b82f6;
  --color-btn-primary-bg: #111827;
  --color-btn-primary-hover: #374151;
  --color-scrollbar: #d1d5db;
  --color-scrollbar-track: transparent;
}

html.dark {
  color-scheme: dark;
  --color-bg-page: #09090b;
  --color-surface: #18181b;
  --color-surface-raised: #1f1f23;
  --color-bg-muted: #27272a;
  --color-bg-subtle: #141416;
  --color-bg-hover: #27272a;
  --color-bg-active: #3f3f46;
  --color-border: #3f3f46;
  --color-border-light: #27272a;
  --color-border-strong: #52525b;
  --color-text: #fafafa;
  --color-text-secondary: #e4e4e7;
  --color-text-muted: #a1a1aa;
  --color-text-faint: #71717a;
  --color-text-inverse: #fafafa;
  --color-accent-soft: #1e3a8a;
  --color-success: #4ade80;
  --color-success-bg: #14532d;
  --color-success-border: #166534;
  --color-danger: #fca5a5;
  --color-danger-bg: #450a0a;
  --color-danger-border: #7f1d1d;
  --color-warning-bg: #422006;
  --color-warning-border: #78350f;
  --color-warning-text: #fdba74;
  --color-info-bg: #172554;
  --color-info-border: #1e3a8a;
  --color-overlay: rgba(0, 0, 0, 0.72);
  --color-shadow: rgba(0, 0, 0, 0.45);
  --color-input-bg: #27272a;
  --color-input-border: #52525b;
  --color-input-focus: #60a5fa;
  --color-btn-primary-bg: #fafafa;
  --color-btn-primary-hover: #e4e4e7;
  --color-scrollbar: #52525b;
  --color-scrollbar-track: #18181b;
}

html.dark ::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar);
}
html.dark ::-webkit-scrollbar-track {
  background: var(--color-scrollbar-track);
}

/* Header chip */
.header-user-chip {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.25rem 0.375rem 0.25rem 0;
  min-width: 0;
}
.header-user-chip__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}
.header-user-chip__sep { color: var(--color-border-strong); font-weight: 300; }
.header-user-chip__balance {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-success);
  font-variant-numeric: tabular-nums;
}
.landing-user-chip__name { color: var(--color-text); }
.landing-user-chip__sep { color: var(--color-border-strong); }
.landing-balance { color: var(--color-success); }
.landing-user-chip__usable { color: var(--color-text-muted); }

/* Genel onay modali */
.confirm-action-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.confirm-action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.confirm-action-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, calc(100vw - 2rem));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px var(--color-shadow);
}
body.confirm-modal-open {
  overflow: hidden;
}

/* Sipariş sonuç modalı */
.order-result-modal__backdrop { background: var(--color-overlay); }
.order-result-modal__panel {
  width: min(26rem, calc(100vw - 2rem));
  max-height: min(28rem, calc(100vh - 4rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.625rem;
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface);
  box-shadow:
    0 0 0 1px var(--color-border),
    0 10px 25px -5px var(--color-shadow),
    0 20px 40px -10px var(--color-shadow);
}
.order-result-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.order-result-modal__header-text {
  min-width: 0;
  padding-right: 0.25rem;
}
.order-result-modal__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
}
.order-result-modal__subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.35rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-result-modal__panel--wide {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 3rem));
}
.order-result-modal__body {
  flex: 1;
  min-height: 0;
  max-height: 15rem;
  overflow-y: auto;
  padding: 1.125rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}
.order-result-modal__panel--wide .order-result-modal__body {
  max-height: 22rem;
}
.order-result-modal__body--html {
  white-space: normal;
  word-break: normal;
  font-size: 0.875rem;
  line-height: 1.55;
}
.order-result-modal__body--html img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}
.order-result-modal__body--html br + br {
  display: block;
  content: '';
  margin-top: 0.25rem;
}
.order-result-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
}
.order-result-modal__close:hover {
  color: var(--color-text-muted);
  background: var(--color-bg-muted);
}
.order-result-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.125rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.order-result-modal__btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 0.375rem;
  cursor: pointer;
}
.order-result-modal__btn-copy:hover {
  background: var(--color-bg-muted);
}
.order-result-modal__btn-close {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-inverse);
  background: var(--color-btn-primary-bg);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}
.order-result-modal__btn-close:hover {
  background: var(--color-btn-primary-hover);
}
html.dark .order-result-modal__btn-close {
  color: #09090b;
}

/* Katalog — sipariş modalı */
.order-modal-panel {
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  width: calc(100vw - 2rem);
  max-width: 40rem;
}
.order-modal-panel--has-desc {
  width: auto;
  max-width: min(64rem, calc(100vw - 2rem));
}
.order-modal-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.625rem 0.75rem;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border-light);
}
.order-modal-panel__title {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-right: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.order-modal-panel__service-name {
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-modal-panel__title-sep {
  flex-shrink: 0;
  font-weight: 400;
  color: var(--color-text-faint);
}
.order-modal-panel__action-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--color-text-muted);
}
.order-modal-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.order-modal-panel__close:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.order-modal-split {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.order-modal-split__main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.125rem 1.25rem 1.25rem;
}
.order-modal-body {
  width: 100%;
  max-width: none;
  margin: 0;
}
.order-modal-panel:has(.order-modal-success.is-visible) {
  max-width: min(64rem, calc(100vw - 2rem));
}
.order-modal-panel--has-desc:has(.order-modal-success.is-visible) {
  max-width: min(64rem, calc(100vw - 2rem));
}
.order-modal-panel:has(.order-modal-success.is-visible) .order-modal-split__aside {
  display: none !important;
}
.order-modal-split__main:has(.order-modal-success.is-visible) {
  padding: 1.125rem 1.25rem 1.375rem;
}
.order-modal-split__main:has(.order-modal-success.is-visible) .order-modal-body,
.order-modal-split__main:has(.order-modal-success.is-visible) .order-modal-success {
  max-width: none;
  width: 100%;
  margin: 0;
}
.order-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
}
.order-modal-meta__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.order-modal-meta__label {
  flex-shrink: 0;
  color: var(--color-text-muted, #6b7280);
  font-weight: 500;
}
.order-modal-meta__value {
  min-width: 0;
  text-align: right;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}
.order-modal-meta__value--price {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.order-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.order-modal-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.order-modal-form__fields > .order-modal-form__field:first-child {
  padding-top: 0.125rem;
}
.order-modal-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.order-modal-form__field.hidden,
#quantity-group.hidden {
  display: none !important;
}
.order-modal-form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary, #374151);
  line-height: 1.35;
  margin: 0;
}
.order-modal-form__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.order-modal-form__input:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-text-faint) 35%, transparent);
}
.order-modal-form__imei-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.375rem;
}
.order-modal-form__imei-row .order-modal-form__imei-base.order-modal-form__input {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.order-modal-form__imei-sep {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary, #9ca3af);
  line-height: 1;
  user-select: none;
}
.order-modal-form__imei-row .order-modal-form__imei-check.order-modal-form__input {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--color-border, #e5e7eb) 35%, var(--color-surface));
  cursor: default;
}
.order-modal-form__imei-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-secondary, #6b7280);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.order-modal-form__note {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-secondary, #4b5563);
  background: var(--color-bg-muted, #f3f4f6);
  border: 0.5px solid var(--color-border-light, #e5e7eb);
}
html.dark .order-modal-form__note {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.order-modal-form__error {
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.order-modal-form__deposit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--color-btn-primary-bg);
}
.order-modal-form__deposit:hover {
  background: var(--color-btn-primary-hover);
}
.order-modal-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}
.order-modal-form__total {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.order-modal-form__total-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.order-modal-form__total-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.order-modal-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 9.5rem;
  max-width: 11.5rem;
  padding: 0.6875rem 1.125rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: #09090b;
  cursor: pointer;
  transition: background 0.15s;
}
.order-modal-form__submit:hover {
  background: #27272a;
}
html.dark .order-modal-form__submit {
  color: #09090b;
  background: #f4f4f5;
}
html.dark .order-modal-form__submit:hover {
  background: #fff;
}
html.dark .order-modal-meta {
  background: var(--color-bg-muted);
  border-color: var(--color-border);
}
html.dark .order-modal-form__error {
  color: #fca5a5;
  background: #450a0a;
  border-color: #7f1d1d;
}
html.dark .order-modal-panel__header {
  background: var(--color-bg-muted);
  border-bottom-color: var(--color-border);
}
html.dark .order-modal-panel__close {
  border-color: var(--color-border);
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
}
html.dark .order-modal-panel__close:hover {
  background: var(--color-bg-active);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.order-modal-split__aside {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-bg-subtle);
}
.order-modal-split__aside.hidden {
  display: none !important;
}
.order-modal-split__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-modal-split__link {
  flex: 1 1 0;
  min-width: 4.5rem;
  max-width: 7rem;
  margin: 0;
}
.order-modal-split__link a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.5rem 0.375rem;
  border-radius: 0.5rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  word-break: break-word;
}
.order-modal-split__link a:hover {
  text-decoration: none;
  background: var(--color-bg-hover);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.order-modal-split__link-icon {
  flex-shrink: 0;
  width: auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1;
}
.order-modal-split__link-icon--web {
  color: #2563eb;
}
.order-modal-split__link-icon--telegram {
  color: #229ed9;
}
.order-modal-split__link-icon--video {
  color: #dc2626;
}
.order-modal-split__link-icon--download {
  color: #059669;
}
.order-modal-split__aside-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.order-modal-split__product-image {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-bg, #fff);
}
.order-modal-split__product-image.hidden {
  display: none !important;
}
.order-modal-split__product-image img {
  display: block;
  width: 100%;
  max-height: 8rem;
  object-fit: cover;
}
.order-panel-section {
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: 0 1px 2px var(--color-shadow);
}
.order-panel-section.hidden {
  display: none !important;
}
.order-panel-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.625rem 0.875rem;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border-light);
}
.order-panel-section--support .order-panel-section__head {
  background: linear-gradient(90deg, color-mix(in srgb, #059669 8%, var(--color-surface)) 0%, var(--color-surface) 100%);
  border-bottom-color: color-mix(in srgb, #059669 18%, var(--color-border, #e5e7eb));
}
.order-panel-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-hover);
}
.order-panel-section__icon--support {
  color: #059669;
  background: color-mix(in srgb, #059669 14%, transparent);
}
.order-panel-section__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text);
}
.order-panel-section__body {
  padding: 0.875rem 0.9375rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-secondary, #374151);
  word-break: break-word;
  max-height: 14rem;
  overflow-y: auto;
}
.order-panel-section__body > :first-child {
  margin-top: 0;
}
.order-panel-section__body > :last-child {
  margin-bottom: 0;
}
.order-panel-section__body.service-desc-html img {
  max-width: 100%;
  height: auto;
}
.order-panel-section__links {
  padding: 0.75rem;
}
@media (min-width: 640px) {
  .order-modal-panel--has-desc .order-modal-split,
  .service-detail-panel--has-desc .order-modal-split {
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 auto;
    width: auto;
    min-height: 26rem;
  }
  .order-modal-panel--has-desc .order-modal-split__main,
  .service-detail-panel--has-desc .order-modal-split__main {
    flex: 1 1 28rem;
    width: auto;
    min-width: 26rem;
    max-width: 34rem;
    padding: 1.125rem 1.25rem 1.5rem;
  }
  .order-modal-panel--has-desc .order-modal-body,
  .service-detail-panel--has-desc .order-modal-body {
    max-width: none;
    margin: 0;
  }
  .order-modal-panel--has-desc .order-modal-split__aside,
  .service-detail-panel--has-desc .order-modal-split__aside {
    flex: 1 1 32rem;
    width: auto;
    min-width: 28rem;
    max-width: 38rem;
    border-top: none;
    border-left: 1px solid var(--color-border, #e5e7eb);
    padding-top: 1.5rem;
  }
}
/* Sipariş modalı — mobil */
.order-modal-viewport {
  align-items: center;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 639px) {
  .order-modal-viewport {
    align-items: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .order-modal-panel {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: min(88dvh, calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-block: auto;
  }

  .order-modal-panel--has-desc {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .order-modal-panel__header {
    padding: 0.5rem 0.625rem;
    flex-shrink: 0;
  }

  .order-modal-panel__title {
    font-size: 0.8125rem;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.125rem;
  }

  .order-modal-panel__service-name {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  .order-modal-panel__title-sep,
  .order-modal-panel__action-label {
    font-size: 0.75rem;
  }

  .order-modal-split {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .order-modal-split__main {
    padding: 0 1rem 1rem;
    flex-shrink: 0;
  }

  .order-modal-body {
    max-width: none;
  }

  .order-modal-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .order-modal-form__submit {
    max-width: none;
    width: 100%;
  }

  .order-modal-split__aside {
    max-height: none;
    flex-shrink: 0;
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--color-border-light);
    border-left: none;
  }

  .order-modal-panel:not(.order-modal-panel--has-desc) .order-modal-split__aside {
    display: none !important;
  }

  .order-modal-split__aside-scroll {
    max-height: none;
    overflow: visible;
  }

  .order-modal-split__link {
    min-width: 4rem;
    max-width: none;
    flex: 1 1 calc(25% - 0.5rem);
  }

  .order-modal-split__main:has(.order-modal-success.is-visible) {
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .order-success-title {
    font-size: 1.0625rem;
  }

  .order-success-actions {
    flex-direction: column;
  }
}
html.dark .order-modal-split__aside {
  background: var(--color-bg-subtle);
  border-color: var(--color-border);
}
html.dark .order-modal-split__product-image {
  border-color: var(--color-border);
  background: var(--color-bg-subtle);
}
html.dark .order-panel-section {
  border-color: #3f3f46;
  box-shadow: none;
}
html.dark .order-panel-section__head {
  border-bottom-color: #3f3f46;
}
html.dark .order-panel-section--support .order-panel-section__head {
  border-bottom-color: color-mix(in srgb, #059669 30%, #3f3f46);
}
.order-modal-success {
  display: none;
  width: 100%;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
  animation: orderSuccessFadeIn 0.3s ease-out both;
}
.order-modal-success.is-visible {
  display: block;
}
.order-modal-body.is-hidden {
  display: none;
}
.order-success-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  width: 100%;
}
.order-success-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.order-success-split__left {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}
.order-success-split__right {
  min-width: 0;
}
.order-success-result-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-height: 11rem;
}
.order-success-result-waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 0.625rem;
  background: var(--color-bg-muted);
  border: 1px dashed var(--color-border);
  text-align: center;
}
.order-success-result-waiting.hidden {
  display: none !important;
}
.order-success-result-waiting__spinner {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: orderSubmitSpin 0.8s linear infinite;
}
.order-success-result-waiting__title {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}
.order-success-result-waiting__status {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-warning-text, #b45309);
}
.order-success-result-waiting__status:empty {
  display: none;
}
.order-success-result-waiting__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 16rem;
}
@media (min-width: 640px) {
  .order-success-split {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 15rem;
  }
  .order-success-split__left {
    flex: 0 0 42%;
    width: 42%;
    max-width: 22rem;
    padding-right: 1.25rem;
  }
  .order-success-split__right {
    flex: 1 1 58%;
    min-width: 0;
    padding-left: 1.25rem;
    border-left: 1px solid var(--color-border-light);
  }
  .order-success-result-panel {
    min-height: 13rem;
  }
}
.order-success-layout__main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.order-success-layout__content {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.order-success-result-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.order-success-result-wrap.hidden {
  display: none !important;
}
.order-success-result__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.order-success-result__link {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}
@media (min-width: 480px) {
  .order-success-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .order-success-btn--track {
    flex: 1 1 auto;
  }
  .order-success-btn--dismiss {
    flex: 0 0 auto;
    min-width: 6.5rem;
  }
}
.order-success-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border-radius: 0.625rem;
  font-size: 1.125rem;
  color: var(--color-success);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
}
.order-modal-success--warning .order-success-badge {
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
}
.order-success-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
  word-break: break-word;
}
.order-success-message {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
}
.order-success-orders-hint {
  color: var(--color-text-faint);
  font-size: 0.8125rem;
  margin: 0.625rem 0 0;
  line-height: 1.55;
  word-break: break-word;
}
.order-success-orders-hint__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.order-success-orders-hint__link:hover {
  text-decoration: underline;
}
.order-success-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}
.order-success-stat {
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
}
.order-success-stat__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 0.125rem;
}
.order-success-stat__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.order-success-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.order-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-btn-primary-bg);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}
.order-success-btn--track:hover {
  background: var(--color-btn-primary-hover);
  color: var(--color-text-inverse);
}
.order-success-btn--catalog {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.order-success-btn--catalog:hover {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}
.order-success-btn--dismiss {
  background: transparent;
  color: var(--color-text-secondary, #6b7280);
  border: 1px solid var(--color-border, #e5e7eb);
}
.order-success-btn--dismiss:hover {
  background: color-mix(in srgb, var(--color-border, #e5e7eb) 40%, transparent);
  color: var(--color-text);
}
html.dark .order-success-btn--catalog {
  background: #2e1065;
  color: #ddd6fe;
  border-color: #5b21b6;
}
html.dark .order-success-btn--catalog:hover {
  background: #4c1d95;
  color: #f5f3ff;
}
html.dark .order-success-btn--track {
  color: #09090b;
}
.order-success-api-error {
  margin: 0;
  padding: 0.875rem 1rem;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-danger);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-radius: 0.75rem;
}
.order-success-api-error__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-danger);
  margin-bottom: 0.35rem;
}
.order-success-provider-id {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: -0.5rem 0 1rem;
}
.order-success-result {
  margin: 0;
  padding: 0.875rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-success);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 16rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 6rem;
}
.order-success-status-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.order-success-status-badge--ok {
  color: var(--color-success);
  background: var(--color-success-bg);
}
.order-success-status-badge--warn {
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
}
.order-success-status-badge--fail {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
.order-submit-loading {
  pointer-events: none;
  opacity: 0.75;
}
.order-submit-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid color-mix(in srgb, var(--color-text-inverse) 35%, transparent);
  border-top-color: var(--color-text-inverse);
  border-radius: 50%;
  animation: orderSubmitSpin 0.7s linear infinite;
}
/* Sipariş toast — sağ alt messenger bildirimi */
.order-toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10050;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.order-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 2.25rem 0.875rem 0.875rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.order-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.order-toast__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.45;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.7rem;
}
.order-toast__close:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.order-toast__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.order-toast__body {
  flex: 1;
  min-width: 0;
}
.order-toast__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: inherit;
}
.order-toast__message {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  word-break: break-word;
}
.order-toast__action {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.order-toast__action:hover {
  text-decoration: underline;
}
.order-toast--success,
.order-toast--balance {
  border-color: var(--color-success-border);
}
.order-toast--success .order-toast__icon,
.order-toast--balance .order-toast__icon {
  color: var(--color-success);
  background: var(--color-success-bg);
}
.order-toast--error {
  border-color: var(--color-danger-border);
}
.order-toast--error .order-toast__icon {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
.order-toast--warning .order-toast__icon,
.order-toast--info .order-toast__icon {
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
}
@media (max-width: 479px) {
  .order-toast-root {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    align-items: stretch;
  }
}
@keyframes orderSuccessFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes orderSuccessPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes orderSuccessRipple {
  from { transform: scale(0.85); opacity: 0.8; }
  to { transform: scale(1.15); opacity: 0; }
}
@keyframes orderSuccessCheck {
  from { transform: scale(0) rotate(-12deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes orderSuccessSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orderSubmitSpin {
  to { transform: rotate(360deg); }
}

/* Siparişlerim — tablo / mobil kart */
.order-history-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.order-history-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.order-col-id { width: 3.5rem; }
.order-col-service { width: 26%; }
.order-col-input { width: 11rem; }
.order-col-amount { width: 6.5rem; }
.order-col-date { width: 8.75rem; }
.order-col-status { width: 15rem; }
.order-history-table thead {
  background: var(--color-surface-muted, #f9fafb);
}
html.dark .order-history-table thead {
  background: rgba(39, 39, 42, 0.8);
}
.order-th {
  padding: 1rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.order-th:first-child,
.order-td.order-cell-id {
  padding-left: 1.5rem;
}
.order-th:last-child,
.order-td.order-cell-status {
  padding-right: 1.5rem;
}
.order-th--status {
  text-align: left;
}
.order-td {
  padding: 1rem 1rem;
  vertical-align: middle;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  border-top: 1px solid var(--color-border, #f3f4f6);
}
html.dark .order-td {
  border-top-color: rgba(63, 63, 70, 0.8);
}
.order-cell-id {
  font-weight: 600;
  white-space: nowrap;
}
.order-cell-service__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  word-break: break-word;
  font-weight: 700;
}
.order-cell-input {
  width: 11rem;
  max-width: 11rem;
}
.order-cell-input__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-text);
}
.order-cell-amount {
  width: 6.5rem;
  font-weight: 700;
  white-space: nowrap;
}
.order-cell-date {
  width: 8.75rem;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}
.order-cell-status {
  width: 15rem;
  max-width: 15rem;
}
.order-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
}
.order-status-cell__main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}
.order-status-cell__main .order-live-badge {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
}
.order-status-cell__error {
  margin: 0;
  width: 100%;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-danger);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.order-status-cell__result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease;
}
.order-status-cell__result-btn:hover {
  background: rgba(16, 185, 129, 0.16);
}
html.dark .order-status-cell__result-btn {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}
.order-status-cell__result-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Siparişlerim — canlı durum */
.order-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.order-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-live-badge--done {
  color: var(--color-success);
  background: var(--color-success-bg);
}
.order-live-badge--processing {
  color: #1d4ed8;
  background: #dbeafe;
}
.order-live-badge--pending {
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
}
.order-live-badge--fail {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}
html.dark .order-live-badge--processing {
  color: #93c5fd;
  background: #1e3a5f;
}
.order-live-spinner {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: orderSubmitSpin 0.7s linear infinite;
  opacity: 0.85;
  flex-shrink: 0;
}
.order-history-row--done {
  background: rgba(16, 185, 129, 0.07);
}
html.dark .order-history-row--done {
  background: rgba(16, 185, 129, 0.11);
}
.order-history-row--done:hover {
  background: rgba(16, 185, 129, 0.12);
}
html.dark .order-history-row--done:hover {
  background: rgba(16, 185, 129, 0.16);
}
.order-history-row--fail {
  background: rgba(239, 68, 68, 0.06);
}
html.dark .order-history-row--fail {
  background: rgba(239, 68, 68, 0.1);
}
.order-history-row--fail:hover {
  background: rgba(239, 68, 68, 0.1);
}
html.dark .order-history-row--fail:hover {
  background: rgba(239, 68, 68, 0.14);
}
.order-history-row--clickable {
  cursor: pointer;
}
.order-history-row--clickable:focus-visible {
  outline: 2px solid rgba(16, 185, 129, 0.45);
  outline-offset: -2px;
}
.order-history-row--new.order-history-row--done {
  animation: orderHistoryRowInDone 1.8s ease-out forwards;
}
.order-history-row--new:not(.order-history-row--done) {
  animation: orderHistoryRowIn 1.8s ease-out;
  background: rgba(16, 185, 129, 0.08);
}
html.dark .order-history-row--new:not(.order-history-row--done) {
  background: rgba(16, 185, 129, 0.12);
}
@keyframes orderHistoryRowIn {
  0% { background: rgba(16, 185, 129, 0.22); }
  100% { background: transparent; }
}
@keyframes orderHistoryRowInDone {
  0% { background: rgba(16, 185, 129, 0.24); }
  100% { background: rgba(16, 185, 129, 0.07); }
}
html.dark .order-history-row--new.order-history-row--done {
  animation: orderHistoryRowInDoneDark 1.8s ease-out forwards;
}
@keyframes orderHistoryRowInDoneDark {
  0% { background: rgba(16, 185, 129, 0.28); }
  100% { background: rgba(16, 185, 129, 0.11); }
}

@media (max-width: 768px) {
  .order-history-wrap {
    overflow-x: visible;
  }
  .order-history-table {
    table-layout: auto;
  }
  .order-history-table thead {
    display: none;
  }
  .order-history-table colgroup {
    display: none;
  }
  .order-history-table,
  .order-history-table tbody {
    display: block;
    width: 100%;
  }
  .order-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id status"
      "service service"
      "input input"
      "amount date";
    gap: 0.5rem 0.875rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border, #f3f4f6);
  }
  html.dark .order-history-row {
    border-top-color: rgba(63, 63, 70, 0.8);
  }
  .order-history-row .order-td {
    display: block;
    padding: 0;
    border: none;
  }
  .order-history-row .order-td::before {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
  .order-cell-id {
    grid-area: id;
    font-size: 1.0625rem;
  }
  .order-cell-id::before { content: attr(data-label); }
  .order-cell-service {
    grid-area: service;
  }
  .order-cell-service::before { content: attr(data-label); }
  .order-cell-service__name {
    -webkit-line-clamp: 3;
    font-weight: 600;
    font-size: 1.0625rem;
  }
  .order-cell-input {
    grid-area: input;
  }
  .order-cell-input::before { content: attr(data-label); }
  .order-cell-input {
    width: auto;
    max-width: none;
  }
  .order-cell-input__text {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.9375rem;
  }
  .order-cell-amount {
    grid-area: amount;
    align-self: end;
  }
  .order-cell-amount::before { content: attr(data-label); }
  .order-cell-date {
    grid-area: date;
    align-self: end;
    text-align: right;
  }
  .order-cell-date::before { content: attr(data-label); }
  .order-cell-status {
    grid-area: status;
    width: auto;
    max-width: none;
    justify-self: end;
    align-self: start;
  }
  .order-cell-status::before {
    display: none;
  }
  .order-status-cell {
    align-items: flex-end;
    max-width: none;
    width: 100%;
  }
  .order-status-cell__main {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .order-status-cell__result-btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.55rem;
  }
}

/* Admin toast */
.admin-toast--success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}
.admin-toast--error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-border);
}

/* Dhru admin tables */
html.dark .dhru-orders {
  --dhru-border: var(--color-border);
  --dhru-head: var(--color-bg-muted);
  --dhru-row-hover: var(--color-bg-hover);
  --dhru-text: var(--color-text);
  --dhru-muted: var(--color-text-muted);
}
html.dark .dhru-edit {
  --de-border: var(--color-border);
  --de-label: var(--color-text-muted);
  --de-bg: var(--color-surface);
  --de-head: var(--color-bg-muted);
}

/* Genel form girdileri (Tailwind dışı) */
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html.dark select,
html.dark textarea {
  background-color: var(--color-input-bg);
  border-color: var(--color-input-border);
  color: var(--color-text);
}
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: var(--color-text-faint);
}

/* Açık mod — kenarlıklar ve ayırıcı çizgiler daha belirgin */
html:not(.dark) .border-gray-100 {
  border-color: #e5e7eb !important;
}
html:not(.dark) .border-gray-200 {
  border-color: #d1d5db !important;
}
html:not(.dark) .border-gray-300 {
  border-color: #9ca3af !important;
}
html:not(.dark) .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e5e7eb !important;
}
html:not(.dark) .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: #d1d5db !important;
}
html:not(.dark) .bg-white.rounded-xl.border,
html:not(.dark) .bg-white.rounded-lg.border {
  border-color: #d1d5db !important;
}
html:not(.dark) .panel-header,
html:not(.dark) .panel-cat-nav {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html:not(.dark) nav.border-b {
  border-color: #d1d5db !important;
}
html:not(.dark) .order-modal-panel {
  border-color: #d1d5db !important;
}
html:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html:not(.dark) select,
html:not(.dark) textarea {
  border-color: var(--color-input-border);
}
html:not(.dark) .theme-toggle {
  border-color: #d1d5db !important;
}

/* Dil seçici — TR / EN */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--color-border-light);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-surface);
  max-width: 8.75rem;
}
.lang-switcher__btn,
.lang-switcher a.lang-switcher__btn,
.lang-switcher span.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 50%;
  min-width: 0;
  width: auto;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
a.lang-switcher__btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}
.lang-switcher__btn.is-active {
  background: var(--color-bg-muted);
  color: var(--color-text);
}
.lang-switcher__flag {
  display: block;
  width: 1.125rem;
  height: 0.75rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-text) 12%, transparent);
}
.lang-switcher__code {
  display: inline-block;
  width: 1.25rem;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Mor → mavi: mevcut Tailwind violet sınıfları */
.text-violet-600 { color: #2563eb !important; }
.text-violet-700 { color: #1d4ed8 !important; }
.text-violet-800 { color: #1e40af !important; }
.text-violet-400 { color: #60a5fa !important; }
.bg-violet-50 { background-color: #eff6ff !important; }
.bg-violet-100 { background-color: #dbeafe !important; }
.bg-violet-600 { background-color: #2563eb !important; }
.hover\:bg-violet-50:hover { background-color: #eff6ff !important; }
.focus\:ring-violet-500:focus,
.focus\:ring-violet-600:focus { --tw-ring-color: rgb(59 130 246 / 0.5) !important; }
.focus\:border-violet-500:focus { border-color: #3b82f6 !important; }
html.dark .dark\:text-violet-400,
html.dark .text-violet-400,
html.dark .text-violet-600 { color: #93c5fd !important; }
html.dark .dark\:focus\:ring-violet-600:focus { --tw-ring-color: rgb(96 165 250 / 0.45) !important; }

/* Destek hub — sağ alt köşe */
.support-hub {
  position: fixed;
  z-index: 50;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  left: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
}

.support-hub__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(2px);
  animation: support-hub-fade-in 0.2s ease;
}

.support-hub__backdrop[hidden] {
  display: none !important;
}

html.dark .support-hub__backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.support-hub__menu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.support-hub.is-open .support-hub__menu {
  display: flex;
}

.support-hub__item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.375rem 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.5rem) scale(0.96);
  pointer-events: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-hub.is-open .support-hub__item {
  pointer-events: auto;
  animation: support-hub-item-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--support-item-index, 0) * 45ms);
}

html.dark .support-hub__item {
  background: rgba(24, 24, 27, 0.92);
  border-color: rgba(82, 82, 91, 0.6);
  color: #f4f4f5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.support-hub__item:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.support-hub__item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.support-hub__item--whatsapp .support-hub__item-icon {
  background: linear-gradient(145deg, #34d399, #16a34a);
}

.support-hub__item--whatsapp-channel .support-hub__item-icon {
  background: linear-gradient(145deg, #4ade80, #15803d);
}

.support-hub__item--telegram .support-hub__item-icon,
.support-hub__item--telegram-support .support-hub__item-icon {
  background: linear-gradient(145deg, #38bdf8, #229ed9);
}

.support-hub__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.support-hub__fab--solo {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  background: linear-gradient(145deg, #4ade80, #16a34a);
}

.support-hub__fab--multi {
  background: linear-gradient(145deg, #6366f1, #4f46e5);
}

.support-hub:not(.is-open) .support-hub__fab--multi {
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.support-hub.is-open .support-hub__fab--multi {
  background: linear-gradient(145deg, #475569, #334155);
  transform: rotate(0deg) scale(1);
}

.support-hub__fab:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
}

.support-hub__fab--whatsapp { background: linear-gradient(145deg, #4ade80, #16a34a); }
.support-hub__fab--telegram { background: linear-gradient(145deg, #38bdf8, #229ed9); }
.support-hub__fab--telegram-support { background: linear-gradient(145deg, #38bdf8, #229ed9); }
.support-hub__fab--whatsapp-channel { background: linear-gradient(145deg, #4ade80, #15803d); }

.support-hub__fab i {
  font-size: 1.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.support-hub__fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.45;
  animation: support-hub-pulse 2.4s ease-out infinite;
  z-index: 0;
}

.support-hub__online-dot {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #fff;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: support-hub-online-pulse 2s ease-out infinite;
}

html.dark .support-hub__online-dot {
  border-color: #18181b;
}

.support-hub.is-open .support-hub__online-dot {
  display: none;
}

.support-hub.is-open .support-hub__fab-pulse,
.support-hub__fab:hover .support-hub__fab-pulse {
  animation: none;
  opacity: 0;
}

.support-hub:not(.is-open) .support-hub__fab--multi:hover .support-hub__fab-pulse {
  animation: support-hub-pulse 2.4s ease-out infinite;
  opacity: 0.45;
}

.support-hub__fab-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-hub__fab-icon--open {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.support-hub__fab-icon--close {
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
}

.support-hub.is-open .support-hub__fab-icon--open {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}

.support-hub.is-open .support-hub__fab-icon--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@keyframes support-hub-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes support-hub-online-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 0.4375rem rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

@keyframes support-hub-item-in {
  from {
    opacity: 0;
    transform: translateY(0.625rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes support-hub-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 768px) {
  .support-hub__fab {
    width: 3.75rem;
    height: 3.75rem;
  }

  .support-hub__fab i {
    font-size: 1.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-hub__fab-pulse,
  .support-hub__online-dot {
    animation: none;
  }

  .support-hub.is-open .support-hub__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Üst duyuru şeridi (notification marquee) */
.notification-marquee {
  --notification-marquee-height: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 110;
  width: 100%;
  min-height: var(--notification-marquee-height);
  background: linear-gradient(90deg, #0f1419 0%, #191c1f 35%, #1a2332 70%, #191c1f 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.15), 0 4px 20px rgba(0, 0, 0, 0.22);
}

.notification-marquee__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--panel-content-max, 80rem);
  margin: 0 auto;
  padding: 0.5rem var(--panel-gutter, 1rem);
  min-height: var(--notification-marquee-height);
}

.notification-marquee__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1207;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
  animation: notification-marquee-badge-pulse 2.4s ease-in-out infinite;
}

.notification-marquee__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}

.notification-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: notification-marquee-scroll 28s linear infinite;
}

.notification-marquee__text {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.notification-marquee + .panel-header {
  top: var(--notification-marquee-height);
}

@keyframes notification-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes notification-marquee-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
  }
  50% {
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-marquee__track,
  .notification-marquee__badge {
    animation: none;
  }

  .notification-marquee__viewport {
    mask-image: none;
  }

  .notification-marquee__track {
    transform: none;
    white-space: normal;
    flex-wrap: wrap;
  }

  .notification-marquee__text[aria-hidden="true"] {
    display: none;
  }
}

/* Hata sayfaları (404 vb.) */
.page-error .panel-main {
  justify-content: center;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 36rem);
  padding: 2rem 0 3rem;
}

.error-page__card {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

html.dark .error-page__card {
  background: rgba(36, 36, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.error-page__code {
  margin: 0 0 0.75rem;
  font-size: clamp(3.5rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--brand-color, #2563eb);
  opacity: 0.92;
}

.error-page__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

html.dark .error-page__title {
  color: #f5f5f7;
}

.error-page__lead {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #6e6e73;
}

html.dark .error-page__lead {
  color: #a1a1a6;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.error-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.error-page__btn--primary {
  color: #fff;
  background: var(--brand-color, #2563eb);
  border: 1px solid transparent;
}

.error-page__btn--primary:hover {
  filter: brightness(1.06);
}

.error-page__btn--ghost {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.error-page__btn--ghost:hover {
  background: rgba(0, 0, 0, 0.07);
}

html.dark .error-page__btn--ghost {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .error-page__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

