/* SMM Paket Satış Platformu — tasarım sistemi
   Beyaz/açık gri zemin, koyu lacivert metin, mavi vurgu. Marka rengi yönetim panelinden değiştirilir (--primary).
   Bileşenler container query ile kendi kullanılabilir genişliklerine göre yerleşir. */

:root {
  --primary: #2563eb; --primary-600: #1f56cf; --primary-700: #1c4aaf; --primary-50: #eef3fd; --primary-100: #dce7fc; --primary-200: #b8cef8; --on-primary: #fff;
  --navy: #0f1b3d; --text: #0f1b3d; --muted: #4f5d7a; --subtle: #7a87a3;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f0f3f9; --border: #e1e7f1; --border-strong: #c9d3e3;
  --success: #157a3c; --success-bg: #e6f6ec; --warning: #a35a00; --warning-bg: #fff3dd; --danger: #c02626; --danger-bg: #fdecec;
  --info: #0b6b84; --info-bg: #e2f4f8; --neutral: #4f5d7a; --neutral-bg: #edf0f6;
  --radius: 12px; --radius-sm: 8px; --shadow-sm: 0 1px 2px rgba(15,27,61,.06); --shadow: 0 4px 16px rgba(15,27,61,.08); --shadow-lg: 0 16px 40px rgba(15,27,61,.16);
  --header-h: 64px; --sidebar-w: 260px; --rail-w: 76px; --bottom-nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --tap: 44px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 96px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--bg); overflow-x: hidden; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary-700); text-underline-offset: 2px; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
pre { background: #0f1b3d; color: #e6ecff; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; max-width: 100%; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Görünür odak */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-lg { width: 28px; height: 28px; }
.icon-sm { width: 16px; height: 16px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.narrow { max-width: 760px; margin-inline: auto; }
.readable { max-width: 72ch; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-600); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-700); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--surface-2); color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a11d1d; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0f6430; color: #fff; }
.btn-soft { background: var(--primary-50); color: var(--primary-700); }
.btn-soft:hover { background: var(--primary-100); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 8px 12px; font-size: .875rem; }
.btn-icon { padding: 0; width: var(--tap); height: var(--tap); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row.end { justify-content: flex-end; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-700); cursor: pointer; text-decoration: underline; min-height: var(--tap); }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-head { padding: 16px 20px 0; }
.section { padding-block: 40px; }
@media (min-width: 1024px) { .section { padding-block: 64px; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.badge .icon { width: 14px; height: 14px; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }

/* ---------- Uyarılar ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; margin-bottom: 16px; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--success-bg); color: #0f5a2c; border-color: #bfe6cd; }
.alert-error, .alert-danger { background: var(--danger-bg); color: #8d1c1c; border-color: #f4c3c3; }
.alert-warning { background: var(--warning-bg); color: #7a4300; border-color: #f6dba9; }
.alert-info { background: var(--info-bg); color: #08515f; border-color: #b8e3ec; }
.alert-close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; min-width: var(--tap); min-height: var(--tap); margin-block: -12px; margin-right: -10px; }

/* ---------- Formlar ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
.form-grid > .full { grid-column: 1 / -1; }
@container (min-width: 560px) { .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 820px) { .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field .req { color: var(--danger); }
.help { font-size: .85rem; color: var(--muted); margin: 0; }
.error-text { font-size: .85rem; color: var(--danger); margin: 0; font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], input[type=datetime-local], input[type=color], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
select { max-width: 100%; text-overflow: ellipsis; }
details > summary { min-height: var(--tap); display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details:not(.accordion details) > summary::before { content: "▸"; color: var(--muted); font-size: .9em; }
details[open]:not(.accordion details) > summary::before { content: "▾"; }
input[type=color] { padding: 4px; width: 64px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-200); outline: none; }
.is-invalid input, .is-invalid select, .is-invalid textarea, input.is-invalid { border-color: var(--danger); }
input[readonly] { background: var(--surface-2); }
.input-group { display: flex; align-items: stretch; min-width: 0; }
.input-group > input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; flex: 1; }
.input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-addon { display: inline-flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); white-space: nowrap; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap); padding-block: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.upload-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; }
.upload-preview img { max-height: 48px; max-width: 100%; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: repeating-conic-gradient(#eef1f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; flex: none; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding-inline: 6px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 8px; }

/* Seçim kartları (ödeme yöntemi vb.) */
.choice-list { display: grid; gap: 10px; }
.choice { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; min-height: 64px; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--primary-200); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice .choice-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-700); flex: none; }
.choice .choice-body { min-width: 0; flex: 1; }
.choice .choice-title { font-weight: 700; display: block; }
.choice .choice-desc { font-size: .87rem; color: var(--muted); display: block; }
.choice .choice-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.choice:has(input:checked) .choice-check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }

/* Dosya yükleme */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); min-height: 140px; transition: border-color .15s, background .15s; }
.dropzone.is-drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone .dz-file { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.dropzone:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (max-width: 480px) { .dropzone { min-height: 110px; padding: 18px 12px; } .dropzone .dz-hint-drag { display: none; } }

/* ---------- Site başlığı ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; min-height: var(--tap); flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; }
.brand-logo { display: block; width: auto; height: auto; max-height: 40px; max-width: min(180px, 46vw); object-fit: contain; }
.sidebar-brand .brand-logo { max-width: calc(var(--sidebar-w, 260px) - 32px); }
.brand-mark-compact { display: none; }
img.brand-mark-compact { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.main-nav { display: none; align-items: center; gap: 4px; margin-left: 16px; }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--radius-sm); color: var(--navy); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--primary-50); color: var(--primary-700); }
.header-search { display: none; flex: 1; max-width: 360px; margin-left: auto; }
.header-search .input-group input { min-height: 42px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search + .header-actions { margin-left: 8px; }
.nav-toggle { display: inline-flex; }
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-search { display: block; }
}
@media (max-width: 599px) { .hide-xs { display: none !important; } }
@media (max-width: 479px) { .brand-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 359px) { .site-header .brand-name { display: none; } }
/* Kısa ekranlar (yatay telefon, küçük dizüstü): sabit başlık içeriği örtmesin */
@media (max-height: 560px) { .site-header { position: static; } html { scroll-padding-top: 16px; } }

/* Mobil çekmece menü */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15,27,61,.45); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: drawerIn .18s ease-out; }
.drawer-panel.right { left: auto; right: 0; animation-name: drawerInRight; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); min-height: var(--header-h); position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer-body { padding: 12px; flex: 1; }
.drawer-foot { padding: 12px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: #fff; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--navy); text-decoration: none; font-weight: 600; }
.drawer-nav a:hover, .drawer-nav a[aria-current] { background: var(--primary-50); color: var(--primary-700); }
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drawerInRight { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
body.no-scroll { overflow: hidden; }

/* ---------- Altbilgi ---------- */
.site-footer { margin-top: auto; background: var(--navy); color: #c8d1e6; padding-block: 40px 24px; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .875rem; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-logos span { background: rgba(255,255,255,.08); border-radius: 6px; padding: 4px 10px; font-size: .8rem; font-weight: 600; color: #fff; }

/* ---------- Ana sayfa ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--primary-50) 100%); border-bottom: 1px solid var(--border); padding-block: 40px; }
@media (min-width: 1024px) { .hero { padding-block: 72px; } }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 620px; }
.hero-search input { flex: 1 1 240px; min-height: 52px; font-size: 1rem; }
.hero-search .btn { min-height: 52px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 20px; color: var(--muted); font-size: .92rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { color: var(--success); }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.hero-card .step { display: flex; gap: 12px; padding-block: 10px; }
.hero-card .step + .step { border-top: 1px dashed var(--border); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; flex: none; }

.platform-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.platform-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--navy); min-height: 112px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.platform-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--navy); }
.platform-tile .p-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-700); }
.platform-tile strong { font-size: 1rem; }
.platform-tile small { color: var(--muted); }
.steps-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { display: flex; gap: 14px; }
.feature .f-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-700); flex: none; }
.feature h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Paket kartları (bileşen genişliğine göre sütun) ---------- */
.pkg-area { container-type: inline-size; container-name: pkgarea; }
.pkg-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container pkgarea (min-width: 520px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container pkgarea (min-width: 820px) { .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container pkgarea (min-width: 1120px) { .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container pkgarea (min-width: 1500px) { .pkg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pkg-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; position: relative; transition: border-color .15s, box-shadow .15s; }
.pkg-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow); }
.pkg-card .pkg-top { display: flex; align-items: center; gap: 10px; }
.pkg-card .pkg-platform { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-700); flex: none; }
.pkg-card .pkg-meta { font-size: .8rem; color: var(--muted); min-width: 0; }
.pkg-card h3 { font-size: 1.02rem; margin: 0; overflow-wrap: anywhere; }
.pkg-card h3 a { color: var(--navy); text-decoration: none; }
.pkg-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pkg-card h3 a:focus-visible { outline: none; }
.pkg-card:has(h3 a:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.pkg-card .pkg-facts { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--muted); }
.pkg-card .pkg-facts span { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 6px; padding: 2px 8px; }
.pkg-card .pkg-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pkg-card .price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.pkg-card .price small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.pkg-card .pkg-badge { position: absolute; top: 12px; right: 12px; }
.pkg-card .fav-btn { position: relative; z-index: 2; }

/* ---------- Katalog yerleşimi ---------- */
.catalog { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 272px minmax(0, 1fr); } }
@media (min-width: 1800px) { .catalog { grid-template-columns: 300px minmax(0, 1fr); } }
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.filter-panel h2 { font-size: 1rem; }
.filter-group + .filter-group { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.filter-group .check { min-height: 40px; padding-block: 6px; }
.filter-toggle { display: inline-flex; }
@media (max-width: 1023px) {
  .filter-panel { position: fixed; inset: auto 0 0 0; z-index: 210; max-height: 85dvh; overflow-y: auto; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); display: none; padding-bottom: calc(16px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .filter-panel.is-open { display: block; animation: sheetIn .18s ease-out; }
  .filter-backdrop { position: fixed; inset: 0; background: rgba(15,27,61,.45); z-index: 205; display: none; }
  .filter-backdrop.is-open { display: block; }
  .filter-panel .filter-sheet-head { display: flex; position: sticky; top: -16px; background: #fff; margin: -16px -16px 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); align-items: center; justify-content: space-between; z-index: 1; }
  .filter-panel .filter-sheet-foot { display: flex; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); background: #fff; margin: 16px -16px calc(-16px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); gap: 8px; }
}
@media (min-width: 1024px) {
  .filter-toggle, .filter-backdrop { display: none !important; }
  .filter-panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; }
  .filter-panel .filter-sheet-head .btn-icon, .filter-panel .filter-sheet-foot .btn-close-sheet { display: none; }
  .filter-sheet-head { display: block; }
  .filter-sheet-foot { display: flex; gap: 8px; margin-top: 16px; }
}
@media (min-width: 1024px) and (max-height: 640px) { .filter-panel { position: static; max-height: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 220px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border-strong); color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip[aria-current], .chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip-scroll .chip { flex: none; min-height: var(--tap); }

/* ---------- Paket detay + sipariş formu ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; padding: 0; list-style: none; }
.breadcrumb a { color: var(--muted); display: inline-flex; min-height: 32px; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: var(--subtle); }
.pkg-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .pkg-layout { grid-template-columns: minmax(0, 1fr) 420px; } }
@media (min-width: 1600px) { .pkg-layout { grid-template-columns: minmax(0, 1fr) 460px; } }
.order-box { position: relative; }
@media (min-width: 1024px) and (min-height: 760px) { .order-box { position: sticky; top: calc(var(--header-h) + 16px); } }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0; }
.fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; }
.fact dt { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fact dd { margin: 4px 0 0; font-weight: 700; }
.summary { display: grid; gap: 6px; margin: 12px 0; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.qty-control { display: flex; align-items: stretch; }
.qty-control input { text-align: center; border-radius: 0; min-width: 0; }
.qty-control .btn { border-radius: 0; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--navy); }
.qty-control .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.qty-control .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.qty-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.qty-presets button { min-height: var(--tap); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.qty-presets button:hover { border-color: var(--primary); }
.accordion details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.accordion details + details { margin-top: 8px; }
.accordion summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .15s; }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 16px 16px; color: var(--muted); }
/* Mobilde sabit alt sipariş çubuğu (klavye açıkken gizlenir) */
.mobile-cta { display: none; }
@media (max-width: 1023px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(15,27,61,.08); }
  body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.kb-open .mobile-cta, body.cta-hidden .mobile-cta { display: none; }
}
@media (max-height: 480px) { .mobile-cta { display: none !important; } body.has-mobile-cta { padding-bottom: 0; } }

/* ---------- Ödeme ekranı ---------- */
.checkout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; max-width: 1120px; margin-inline: auto; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr) 360px; } }
.checkout-summary { order: -1; }
@media (min-width: 900px) { .checkout-summary { order: 0; position: sticky; top: calc(var(--header-h) + 16px); } }
@media (min-width: 900px) and (max-height: 640px) { .checkout-summary { position: static; } }
.pay-frame { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius); background: #fff; }
.pay-shell { max-width: 820px; margin-inline: auto; }
.bank-box { display: grid; gap: 12px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); min-width: 0; }
.copy-row .val { font-family: var(--mono); font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.ref-code { font-size: 1.5rem; letter-spacing: .08em; color: var(--primary-700); }
.status-hero { text-align: center; padding: 24px 8px; }
.status-hero .s-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.status-hero .s-icon .icon { width: 36px; height: 36px; }
.s-ok { background: var(--success-bg); color: var(--success); }
.s-wait { background: var(--info-bg); color: var(--info); }
.s-bad { background: var(--danger-bg); color: var(--danger); }
.s-warn { background: var(--warning-bg); color: var(--warning); }
.spin { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Uygulama düzeni (müşteri + yönetim) ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; flex: 1; }
.app-sidebar { display: none; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.app-topbar .bar { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); padding-inline: 12px; }
.app-topbar .page-title { font-size: 1.05rem; font-weight: 700; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-content { padding: 16px; flex: 1; width: 100%; max-width: 1680px; }
.app-content.wide { max-width: none; }
@media (min-width: 768px) { .app-content { padding: 24px; } }
@media (max-height: 560px) { .app-topbar { position: static; } }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.side-nav .nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); padding: 14px 12px 6px; font-weight: 700; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 12px; border-radius: var(--radius-sm); color: #3a4767; text-decoration: none; font-weight: 600; font-size: .94rem; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-2); color: var(--navy); }
.side-nav a[aria-current] { background: var(--primary-50); color: var(--primary-700); }
.side-nav .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); padding-inline: 16px; border-bottom: 1px solid var(--border); font-weight: 800; color: var(--navy); text-decoration: none; }
/* Tablet dikey: ikon rayı */
@media (min-width: 768px) and (max-width: 1023px) {
  .app { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .app-sidebar { display: block; position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: #fff; border-right: 1px solid var(--border); }
  .app-sidebar .side-nav { padding: 8px; align-items: center; }
  .app-sidebar .side-nav a { justify-content: center; padding: 0; width: 56px; height: 52px; position: relative; }
  .app-sidebar .side-nav .lbl, .app-sidebar .nav-label, .app-sidebar .sidebar-brand .brand-name { display: none; }
  .app-sidebar .side-nav .count { position: absolute; top: 4px; right: 2px; margin: 0; }
  .app-sidebar .sidebar-brand { justify-content: center; padding: 0; }
  .app-sidebar .sidebar-brand.has-logo .brand-logo { display: none; }
  .app-sidebar .sidebar-brand.has-logo .brand-mark-compact { display: grid; }
  .app .nav-toggle-app { display: inline-flex; }
}
/* Dizüstü/masaüstü: tam kenar çubuğu */
@media (min-width: 1024px) {
  .app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .app-sidebar { display: block; position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: #fff; border-right: 1px solid var(--border); }
  .nav-toggle-app { display: none !important; }
}
@media (min-width: 1920px) { :root { --sidebar-w: 280px; } }
/* Alt kısayol çubuğu (telefon) */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(15,27,61,.06); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--bottom-nav-h); color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; }
  .bottom-nav a[aria-current] { color: var(--primary-700); }
  .bottom-nav .count { position: absolute; top: 6px; left: 55%; background: var(--danger); color: #fff; border-radius: 999px; font-size: .65rem; padding: 0 5px; }
  body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  body.kb-open .bottom-nav { display: none; }
  body.kb-open.has-bottom-nav { padding-bottom: 0; }
}
@media (max-width: 767px) and (max-height: 480px) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }

/* ---------- İstatistik kartları ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--primary-200); box-shadow: var(--shadow); color: inherit; }
.stat .s-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat .s-value { font-size: 1.45rem; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.stat .s-foot { font-size: .8rem; color: var(--muted); }
.stat.attn { border-color: #f4c3c3; background: #fff8f8; }
.stat.attn .s-value { color: var(--danger); }
.stat.warn { border-color: #f6dba9; background: #fffaf0; }

.dash-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
@container (min-width: 1000px) { .dash-cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
@container (min-width: 1700px) { .dash-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } .dash-cols > .span-all { grid-column: 1 / -1; } }
.dash-cols > * + * { margin-top: 0; }
@container (max-width: 999px) { .dash-cols > * + * { margin-top: 16px; } }
.action-list { list-style: none; margin: 0; padding: 0; }
.action-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.action-list li:last-child { border-bottom: 0; }
.action-list li { flex-wrap: wrap; }
.action-list .al-body { min-width: 0; flex: 1 1 160px; }
.action-list .al-title { font-weight: 600; display: block; overflow-wrap: anywhere; }
.action-list .al-sub { font-size: .82rem; color: var(--muted); }
.action-list a { text-decoration: none; }

/* ---------- Duyarlı tablolar ---------- */
.table-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); container-type: inline-size; container-name: tbl; min-width: 0; }
.table-card > .card-head { padding: 14px 16px 0; margin-bottom: 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll:focus-visible { outline: 3px solid var(--primary); }
table.rtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rtable th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.rtable td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; min-width: 0; }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable tbody tr:hover td { background: #fafbfe; }
.rtable tr.is-selected td { background: var(--primary-50); }
.rtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable .actions { text-align: right; white-space: nowrap; }
.rtable .row-link { font-weight: 700; text-decoration: none; display: inline-flex; min-height: var(--tap); align-items: center; }
.rtable .cell-main { font-weight: 600; overflow-wrap: anywhere; }
.rtable .cell-sub { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.row-toggle { display: none; }
.rtable tr.row-details { display: none; }
.rtable tr.row-details td { background: var(--surface-2); }
.detail-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 0; }
.detail-list dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
/* Orta genişlik (tablet): temel sütunlar korunur, diğerleri genişletilebilir satırda */
@container tbl (max-width: 899px) {
  .rtable .col-opt { display: none; }
  .row-toggle { display: inline-flex; }
  .rtable tr.row-details.is-open { display: table-row; }
}
/* Dar genişlik (telefon): her satır işlem yapılabilir özet karta dönüşür */
@container tbl (max-width: 600px) {
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable, .rtable tbody { display: block; }
  .rtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .rtable tbody tr:hover td { background: transparent; }
  .rtable td { display: block; padding: 0; border: 0; }
  .rtable td[data-label]:not(.card-title):not(.card-badge):not(.actions)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; font-weight: 600; }
  .rtable td.card-title { grid-column: 1; grid-row: 1; }
  .rtable td.card-badge { grid-column: 2; grid-row: 1; text-align: right; }
  .rtable td:not(.card-title):not(.card-badge):not(.actions) { grid-column: 1 / -1; font-size: .88rem; }
  .rtable td.num { text-align: left; }
  .rtable td.actions { grid-column: 1 / -1; text-align: left; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
  .rtable td.actions .btn { flex: 1 1 auto; }
  .rtable .col-opt { display: block; }
  .rtable td.col-opt:empty { display: none; }
  .row-toggle { display: none !important; }
  .rtable tr.row-details { display: none !important; }
  .rtable tr.is-selected { background: var(--primary-50); }
}
.table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--subtle); margin-bottom: 8px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-weight: 600; background: #fff; }
.pagination [aria-current] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pagination .disabled { opacity: .45; }

/* ---------- Liste + detay yan yana ---------- */
.md { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.md-detail { display: none; }
@media (min-width: 1280px) {
  .md.has-detail { grid-template-columns: minmax(0, 1fr) minmax(440px, 42%); }
  .md.has-detail .md-detail { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 2200px) { .md.has-detail { grid-template-columns: minmax(0, 1fr) minmax(560px, 38%); } }
@media (min-width: 1280px) and (max-height: 640px) { .md.has-detail .md-detail { position: static; max-height: none; } }
.md-detail .card { margin: 0; }
.md-close { display: inline-flex; }
/* Dar ekranda açık kayıt tam ekran katman olarak korunur (yön/boyut değişiminde kaybolmaz) */
@media (max-width: 1279px) {
  .md.has-detail .md-detail { display: block; position: fixed; inset: 0; z-index: 220; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  body.md-open { overflow: hidden; }
}

/* ---------- Zaman çizelgesi ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 32px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .t-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-100); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--primary-200); }
.timeline .t-dot.ok { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.timeline .t-dot.bad { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.timeline .t-dot.warn { background: #f0a020; box-shadow: 0 0 0 1px #f0a020; }
.timeline .t-msg { font-weight: 600; overflow-wrap: anywhere; }
.timeline .t-meta { font-size: .8rem; color: var(--muted); }
.timeline .t-private { font-size: .72rem; }

/* Durum adımları (ödeme / teslimat ayrı) */
.status-pair { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .status-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.status-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; }
.status-box .lbl { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 6px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
progress.bar { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress.bar::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
progress.bar::-moz-progress-bar { background: var(--primary); border-radius: 999px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 16px; scrollbar-width: thin; }
.tabs a, .tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; cursor: pointer; }
.tabs a[aria-current], .tabs button[aria-selected=true] { color: var(--primary-700); border-bottom-color: var(--primary); }
.settings-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .settings-layout { grid-template-columns: 220px minmax(0, 1fr); } .settings-layout .tabs { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--border); position: sticky; top: calc(var(--header-h) + 16px); } .settings-layout .tabs a { border-bottom: 0; border-left: 3px solid transparent; } .settings-layout .tabs a[aria-current] { border-left-color: var(--primary); background: var(--primary-50); } }
.settings-layout > .settings-body { min-width: 0; max-width: 980px; }

/* ---------- Modal (dialog) ---------- */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: min(88dvh, 820px); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(15,27,61,.5); }
dialog.modal .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
dialog.modal .modal-head h2 { margin: 0; font-size: 1.1rem; }
dialog.modal .modal-body { padding: 20px; overflow-y: auto; }
dialog.modal .modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: #fff; }
@media (max-width: 600px) {
  dialog.modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; }
  dialog.modal .modal-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  dialog.modal .modal-foot .btn { flex: 1; }
}

/* ---------- Onay ekranı (finansal işlemler) ---------- */
.confirm-card { max-width: 640px; margin-inline: auto; }
.confirm-amount { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 8px 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 420px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* ---------- Grafik ---------- */
.chart { width: 100%; container-type: inline-size; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .bar-rev { fill: var(--primary); }
.chart .bar-cost { fill: #9db7f5; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }
@container (max-width: 420px) { .chart .axis.minor { display: none; } }

/* ---------- Destek mesajları ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: min(720px, 92%); padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.msg.me { align-self: flex-end; background: var(--primary-50); border-color: var(--primary-100); }
.msg .msg-meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.msg .msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Yan yana iki sütun genel düzen */
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; container-type: inline-size; }
@container (min-width: 900px) { .split-inner { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
@container (min-width: 1700px) { .split-inner.three { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
@container (max-width: 899px) { .split-inner > * + * { margin-top: 16px; } }

/* Kimlik doğrulama ekranları */
.auth-wrap { display: grid; place-items: center; padding: 32px 16px; flex: 1; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.5rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: .85rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* Kopyalama bildirimi */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 500; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100vw - 32px); }
@media (max-width: 767px) { .toast { bottom: calc(var(--bottom-nav-h) + 16px); } }

.demo-banner { background: #fff3dd; color: #7a4300; border-bottom: 1px solid #f6dba9; padding: 8px 16px; font-size: .9rem; text-align: center; }
.mode-banner { background: var(--warning-bg); color: var(--warning); padding: 6px 12px; text-align: center; font-weight: 600; font-size: .85rem; }

/* Ultra geniş: satış ve ödeme formlarında okunabilir azami genişlik */
@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  .readable-xl { max-width: 1200px; margin-inline: auto; }
}
@media (min-width: 2400px) { .container { max-width: 1600px; } }

/* Yönetim filtre çubuğu: masaüstünde görünür, dar ekranda alttan açılan panel */
.filter-bar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.filter-bar .field label { font-size: .82rem; }
.filter-bar .fb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar .fb-head { display: none; }
.fb-toggle { display: none; }
@media (max-width: 1023px) {
  .fb-toggle { display: inline-flex; }
  .filter-bar { position: fixed; inset: auto 0 0 0; z-index: 210; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px 16px 0 0; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: var(--shadow-lg); margin: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .filter-bar.is-open { display: grid; animation: sheetIn .18s ease-out; }
  .filter-bar .fb-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .filter-bar .fb-actions { grid-column: 1 / -1; }
  .filter-bar .fb-actions .btn { flex: 1; }
}
@media (max-width: 479px) { .filter-bar { grid-template-columns: minmax(0, 1fr); } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.admin .app-topbar .header-search { min-width: 0; }
@media (max-width: 599px) { .admin .app-topbar .page-title { display: none; } }

/* ============================================================
   Paket seçim asistanı (ana sayfa) — yalnızca .pa-* sınıfları
   Renkler tema değişkenlerinden gelir (--primary, --surface, --navy, --border…)
   ============================================================ */
.pa-section { padding-bottom: 32px; }
.pa-head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.pa-head h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.2rem); margin-bottom: 6px; }
.pa-head p { color: var(--muted); margin: 0; }
.pa-head-rule { display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--primary); margin: 14px auto 0; }
.pa-card { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pa-intro { position: relative; overflow: hidden; background: var(--primary); color: var(--on-primary); border-radius: calc(var(--radius) + 4px); padding: 18px; }
.pa-intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(currentColor 1px, transparent 1.5px); background-size: 16px 16px; opacity: .12; }
.pa-intro > * { position: relative; z-index: 1; }
.pa-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pa-intro-title { margin: 0; font-size: clamp(1.2rem, 1rem + 1.2vw, 2rem); font-weight: 800; line-height: 1.15; color: inherit; }
.pa-intro-text { margin: 8px 0 0; opacity: .92; display: none; }
.pa-main { min-width: 0; display: grid; gap: 14px; align-content: start; padding: 4px; container-type: inline-size; }
.pa-form { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.pa-field { display: grid; gap: 6px; min-width: 0; }
.pa-field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.pa-submit { width: 100%; }
.pa-form-error { grid-column: 1 / -1; margin: 0; }
.pa-result { border: 1.5px dashed var(--primary-200); border-radius: var(--radius); background: var(--primary-50); padding: 18px; min-height: 140px; display: grid; align-items: center; }
.pa-result:focus { outline: none; }
.pa-result:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.pa-result[aria-busy=true] { opacity: .85; }
.pa-state { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pa-state-icon { color: var(--primary); }
.pa-state-icon .icon { width: 30px; height: 30px; }
.pa-state-title { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.pa-state-text { margin: 0; color: var(--muted); max-width: 58ch; }
.pa-state--error .pa-state-icon { color: var(--danger); }
.pa-state--loading .pa-state-icon .icon { animation: pa-spin 1s linear infinite; }
@keyframes pa-spin { to { transform: rotate(360deg); } }
.pa-rec { display: grid; gap: 14px; min-width: 0; }
.pa-rec-top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.pa-rec-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--on-primary); }
.pa-rec-icon .icon { width: 28px; height: 28px; }
.pa-rec-head { min-width: 0; }
.pa-rec-label { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--primary-200); background: var(--surface); color: var(--primary-700); font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pa-rec-name { margin: 6px 0 2px; font-size: 1.15rem; overflow-wrap: anywhere; }
.pa-rec-name:focus { outline: none; }
.pa-rec-cat { margin: 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.pa-rec-facts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); margin: 0; }
.pa-rec-facts > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.pa-rec-facts dt { font-size: .78rem; color: var(--muted); }
.pa-rec-facts dd { margin: 2px 0 0; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.pa-rec-reason { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); font-size: .92rem; }
.pa-rec-reason .icon { flex: none; margin-top: 3px; color: var(--primary); }
.pa-rec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-rec-actions .btn { flex: 1 1 220px; }
/* Tablet/masaüstü: alanlar aynı sırada, sığmazsa alt satıra geçer */
@container (min-width: 520px) {
  .pa-form { display: flex; flex-wrap: wrap; }
  .pa-field { flex: 1 1 150px; }
  .pa-submit { flex: 0 0 auto; width: auto; }
  .pa-form-error { flex-basis: 100%; }
}
@media (min-width: 600px) { .pa-intro { padding: 24px; } .pa-intro-text { display: block; } }
@media (min-width: 1024px) {
  .pa-card { grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); padding: 16px; gap: 20px; align-items: stretch; }
  .pa-intro { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
  .pa-main { padding: 8px 8px 8px 0; }
}
@media (min-width: 1280px) { .pa-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); padding: 24px; gap: 28px; } }

/* Hızlı sipariş penceresi */
.qo-summary { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.qo-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--on-primary); }
.qo-sum-body { min-width: 0; }
.qo-name { margin: 0; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.qo-meta { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.qo-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; }
.qo-note .icon { flex: none; margin-top: 3px; }
.qo .modal-foot .btn[aria-busy=true] { opacity: .7; }
dialog.qo, dialog.qo .modal-body { overflow-x: hidden; }

/* ============================================================
   Sipariş bildirimi kartı — yalnızca .onotify-* sınıfları
   Yönetimde renk seçilmezse tema değişkenleri kullanılır.
   ============================================================ */
.onotify-root { position: fixed; z-index: 60; left: 16px; bottom: calc(16px + var(--on-offset, 0px) + env(safe-area-inset-bottom)); width: min(370px, calc(100vw - 32px)); pointer-events: none; }
.onotify--right { left: auto; right: 16px; }
.onotify-card { pointer-events: auto; display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px 4px 10px 10px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); background: var(--on-bg, var(--surface)); color: var(--on-text, var(--navy)); box-shadow: var(--shadow-lg); }
.onotify-root .onotify-card { opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; }
.onotify-root .onotify-card.is-in { opacity: 1; transform: none; }
.onotify-icon { position: relative; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--on-accent, var(--primary)); color: var(--on-accent-fg, var(--on-primary)); }
.onotify-icon .icon { width: 24px; height: 24px; }
.onotify-body { min-width: 0; flex: 1; }
.onotify-title { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--on-accent, var(--primary-700)); overflow-wrap: anywhere; }
.onotify-text { margin: 2px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.onotify-close { width: 44px; height: 44px; flex: none; align-self: flex-start; margin: -6px 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: inherit; opacity: .65; cursor: pointer; }
.onotify-close:hover, .onotify-close:focus-visible { opacity: 1; background: rgba(15,27,61,.06); }
.onotify-close .icon { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .onotify-root, .onotify--right { left: 12px; right: 12px; width: auto; bottom: calc(12px + var(--on-offset, 0px) + env(safe-area-inset-bottom)); }
  .onotify--no-mobile { display: none !important; }
  .onotify-icon { width: 40px; height: 40px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .onotify-root .onotify-card { transition: none; transform: none; }
  .pa-state--loading .pa-state-icon .icon { animation: none; }
}
@media print { .onotify-root { display: none !important; } }

/* Yönetim: sipariş bildirimi ve asistan ekranları (yalnızca .ax-* ve .onp-* sınıfları) */
.ax-stack { display: grid; gap: 16px; }
.ax-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .ax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ax-actions form { display: inline-flex; margin: 0; }
.ax-grid > .card, .ax-grid > form.card { margin: 0; }
.ax-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ax-fieldset + .ax-fieldset { margin-top: 16px; }
.ax-fieldset legend { padding: 0; margin-bottom: 4px; }
.ax-choice-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ax-choice-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ax-look { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px) { .ax-look { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.onp-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .onp-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 260px); } }
.onp-screen { position: relative; margin: 0; min-height: 210px; padding: 10px 12px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; background: linear-gradient(180deg, var(--surface-2) 0 26px, var(--bg) 26px); }
.onp-screen figcaption { font-size: .75rem; font-weight: 700; color: var(--muted); }
.onp-screen .onotify-card { position: absolute; left: 12px; bottom: 12px; width: min(350px, calc(100% - 24px)); }
.onp--right .onotify-card { left: auto; right: 12px; }
.onp-mobile { max-width: 260px; min-height: 300px; border-radius: 24px; }
.onp-mobile .onotify-card { left: 8px; right: 8px; width: auto; }
.onp-mobile .onotify-icon { width: 40px; height: 40px; }

/* Yazdırma */
@media print { .site-header, .site-footer, .app-sidebar, .app-topbar, .bottom-nav, .mobile-cta, .btn { display: none !important; } body { background: #fff; } }
