/* H!Tech Cookies — folosește culorile temei H!Tech GSM (închis/deschis), cu valori proprii ca rezervă */
.htc-bar,.htc-modal,.htc-reopen{
  --htc-bg:var(--card,#16161c); --htc-fg:var(--fg,#f7f7f8); --htc-dim:var(--muted,#9a9aa6); --htc-line:var(--line-strong,rgba(255,255,255,.14));
  --htc-red:var(--red,#e10a17); --htc-redh:var(--red-hover,#ff1b28);
  font:14px/1.45 var(--f-body,-apple-system,"Segoe UI",Inter,system-ui,sans-serif); color:var(--htc-fg); box-sizing:border-box;
}
.htc-bar *,.htc-modal *{box-sizing:border-box}

/* bannerul: o bară subțire jos */
.htc-bar{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));z-index:99980;width:min(980px,calc(100% - 24px));
  display:flex;align-items:center;gap:14px;padding:10px 10px 10px 16px;border-radius:16px;background:var(--htc-bg);border:1px solid var(--htc-line);
  box-shadow:0 18px 50px -12px rgba(0,0,0,.45);transform:translate(-50%,140%);opacity:0;transition:transform .45s cubic-bezier(.2,.9,.3,1),opacity .3s}
.htc-bar.htc-in{transform:translate(-50%,0);opacity:1}
.htc-ico{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:rgba(225,10,23,.12);color:var(--htc-red)}
.htc-ico svg{width:19px;height:19px}
.htc-text{flex:1;min-width:0;margin:0;color:var(--htc-dim);font-size:13.5px}
.htc-text a{color:var(--htc-fg);text-decoration:underline;text-underline-offset:2px}
.htc-acts{flex:none;display:flex;gap:6px}
.htc-btn{appearance:none;border:0;cursor:pointer;font:600 13.5px/1 inherit;font-family:inherit;padding:10px 15px;border-radius:999px;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.htc-primary{background:var(--htc-red);color:#fff}
.htc-primary:hover{background:var(--htc-redh)}
.htc-ghost{background:transparent;color:var(--htc-fg);border:1px solid var(--htc-line)}
.htc-ghost:hover{border-color:var(--htc-fg)}
.htc-btn:focus-visible,.htc-reopen:focus-visible,.htc-x:focus-visible{outline:2px solid var(--htc-red);outline-offset:2px}

@media (max-width:720px){
  .htc-bar{flex-wrap:wrap;gap:10px;padding:12px;bottom:calc(10px + env(safe-area-inset-bottom))}
  .htc-ico{display:none}
  .htc-text{flex-basis:100%;font-size:13px}
  .htc-acts{width:100%}
  .htc-acts .htc-btn{flex:1;padding:11px 8px}
  .htc-acts [data-a="settings"]{flex:0 0 auto;padding:11px 12px}
}

/* fereastra de setări */
.htc-veil{position:fixed;inset:0;z-index:99990;background:rgba(0,0,0,.5);opacity:0;transition:opacity .25s}
.htc-veil.htc-in{opacity:1}
.htc-modal{position:fixed;z-index:99991;left:50%;bottom:0;width:min(560px,100%);max-height:88vh;overflow:auto;background:var(--htc-bg);border:1px solid var(--htc-line);
  border-radius:22px 22px 0 0;padding:20px 20px calc(18px + env(safe-area-inset-bottom));transform:translate(-50%,100%);transition:transform .35s cubic-bezier(.2,.9,.3,1)}
.htc-modal.htc-in{transform:translate(-50%,0)}
@media (min-width:721px){.htc-modal{bottom:auto;top:50%;border-radius:22px;transform:translate(-50%,-46%);opacity:0;transition:transform .3s,opacity .25s}.htc-modal.htc-in{transform:translate(-50%,-50%);opacity:1}}
.htc-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.htc-head h2{margin:0;font:700 20px/1.2 var(--f-display,inherit);color:var(--htc-fg)}
.htc-x{appearance:none;border:0;background:transparent;color:var(--htc-dim);font-size:26px;line-height:1;cursor:pointer;padding:4px 8px;border-radius:10px}
.htc-intro{color:var(--htc-dim);margin:8px 0 14px;font-size:13.5px}
.htc-intro a{color:var(--htc-fg)}
.htc-rows{display:grid;gap:2px}
.htc-row{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--htc-line)}
.htc-row div{flex:1;min-width:0}
.htc-row strong{display:block;color:var(--htc-fg)}
.htc-row p{margin:3px 0 0;color:var(--htc-dim);font-size:13px}
.htc-sw{position:relative;flex:none;width:46px;height:28px;margin-top:2px;cursor:pointer}
.htc-sw input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.htc-sw span{position:absolute;inset:0;border-radius:999px;background:rgba(127,127,135,.35);transition:background .2s}
.htc-sw span::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s cubic-bezier(.3,1.4,.5,1);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.htc-sw input:checked + span{background:var(--htc-red)}
.htc-sw input:checked + span::after{transform:translateX(18px)}
.htc-sw input:focus-visible + span{outline:2px solid var(--htc-red);outline-offset:2px}
.htc-locked{cursor:not-allowed;opacity:.6}
.htc-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.htc-foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--htc-line)}
.htc-foot .htc-btn{flex:1 1 auto}

/* butonul mic pentru a schimba acordul */
.htc-reopen{position:fixed;left:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:99970;width:40px;height:40px;border-radius:50%;
  border:1px solid var(--htc-line);background:var(--htc-bg);color:var(--htc-dim);display:grid;place-items:center;cursor:pointer;opacity:.75;transition:opacity .2s,color .2s;padding:0}
.htc-reopen:hover{opacity:1;color:var(--htc-red)}
.htc-reopen svg{width:20px;height:20px}
@media (prefers-reduced-motion:reduce){.htc-bar,.htc-modal,.htc-veil{transition:none}}
