/* ═══════════════════════════════════════════════
   RAZER LEAKS — tema blu
   ═══════════════════════════════════════════════ */

:root {
  --orange:        #3b82f6;
  --orange-2:      #60a5fa;
  --orange-deep:   #1d4ed8;
  --orange-glow:   rgba(59, 130, 246, .35);
  --yellow:        #93c5fd;

  --bg:            #020508;
  --panel:         rgba(5, 12, 22, .62);
  --panel-2:       rgba(7, 16, 28, .72);
  --card:          rgba(6, 14, 26, .78);
  --line:          rgba(59, 130, 246, .14);
  --line-2:        rgba(255, 255, 255, .06);
  --line-strong:   rgba(59, 130, 246, .34);

  --text:          #e8f1fb;
  --muted:         #8aa8c8;
  --dim:           #5a7a9a;

  --green:         #3ecf7a;
  --red:           #ef4b5b;
  --blue:          #5865f2;
  --gold:          #f5c542;
  --pink:          #f47fff;

  --radius:        14px;
  --radius-lg:     18px;
  --nav-h:         78px;
  --font:          'Outfit', 'Segoe UI', system-ui, sans-serif;
  --mono:          ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #f0f8ff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,.3); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,.55); background-clip: content-box; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
code, .mono { font-family: var(--mono); }

/* ─── SFONDO ─── */

@keyframes bgShift {
  0%   { opacity: 1; transform: scale(1)    rotate(0deg);   }
  33%  { opacity: .85; transform: scale(1.08) rotate(1.5deg);  }
  66%  { opacity: .9;  transform: scale(1.04) rotate(-1deg);   }
  100% { opacity: 1; transform: scale(1)    rotate(0deg);   }
}
@keyframes bgPulse {
  0%, 100% { opacity: .18; }
  50%       { opacity: .32; }
}

.bg-layer {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(30,80,200,.22), transparent 60%),
    radial-gradient(900px 700px at -10% 35%,  rgba(20,60,180,.18), transparent 60%),
    radial-gradient(1000px 700px at 60% 115%, rgba(10,40,140,.20), transparent 60%),
    linear-gradient(170deg, #020510 0%, #020508 50%, #020410 100%);
  animation: bgShift 18s ease-in-out infinite;
}
.bg-layer::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 600px at 20% 80%, rgba(59,130,246,.12), transparent 60%),
    radial-gradient(600px 500px at 75% 30%, rgba(99,160,255,.10), transparent 55%);
  animation: bgPulse 8s ease-in-out infinite;
}
#bg-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100vw; height: 100vh; }

/* ─── UTILITY ──────────────────────────────── */

.brand-text {
  background: linear-gradient(100deg, #fff 8%, var(--orange-2) 45%, var(--orange) 78%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px;
  font-weight: 600; font-size: .92rem; letter-spacing: .2px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: .18s ease; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(100,160,255,.3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-2) 0%, var(--orange) 45%, var(--orange-deep) 100%);
  border-color: transparent; color: #f0f8ff; font-weight: 700;
  box-shadow: 0 8px 26px -10px var(--orange-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, #93c5fd, var(--orange-2)); box-shadow: 0 12px 32px -8px var(--orange-glow); }
.btn-light { background: linear-gradient(135deg, #bfdbfe, var(--orange-2)); color: #0f172a; border-color: transparent; font-weight: 700; }
.btn-light:hover { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.btn-ghost  { background: transparent; }
.btn-danger { color: var(--red); border-color: rgba(239,75,91,.3); background: rgba(239,75,91,.08); }
.btn-danger:hover { background: rgba(239,75,91,.16); border-color: rgba(239,75,91,.45); }
.btn-paypal { color: #f5a623; border-color: rgba(245,166,35,.35); background: rgba(245,166,35,.09); font-weight: 600; }
.btn-paypal:hover { background: rgba(245,166,35,.18); border-color: rgba(245,166,35,.55); }
.btn-block  { width: 100%; }
.btn-sm     { padding: 8px 13px; font-size: .84rem; border-radius: 10px; }
.btn-discord-sm { background: var(--blue); color: #fff; border-color: transparent; }
.btn-discord-sm:hover { background: #4954e0; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  border: 1px solid var(--line); white-space: nowrap;
}
.chip-free    { color: var(--green); border-color: rgba(62,207,122,.32); background: rgba(62,207,122,.12); }
.chip-paid    { color: var(--orange-2); border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.14); }
.chip-vip     { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff5a4f, #e0283a); box-shadow: 0 4px 14px -4px rgba(239,40,58,.7); }
.chip-booster { color: var(--pink); border-color: rgba(244,127,255,.32); background: rgba(244,127,255,.12); }
.chip-owner   { color: var(--orange-2); border-color: var(--line-strong); background: rgba(59,130,246,.14); }
.chip-red     { color: var(--red); border-color: rgba(239,75,91,.3); background: rgba(239,75,91,.1); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.field .hint { font-size: .74rem; color: var(--dim); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line); border-radius: 11px;
  transition: .16s ease; outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--orange); background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.select option { background: #060e1a; }

.alert {
  padding: 12px 14px; border-radius: 11px; font-size: .85rem; line-height: 1.55;
  border: 1px solid rgba(239,75,91,.3); background: rgba(239,75,91,.1); color: #ffb3bb;
  margin-bottom: 20px; text-align: left;
}
.alert.ok { border-color: rgba(62,207,122,.3); background: rgba(62,207,122,.1); color: #a9f0c6; }
.alert.warn { border-color: rgba(245,197,66,.3); background: rgba(245,197,66,.1); color: #f7e2a5; }

.sb-title {
  font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); padding: 18px 10px 10px; font-weight: 800;
}

/* ─── LOGIN (split layout) ──────────────────── */

.login-body { overflow: hidden; }

/* login-wrap: contenitore centrato con scroll mobile */
.login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .login-wrap {
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 22px 26px;
  }
}

.login-page {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center;
}

/* ── Left panel ── */
.login-left {
  flex: 1 1 54%;
  padding: 60px 56px 60px 72px;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}

.login-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: 1.5px; color: var(--text);
}
.login-brand img {
  width: 38px; height: 38px; border-radius: 10px; object-fit: cover;
}

.login-hero {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 300; line-height: 1.2; color: var(--muted);
}
.login-hero strong {
  font-weight: 900; color: var(--text); display: block;
}

.login-tagline {
  font-size: .97rem; color: var(--dim); line-height: 1.65; max-width: 420px;
}

.login-steps {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 6px;
}
.ls-step {
  display: flex; align-items: center; gap: 16px;
  font-size: .95rem; color: var(--muted);
}
.ls-num {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.28);
  display: grid; place-items: center;
  color: var(--orange-2);
}

/* ── Right panel ── */
.login-right {
  flex: 0 0 420px;
  padding: 40px 56px 40px 20px;
  display: flex; align-items: center; justify-content: center;
}

.login-card {
  width: 100%; max-width: 380px; padding: 40px 34px 32px;
  background: linear-gradient(170deg, rgba(8,18,36,.92), rgba(4,10,20,.96));
  border: 1px solid var(--line); border-radius: 24px;
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(59,130,246,.08) inset;
  text-align: center;
  animation: riseIn .6s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.login-card-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 20px; background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 44px -8px var(--orange-glow);
  animation: pulseGlow 3.6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 38px -10px var(--orange-glow); }
  50%     { box-shadow: 0 0 62px -6px rgba(59,130,246,.55); }
}
.login-card-title { font-size: 1.65rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.login-card-sub { color: var(--muted); font-size: .87rem; margin-bottom: 24px; line-height: 1.5; text-align: center; }

/* responsive */
@media (max-width: 860px) {
  .login-page { flex-direction: column; }
  .login-left { padding: 48px 28px 0; flex: none; }
  .login-right { flex: none; width: 100%; padding: 24px 28px 48px; }
  .login-card { max-width: 100%; }
  .login-hero { font-size: 2rem; }
}

.human-box { border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.3); padding: 16px; text-align: left; }
.human-row { display: flex; align-items: center; gap: 13px; }
.human-check {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px;
  border: 2px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: .25s ease;
}
.human-box.done .human-check { border-color: var(--green); background: rgba(62,207,122,.18); }
.human-box.busy .human-check { border-color: var(--orange); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.human-check svg { opacity: 0; transform: scale(.5); transition: .25s ease; }
.human-box.done .human-check svg { opacity: 1; transform: scale(1); }
.human-label { font-size: .92rem; font-weight: 600; }
.human-sub { font-size: .74rem; color: var(--dim); margin-top: 2px; }
.human-slider { margin-top: 14px; }
.human-track {
  position: relative; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  overflow: hidden; user-select: none;
}
.human-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, rgba(59,130,246,.35), rgba(96,165,250,.2)); }
.human-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; color: var(--muted); letter-spacing: .4px; pointer-events: none; }
.human-knob {
  position: absolute; top: 3px; left: 3px; width: 50px; height: 36px;
  border-radius: 9px; background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  display: grid; place-items: center; cursor: grab; color: #f0f8ff;
  box-shadow: 0 4px 14px -4px var(--orange-glow);
}
.human-knob:active { cursor: grabbing; }

.btn-discord {
  width: 100%; margin-top: 18px; padding: 14px;
  background: var(--blue); border-color: transparent; color: #fff;
  font-size: .98rem; font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(88,101,242,.8);
}
.btn-discord:hover { background: #4954e0; }
.btn-discord:disabled { background: rgba(88,101,242,.3); box-shadow: none; }
.login-foot { margin-top: 22px; font-size: .76rem; color: var(--dim); line-height: 1.7; }

/* ═══════════ HOME ═══════════ */

/* barra in alto */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr minmax(0, 580px) 1fr; align-items: center; gap: 18px;
  padding: 0 34px;
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.nav:not(.nav-scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.2px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 18px -4px var(--orange-glow); animation: logoPulse 3.5s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { box-shadow: 0 0 18px -4px var(--orange-glow); } 50% { box-shadow: 0 0 28px 0px rgba(59,130,246,.55); } }

.nav-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 42px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(4,12,30,.72), rgba(10,30,80,.55));
  border: 1px solid rgba(59,130,246,.2); color: var(--muted);
  transition: .16s;
}
.nav-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.nav-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: .9rem; color: var(--text); }
.nav-search input::placeholder { color: rgba(232,241,251,.6); }

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* ─── LANGUAGE SELECTOR ─── */
.lang-sel {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: .16s;
}
.lang-btn:hover { border-color: var(--orange); color: var(--text); }
.lang-btn img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.lang-btn .lang-code { font-size: .78rem; font-weight: 700; letter-spacing: .4px; }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 100;
  background: linear-gradient(170deg, rgba(6,14,28,.98), rgba(3,8,18,.99));
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -18px #000; padding: 6px; min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.lang-sel.open .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px;
  border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: .12s; text-align: left;
}
.lang-option:hover { background: rgba(59,130,246,.1); color: var(--text); }
.lang-option.active { color: var(--orange-2); font-weight: 700; background: rgba(59,130,246,.08); }
.lang-option img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; flex: 0 0 22px; }

.balance-pill {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); color: var(--orange-2); font-size: .88rem;
}
.btn-upload { height: 40px; border-radius: 999px; background: rgba(0,0,0,.55); border-color: rgba(59,130,246,.2); }
.btn-upload:hover { border-color: var(--orange); }

.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 4px; border-radius: 999px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(59,130,246,.2); font-weight: 700; font-size: .9rem;
  transition: .16s;
}
.profile-btn:hover, .profile.open .profile-btn { border-color: var(--orange); }
.profile-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(59,130,246,.5); }
.profile-btn span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-btn svg { color: var(--dim); transition: .2s; }
.profile.open .profile-btn svg { transform: rotate(180deg); }

.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px;
  background: linear-gradient(170deg, rgba(6,16,34,.98), rgba(3,8,18,.99));
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 70px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.profile.open .profile-menu { opacity: 1; visibility: visible; transform: none; }
.pm-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pm-head img { width: 40px; height: 40px; border-radius: 50%; }
.pm-head .nm { font-weight: 700; }
.pm-head .rk { font-size: .74rem; color: var(--orange-2); font-weight: 600; }
.pm-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border-radius: 10px;
  font-size: .9rem; font-weight: 500; color: var(--muted); text-align: left; transition: .14s;
}
.pm-item:hover { background: rgba(59,130,246,.1); color: var(--text); }
.pm-item.danger:hover { background: rgba(239,75,91,.1); color: var(--red); }
.pm-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* pagina */
.page { max-width: 1400px; margin: 0 auto; padding: 36px 34px 80px; }

.hero {
  position: relative; padding: 70px 0 44px;
  animation: heroIn .7s cubic-bezier(.2,.8,.25,1) both;
}
.hero::before {
  content: '';
  position: absolute; inset: -80px -200px 0;
  background: radial-gradient(ellipse 900px 500px at 40% 60%, rgba(30,80,220,.28) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } }
.hero p { animation: heroIn .7s .15s cubic-bezier(.2,.8,.25,1) both; }
.hero-title {
  font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 900; font-style: italic; line-height: .9;
  letter-spacing: -2px; transform: skewX(-5deg); transform-origin: left;
  color: #ffffff;
  text-shadow:
    0 0 40px rgba(59,130,246,1),
    0 0 80px rgba(59,130,246,.7),
    0 2px 6px rgba(0,0,0,.95);
}
.hero p { color: #c8dff5; margin-top: 22px; max-width: 560px; line-height: 1.6; font-size: 1.08rem; }

/* numeri */
.statbar { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-bottom: 40px; animation: heroIn .7s .25s cubic-bezier(.2,.8,.25,1) both; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(4,10,22,.72); backdrop-filter: blur(12px); overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 13px; padding: 20px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center; position: relative;
  color: var(--orange-2); background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2);
}
.stat.live .stat-ico  { color: var(--green); background: rgba(62,207,122,.1); border-color: rgba(62,207,122,.25); }
.stat.live .stat-ico::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }
.stat.gold .stat-ico  { color: var(--gold); background: rgba(245,197,66,.1); border-color: rgba(245,197,66,.25); }
.stat.blue .stat-ico  { color: #8fa0ff; background: rgba(88,101,242,.12); border-color: rgba(88,101,242,.28); }
.stat .l { font-size: .66rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 1.45rem; font-weight: 800; margin-top: 2px; letter-spacing: -.3px; }

.vip-card {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  border: 1px solid rgba(59,130,246,.35); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(59,130,246,.2), rgba(4,12,30,.7) 70%);
  backdrop-filter: blur(12px);
}
.vip-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #bfdbfe, var(--orange)); color: #0f172a;
  box-shadow: 0 6px 20px -6px var(--orange-glow);
}
.vip-txt { flex: 1; min-width: 0; }
.vip-txt b { display: block; font-size: 1rem; }
.vip-txt span { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* colonne: categorie + risultati */
.browse { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; scroll-margin-top: calc(var(--nav-h) + 16px); }

.side { position: sticky; top: calc(var(--nav-h) + 16px); }
.side-search {
  position: relative; display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 8px 0 18px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(4,10,22,.75); backdrop-filter: blur(12px);
  color: var(--muted);
}
.side-search:focus-within { border-color: var(--orange); }
.side-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: .96rem; color: var(--text); }
.sort-btn { padding: 9px 10px; border-left: 1px solid var(--line); color: var(--muted); border-radius: 0 10px 10px 0; }
.sort-btn:hover { color: var(--orange-2); }
.sort-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 190px; padding: 6px;
  background: rgba(4,12,26,.98); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: 0 24px 50px -18px #000; display: none;
}
.side-search.sorting .sort-menu { display: block; }
.sort-menu button { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 8px; font-size: .86rem; color: var(--muted); }
.sort-menu button:hover { background: rgba(59,130,246,.1); color: var(--text); }
.sort-menu button.on { color: var(--orange-2); font-weight: 700; }

.side-title { font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px 4px; }
.cat-list {
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(4,10,22,.72); backdrop-filter: blur(12px);
}
.cat {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: var(--muted); text-align: left; transition: .14s;
}
.cat .ico { opacity: .75; flex: 0 0 auto; }
.cat .n {
  margin-left: auto; min-width: 30px; text-align: center; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.06); color: var(--dim);
}
.cat:hover { background: rgba(59,130,246,.07); color: var(--text); }
.cat { transition: .18s ease; }
.cat.active { color: var(--orange-2); background: linear-gradient(90deg, rgba(59,130,246,.2), rgba(59,130,246,.06)); font-weight: 600; }
.cat.active .ico { opacity: 1; }
.cat.active .n { background: var(--orange); color: #f0f8ff; }
.cat.active::before {
  content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--orange); box-shadow: 0 0 12px var(--orange);
}

.results { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; min-height: 54px; }
.found { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.found svg { color: var(--orange-2); }
.found b { color: var(--text); font-size: 1rem; }
.perpage { display: flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); }
.seg { display: flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4,10,22,.7); }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.seg button.on { background: var(--orange); color: #f0f8ff; }
.seg button:not(.on):hover { color: var(--text); }

.pager {
  margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(4,10,22,.7);
}
.pager:empty { display: none; }
.pager span { min-width: 64px; text-align: center; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pager button { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--orange-2); }
.pager button:hover:not(:disabled) { background: rgba(59,130,246,.12); }
.pager button:disabled { color: var(--dim); opacity: .45; cursor: default; }
.pager-bottom { display: flex; justify-content: center; margin-top: 26px; }
.pager-bottom .pager { margin-left: 0; }

/* griglia risorse */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* stagger card entrance */
.card:nth-child(1)  { animation-delay: .02s; }
.card:nth-child(2)  { animation-delay: .05s; }
.card:nth-child(3)  { animation-delay: .08s; }
.card:nth-child(4)  { animation-delay: .11s; }
.card:nth-child(5)  { animation-delay: .14s; }
.card:nth-child(6)  { animation-delay: .17s; }
.card:nth-child(7)  { animation-delay: .20s; }
.card:nth-child(8)  { animation-delay: .23s; }
.card:nth-child(9)  { animation-delay: .26s; }
.card:nth-child(n+10){ animation-delay: .29s; }

.card {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  transition: .22s cubic-bezier(.2,.8,.25,1);
  animation: cardIn .42s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 28px 54px -22px rgba(0,0,0,.96), 0 0 36px -10px var(--orange-glow);
}
/* bordo glow animato al hover */
.card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(59,130,246,.12), transparent 60%);
  opacity: 0; transition: opacity .22s;
}
.card:hover::before { opacity: 1; }
.card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #060e20, #040a16); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(59,130,246,.3); }
.card-img .badges { position: absolute; top: 11px; right: 11px; display: flex; gap: 6px; }
.card-img .badges.left { right: auto; left: 11px; }
.card-img .lock {
  position: absolute; bottom: 10px; right: 10px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: var(--orange-2);
}
.card-body { padding: 15px 17px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-cat { font-size: .66rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); font-weight: 800; }
.card-title { font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.card-desc {
  font-size: .84rem; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--line); font-size: .76rem; color: var(--dim);
}
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

.empty {
  grid-column: 1/-1; text-align: center; padding: 70px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted);
  background: rgba(4,10,22,.5);
}
.empty svg { color: rgba(59,130,246,.35); margin-bottom: 14px; }
.empty h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.empty p { font-size: .88rem; }

/* ═══════════ AREA ACCOUNT ═══════════ */

.acc { display: flex; min-height: 100vh; }
.acc-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: 290px; z-index: 60;
  display: flex; flex-direction: column; padding: 26px 16px 0;
  background: linear-gradient(180deg, rgba(4,12,28,.9), rgba(2,6,16,.94));
  border-right: 1px solid var(--line); backdrop-filter: blur(18px);
  transition: transform .28s cubic-bezier(.2,.8,.25,1);
}
.acc-user { display: flex; align-items: center; gap: 13px; padding: 0 12px 26px; }
.acc-user img { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(59,130,246,.55), 0 0 22px -4px var(--orange-glow); }
.acc-user .nm { font-weight: 800; font-size: 1.05rem; }
.acc-user .rk { font-size: .78rem; color: var(--orange-2); font-weight: 600; }

.acc-nav { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.acc-link {
  display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-radius: 12px;
  font-size: .98rem; font-weight: 500; color: var(--muted); transition: .15s; width: 100%; text-align: left;
}
.acc-link:hover { background: rgba(59,130,246,.08); color: var(--text); }
.acc-link.active {
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, var(--orange-deep));
  color: #f0f8ff; font-weight: 700; box-shadow: 0 10px 28px -10px var(--orange-glow);
}
.acc-back {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 12px -16px 0; padding: 26px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .95rem; transition: .15s;
}
.acc-back:hover { color: var(--orange-2); }

.acc-main { flex: 1; margin-left: 290px; padding: 40px 42px 80px; min-width: 0; }
.acc-burger { display: none; padding: 9px; border-radius: 10px; color: var(--muted); margin-bottom: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.4); }

.acc-head { margin-bottom: 26px; }
.acc-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.3px; }
.acc-head p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.acc-sub { font-size: .74rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; }

.panel {
  border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(8,20,42,.62), rgba(4,10,22,.72));
  backdrop-filter: blur(14px);
}
.panel.flush { padding: 0 0 8px; overflow: hidden; }
.panel.flush .tbl th:first-child, .panel.flush .tbl td:first-child { padding-left: 24px; }
.panel.flush .tbl th:last-child,  .panel.flush .tbl td:last-child  { padding-right: 24px; }

.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ph-ico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--orange-2); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2);
}
.ph-txt b { display: block; font-size: 1.08rem; }
.ph-txt span { display: block; font-size: .78rem; color: var(--dim); margin-top: 1px; }
.ph-right { margin-left: auto; }

.profile-card { display: flex; align-items: center; gap: 34px; padding: 30px 32px; }
.big-avatar {
  width: 124px; height: 124px; flex: 0 0 124px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px rgba(2,6,16,.9), 0 0 0 6px rgba(59,130,246,.55), 0 0 40px -6px var(--orange-glow);
}
.pc-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.lbl { font-size: .7rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.val { display: flex; align-items: center; gap: 9px; font-size: 1.12rem; font-weight: 600; }
.val .ico { color: var(--orange-2); }
.id-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; border-radius: 9px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); font-size: .86rem; letter-spacing: .3px;
}
.copy { padding: 4px; border-radius: 6px; color: var(--dim); display: grid; place-items: center; }
.copy:hover { color: var(--orange-2); background: rgba(59,130,246,.12); }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stats > div { padding: 14px 16px; border-radius: 13px; background: rgba(0,0,0,.28); border: 1px solid var(--line-2); }
.mini-stats .v { font-size: 1.35rem; font-weight: 800; }
.mini-stats .l { font-size: .74rem; color: var(--dim); margin-top: 2px; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perk {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line-2); font-size: .9rem; color: var(--dim);
}
.perk .ico { color: var(--dim); flex: 0 0 auto; }
.perk.on { color: var(--text); }
.perk.on .ico { color: var(--green); }

.big-money { font-size: 2.6rem; font-weight: 800; color: var(--orange-2); margin: -4px 0 10px; letter-spacing: -.5px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 16px; font-size: .92rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--orange-2); border-color: var(--orange); }

/* ─── MODALI ───────────────────────────────── */

.modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2,4,14,.78); backdrop-filter: blur(8px);
  display: none; place-items: center; padding: 24px;
  animation: fadeIn .18s ease;
}
.modal-bg.open { display: grid; }
@keyframes fadeIn { from { opacity: 0; } }
#modal-assign { z-index: 210; }
#modal-assign .modal { max-width: 660px; }
#modal-assign .tbl td { white-space: nowrap; }

.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(170deg, rgba(6,16,34,.98), rgba(3,8,18,.99));
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 40px 100px -30px #000;
  animation: riseIn .28s cubic-bezier(.2,.8,.25,1) both;
}
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(6,14,30,.96); backdrop-filter: blur(10px); z-index: 2;
  border-radius: 20px 20px 0 0;
}
.modal-head h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: .3px; }
.modal-head .x { margin-left: auto; padding: 8px; border-radius: 9px; color: var(--dim); }
.modal-head .x:hover { color: var(--text); background: rgba(255,255,255,.07); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); flex-wrap: wrap; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── MODALE DOWNLOAD ──────────────────────── */
.modal-dl { max-width: 440px; }
.dl-subtitle { color: var(--dim); font-size: .9rem; margin: 0 0 18px; text-align: center; }

.dl-options { display: flex; flex-direction: column; gap: 10px; }

.dl-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  text-align: left; width: 100%;
  transition: background .15s, border-color .15s, transform .12s;
  text-decoration: none; color: var(--text);
}
.dl-opt:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.dl-opt:disabled { opacity: .5; pointer-events: none; }

.dl-opt-icon { font-size: 1.3rem; flex-shrink: 0; width: 36px; text-align: center; }
.dl-opt-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dl-opt-text strong { font-size: .97rem; font-weight: 700; }
.dl-opt-text small { font-size: .8rem; color: var(--dim); }

.dl-opt-badge {
  flex-shrink: 0; padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: .5px;
}

/* Linkvertise — blu */
.dl-opt--lv { border-color: rgba(59,130,246,.35); }
.dl-opt--lv:hover { border-color: rgba(59,130,246,.6); background: rgba(59,130,246,.08); }
.dl-opt--lv .dl-opt-icon { color: #60a5fa; }
.dl-badge-free { background: rgba(59,130,246,.18); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); }

/* Download diretto */
.dl-opt--primary { border-color: rgba(34,197,94,.35); }
.dl-opt--primary:hover { border-color: rgba(34,197,94,.6); background: rgba(34,197,94,.08); }
.dl-opt--primary .dl-opt-icon { color: #4ade80; }

/* PayPal — arancione/giallo */
.dl-opt--pay { border-color: rgba(245,166,35,.3); }
.dl-opt--pay:hover { border-color: rgba(245,166,35,.55); background: rgba(245,166,35,.07); }
.dl-opt--pay .dl-opt-icon { color: #fbbf24; }
.dl-badge-pay { background: rgba(245,166,35,.18); color: #fde68a; border: 1px solid rgba(245,166,35,.35); }

/* VIP — oro */
.dl-opt--vip { border-color: rgba(251,191,36,.25); }
.dl-opt--vip:hover { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.06); }
.dl-badge-vip { background: rgba(251,191,36,.18); color: #fde68a; border: 1px solid rgba(251,191,36,.3); }

.price-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.price-opt { padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.28); cursor: pointer; transition: .16s; text-align: left; }
.price-opt:hover { border-color: rgba(96,165,250,.3); }
.price-opt.on { border-color: var(--orange); background: rgba(59,130,246,.1); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.price-opt .t { font-weight: 700; font-size: .9rem; }
.price-opt .d { font-size: .74rem; color: var(--dim); margin-top: 3px; }

.drop { border: 1px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; color: var(--muted); cursor: pointer; transition: .16s; background: rgba(0,0,0,.2); }
.drop:hover { border-color: var(--orange); color: var(--text); background: rgba(59,130,246,.05); }
.drop img { max-height: 150px; border-radius: 9px; margin-bottom: 10px; display: block; margin-inline: auto; }

.detail-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 13px; border: 1px solid var(--line); margin-bottom: 18px; }
.detail-desc { color: var(--muted); line-height: 1.7; font-size: .92rem; white-space: pre-wrap; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.meta-box { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.25); }
.meta-box .l { font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); }
.meta-box .v { font-weight: 700; font-size: .9rem; margin-top: 3px; }

/* tabelle */
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th {
  text-align: left; padding: 10px 12px; color: var(--dim);
  font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 800;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.tbl tr:hover td { background: rgba(59,130,246,.03); }
.tbl .u { display: flex; align-items: center; gap: 9px; }
.tbl .u img { width: 30px; height: 30px; border-radius: 50%; }
.tbl .id, .id { font-family: var(--mono); font-size: .76rem; color: var(--dim); }

/* ═══════════ DASHBOARD STAFF ═══════════ */
.dash { display: flex; flex-direction: column; gap: 22px; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dash-tile {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(8,20,42,.62), rgba(4,10,22,.72)); position: relative; overflow: hidden;
}
.dash-tile::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--orange); opacity: .8; }
.dash-tile.ok::after   { background: var(--green); }
.dash-tile.gold::after { background: var(--gold); }
.dash-tile.red::after  { background: var(--red); }
.dash-tile.blue::after { background: var(--blue); }
.dash-tile .l { font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.dash-tile .v { font-size: 1.6rem; font-weight: 800; margin-top: 4px; letter-spacing: -.4px; }
.dash-tile .s { font-size: .74rem; color: var(--dim); margin-top: 2px; }
.dash-tile.ok  .v { color: var(--green); }
.dash-tile.red .v { color: var(--red); }

.dash-sec { border: 1px solid var(--line); border-radius: 18px; background: rgba(4,10,22,.72); backdrop-filter: blur(12px); overflow: hidden; }
.dash-sec > h4 {
  padding: 14px 18px; font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800;
  color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(59,130,246,.04);
}
.dash-sec .tbl th:first-child, .dash-sec .tbl td:first-child { padding-left: 18px; }
.dash-sec .tbl th:last-child,  .dash-sec .tbl td:last-child  { padding-right: 18px; }
.dash-sec .tbl td { padding: 9px 12px; }
.dash-sec .tbl .r { width: 34px; color: var(--dim); font-variant-numeric: tabular-nums; }
.dash-empty { padding: 20px 16px; color: var(--dim); font-size: .84rem; text-align: center; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.chart { display: flex; align-items: flex-end; gap: 5px; height: 140px; padding: 16px 18px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; }
.chart .bar i { display: block; border-radius: 5px 5px 2px 2px; min-height: 3px; background: linear-gradient(180deg, var(--yellow), var(--orange-deep)); transition: filter .15s; }
.chart .bar:hover i { filter: brightness(1.3); }
.chart .bar span { font-size: .62rem; color: var(--dim); text-align: center; line-height: 1.15; }
.chart-note { padding: 0 18px 14px; font-size: .76rem; color: var(--dim); }

/* Approvazioni badge */
.approval-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .65rem; font-weight: 800; margin-left: 6px;
}

/* toast */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 380px; padding: 13px 16px; border-radius: 12px;
  background: rgba(4,10,24,.97); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -18px #000; font-size: .87rem; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
  animation: toastIn .28s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } }
.toast.ok  { border-color: rgba(62,207,122,.35); }
.toast.err { border-color: rgba(239,75,91,.35); }
.toast .b { width: 3px; align-self: stretch; border-radius: 3px; background: var(--orange); flex: 0 0 3px; }
.toast.ok .b  { background: var(--green); }
.toast.err .b { background: var(--red); }

.skeleton {
  border-radius: var(--radius-lg); height: 280px;
  background: linear-gradient(100deg, rgba(59,130,246,.04) 30%, rgba(59,130,246,.09) 50%, rgba(59,130,246,.04) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.overlay-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; display: none; }
.overlay-mask.on { display: block; }

/* ─── SCHERMATA "DISATTIVA VPN/PROXY" ─────── */

html.vpn-locked, html.vpn-locked body { overflow: hidden; }

.vpn-block {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(220,30,30,.28), transparent 65%),
    rgba(2,4,14,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: fadeIn .25s ease;
}
.vpn-inner { max-width: 760px; text-align: center; animation: riseIn .45s cubic-bezier(.2,.8,.25,1) both; }

.vpn-icon {
  width: 108px; height: 108px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; color: #ff4d4d;
  background: radial-gradient(circle, rgba(255,60,60,.22), rgba(255,60,60,.05) 70%);
  border: 2px solid rgba(255,77,77,.55);
  animation: vpnPulse 1.8s ease-in-out infinite;
}
@keyframes vpnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,60,60,.45), 0 0 40px -6px rgba(255,60,60,.6); }
  50%      { box-shadow: 0 0 0 18px rgba(255,60,60,0), 0 0 60px -2px rgba(255,60,60,.8); }
}

.vpn-title {
  font-size: clamp(2.6rem, 9vw, 6.2rem); font-weight: 900; font-style: italic; line-height: .95;
  letter-spacing: -1.5px; transform: skewX(-6deg);
  background: linear-gradient(95deg, #ffd1a3 0%, #ff6a2a 35%, #ff2e2e 70%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255,40,40,.55));
  animation: vpnShake 4s ease-in-out infinite;
}
@keyframes vpnShake {
  0%, 92%, 100% { transform: skewX(-6deg) translateX(0); }
  94% { transform: skewX(-6deg) translateX(-6px); }
  96% { transform: skewX(-6deg) translateX(6px); }
  98% { transform: skewX(-6deg) translateX(-3px); }
}

.vpn-sub { color: #f2d9d0; font-size: 1.08rem; line-height: 1.65; margin: 24px auto 0; max-width: 560px; }
.vpn-sub b { color: #fff; }
.vpn-flags { margin-top: 18px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); min-height: 26px; }
.vpn-retry { margin-top: 26px; padding: 14px 26px; font-size: 1rem; }
.vpn-status { margin-top: 16px; font-size: .86rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 22px; }
.vpn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: blink 1.2s ease-in-out infinite; }
.vpn-dot.busy { background: var(--yellow); }
.vpn-dot.ok { background: var(--green); animation: none; box-shadow: 0 0 10px var(--green); }
.vpn-dot.bad { background: var(--red); animation: none; }
.vpn-help { margin-top: 30px; font-size: .78rem; color: var(--dim); }

.vpn-block.cleared .vpn-icon { color: var(--green); border-color: rgba(62,207,122,.6); animation: none; box-shadow: 0 0 50px -6px rgba(62,207,122,.7); }

/* ─── RESPONSIVE ───────────────────────────── */

@media (max-width: 1180px) {
  .statbar { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .perks, .mini-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 12px; }
  .nav-brand span, .balance-pill, .profile-btn span { display: none; }
  .page { padding: 20px 16px 60px; }
  .hero { padding: 30px 0 24px; }
  .browse { grid-template-columns: 1fr; gap: 18px; }
  .side { position: static; }
  .side-title { display: none; }
  .cat-list { flex-direction: row; overflow-x: auto; padding: 6px; }
  .cat { flex: 0 0 auto; }
  .cat.active::before { display: none; }
  .dash-cols { grid-template-columns: 1fr; }

  .acc-side { transform: translateX(-100%); }
  .acc-side.open { transform: none; }
  .acc-main { margin-left: 0; padding: 18px 16px 60px; }
  .acc-burger { display: grid; place-items: center; }
  .profile-card { flex-direction: column; align-items: flex-start; gap: 22px; padding: 24px 20px; }
  .panel { padding: 20px; }
}

@media (max-width: 640px) {
  .nav-search { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px; }
  .stat .v { font-size: 1.15rem; }
  .toolbar { gap: 10px; }
  .pager { margin-left: 0; }
  .row-2, .price-opts, .pc-grid, .perks, .mini-stats { grid-template-columns: 1fr; }
  .vip-txt span { white-space: normal; }
  #toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }

/* ─── DETAIL MODAL (patch.js) ──────────────────── */

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0   rgba(99,160,255,.0),
      0 0 22px -4px rgba(99,160,255,.55),
      inset 0 0 12px -4px rgba(99,160,255,.08);
  }
  50% {
    box-shadow:
      0 0 0 4px  rgba(99,160,255,.10),
      0 0 36px -2px rgba(147,197,253,.7),
      inset 0 0 18px -4px rgba(99,160,255,.14);
  }
}

@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.btn-cart-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 13px;
  font-weight: 700; font-size: .95rem; letter-spacing: .15px;
  color: #e8f1fb; white-space: nowrap; width: 100%;
  justify-content: center; position: relative;
  background: linear-gradient(135deg, rgba(30,80,200,.55) 0%, rgba(59,130,246,.45) 50%, rgba(99,160,255,.55) 100%);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  animation: glowPulse 2.6s ease-in-out infinite;
  transition: transform .18s ease, opacity .18s;
}
.btn-cart-main::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: 14px; z-index: -1;
  background: linear-gradient(90deg,
    rgba(59,130,246,1) 0%,
    rgba(147,197,253,1) 30%,
    rgba(255,255,255,.85) 50%,
    rgba(147,197,253,1) 70%,
    rgba(59,130,246,1) 100%
  );
  background-size: 200% 100%;
  animation: borderFlow 2.8s linear infinite;
}
.btn-cart-main:hover { transform: translateY(-2px); opacity: .92; }
.btn-cart-main:active { transform: translateY(0); }
.btn-cart-main.in-cart {
  background: linear-gradient(135deg, rgba(20,55,140,.55), rgba(40,90,180,.45));
  animation: glowPulse 3.2s ease-in-out infinite;
}
.btn-cart-main.in-cart::before {
  background: linear-gradient(90deg,
    rgba(62,207,122,1) 0%,
    rgba(147,253,200,1) 40%,
    rgba(62,207,122,1) 100%
  );
  background-size: 200% 100%;
}

.btn-dl-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 13px; width: 100%;
  justify-content: center; font-weight: 700; font-size: .95rem;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  border: none; color: #f0f8ff;
  box-shadow: 0 8px 28px -8px rgba(59,130,246,.5);
  transition: transform .18s, box-shadow .18s;
}
.btn-dl-main:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -6px rgba(59,130,246,.65); }

.btn-locked {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 13px; width: 100%;
  justify-content: center; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--muted); cursor: not-allowed; opacity: .6;
}

/* detail modal layout */
.detail-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px 16px; border-bottom: 1px solid var(--line); }
.detail-head h3 { font-size: 1.12rem; font-weight: 700; }

.detail-layout {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 0; flex: 1; overflow: hidden;
}

.detail-left {
  padding: 26px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}

.detail-img-wrap {
  aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  background: rgba(59,130,246,.06); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-img-ph { display: flex; align-items: center; justify-content: center; height: 100%; opacity: .3; }

.detail-right {
  padding: 26px; display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
}

.detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-cat {
  font-size: .78rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--orange-2); background: rgba(59,130,246,.1); border-radius: 7px;
  padding: 4px 10px; border: 1px solid rgba(59,130,246,.18);
}
.detail-desc {
  font-size: .93rem; line-height: 1.68; color: var(--muted);
  flex: 1; min-height: 0;
}

.detail-info-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: rgba(59,130,246,.04); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.detail-info-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.detail-info-item .lbl { font-size: .72rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--dim); }
.detail-info-item .val { font-size: .92rem; font-weight: 600; color: var(--text); }

.detail-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─── COMMENTI ─── */
.detail-comments { border-top: 1px solid var(--line); padding-top: 16px; }
.detail-comments h4 { font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }

.comment-list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
.comment-item {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(59,130,246,.04); border: 1px solid var(--line);
  position: relative;
}
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: 0 0 32px; background: rgba(59,130,246,.15); display: flex; align-items: center; justify-content: center; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body-wrap { flex: 1; min-width: 0; }
.comment-author { font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.comment-time { font-size: .72rem; color: var(--dim); font-weight: 400; }
.comment-text { font-size: .88rem; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.comment-del { position: absolute; top: 8px; right: 8px; opacity: 0; transition: .15s; color: var(--red); background: rgba(239,75,91,.1); border-radius: 6px; padding: 4px 6px; }
.comment-item:hover .comment-del { opacity: 1; }

.comment-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.comment-input {
  flex: 1; resize: none; padding: 10px 13px; border-radius: 10px;
  background: rgba(59,130,246,.05); border: 1px solid var(--line);
  color: var(--text); font-size: .88rem; line-height: 1.5;
  min-height: 42px; max-height: 110px; transition: border-color .18s;
}
.comment-input:focus { outline: none; border-color: rgba(59,130,246,.4); }
.comment-send { padding: 10px 14px; border-radius: 10px; flex: 0 0 auto; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); color: var(--orange-2); transition: .18s; }
.comment-send:hover { background: rgba(59,130,246,.22); }

.detail-loading { display: flex; align-items: center; justify-content: center; height: 300px; }
.spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(59,130,246,.15);
  border-top-color: var(--orange-2);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CARRELLO (patch.js) ──────────────────────── */

.cart-nav-wrap { position: relative; }
.cart-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; position: relative;
  color: var(--text); background: rgba(59,130,246,.08);
  border: 1px solid var(--line); transition: .18s;
}
.cart-nav-btn:hover { background: rgba(59,130,246,.16); border-color: rgba(59,130,246,.3); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--orange); color: #fff;
  border-radius: 99px; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99997; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 94vw); z-index: 99998;
  background: rgba(5,12,22,.97); border-left: 1px solid var(--line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column;
  animation: slideInRight .25s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes slideInRight { from { transform: translateX(100%); } }

.cart-head {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  color: var(--orange-2);
}
.cart-head h3 { flex: 1; font-size: 1rem; font-weight: 700; color: var(--text); }
.cart-head-count { color: var(--muted); font-weight: 400; }
.cart-head .x { margin-left: auto; color: var(--muted); transition: color .15s; }
.cart-head .x:hover { color: var(--text); }

.cart-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 20px; color: var(--muted); text-align: center; font-size: .9rem; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(59,130,246,.05); border: 1px solid var(--line);
}
.cart-item-img { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; flex: 0 0 48px; background: rgba(59,130,246,.1); display: flex; align-items: center; justify-content: center; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-cat { font-size: .74rem; color: var(--dim); margin-top: 2px; }
.cart-item-price { font-size: .9rem; font-weight: 700; color: var(--orange-2); flex: 0 0 auto; }
.cart-item-rm { color: var(--muted); border-radius: 6px; padding: 4px 6px; transition: .15s; }
.cart-item-rm:hover { color: var(--red); background: rgba(239,75,91,.1); }

.cart-foot { padding: 14px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; font-size: .9rem; align-items: center; }
.cart-total span { color: var(--muted); }
.cart-total strong { font-size: 1.08rem; color: var(--text); }
.btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  border: none; color: #f0f8ff; width: 100%;
  box-shadow: 0 8px 24px -8px rgba(59,130,246,.55);
  transition: transform .18s, box-shadow .18s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(59,130,246,.7); }
.btn-checkout:disabled { opacity: .55; transform: none; }

/* ─── CHIP ACCESSO ──────────────────────────────── */
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.chip-free    { background: rgba(62,207,122,.12); color: #3ecf7a; border: 1px solid rgba(62,207,122,.25); }
.chip-paid    { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.28); }
.chip-vip     { background: rgba(245,197,66,.12); color: #f5c542; border: 1px solid rgba(245,197,66,.28); }
.chip-booster { background: rgba(244,127,255,.1); color: #f47fff; border: 1px solid rgba(244,127,255,.24); }

/* ─── RESPONSIVE modal detail ──────────────────── */
@media (max-width: 740px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-left { border-right: none; border-bottom: 1px solid var(--line); padding: 18px; }
  .detail-right { padding: 18px; }
  .detail-info-row { grid-template-columns: repeat(3, 1fr); }
}
}

/* ─── NAV COMPATTA SULLO SCROLL (pill centrata) ─── */

.nav {
  transition:
    height .32s ease, background .32s ease, backdrop-filter .32s ease,
    padding .32s ease, border-radius .32s ease,
    box-shadow .32s ease, border .32s ease,
    top .32s ease, width .32s ease, left .32s ease, margin .32s ease;
}

/* quando scrolled: diventa pill flottante centrata */
.nav-scrolled {
  position: fixed !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(calc(100vw - 40px), 1020px) !important;
  height: 58px !important;
  border-radius: 16px !important;
  background: rgba(3, 8, 20, .92) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border: 1px solid rgba(59,130,246,.22) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(59,130,246,.06) !important;
  padding: 0 20px !important;
}

/* placeholder che occupa lo spazio del nav quando diventa fixed */
.nav-placeholder {
  display: none;
  height: var(--nav-h);
}
.nav-placeholder.active { display: block; }

/* ─── PARTNER BAR ───────────────────────────────── */

@keyframes pbSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#partner-bar {
  position: relative; z-index: 90;
  background: rgba(3,8,20,.75);
  border-bottom: 1px solid rgba(59,130,246,.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: pbSlideIn .35s ease both;
  overflow: hidden;
}

.pb-inner {
  display: flex; align-items: center; max-width: 1400px;
  margin: 0 auto; padding: 9px 28px; gap: 16px;
  transition: opacity .28s ease, transform .28s ease;
}
.pb-inner.pb-exit { opacity: 0; transform: translateX(-12px); }

.pb-link {
  display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0;
  color: inherit; text-decoration: none;
}
.pb-link:hover .pb-name { color: var(--orange-2); }
.pb-link:hover .pb-arrow { transform: translateX(4px); opacity: 1; }

.pb-logo {
  height: 30px; width: auto; max-width: 120px;
  object-fit: contain; flex: 0 0 auto;
  border-radius: 6px; filter: brightness(.92);
}

.pb-text { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pb-tag {
  font-size: .65rem; font-weight: 800; letter-spacing: 1px;
  color: var(--orange-2); background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.22); border-radius: 5px;
  padding: 2px 7px; white-space: nowrap; flex: 0 0 auto;
}
.pb-name {
  font-size: .88rem; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: color .18s;
}
.pb-desc {
  font-size: .78rem; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.pb-arrow {
  color: var(--orange-2); flex: 0 0 auto;
  transform: translateX(0); transition: transform .18s; opacity: .6;
}

.pb-dots {
  display: flex; align-items: center; gap: 6px;
  padding: 0 28px 0 0; flex: 0 0 auto;
}
.pb-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(99,160,255,.25); border: none;
  transition: background .2s, transform .2s; cursor: pointer;
}
.pb-dots button.active { background: var(--orange-2); transform: scale(1.35); }
.pb-dots button:hover  { background: rgba(99,160,255,.55); }

/* ─── PARTNER ADMIN PANEL ───────────────────────── */

.partner-admin-panel { margin-top: 26px; }
.partner-admin-panel .panel-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.partner-admin-panel .panel-head h3 { font-size: 1.02rem; font-weight: 700; }
.partner-count-badge { color: var(--muted); font-size: .82rem; font-weight: 400; }

.partner-admin-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(59,130,246,.04); border: 1px solid var(--line);
  margin-bottom: 8px;
}
.pai-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 9px; overflow: hidden; background: rgba(59,130,246,.08); display: flex; align-items: center; justify-content: center; }
.pai-logo img { width: 100%; height: 100%; object-fit: contain; }
.pai-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pai-info strong { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pai-sub  { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pai-url  { font-size: .72rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pai-status { font-size: .73rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.pai-status.active   { color: var(--green); background: rgba(62,207,122,.1); border: 1px solid rgba(62,207,122,.2); }
.pai-status.inactive { color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.pai-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.partner-admin-form {
  background: rgba(59,130,246,.04); border: 1px solid var(--line);
  border-radius: 13px; padding: 18px; margin-bottom: 14px;
}
.partner-admin-form h4 { font-size: .92rem; font-weight: 700; margin-bottom: 14px; }
.btn-add-partner { width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .pb-inner { padding: 8px 16px; gap: 10px; }
  .pb-desc  { display: none; }
  .pb-dots  { padding: 0 12px 0 0; }
}

/* ═══════════════════════════════════════════
   RESOURCE DETAIL MODAL — rd-* design
   ═══════════════════════════════════════════ */

#modal-detail .modal {
  max-width: 660px;
  width: 100%;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: #070d1c;
  box-shadow: 0 0 0 1px rgba(59,130,246,.05), 0 60px 120px -40px #000;
  padding: 0 !important;
  box-sizing: border-box;
}
#modal-detail .modal::-webkit-scrollbar { width: 5px; }
#modal-detail .modal::-webkit-scrollbar-track { background: transparent; }
#modal-detail .modal::-webkit-scrollbar-thumb { background: rgba(59,130,246,.22); border-radius: 5px; }

/* rd-* wrapper */
.rd-wrap { display: block; width: 100%; }

/* rd-* hero */
.rd-hero {
  position: relative; height: 260px;
  background: #050c1a; border-radius: 20px 20px 0 0; overflow: hidden;
}
.rd-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.rd-hero:hover .rd-hero-img { transform: scale(1.03); }
.rd-hero-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; opacity: .09;
}
.rd-hero-grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, #070d1c, transparent); pointer-events: none;
}
.rd-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.9);
  cursor: pointer; transition: .15s; backdrop-filter: blur(6px);
}
.rd-close:hover { background: rgba(0,0,0,.82); color: #fff; }

/* rd-* body */
.rd-body { padding: 22px 26px 30px; display: flex; flex-direction: column; gap: 15px; }
.rd-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rd-chip {
  font-size: .69rem; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; border-radius: 6px;
  padding: 3px 9px; border: 1px solid transparent; display: inline-block;
}
.rd-chip-cat  { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.22);  color: #7eb3f8; }
.rd-chip-free { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.25);  color: #34d399; }
.rd-chip-paid { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.25);  color: #fbbf24; }
.rd-chip-vip  { background: rgba(139,92,246,.1);  border-color: rgba(139,92,246,.25);  color: #a78bfa; }
.rd-chip-bst  { background: rgba(236,72,153,.1);  border-color: rgba(236,72,153,.25);  color: #f472b6; }
.rd-chip-owned{ background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2);   color: #34d399; }

.rd-title {
  font-size: 1.52rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -.3px; color: #eef3ff; margin: 0;
}
.rd-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.38);
}
.rd-meta-item { display: flex; align-items: center; gap: 5px; }
.rd-meta-item svg { opacity: .55; flex-shrink: 0; }
.rd-meta-sep { opacity: .22; }
.rd-desc { font-size: .9rem; line-height: 1.72; color: rgba(255,255,255,.52); white-space: pre-wrap; }
.rd-actions { display: flex; flex-direction: column; gap: 8px; }
.rd-btn-primary {
  width: 100%; padding: 13px 20px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 12px; font-size: .94rem; font-weight: 700;
  color: #fff; letter-spacing: .1px; cursor: pointer;
  transition: .2s; box-shadow: 0 4px 20px rgba(59,130,246,.28); border: none;
}
.rd-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(59,130,246,.42); }
.rd-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.rd-btn-primary.active { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.rd-actions-sec { display: flex; gap: 8px; }
.rd-btn-edit, .rd-btn-del {
  flex: 1; padding: 10px 14px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 10px; font-size: .86rem; font-weight: 600; cursor: pointer; transition: .15s;
}
.rd-btn-edit { border: 1px solid rgba(249,115,22,.32); background: rgba(249,115,22,.07); color: #fb923c; }
.rd-btn-edit:hover { background: rgba(249,115,22,.13); }
.rd-btn-del  { border: 1px solid rgba(239,68,68,.28);  background: rgba(239,68,68,.06);  color: #f87171; }
.rd-btn-del:hover  { background: rgba(239,68,68,.12); }

.rd-divider { height: 1px; background: rgba(255,255,255,.06); }

/* rd-* comments */
.rd-comments { display: flex; flex-direction: column; gap: 12px; }
.rd-comm-hd {
  font-size: .75rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  display: flex; align-items: center; gap: 8px;
}
.rd-comm-count {
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2);
  border-radius: 20px; padding: 1px 8px; color: #7eb3f8; font-size: .72rem; font-weight: 700;
}
.rd-comm-list { display: flex; flex-direction: column; gap: 8px; }
.rd-comm-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; position: relative;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05); border-radius: 10px;
}
.rd-comm-av {
  width: 30px; height: 30px; border-radius: 50%;
  overflow: hidden; flex: 0 0 30px; background: rgba(59,130,246,.14);
}
.rd-comm-av img { width: 100%; height: 100%; object-fit: cover; }
.rd-comm-body { flex: 1; min-width: 0; }
.rd-comm-name { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.7); }
.rd-comm-time { font-size: .72rem; color: rgba(255,255,255,.26); margin-left: 7px; }
.rd-comm-text { font-size: .86rem; color: rgba(255,255,255,.5); margin-top: 4px; line-height: 1.5; }
.rd-comm-del {
  position: absolute; top: 8px; right: 8px;
  opacity: 0; transition: .15s; cursor: pointer;
  background: rgba(239,68,68,.1); border-radius: 6px;
  padding: 3px 8px; font-size: .75rem; color: #f87171; border: none;
}
.rd-comm-item:hover .rd-comm-del { opacity: 1; }
.rd-comm-empty { font-size: .86rem; color: rgba(255,255,255,.22); font-style: italic; }
.rd-comm-form { display: flex; flex-direction: column; gap: 8px; }
.rd-comm-inp {
  width: 100%; padding: 10px 14px; box-sizing: border-box;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; color: rgba(255,255,255,.8);
  font-size: .875rem; line-height: 1.5; resize: vertical; min-height: 66px;
  transition: border-color .15s;
}
.rd-comm-inp:focus { outline: none; border-color: rgba(59,130,246,.38); }
.rd-comm-inp::placeholder { color: rgba(255,255,255,.18); }
.rd-comm-send {
  align-self: flex-end; padding: 9px 20px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.28);
  border-radius: 9px; color: #7eb3f8; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.rd-comm-send:hover { background: rgba(59,130,246,.22); }

@media (max-width: 640px) {
  .rd-hero { height: 200px; }
  .rd-body { padding: 16px 18px 24px; }
  .rd-title { font-size: 1.28rem; }
}

/* chips (compat) */
.chip { font-size: .73rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.chip-free    { background: rgba(62,207,122,.12); border: 1px solid rgba(62,207,122,.28); color: #3ecf7a; }
.chip-paid    { background: rgba(245,197,66,.1);  border: 1px solid rgba(245,197,66,.25);  color: #f5c542; }
.chip-vip     { background: rgba(244,127,255,.1); border: 1px solid rgba(244,127,255,.22); color: var(--pink); }
.chip-booster { background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.28); color: #8891f7; }
.chip-owned   { background: rgba(62,207,122,.1);  border: 1px solid rgba(62,207,122,.22);  color: #3ecf7a; }

/* ═══════════════════════════════════════════
   STAFF UPLOAD FAB + MODAL
   ═══════════════════════════════════════════ */
.staff-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 1100;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-deep), var(--orange));
  border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px -8px rgba(59,130,246,.6);
  transition: transform .18s, box-shadow .18s;
}
.staff-fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 14px 38px -8px rgba(59,130,246,.75); }
.staff-fab:active { transform: scale(.96); }

.staff-upload-bg {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(2,4,14,.82); backdrop-filter: blur(10px);
  display: none; place-items: center; padding: 24px;
  animation: fadeIn .18s ease;
}
.staff-upload-bg.open { display: grid; }
.staff-upload-modal {
  width: 100%; max-width: 640px; max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(4,12,26,.99), rgba(2,7,18,.99));
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 20px;
  box-shadow: 0 60px 120px -40px #000;
  animation: riseIn .28s cubic-bezier(.2,.8,.25,1) both;
}
.suf-head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(4,12,28,.96);
  backdrop-filter: blur(10px); z-index: 2; border-radius: 20px 20px 0 0;
}
.suf-head h3 { font-size: 1.05rem; font-weight: 700; flex: 1; }
.suf-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.suf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .suf-row { grid-template-columns: 1fr; } }
.suf-label { display: flex; flex-direction: column; gap: 6px; font-size: .87rem; font-weight: 600; color: var(--muted); }
.suf-label span { font-size: .8rem; color: var(--dim); font-weight: 400; }
.suf-input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: rgba(59,130,246,.05); border: 1px solid var(--line);
  color: var(--text); font-size: .9rem; transition: border-color .18s;
}
.suf-input:focus { outline: none; border-color: rgba(59,130,246,.4); }
.suf-textarea { min-height: 80px; resize: vertical; }
.suf-select { cursor: pointer; }
.suf-access-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.suf-access-btn {
  padding: 8px 16px; border-radius: 9px; font-size: .84rem; font-weight: 600;
  background: rgba(59,130,246,.06); border: 1px solid var(--line-2);
  color: var(--muted); cursor: pointer; transition: .15s;
}
.suf-access-btn.active {
  background: rgba(59,130,246,.16); border-color: rgba(59,130,246,.36);
  color: var(--orange-2);
}
.suf-price-row { display: none; }
.suf-price-row.visible { display: grid; }
.suf-foot {
  padding: 18px 24px 24px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end;
}

