/* pre.web.tr ana ekran kabuğu: tam ekran dönen arka plan, sağ üstte menü hapı, solda tek kart.
   Renkler ve denetimler panel.css'ten; bu dosya yalnızca kabuğun yerleşimi ve kart dili. */
body.shell { min-height: 100vh; background: var(--navy); color: var(--ink); overflow-x: hidden; }

/* Wallpaper: two layers cross-fade; an ad makes the whole background a link */
.wall { position: fixed; inset: 0; z-index: 0; background: inherit; }
.wall i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.02); }
.wall i.on { opacity: 1; animation: wall-drift 24s ease-out both; }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 26, 61, .45), transparent 26%), linear-gradient(to bottom, rgba(2, 26, 61, .18), transparent 22%); pointer-events: none; }
@keyframes wall-drift { from { transform: scale(1.06); } to { transform: scale(1.0); } }
.wall-link { position: fixed; inset: 0; z-index: 1; }
.wall-link[hidden] { display: none; }

/* Top right: menu pill (PWT + links) and the account pill */
.shell-top { position: fixed; top: 20px; right: 20px; z-index: 6; display: flex; gap: 10px; align-items: stretch; max-width: calc(100vw - 40px); }
.shell-pill { display: flex; align-items: center; gap: 2px; padding: 6px; background: rgba(255, 255, 255, .96); border-radius: 18px; box-shadow: 0 1px 2px rgba(2, 26, 61, .06), 0 12px 32px -14px rgba(2, 26, 61, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.shell-nav { overflow-x: auto; scrollbar-width: none; } .shell-nav::-webkit-scrollbar { display: none; }
.shell-nav a { flex: none; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--soft); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.shell-nav a:hover { background: var(--sunk); color: var(--ink); }
.shell-nav a.on { background: var(--sunk); color: var(--ink); }
.shell-nav .shell-logo { padding: 8px 14px 8px 12px; margin-right: 4px; line-height: 0; border-right: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.shell-nav .shell-logo:hover { background: none; }
.shell-logo img { height: 20px; width: auto; }
.shell-me { gap: 8px; padding-left: 14px; }
.shell-ws { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--soft); text-decoration: none; }
.shell-me .me { width: 38px; height: 38px; border-radius: 12px; }

/* The card column: left, vertically centred, like a sheet of paper on the photo */
.shell-main { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; padding: 104px 24px 88px clamp(24px, 7vw, 120px); pointer-events: none; }
.shell-main > * { pointer-events: auto; }
.shell-card { width: 360px; max-width: 100%; background: var(--card); border-radius: 22px; padding: 32px 28px 28px; box-shadow: 0 2px 4px rgba(2, 26, 61, .06), 0 30px 70px -24px rgba(2, 26, 61, .55); }
.card-mark { display: block; height: 40px; width: auto; margin-bottom: 30px; }
.card-hi { font-size: 30px; font-weight: 400; line-height: 1.14; letter-spacing: -.025em; margin: 0 0 48px; display: block; }
.card-hi b { font-weight: 800; }
.card-text { color: var(--soft); font-size: 15.5px; line-height: 1.6; margin: 0 0 24px; }
.card-text a { color: var(--ink); text-underline-offset: 3px; }
.card-form { display: grid; gap: var(--s3); }
.card-note { margin: var(--s4) 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.shell .btn.block { width: 100%; height: 52px; border-radius: 14px; font-size: 16px; }

/* Wide card: legal texts */
.shell-card.wide { width: min(760px, calc(100vw - 48px)); max-height: calc(100vh - 168px); overflow-y: auto; padding: 36px 40px; }
.legal h1 { font-size: 30px; margin: var(--s3) 0 var(--s2); display: block; }
.legal h2 { font-size: 17px; margin: var(--s5) 0 var(--s2); }
.legal p, .legal li { color: var(--soft); font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-back { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.legal-ver { font-size: 13px; color: var(--muted); padding: 10px 12px; background: var(--warn-bg); border-radius: var(--r-sm); }

/* Bottom: photo credit or ad label */
.shell-foot { position: fixed; left: clamp(24px, 7vw, 120px); bottom: 18px; z-index: 5; }
.wall-credit { display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 48px); padding: 5px 12px; border-radius: 10px; background: rgba(2, 26, 61, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-credit:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wall-credit.ad b { padding: 1px 7px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }

/* The send wizard inside the shell: same steps, card language of the shell */
.shell .quick { width: 380px; max-width: 100%; margin: 0; }
.shell .quick-card { text-align: left; padding: 30px 28px 26px; border-radius: 22px; border: 0; box-shadow: 0 2px 4px rgba(2, 26, 61, .06), 0 30px 70px -24px rgba(2, 26, 61, .55); }
.shell .quick-card h1, .shell .quick-card h2 { justify-content: flex-start; font-size: 26px; font-weight: 400; letter-spacing: -.025em; }
.shell .quick-card h1 b, .shell .quick-card h2 b { font-weight: 800; }
.shell .quick-card > .sub { margin: 6px 0 var(--s4); }
.shell .quick-drop { padding: 34px 20px; border-radius: 18px; text-align: center; }
.shell .quick-pick { justify-content: flex-start; }
.shell .quick-ring { margin: 0 0 var(--s4); width: 112px; height: 112px; }
.shell .quick-ok { margin: 0 0 var(--s4); }
.shell .quick-actions, .shell .quick-pass { justify-content: flex-start; }
.shell .quick-more .g2 { grid-template-columns: 1fr; }

/* The toast sits above the card column */
.shell .toast { z-index: 8; }

@media (max-width: 760px) {
  .shell-top { top: 12px; left: 12px; right: 12px; max-width: none; }
  .shell-top .shell-nav { flex: 1; min-width: 0; }
  .shell-ws { display: none; } .shell-me { padding-left: 6px; }
  .shell-main { align-items: flex-start; padding: 88px 12px 64px; }
  .shell-card, .shell .quick { width: 100%; }
  .shell-card.wide { width: 100%; max-height: none; padding: 26px 20px; }
  .card-hi { font-size: 27px; margin-bottom: 32px; }
  .shell-foot { left: 16px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wall i, .wall i.on { transition: none; animation: none; transform: none; } }
.shell .quick-card h1, .shell .quick-card h2 { display: block; }

/* ── Send card (WeTransfer layout) ─────────────────────────── */
.shell .quick-card.send { padding: 14px 14px 16px; }
.quick-card.send.over { outline: 3px dashed var(--brand); outline-offset: -8px; }
.send-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send-tile { display: grid; justify-items: center; gap: 10px; padding: 22px 8px 18px; border: 0; border-radius: 16px; background: var(--brand-bg); color: var(--ink); cursor: pointer; font: 600 15px var(--font); transition: background .15s; }
.send-tile:hover { background: #dbe7fd; }
.tile-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.tile-ic.folder { border-radius: 12px; background: #9fbcf7; }
.send-file { padding: 12px 12px 10px; border-radius: 16px; background: var(--brand-bg); display: grid; gap: 8px; }
.send-file.bad { background: var(--bad-bg); } .send-file.bad .progress i { background: var(--bad); }
.send-file-row { display: grid; grid-template-columns: 36px 1fr 28px; gap: 10px; align-items: center; }
.send-file-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.send-file-t { min-width: 0; } .send-file-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.send-file-t small { margin: 0; font-size: 12.5px; }
.send-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(2, 26, 61, .08); cursor: pointer; font-size: 17px; line-height: 1; color: var(--soft); }
.send-file .progress { height: 5px; background: rgba(2, 26, 61, .08); } .send-file .progress i { background: var(--brand); }
.send-file .quick-chips:empty { display: none; }
.send-hint { margin: 10px 4px 2px; font-size: 13px; color: var(--muted); text-align: center; }
.send-hint .link { font-size: 13px; color: var(--brand); text-decoration: none; }
.send-fields { margin: 6px 0 0; }
.send-field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 4px 8px; }
.send-field input, .send-field textarea { flex: 1; min-width: 120px; border: 0; outline: 0; background: none; font: 16px var(--font); color: var(--ink); padding: 12px 0; resize: none; }
.send-field input::placeholder, .send-field textarea::placeholder { color: var(--muted); }
.send-field:focus-within { border-bottom-color: var(--brand); }
.send-to small { margin: 0; font-size: 13px; color: var(--muted); }
.send-tags { display: contents; }
.send-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--brand-bg); font-size: 13.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.send-tag button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(2, 26, 61, .1); cursor: pointer; line-height: 1; }
.send-foot { display: grid; grid-template-columns: 1fr 52px; gap: 8px; margin: 14px 0 8px; }
.send-days { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 16px; color: var(--brand); }
.send-days select { flex: 1; border: 0; background: none; font: 600 15.5px var(--font); color: var(--brand); outline: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
.send-more { height: 52px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); font-size: 16px; letter-spacing: 1px; cursor: pointer; color: var(--soft); }
.send-more[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.send-pop { display: grid; gap: 10px; padding: 14px; margin: 0 0 10px; border-radius: 16px; background: var(--hover); border: 1px solid var(--line); }
.send-pop small { margin: -6px 0 2px; }
.shell .btn.block.send-go { height: 56px; border-radius: 16px; font-size: 17px; }
.send-plan { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.send-plan a, .send-plan .link { color: var(--brand); font-size: 12.5px; }
.code-input { width: 100%; height: 64px; margin: 18px 0 12px; border: 1px solid var(--line-2); border-radius: 16px; text-align: center; font: 600 28px var(--mono); letter-spacing: .4em; color: var(--ink); background: var(--card); }
.code-input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus); }
.shell .quick-card .sub b { color: var(--ink); }
.quick-steps li[data-k="up"] small { min-width: 3ch; text-align: right; }

/* modal */
.qmodal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(2, 26, 61, .45); backdrop-filter: blur(4px); }
.qmodal[hidden] { display: none; }
.qmodal-card { width: min(420px, 100%); background: var(--card); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.qmodal-card h3 { font-size: 20px; margin: 0 0 12px; }
.qmodal-card p { color: var(--soft); font-size: 15px; }
.help-list { padding-left: 18px; margin: 0 0 14px; display: grid; gap: 8px; font-size: 14.5px; color: var(--soft); }
.qmodal-card .btn.block { margin-top: 6px; }

/* top-right account pill */
a.shell-me { text-decoration: none; color: var(--ink); gap: 10px; padding: 6px 6px 6px 14px; }
.shell-acc { display: grid; text-align: right; line-height: 1.2; max-width: 220px; }
.shell-acc b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-acc small, .drawer-acc small { margin: 0; font-size: 11.5px; font-weight: 600; }
.acc-kayitsiz { color: var(--warn); } .acc-ucretsiz { color: var(--brand); } .acc-ekip { color: var(--ok); }
.shell-in { padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.shell .btn.sm.shell-up { height: 40px; border-radius: 12px; background: var(--ink); border-color: var(--ink); }

/* plans */
.plan-list { list-style: none; padding: 0; margin: -28px 0 22px; display: grid; gap: 6px; font-size: 14.5px; color: var(--soft); }
.plan-list li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: var(--s5) 0; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.plan.on { border-color: var(--brand); background: var(--brand-bg); }
.plan h2 { font-size: 18px; margin: 0; } .plan p { margin: 0 0 6px; font-size: 14px; color: var(--soft); }
.plans-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plans-table th, .plans-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.plans-table th { font-weight: 600; width: 34%; } .plans-table td.on { background: var(--brand-bg); font-weight: 600; }

/* ── Panel drawer (from the right, over the wallpaper) ─────── */
body.drawer-mode .shell-foot { display: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 2; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 4; width: min(1180px, calc(100vw - 96px)); display: grid; grid-template-columns: 250px minmax(0, 1fr); background: var(--bg); border-radius: 26px 0 0 26px; overflow: hidden; box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .55); }
.drawer.enter { animation: drawer-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-side { background: var(--card); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.drawer-close { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.drawer-close:hover { color: var(--ink); }
.drawer-acc { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 0 4px; }
.drawer-acc .me { width: 40px; height: 40px; border-radius: 12px; }
.drawer-acc b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-ws { font-size: 12.5px; font-weight: 600; color: var(--soft); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; justify-self: start; align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-links { display: grid; gap: 2px; }
.drawer-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.drawer-links a:hover { background: var(--sunk); color: var(--ink); } .drawer-links a.on { background: var(--brand-bg); color: var(--brand); }
.drawer-cta { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--brand-bg); font-size: 13px; color: var(--soft); }
.drawer-cta b { color: var(--ink); font-size: 14px; } .drawer-cta .btn { justify-self: start; margin-top: 4px; }
.drawer-end { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.drawer-end a, .drawer-end .link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.drawer-main { overflow-y: auto; position: relative; }
.drawer-main .wrap { padding: var(--s6) var(--s6) 96px; max-width: none; }
@media (max-width: 860px) {
  .drawer { width: 100vw; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .drawer-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 8px; }
  .drawer-acc { padding: 4px 0 0; }
  .drawer-links { display: flex; overflow-x: auto; scrollbar-width: none; } .drawer-links a { flex: none; padding: 8px 10px; }
  .drawer-cta, .drawer-ws { display: none; }
  .drawer-end { margin-top: 0; }
  .drawer-main .wrap { padding: var(--s4) var(--s4) 80px; }
  .plans-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .shell-acc { display: none; } a.shell-me { padding-left: 6px; } }

/* ── Account page ──────────────────────────────────────────── */
.acc-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; }
.acc-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.acc-id { display: grid; gap: 2px; min-width: 0; }
.acc-id b { font-size: 20px; letter-spacing: -.02em; }
.acc-id > .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; }
.acc-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.acc-badge.acc-kayitsiz { background: var(--warn-bg); } .acc-badge.acc-ucretsiz { background: var(--brand-bg); } .acc-badge.acc-ekip { background: var(--ok-bg); }
.acc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.acc-grid > .card { margin-bottom: 0; }
.acc-facts { margin: var(--s4) 0 0; display: grid; gap: 0; }
.acc-facts div { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.acc-facts dt { color: var(--muted); } .acc-facts dd { margin: 0; font-weight: 600; text-align: right; }
.acc-methods { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.acc-method { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
.acc-method > svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--sunk); }
.acc-method.on { color: var(--ink); border-color: var(--brand); } .acc-method.on > svg { background: var(--brand-bg); color: var(--brand); }
.acc-method b { display: block; font-size: 14.5px; } .acc-method span { font-size: 13px; }
.acc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.acc-links a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.acc-links a:hover { background: var(--hover); }
.acc-links a > svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--brand-bg); color: var(--brand); }
.acc-links b { display: block; font-size: 14.5px; } .acc-links span { font-size: 12.5px; }

@media (max-width: 1000px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-links, .acc-methods { grid-template-columns: 1fr; }
  .acc-hero { grid-template-columns: 56px minmax(0, 1fr); } .acc-hero .btn { grid-column: 1 / -1; }
}

/* ── Menu v2: one "Yayınla" pill; docks as a left rail while the drawer is open ── */
.shell-top { gap: 10px; }
.shell-send { display: inline-flex; align-items: center; gap: 8px; }
.shell-send svg { display: none; }
.shell-guest .shell-in svg, .shell-guest .shell-up svg { display: none; }
.shell-guest .shell-in, .shell-guest .shell-up { display: inline-flex; align-items: center; gap: 6px; }
a.shell-account { position: fixed; top: 20px; right: 20px; z-index: 7; }
body:not(.drawer-mode) .shell-top { right: 20px; }
body:not(.drawer-mode) a.shell-account ~ * {}
/* signed in: the menu pill sits left of the account pill on the main screen */
body:not(.drawer-mode):has(a.shell-account) .shell-top { right: calc(20px + var(--acc-w, 290px)); }

/* docked rail */
.shell-top.docked { top: 16px; left: 16px; right: auto; bottom: 16px; width: 76px; flex-direction: column; align-items: stretch; gap: 10px; }
.shell-top.docked .shell-pill { flex-direction: column; padding: 8px 6px; gap: 4px; border-radius: 20px; }
.shell-top.docked .shell-logo { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 10px 4px 14px; margin: 0 0 4px; display: grid; place-items: center; }
.shell-top.docked .shell-logo img { height: 15px; }
.shell-top.docked .shell-send, .shell-top.docked .shell-in, .shell-top.docked .shell-up { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 11.5px; width: 100%; justify-content: center; height: auto; border-radius: 12px; }
.shell-top.docked .shell-send svg, .shell-top.docked .shell-in svg, .shell-top.docked .shell-up svg { display: block; }
.shell-top.docked .shell-send.on { background: var(--brand-bg); color: var(--brand); }
.shell-top.docked .shell-guest { margin-top: auto; }
body.dock-enter .shell-top.docked { animation: dock-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dock-in { from { transform: translateX(calc(100vw - 260px)); opacity: .4; } to { transform: none; opacity: 1; } }
body.undock .shell-top { animation: undock .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes undock { from { transform: translateX(calc(-100vw + 360px)); opacity: .4; } to { transform: none; opacity: 1; } }

/* drawer leaves room for the rail; the account pill floats over its top right */
.drawer { width: calc(100vw - 108px); }
body.drawer-mode:has(a.shell-account) .drawer-main .wrap { padding-top: 92px; }
.drawer-bottom { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer-bottom .drawer-end { margin-top: 0; padding: 0 12px; }
.drawer-side { gap: 12px; }

/* plans and legal inside the drawer */
.plans-grid { margin-top: 0; }
.plans .plan { background: var(--card); padding: 24px; border-radius: 20px; gap: 10px; }
.plans .plan.on { background: var(--card); box-shadow: 0 0 0 2px var(--brand); border-color: var(--brand); }
.plans-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; } .plans-table thead th.on { color: var(--brand); }
.legal-ver { margin: 0 0 var(--s4); }
.card.legal { padding: 32px 40px; max-width: 860px; }
.card.legal h2:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .shell-top.docked { top: auto; bottom: 0; left: 0; right: 0; width: auto; flex-direction: row; padding: 8px; background: rgba(240, 241, 242, .92); backdrop-filter: blur(10px); z-index: 9; }
  .shell-top.docked .shell-pill { flex-direction: row; flex: 1; justify-content: space-around; padding: 4px; }
  .shell-top.docked .shell-logo { border: 0; padding: 8px; margin: 0; }
  .shell-top.docked .shell-guest { margin-top: 0; }
  .drawer { width: 100vw; bottom: 68px; }
  body.dock-enter .shell-top.docked { animation: none; }
  a.shell-account { top: 12px; right: 12px; }
  body:not(.drawer-mode):has(a.shell-account) .shell-top { right: auto; left: 12px; }
  body.drawer-mode:has(a.shell-account) .drawer-main .wrap { padding-top: 76px; }
}
@media (prefers-reduced-motion: reduce) { body.dock-enter .shell-top.docked, body.undock .shell-top { animation: none; } }

/* ── AI agents page: roomy, one column of wide sections ─────── */
.ai { max-width: 1080px; margin: 0 auto; padding: 8px 8px 40px; }
.ai h2 { font-size: 26px; letter-spacing: -.025em; margin: 0 0 6px; display: block; }
.ai-sec { margin-top: 72px; }
.ai-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.ai-head p, .ai-sec > p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.ai-sec > h2 { margin-bottom: 24px; }
.ai-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 1px 2px rgba(2, 26, 61, .04); }

.ai-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 48px; align-items: center; padding: 56px; border-radius: 32px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #005bec 0%, #0b3a8c 45%, #021a3d 100%); }
.ai-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #9fc2ff; margin-bottom: 18px; }
.ai-hero h1 { display: block; font-size: 38px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.ai-hero p { font-size: 17px; line-height: 1.6; color: #cbd8ef; margin: 0 0 28px; max-width: 56ch; }
.ai-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ai-hero .btn { height: 48px; padding: 0 22px; font-size: 15px; background: #fff; color: var(--brand); border-color: #fff; }
.ai-hero .btn:hover { background: #e8f0fe; }
.ai-hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ai-hero .btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.ai-facts { margin: 0; display: grid; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 8px 24px; }
.ai-facts div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); } .ai-facts div:last-child { border-bottom: 0; }
.ai-facts dt { font-size: 12.5px; color: #9fb0cc; } .ai-facts dd { margin: 6px 0 0; font-weight: 600; font-size: 15px; }
.ai-facts code.copy { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; font-size: 13px; }

.ai-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; }
.ai-steps span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); font-weight: 800; font-size: 17px; margin-bottom: 22px; }
.ai-steps b { display: block; font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.ai-steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.ai-locked { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px; border-radius: 24px; background: var(--brand-bg); }
.ai-locked p { margin: 0; color: var(--soft); max-width: 60ch; }
.ai-new { margin-bottom: 20px; padding: 20px 24px; border-radius: 20px; background: var(--ok-bg); color: var(--ink); font-size: 15px; display: grid; gap: 12px; }
.ai-keys { margin-bottom: 24px; }
.ai-empty { margin: 0 0 20px; }
.ai-form { display: flex; gap: 12px; }
.ai-form input { flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; font: 15px var(--font); color: var(--ink); background: var(--card); }
.ai-form input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus); }
.ai-form .btn { height: 48px; padding: 0 22px; }

.ai-tabs { margin-bottom: 28px; gap: 8px; }
.ai-tabs button { height: 40px; padding: 0 16px; font-size: 14px; }
.ai-pane { display: grid; gap: 24px; }
.ai-cmd { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; }
.ai-cmd > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font-weight: 700; font-size: 14px; color: var(--soft); }
.ai-cmd p { margin: 4px 0 10px; font-size: 15px; color: var(--soft); }
.ai-cmd code.block { padding: 16px 18px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; }
.ai-note { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--hover); color: var(--muted); font-size: 14px; }

.ai-prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ai-prompt { display: flex !important; align-items: flex-start; gap: 14px; text-align: left; padding: 22px 24px !important; border-radius: 20px !important; border: 1px solid var(--line) !important;
  background: var(--card) !important; font: 15.5px/1.55 var(--font); color: var(--ink); cursor: pointer; }
.ai-prompt:hover { border-color: var(--brand) !important; }
.ai-prompt svg { flex: none; margin-top: 3px; color: var(--brand); }

.ai-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ai-group { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px 12px; }
.ai-group h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 8px; }
.ai-tool { padding: 16px 0; border-top: 1px solid var(--line); }
.ai-group h3 + .ai-tool { border-top: 0; }
.ai-tool-h { display: flex; align-items: center; gap: 10px; }
.ai-tool-h b { font-size: 16px; }
.ai-tool code { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.ai-tool p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); }

.ai-safe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-safe > div { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; }
.ai-safe svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--brand-bg); color: var(--brand); margin-bottom: 18px; }
.ai-safe b { display: block; font-size: 16px; margin-bottom: 6px; }
.ai-safe p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) { .ai-safe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .ai-hero { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; border-radius: 24px; } .ai-hero h1 { font-size: 30px; }
  .ai-steps, .ai-prompts, .ai-groups, .ai-safe { grid-template-columns: 1fr; }
  .ai-sec { margin-top: 48px; } .ai-card { padding: 22px; } .ai-group { padding: 22px 22px 8px; }
  .ai-form { flex-direction: column; } .ai-locked { flex-direction: column; align-items: flex-start; padding: 28px; }
}
.plans-table td { width: 22%; }

.drawer-top { display: flex; justify-content: flex-end; padding: 16px 20px 0; }
.drawer-top a.shell-account { position: static; }
body.drawer-mode:has(a.shell-account) .drawer-main .wrap { padding-top: 8px; }
@media (max-width: 860px) { .drawer-top { padding: 12px 12px 0; } body.drawer-mode:has(a.shell-account) .drawer-main .wrap { padding-top: 8px; } }

/* ── Main menu: Özellikler ▾ · Paketler · Kullanım alanları ▾ · Kaynaklar ▾ (WeTransfer-like dropdowns) ── */
.shell-top:not(.docked) .shell-nav { overflow: visible; position: relative; }
.nav-dd { position: relative; flex: none; }
.nav-dd[data-dd="kaynaklar"] { position: static; }
.nav-dd-btn, .shell-nav a.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; color: var(--soft); font: 600 14.5px var(--font); white-space: nowrap; cursor: pointer; text-decoration: none; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn, .nav-dd-btn.on { background: var(--sunk); color: var(--ink); }
.dd-chev { transition: transform .2s; opacity: .7; } .nav-dd.open .dd-chev { transform: rotate(180deg); }
.nav-burger { display: none; }
.dd-panel { position: absolute; top: calc(100% + 14px); left: -6px; z-index: 12; min-width: 340px; padding: 10px; display: grid; gap: 2px; background: var(--card); border-radius: 20px;
  box-shadow: 0 2px 6px rgba(2, 26, 61, .08), 0 28px 60px -20px rgba(2, 26, 61, .5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* hover bridge */
.nav-dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
@media (hover: hover) { .nav-dd:hover .dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; } .nav-dd:hover .dd-chev { transform: rotate(180deg); } }
.dd-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.shell-nav .dd-item { padding: 10px; font-size: inherit; color: var(--ink); white-space: normal; }
.dd-item:hover, .shell-nav .dd-item:hover { background: var(--hover); }
.dd-item.on { background: var(--brand-bg); }
.dd-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); }
.dd-item b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.dd-item small { display: block; margin: 2px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.shell-nav a.dd-all { margin: 4px 0 0; padding: 12px 10px 6px; border-top: 1px solid var(--line); border-radius: 0; font-size: 13.5px; color: var(--brand); }
.shell-nav a.dd-all:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.dd-mega { left: auto; right: 0; width: min(860px, calc(100vw - 40px)); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 18px; }
.dd-col h4 { margin: 4px 10px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dd-col + .dd-col { border-left: 1px solid var(--line); padding-left: 8px; }
.dd-legal { margin: 10px 10px 0; font-size: 12.5px; color: var(--muted); }
.shell-nav .dd-legal a { display: inline; padding: 0; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.shell-nav .dd-legal a:hover { background: none; color: var(--ink); }
@media (max-width: 1240px) {
  body:has(a.shell-account) .nav-dd[data-dd="ozellikler"], body:has(a.shell-account) .nav-dd[data-dd="kullanim"] { display: none; }
  body:has(a.shell-account) .shell-top:not(.docked) .nav-burger { display: grid; }
}
@media (max-width: 1000px) {
  .nav-dd[data-dd="ozellikler"], .nav-dd[data-dd="kullanim"] { display: none; }
  .shell-top:not(.docked) .nav-burger { display: grid; }
}
@media (max-width: 760px) {
  .nav-dd, .shell-nav a.nav-link { display: none; }
  .shell-top:not(.docked) .shell-nav { overflow-x: auto; }
}

/* ── Public pages (drawer) ─────────────────────────────────── */
.pub .pub-hero { grid-template-columns: minmax(0, 1fr); padding: 64px 56px; }
.pub .pub-hero h1 { font-weight: 400; font-size: 42px; max-width: 22ch; } .pub .pub-hero h1 b { font-weight: 800; }
.pub .pub-hero p { max-width: 62ch; }
.pub .ai-sec { margin-top: 64px; }
.pub .ai-head h2 { margin-bottom: 8px; }
.pub code { font-size: .92em; }
.pub-cards { display: grid; gap: 20px; } .pub-cards.c3 { grid-template-columns: repeat(3, 1fr); } .pub-cards.c2 { grid-template-columns: repeat(2, 1fr); }
.pub-cards > div { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px; }
.pub-cards svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--brand-bg); color: var(--brand); margin-bottom: 18px; }
.pub-cards b { display: block; font-size: 16.5px; letter-spacing: -.01em; margin-bottom: 6px; }
.pub-cards p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.pub-cards a { color: var(--brand); }
.pub-cards + .pub-cards, .card + .pub-cards { margin-top: 20px; }
.pub-ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.pub-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--soft); padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.pub-ticks svg { flex: none; color: var(--ok); margin-top: 2px; }
.pub-ticks.sm { grid-template-columns: 1fr; gap: 10px; }
.pub-ticks.sm li { font-size: 14.5px; padding: 0; background: none; border: 0; border-radius: 0; }
.pub-ticks.sm svg { color: var(--brand); }
.pub-ticks a { color: var(--ink); text-underline-offset: 3px; }
.pub-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pub-links .dd-item, .pub-index .dd-item { background: var(--card); border: 1px solid var(--line); padding: 14px; border-radius: 18px; }
.pub-links .dd-item:hover, .pub-index .dd-item:hover { border-color: var(--brand); background: var(--card); }
.pub .ai-locked h2 { font-size: 22px; margin: 0 0 6px; }
.pub-table th { width: 38%; font-weight: 600; } .pub-table td { width: auto !important; color: var(--soft); }
.pub-table tr:last-child th, .pub-table tr:last-child td { border-bottom: 0; }
.pub-table a { color: var(--brand); }
.pub-facts dl { margin: 0; } .pub-facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pub-facts div:last-child { border-bottom: 0; } .pub-facts dt { color: var(--muted); } .pub-facts dd { margin: 0; font-weight: 600; } .pub-facts a { color: var(--brand); }
.pub-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; max-width: 1180px; }
.pub-index section { display: grid; gap: 8px; align-content: start; }
.pub-index h3, .pub-faq h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 4px; }
.pub-faq { display: grid; gap: 36px; max-width: 860px; }
.pub-faq section { display: grid; gap: 10px; }
.pub-faq details { margin: 0; padding: 0; border-radius: 18px; }
.pub-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.pub-faq details[open] summary::after { content: "–"; }
.pub-faq details p { margin: 0; padding: 0 22px 20px; color: var(--soft); font-size: 15px; line-height: 1.65; }
.pub-faq details a { color: var(--brand); }

/* contact / abuse forms */
.pub-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; max-width: 1080px; margin: 0 auto; padding: 24px 8px 40px; align-items: start; }
.pub-form-side h1 { display: block; font-size: 38px; font-weight: 400; letter-spacing: -.03em; line-height: 1.12; margin: 8px 0 18px; } .pub-form-side h1 b { font-weight: 800; }
.pub-form-side > p { color: var(--soft); font-size: 16px; line-height: 1.65; margin: 0 0 28px; } .pub-form-side a { color: var(--ink); text-underline-offset: 3px; }
.pub-form-card { padding: 32px; border-radius: 24px; margin: 0; }
.pub-form-card .form { display: grid; gap: 16px; }
.pub-form-card textarea { min-height: 160px; }
.pub-form-card .btn { height: 48px; padding: 0 28px; justify-self: start; }
.pub-form-card label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.pub-sent { display: grid; justify-items: start; gap: 10px; padding: 12px 0; }
.pub-sent > svg { width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: var(--ok-bg); color: var(--ok); }
.pub-sent h2 { font-size: 24px; margin: 8px 0 0; } .pub-sent p { margin: 0 0 12px; color: var(--soft); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: 13px; } .small a { color: var(--muted); }

/* drawer: group headings for visitors */
.drawer-h { display: block; padding: 12px 12px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drawer-end a.on { color: var(--brand); }
@media (max-width: 860px) { .drawer-h { display: none; } }


@media (max-width: 1100px) { .pub-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .pub .pub-hero { padding: 36px 24px; } .pub .pub-hero h1 { font-size: 30px; }
  .pub-cards.c3, .pub-cards.c2, .pub-ticks, .pub-links { grid-template-columns: 1fr; }
  .pub-form { grid-template-columns: 1fr; gap: 24px; padding: 8px 0 24px; } .pub-form-side h1 { font-size: 30px; }
  .pub-form-card { padding: 22px; } .pub-facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ── Fixes: plan tables keep four equal-ish columns; the rail's guest buttons look like rail items ── */
.plans-table { table-layout: fixed; }
.plans-table tr > :first-child { width: 31%; }
.plans-table tr > :not(:first-child) { width: 23%; }
.plans-table th, .plans-table td { padding: 14px 16px; vertical-align: top; }
.plans-table.pub-table tr > :first-child { width: 36%; }
.plans-table.pub-table tr > :not(:first-child) { width: auto; }
@media (max-width: 700px) {
  .plans-table { font-size: 13px; } .plans-table th, .plans-table td { padding: 12px 8px; }
  .plans-table tr > :first-child { width: 34%; } .plans-table tr > :not(:first-child) { width: 22%; }
  .plans-table.pub-table, .plans-table.pub-table tbody, .plans-table.pub-table tr, .plans-table.pub-table th, .plans-table.pub-table td { display: block; width: auto !important; }
  .plans-table.pub-table th { border-bottom: 0; padding-bottom: 2px; } .plans-table.pub-table td { padding-top: 0; }
}
body.shell .shell-top.docked .shell-guest { padding: 8px 6px; gap: 4px; }
body.shell .shell-top.docked .shell-guest .shell-in, body.shell .shell-top.docked .shell-guest .shell-up {
  height: auto; min-height: 0; padding: 10px 4px; border: 0; border-radius: 12px; font: 600 11.5px/1.2 var(--font); color: var(--soft); background: none; box-shadow: none; }
body.shell .shell-top.docked .shell-guest .shell-in:hover { background: var(--sunk); color: var(--ink); }
body.shell .shell-top.docked .shell-guest .shell-up { background: var(--brand-bg); color: var(--brand); }
body.shell .shell-top.docked .shell-guest .shell-up:hover { background: #dbe7fd; }
body.shell .shell-top.docked .shell-guest svg { width: 18px; height: 18px; }
@media (max-width: 860px) { body.shell .shell-top.docked .shell-guest { flex: none; } body.shell .shell-top.docked .shell-guest .shell-in, body.shell .shell-top.docked .shell-guest .shell-up { width: 64px; } }

/* ── Legal texts: a readable column with a contents list beside it, centred in the drawer ── */
.legal-page { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: 56px; justify-content: center; padding: 8px 0 40px; }
.legal-toc { position: sticky; top: 24px; align-self: start; display: grid; gap: 2px; padding-top: 6px; }
.legal-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px 12px; }
.legal-toc a { padding: 7px 12px; border-radius: 10px; font-size: 14px; color: var(--soft); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover { background: var(--sunk); color: var(--ink); }
.legal-toc .legal-other { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.legal-main h1 { display: block; font-size: 36px; letter-spacing: -.03em; margin: 0 0 6px; }
.legal-main .legal-sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.legal-main .legal-ver { margin: 0 0 20px; }
.legal-main .card.legal { max-width: none; padding: 40px 48px; margin: 0; }
.card.legal h2 { scroll-margin-top: 24px; font-size: 18px; margin: 34px 0 10px; }
.card.legal p, .card.legal li { font-size: 15.5px; line-height: 1.75; }
.card.legal a { color: var(--brand); }
@media (max-width: 1100px) { .legal-page { grid-template-columns: minmax(0, 780px); } .legal-toc { display: none; } }
@media (max-width: 700px) { .legal-main .card.legal { padding: 24px 20px; } .legal-main h1 { font-size: 28px; } }

/* ── Brand (white label) settings ──────────────────────────── */
.bset .page-head { margin-bottom: 28px; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 24px; align-items: start; }
.brand-card { margin: 0; padding: 28px; border-radius: 24px; display: grid; gap: 16px; }
.brand-card h2 { font-size: 18px; margin: 0; }
.brand-card .btn { justify-self: start; }
.brand-card input[type="color"] { height: 46px; padding: 4px; width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; }
.brand-logo { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--hover); }
.brand-logo img { max-height: 44px; max-width: 220px; }
.brand-x { font-size: 13.5px; color: var(--bad); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.brand-preview { position: sticky; top: 24px; }
.brand-pv-k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.brand-pv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e3e6ea; border-radius: 16px 16px 0 0; }
.brand-pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6cbd3; }
.brand-pv-bar span { margin-left: 10px; flex: 1; padding: 4px 12px; border-radius: 8px; background: #fff; font: 12.5px var(--mono); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-pv { background: #f0f1f2; border-radius: 0 0 16px 16px; padding: 32px 28px; border: 1px solid #e3e6ea; border-top: 0; }
.brand-pv img { display: block; max-height: 36px; max-width: 180px; margin-bottom: 26px; }
.brand-pv-name { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 26px; }
.brand-pv h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 6px; }
.brand-pv p { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.brand-pv-f { display: grid; gap: 8px; padding: 16px; background: #fff; border-radius: 12px; border: 1px solid #e3e6ea; }
.brand-pv-f span { height: 34px; border: 1px solid #e3e6ea; border-radius: 8px; padding: 0 10px; display: flex; align-items: center; font-size: 12.5px; color: var(--muted); }
.brand-pv-f em { height: 36px; border-radius: 999px; background: var(--bc); color: #fff; display: grid; place-items: center; font: 600 13px var(--font); font-style: normal; margin-top: 4px; }
.brand-dom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; }
.brand-dom form { margin-left: auto; }
.brand-dns { margin: 4px 0; } .brand-dns code { font-size: 13px; word-break: break-all; }
.brand-card > p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.6; }
.brand-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brand-mode { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; align-items: start; }
.brand-mode:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }
.brand-mode input { margin-top: 3px; } .brand-mode b { display: block; font-size: 14.5px; } .brand-mode small { display: block; margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; }
.brand-card [data-for][hidden] { display: none; }
@media (max-width: 1000px) { .brand-grid, .brand-modes { grid-template-columns: 1fr; } .brand-preview { position: static; } }

/* Logo picker and colour picker (our own controls instead of the browser's) */
.f-l { font-size: 13px; font-weight: 600; color: var(--ink); }
.logo-pick { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--hover); cursor: pointer; transition: border-color .15s, background .15s; }
.logo-pick:hover, .logo-pick.over { border-color: var(--brand); background: var(--brand-bg); }
.logo-pick:focus-within { box-shadow: var(--focus); }
.logo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.logo-pick-box { width: 88px; height: 64px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); overflow: hidden; }
.logo-pick-box img { max-width: 76px; max-height: 52px; object-fit: contain; }
.logo-pick-t b { display: block; font-size: 14.5px; } .logo-pick-t small { display: block; margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.logo-pick.has { border-style: solid; border-color: var(--line); background: var(--card); }
.logo-pick.bad { border-color: var(--bad); background: var(--bad-bg); }
.logo-rm { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--bad); cursor: pointer; justify-self: start; }
.logo-rm input { width: 16px; height: 16px; accent-color: var(--bad); }
.color-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-pick .sw { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(2, 26, 61, .12); transition: transform .12s; }
.color-pick .sw:hover { transform: scale(1.08); }
.color-pick .sw.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--c); }
.color-pick .sw-own { background: conic-gradient(#f03e3e, #f59f00, #fab005, #40c057, #15aabf, #4c6ef5, #ae3ec9, #f03e3e); display: grid; place-items: center; }
.color-pick .sw-own::after { content: "+"; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--ink); font: 700 14px/18px var(--font); text-align: center; }
.color-pick .sw-own input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-pick .hex { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-left: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.color-pick .hex:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.color-pick .hex i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(2, 26, 61, .15); }
.f .color-pick .hex input { width: 78px; min-width: 0; flex: none; border-radius: 0; background: none !important; border: 0 !important; outline: 0; background: none; font: 600 14px var(--mono); color: var(--ink); text-transform: uppercase; padding: 0; height: auto; box-shadow: none !important; }
.brand-card .f > small { margin: 6px 0 0; }
.brand-preview { --bc: var(--brand); } .color-pick .sw-own { --c: var(--ink); }
.color-pick .hex i { flex: none; display: block; min-width: 16px; }

/* ── Hamburger + menu sheet with search (phone, narrow screens) ── */
.nav-burger { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--sunk); place-content: center; gap: 4px; cursor: pointer; margin-left: 2px; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.nav-burger:hover { background: var(--line); }
.shell-top.docked .dock-burger { display: none; }
@media (max-width: 860px) { .shell-top.docked .dock-burger { display: grid; width: 44px; height: 44px; } }
.msheet { position: fixed; inset: 0; z-index: 60; background: var(--card); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 24px; }
.msheet[hidden] { display: none; }
.msheet-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--card); }
.msheet-logo img { height: 20px; width: auto; display: block; }
.msheet-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--sunk); font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.msheet-search { position: sticky; top: 72px; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0 16px 8px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--sunk); color: var(--muted); }
.msheet-search:focus-within { box-shadow: var(--focus); background: var(--card); }
.msheet-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 16px var(--font); color: var(--ink); -webkit-appearance: none; appearance: none; }
.msheet-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.msheet-groups, .msheet-res { padding: 4px 16px; display: grid; gap: 22px; }
.msheet-res { gap: 2px; }
.msheet h4 { margin: 8px 4px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.msheet section { display: grid; gap: 2px; }
.msheet-groups a, .msheet-res a { display: block; padding: 11px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.msheet-groups a:hover, .msheet-res a:hover, .msheet-res a.on { background: var(--hover); }
.msheet a b { display: block; font-size: 15.5px; } .msheet a small { display: block; margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.msheet-res a i { float: right; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.msheet-res mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.msheet-none { padding: 18px 12px; color: var(--muted); font-size: 14.5px; } .msheet-none a { color: var(--brand); }
.msheet-foot { margin-top: auto; padding: 22px 16px 0; display: grid; gap: 10px; }
.msheet-foot p { margin: 6px 0 0; text-align: center; font-size: 13px; } .msheet-foot p a { color: var(--muted); }
.shell .msheet .btn.block { height: 50px; border-radius: 14px; }
body.msheet-on { overflow: hidden; }
@media (min-width: 761px) { .msheet { inset: 16px 16px 16px auto; width: 420px; border-radius: 24px; box-shadow: 0 30px 80px -30px rgba(2, 26, 61, .6); } }
.msheet > * { flex: none; } .msheet > .msheet-foot { flex: 1 0 auto; align-content: end; }
.msheet-foot .btn { width: 100%; }

/* ── Phone header: one bar (logo · Giriş yap · ☰); signed in: bar + avatar. "Yayınla" is this screen, "Kayıt ol" is in the menu ── */
@media (max-width: 760px) {
  body:not(.drawer-mode) .shell-top { top: 10px; left: 12px; right: 12px; max-width: none; gap: 2px; padding: 6px; align-items: center; background: rgba(255, 255, 255, .96); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(2, 26, 61, .06), 0 12px 32px -14px rgba(2, 26, 61, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  body:not(.drawer-mode) .shell-top .shell-pill { display: contents; }
  body:not(.drawer-mode) .shell-top .shell-logo { order: 1; margin-right: auto; padding: 10px 10px 10px 8px; border-right: 0; }
  body:not(.drawer-mode) .shell-top .shell-logo img { height: 22px; }
  body:not(.drawer-mode) .shell-top .shell-send, body:not(.drawer-mode) .shell-top .shell-up { display: none; }
  body:not(.drawer-mode) .shell-top .shell-in { order: 2; padding: 11px 14px; border-radius: 12px; font-size: 15px; }
  body:not(.drawer-mode) .shell-top .shell-in:hover { background: var(--sunk); }
  body:not(.drawer-mode) .shell-top .nav-burger { order: 3; display: grid; margin-left: 0; }
  body:not(.drawer-mode):has(a.shell-account) .shell-top { left: 12px; right: 76px; }
  body:not(.drawer-mode) a.shell-account { top: 10px; right: 12px; padding: 6px; border-radius: 18px; }
  body:not(.drawer-mode) a.shell-account .me { width: 44px; height: 44px; }
  .shell-main { padding-top: 84px; padding-bottom: 16px; min-height: 0; }
  .shell-foot { position: static; padding: 0 12px 18px; }
}

/* menu sheet: account buttons side by side, full width; phone dock: Yayınla shares the bar with the hamburger */
.msheet-foot { grid-template-columns: 1fr 1fr; }
.msheet-foot .btn:only-of-type { grid-column: 1 / -1; }
.msheet-foot p { grid-column: 1 / -1; }
.shell .msheet-foot .btn.block { width: 100%; height: 52px; }
@media (max-width: 860px) {
  .shell-top.docked .shell-send { width: auto; flex: 1; }
  .shell-top.docked .shell-guest .shell-in, .shell-top.docked .shell-guest .shell-up { width: auto; }
}

/* ── Phone app layout: bottom tab bar + top app bar (panel), no "Paneli kapat", no scrolling menu rows ── */
.m-tabs, .m-appbar { display: none; }
@media (max-width: 860px) {
  .m-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -10px 30px -18px rgba(2, 26, 61, .35); }
  .m-tabs > a, .m-tabs > button { display: grid; justify-items: center; gap: 3px; padding: 6px 0 2px; border: 0; background: none; color: var(--muted); font: 600 11px/1.2 var(--font); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .m-tabs .m-ic { width: 40px; height: 30px; border-radius: 12px; display: grid; place-items: center; transition: background .15s; }
  .m-tabs .on { color: var(--brand); } .m-tabs .on .m-ic { background: var(--brand-bg); }
  .m-tabs .m-go .m-ic { width: 52px; height: 52px; margin-top: -24px; border-radius: 18px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 91, 236, .7); }
  .m-tabs .m-go.on { color: var(--brand); } .m-tabs .m-go.on .m-ic { background: var(--brand); }
  /* panel pages */
  body.drawer-mode .shell-top.docked { display: none; }
  body.drawer-mode .drawer { bottom: calc(62px + env(safe-area-inset-bottom)); top: 0; border-radius: 0; animation: none; }
  body.drawer-mode .drawer-side, body.drawer-mode .drawer-top { display: none; }
  .m-appbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 6; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(240, 241, 242, .94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .m-logo img { height: 16px; width: auto; display: block; }
  .m-title { flex: 1; min-width: 0; font-size: 15px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-me .me { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
  .m-in { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
  body.drawer-mode .drawer-main .wrap { padding: 18px 14px 28px; }
  body.drawer-mode .page-head { margin-bottom: 16px; } body.drawer-mode .page-head h1 { font-size: 24px; }
  body.drawer-mode .toast { bottom: calc(76px + env(safe-area-inset-bottom)); top: auto; }
  /* main screen, signed in: the tab bar replaces the hamburger */
  body:not(.drawer-mode):has(.m-tabs.in) .shell-top .nav-burger { display: none; }
  body:has(.m-tabs.in):not(.drawer-mode) .shell-main { padding-bottom: 24px; }
  body:has(.m-tabs.in):not(.drawer-mode) .shell-foot { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .msheet { bottom: 0; z-index: 70; }
}
.msheet-acc { grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--sunk); }
.msheet-acc .me { width: 40px; height: 40px; border-radius: 12px; }
.msheet-acc b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .msheet-acc small { margin: 0; font-size: 12px; font-weight: 600; }
.msheet-acc .inline-btn { margin: 0; }
@media (max-width: 860px) { .m-title { transition: opacity .2s; } .m-title.away { opacity: 0; } }
/* phone, signed in, main screen: the tab bar holds the menu, so the top bar is just the logo (and the avatar on the right) */
@media (max-width: 760px) {
  body:not(.drawer-mode):has(.m-tabs.in) .shell-top { right: auto; padding: 6px 8px; }
  body:not(.drawer-mode):has(.m-tabs.in) .shell-top .shell-logo { margin-right: 0; padding: 13px 14px; }
}
@media (max-width: 900px) { .ai-form input { flex: none; width: 100%; } .ai-form .btn { width: 100%; justify-content: center; } }
/* commands are copied whole: keep them on their own lines and scroll sideways instead of breaking words */
.ai-cmd code.block { white-space: pre; overflow-x: auto; word-break: normal; overflow-wrap: normal; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) { .ai-safe > div { padding: 20px; } .ai-safe svg { margin-bottom: 12px; } }
