/* eBay web paneli kabuğu. eBay ekranının kendi stili ui/ebay.js içinden gelir; burada yalnız sayfa iskeleti,
   giriş formu ve "Uygulama" teması için temel renk değişkenleri var. */
:root {
  --bg: #f4f6fa; --bg-card: #ffffff; --bg-elevated: #eef1f6; --bg-hover: #e6eaf1; --border: #dde2ea;
  --text: #1f2937; --text-bright: #0f172a; --text-sec: #475569; --text-muted: #64748b; --primary: #f26b1d;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1424; --bg-card: #171d33; --bg-elevated: #1f2742; --bg-hover: #283052; --border: #2c3557;
    --text: #d5dbee; --text-bright: #ffffff; --text-sec: #a9b3d1; --text-muted: #8791b3; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #1a2038; color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; display: flex; flex-direction: column; overflow: hidden; }
[hidden] { display: none !important; }
#shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.page { display: none; flex: 1; min-height: 0; }
.page.active { display: flex; flex-direction: column; }
#ypEbayPage > .yb { flex: 1; min-height: 0; }

.w-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 7px 18px; background: #141a2f; color: #c9d1ea; border-bottom: 1px solid #2a3355; font-size: 12.5px; }
.w-sp { flex: 1; }
.w-who { color: #8f9ac0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.w-link { background: none; border: 0; padding: 4px 2px; color: #c9d1ea; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.w-link:hover { color: #fff; text-decoration: underline; }
.w-link:focus-visible, .w-btn:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }
.w-chip { padding: 2px 9px; border-radius: 99px; background: #26305a; color: #c9d1ea; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.w-chip.warn { background: rgba(245, 158, 11, .18); color: #fbbf24; }
.w-chip.bad { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.w-brand { display: flex; align-items: center; gap: 10px; }
.w-brand b { color: #fff; font-size: 16px; }
.w-brand small { display: block; color: #8f9ac0; font-size: 12px; }
.w-brand.sm b { font-size: 13.5px; }
.w-mk { width: 34px; height: 34px; border-radius: 10px; background: #f26b1d; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.w-brand.sm .w-mk { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }

.w-login { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 0; overflow: auto; }
.w-side { background: linear-gradient(160deg, #141a2f 0%, #1d2a55 60%, #24407a 100%); padding: 56px clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.w-side h1 { margin: 10px 0 0; color: #fff; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.02em; max-width: 14em; }
.w-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: #c9d1ea; font-size: 15px; }
.w-side li { padding-left: 26px; position: relative; }
.w-side li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid #f26b1d; border-bottom: 2.5px solid #f26b1d; transform: rotate(-45deg); }
.w-login form { align-self: center; justify-self: center; width: 100%; max-width: 400px; margin: 32px 24px; background: #232b4b; border: 1px solid #303a63; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.w-login h2 { margin: 0; color: #fff; font-size: 22px; }
.w-login label { display: flex; flex-direction: column; gap: 5px; color: #a9b3d1; font-size: 12.5px; }
.w-login input { padding: 11px 12px; border-radius: 10px; border: 1px solid #3a4573; background: #171d33; color: #fff; font: inherit; font-size: 15px; }
.w-login input:focus { outline: none; border-color: #5b9dff; box-shadow: 0 0 0 3px rgba(91, 157, 255, .25); }
.w-fine { margin: 0; color: #8f9ac0; font-size: 12px; }
.w-fine a { color: #c9d1ea; }
.w-link2 { background: none; border: 0; padding: 0; color: #c9d1ea; font: inherit; text-decoration: underline; cursor: pointer; }
.w-link2:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }
#wByKey, #wByPw { display: flex; flex-direction: column; gap: 14px; }
.w-login input[name=licenseKey] { letter-spacing: .04em; text-transform: uppercase; }
.w-only-sm { display: none; }
@media (max-width: 820px) { .w-login { grid-template-columns: 1fr; } .w-side { display: none; } .w-only-sm { display: flex; } .w-login form { margin: 20px 16px; padding: 24px; } }
.w-mut { margin: 0; color: #a9b3d1; font-size: 13px; }
.w-mut b { color: #e7eaf6; }
.w-err { color: #fca5a5; font-size: 13px; min-height: 18px; }
.w-btn { padding: 11px 14px; border-radius: 10px; border: 0; background: #3b82f6; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.w-btn:disabled { opacity: .6; cursor: default; }
.w-load { position: fixed; inset: 0; display: grid; place-items: center; color: #a9b3d1; background: #1a2038; z-index: 5; }
.w-toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 1000; pointer-events: none; }
.w-toast { background: #0b1020; color: #fff; border: 1px solid #33406e; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: min(92vw, 560px); }
@media (max-width: 640px) { .w-bar { padding: 6px 12px; gap: 9px; } .w-who { display: none; } }
