/* Shared styles for the standalone customer pages: /hesabim and /sifaris-izle.
   Same tokens, fonts and look as index.html (white, ink-black buttons,
   Space Grotesk headings) plus the site's night mode. */
:root{
  --bg:#ffffff; --bg-2:#f7f6fb; --surface:#f6f5fa; --surface-2:#eeecf7;
  --border:rgba(150,153,163,.25); --border-soft:rgba(150,153,163,.14);
  --text:#15141c; --text-dim:#5a5870; --text-dimmer:#9997ab;
  --ink:#15141c; --on-ink:#ffffff; --gold:#e0a930; --success:#1a7a34; --success-bg:#e8f8ec;
  --warn:#9a6b00; --warn-bg:#fff4de; --danger:#b42318; --danger-bg:#fdecea;
  --radius-xl:28px; --radius-lg:22px; --radius-md:16px; --radius-sm:12px;
  --shadow:0 24px 60px -28px rgba(21,20,28,.28), 0 2px 6px rgba(21,20,28,.04);
  --font-display:'Space Grotesk',sans-serif; --font-brand:'Rajdhani',sans-serif; --font-body:'Inter',sans-serif;
}
html.night{
  --bg:#050b16; --bg-2:#081322; --surface:#0d1626; --surface-2:#121f33;
  --border:rgba(145,201,255,.22); --border-soft:rgba(145,201,255,.12);
  --text:#edf6ff; --text-dim:#bcd1eb; --text-dimmer:#7d8fb0;
  --ink:#edf6ff; --on-ink:#04121d; --gold:#f7d58a; --success:#5fd583; --success-bg:rgba(95,213,131,.13);
  --warn:#ffc44a; --warn-bg:rgba(255,196,74,.14); --danger:#ff8a80; --danger-bg:rgba(255,138,128,.13);
  --shadow:0 24px 60px -24px rgba(0,0,0,.7);
}
*{box-sizing:border-box;}
html,body{margin:0;}
html, body, a, button, input, select, textarea, label{-webkit-tap-highlight-color:transparent;}
body{background:var(--bg); color:var(--text); font:15px/1.5 var(--font-body); min-height:100vh; -webkit-font-smoothing:antialiased;}
html.night body{background:radial-gradient(1100px 520px at 10% -15%, rgba(94,135,255,.22), transparent 50%), radial-gradient(900px 460px at 90% 0%, rgba(148,111,255,.18), transparent 45%), linear-gradient(180deg,#040912,#090d17);}
a{color:inherit;}
img{max-width:100%; display:block;}
[hidden]{display:none !important;}
button,input{font:inherit; color:inherit;}

/* ---------- Top bar ---------- */
.hb-top{position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter:saturate(1.4) blur(16px); -webkit-backdrop-filter:saturate(1.4) blur(16px); border-bottom:1px solid var(--border-soft);}
.hb-top-in{max-width:1180px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; gap:16px;}
.hb-brand{display:flex; align-items:center; gap:10px; text-decoration:none; font:700 22px var(--font-brand); letter-spacing:.06em; min-width:0;}
.hb-brand img{height:38px; width:auto;}
.hb-nav{margin-left:auto; display:flex; align-items:center; gap:6px;}
.hb-link{display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 14px; border-radius:999px; text-decoration:none; font:600 13px var(--font-body); color:var(--text-dim); border:1px solid transparent; transition:.15s;}
.hb-link:hover{color:var(--text); background:var(--surface);}
.hb-link.active{color:var(--text); border-color:var(--border); background:var(--bg);}
.hb-link svg,.hb-icon svg{width:18px; height:18px;}
.hb-icon{width:40px; height:40px; border-radius:50%; border:1px solid var(--border); background:var(--bg); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text); text-decoration:none; transition:.15s;}
.hb-icon:hover{background:var(--surface);}

/* ---------- Layout ---------- */
.hb-main{max-width:1180px; margin:0 auto; padding:34px 24px 80px;}
.hb-eyebrow{font:600 11px var(--font-body); letter-spacing:.16em; text-transform:uppercase; color:var(--text-dimmer); margin-bottom:8px;}
.hb-title{font:700 clamp(28px,4vw,40px)/1.1 var(--font-display); letter-spacing:-.02em; margin:0 0 8px;}
.hb-sub{color:var(--text-dim); margin:0; max-width:560px;}
.hb-card{background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow);}
html.night .hb-card{background:color-mix(in srgb, var(--surface) 80%, transparent);}
.hb-card h2{font:700 18px var(--font-display); margin:0 0 4px;}
.hb-card .hb-card-sub{color:var(--text-dim); font-size:13px; margin:0 0 18px;}

/* ---------- Forms & buttons ---------- */
.hb-field{display:block; margin-bottom:12px;}
.hb-field span{display:block; font:600 12px var(--font-body); color:var(--text-dim); margin:0 0 6px 2px;}
.hb-input{width:100%; height:50px; padding:0 16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-2); outline:none; font-size:15px; transition:border-color .15s, background .15s, box-shadow .15s;}
html.night .hb-input{background:rgba(255,255,255,.03);}
.hb-input:focus{border-color:var(--text); background:var(--bg); box-shadow:0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent);}
.hb-pass{position:relative;}
.hb-pass .hb-input{padding-right:52px;}
.hb-eye{position:absolute; right:6px; top:6px; width:38px; height:38px; border:0; background:transparent; border-radius:10px; cursor:pointer; color:var(--text-dimmer); display:flex; align-items:center; justify-content:center;}
.hb-eye svg{width:18px; height:18px;}
.hb-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; height:50px; padding:0 22px; border-radius:var(--radius-sm); border:1px solid transparent; font:700 14px var(--font-body); cursor:pointer; text-decoration:none; transition:transform .12s, opacity .15s, background .15s;}
.hb-btn:active{transform:scale(.98);}
.hb-btn:disabled{opacity:.55; cursor:wait;}
.hb-btn-ink{background:var(--ink); color:var(--on-ink);}
.hb-btn-ink:hover{opacity:.9;}
.hb-btn-ghost{background:var(--bg); color:var(--text); border-color:var(--border);}
.hb-btn-ghost:hover{background:var(--surface);}
.hb-btn-block{width:100%;}
.hb-btn-sm{height:38px; padding:0 14px; font-size:12.5px; border-radius:10px;}
.hb-linkbtn{background:none; border:0; padding:0; cursor:pointer; font:600 13px var(--font-body); color:var(--text-dim); text-decoration:underline; text-underline-offset:3px;}
.hb-linkbtn:hover{color:var(--text);}
.hb-msg{display:none; margin-top:12px; padding:12px 14px; border-radius:var(--radius-sm); font-size:13px; line-height:1.45; background:var(--surface); color:var(--text-dim);}
.hb-msg.show{display:block;}
.hb-msg.ok{background:var(--success-bg); color:var(--success);}
.hb-msg.err{background:var(--danger-bg); color:var(--danger);}

/* ---------- Status ---------- */
.hb-badge{display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:999px; font:700 11.5px var(--font-body); background:var(--warn-bg); color:var(--warn); white-space:nowrap;}
.hb-badge::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor;}
.hb-badge.done{background:var(--success-bg); color:var(--success);}
.hb-badge.ship{background:color-mix(in srgb, #2f6bff 12%, transparent); color:#2f5fd8;}
html.night .hb-badge.ship{color:#8fb4ff;}
.hb-badge.fail{background:var(--danger-bg); color:var(--danger);}

.hb-steps{display:grid; grid-template-columns:repeat(5,1fr); position:relative; margin:22px 0 6px;}
.hb-step{position:relative; text-align:center; padding-top:46px; font:600 12px var(--font-body); color:var(--text-dimmer);}
.hb-step::before{content:""; position:absolute; top:19px; left:-50%; right:50%; height:3px; background:var(--border); border-radius:3px;}
.hb-step:first-child::before{display:none;}
.hb-step .dot{position:absolute; top:0; left:50%; transform:translateX(-50%); width:40px; height:40px; border-radius:50%; border:2px solid var(--border); background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:1; transition:.2s;}
.hb-step .dot svg{width:18px; height:18px;}
.hb-step.done{color:var(--text);}
.hb-step.done::before{background:var(--ink);}
.hb-step.done .dot{background:var(--ink); border-color:var(--ink); color:var(--on-ink);}
.hb-step.current .dot{box-shadow:0 0 0 6px color-mix(in srgb, var(--ink) 12%, transparent);}
.hb-mini-steps{display:flex; gap:4px; margin-top:12px;}
.hb-mini-steps i{flex:1; height:4px; border-radius:4px; background:var(--border);}
.hb-mini-steps i.on{background:var(--ink);}

/* ---------- Items ---------- */
.hb-item{display:flex; align-items:center; gap:14px; padding:12px 0; border-top:1px solid var(--border-soft);}
.hb-item:first-child{border-top:0;}
.hb-thumb{flex:0 0 auto; width:58px; height:58px; border-radius:14px; background:#fff; border:1px solid var(--border-soft); overflow:hidden; display:flex; align-items:center; justify-content:center;}
.hb-thumb img{width:100%; height:100%; object-fit:contain;}
.hb-thumb.ph{background:var(--surface); color:var(--text-dimmer); font-size:20px;}
.hb-item-name{font:600 14px/1.35 var(--font-body); text-decoration:none;}
.hb-item-name:hover{text-decoration:underline;}
.hb-item-meta{color:var(--text-dimmer); font-size:12.5px; margin-top:2px;}
.hb-item-price{margin-left:auto; font:700 14px var(--font-display); white-space:nowrap;}
.hb-thumbs{display:flex; align-items:center;}
.hb-thumbs .hb-thumb{width:46px; height:46px; border-radius:12px; margin-left:-10px; box-shadow:0 0 0 3px var(--bg);}
.hb-thumbs .hb-thumb:first-child{margin-left:0;}
.hb-more{font:700 12px var(--font-body); color:var(--text-dim); margin-left:8px;}

.hb-row{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; font-size:14px;}
.hb-row + .hb-row{border-top:1px dashed var(--border);}
.hb-row .l{color:var(--text-dim);}
.hb-row .r{font-weight:600; text-align:right;}
.hb-total .r{font:700 20px var(--font-display);}

.hb-empty{padding:34px 20px; text-align:center; color:var(--text-dim); border:1px dashed var(--border); border-radius:var(--radius-md); background:var(--bg-2);}
.hb-empty .ic{width:54px; height:54px; margin:0 auto 12px; border-radius:16px; background:var(--surface); display:flex; align-items:center; justify-content:center; color:var(--text-dimmer);}
.hb-empty .ic svg{width:24px; height:24px;}
.hb-skel{height:16px; border-radius:8px; background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%); background-size:200% 100%; animation:hbsk 1.2s infinite;}
@keyframes hbsk{to{background-position:-200% 0;}}

/* ---------- Help strip ---------- */
.hb-help{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px;}
.hb-help a,.hb-help div{display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius-md); text-decoration:none; background:var(--bg);}
html.night .hb-help a, html.night .hb-help div{background:transparent;}
.hb-help .ic{width:38px; height:38px; flex:0 0 auto; border-radius:12px; background:var(--surface); display:flex; align-items:center; justify-content:center;}
.hb-help .ic svg{width:18px; height:18px;}
.hb-help b{display:block; font-size:13px;}
.hb-help small{color:var(--text-dim); font-size:12px;}

.hb-foot{max-width:1180px; margin:0 auto; padding:0 24px 40px; color:var(--text-dimmer); font-size:12px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;}

@media (max-width:760px){
  .hb-top-in{padding:10px 16px; gap:8px;}
  .hb-brand img{height:32px;}
  .hb-link .lbl{display:none;}
  .hb-link{width:40px; padding:0; justify-content:center; border-color:var(--border);}
  .hb-main{padding:22px 16px 60px;}
  .hb-card{padding:18px; border-radius:var(--radius-md);}
  .hb-step{font-size:10.5px; padding-top:40px;}
  .hb-step .dot{width:32px; height:32px;}
  .hb-step::before{top:15px;}
  .hb-step .dot svg{width:15px; height:15px;}
  .hb-help{grid-template-columns:1fr;}
  .hb-input{font-size:16px;}
}
.hb-btn{white-space:nowrap;}
.hb-btn svg{width:16px; height:16px; flex:0 0 auto;}
/* language picker (wired by /i18n.js) */
.lang-switch{height:40px; padding:0 24px 0 12px; border-radius:999px; border:1px solid var(--border); background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 9px center; color:var(--text); font:700 12px var(--font-body); letter-spacing:.04em; cursor:pointer; -webkit-appearance:none; appearance:none;}
@media (max-width:760px){ .lang-switch{height:40px; padding:0 18px 0 8px; background-position:right 6px center;} }
@media (max-width:760px){
  .hb-nav{gap:4px;}
  .hb-nav .hb-link[href="/"]{display:none;}
  .hb-brand{font-size:19px;}
  .hb-brand img{height:28px;}
  .hb-link,.hb-icon{width:36px; height:36px;}
  .lang-switch{height:36px;}
}
