/* ================= Головна (картки, моди, рядки серверів) ================= */
.btn--gold { background: linear-gradient(135deg, #f3d58f, #d9a648); border: 0; color: #1d1504; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; font-size: 13px; padding: 13px 22px; border-radius: 9px; box-shadow: 0 8px 26px rgba(226,180,90,.22); }
.btn--gold:hover { filter: brightness(1.07); color: #1d1504; background: linear-gradient(135deg, #f3d58f, #d9a648); }
.btn--outline { background: rgba(255,255,255,.02); border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.btn--outline:hover { border-color: rgba(226,180,90,.55); background: rgba(226,180,90,.06); color: #fff; }
.btn--outline .ico { color: var(--accent2); }
.btn--outline.is-on { border-color: var(--accent); color: var(--accent2); }
.hero2__actions .btn--outline { text-transform: uppercase; letter-spacing: .4px; font-size: 13px; padding: 13px 22px; border-radius: 9px; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--panel2); font-size: 12px; line-height: 20px; text-align: center; color: var(--text); }

/* hero */
.hero2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  background: radial-gradient(700px 300px at 0% 0%, rgba(226,180,90,.09), transparent 70%), linear-gradient(135deg, #24231f, #1a1b1d 60%);
  border: 1px solid var(--line); border-radius: 18px; padding: 38px 40px; margin-bottom: 34px; }
.hero2__text { max-width: 640px; }
.hero2 h1 { font-size: 34px; line-height: 1.12; margin: 0 0 16px; text-transform: uppercase; letter-spacing: -.5px; font-weight: 900; }
.hero2 p { color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.hero2__stats { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero2__stats b { color: var(--accent2); font-size: 18px; margin-right: 4px; }
.hero2__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* заголовки секцій */
.slots { margin-bottom: 30px; }
.sechead { display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.3px; margin: 0 0 16px; }
.sechead::after { content: ""; width: 64px; height: 2px; background: var(--accent); border-radius: 2px; }

/* картки платних місць */
.gcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; color: var(--text); transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: rgba(226,180,90,.5); transform: translateY(-2px); }
.gcard--color { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 26%, var(--panel)), var(--panel) 85%); border-color: color-mix(in srgb, var(--rc) 45%, var(--line)); }
.gcard--off { opacity: .6; }
.gcard__media { position: relative; height: 150px; background: #2a2b2e center/cover no-repeat; padding: 10px 12px; display: flex; flex-direction: column; }
.gcard__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 45%, rgba(0,0,0,.6)); }
.gcard__media > * { position: relative; }
.gcard__media--empty, .row2__map--empty { background: linear-gradient(160deg, #1d2333, #151a26); }
.gcard__link { position: absolute !important; inset: 0; z-index: 1; }
.gcard__badge { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #f3d58f; background: rgba(20,16,6,.75); border: 1px solid rgba(226,180,90,.5); padding: 2px 7px; border-radius: 5px; }
.gcard .fav { position: absolute; top: 9px; right: 10px; z-index: 2; }
.gcard .dot { margin-top: 8px; }
.gcard__name { font-weight: 800; font-size: 14px; line-height: 1.25; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.8); word-break: break-word; }
.gcard .maptag { margin-top: auto; align-self: flex-start; }
.gcard__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.gcard__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gcard__row .ipbox { flex: 1; }
.gcard__row .country { margin-left: auto; }
.gcard--free { opacity: .85; }
.gcard--free .gcard__name { color: var(--muted); }
.gcard__free { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 15px; padding: 18px 10px; min-height: 108px; }
.gcard__free small { color: var(--accent2); font-size: 12.5px; }
.mapph { position: absolute !important; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(255,255,255,.14); pointer-events: none; }
.mapph .ico { width: 42px; height: 42px; stroke-width: 1.3; }
.mapph small { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }

/* дрібні елементи */
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; flex: none; display: inline-block; }
.dot--on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.15); }
.maptag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .2px; background: rgba(10,10,10,.82); color: #fff; padding: 3px 7px; border-radius: 4px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.maptag .ico { width: 12px; height: 12px; color: var(--accent); flex: none; }
.pl { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pl b { color: var(--text); }
.pl .ico, .row2__pl .ico { width: 14px; height: 14px; }
.fav { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(15,15,15,.6); border: 1px solid rgba(255,255,255,.14); color: #d1d5db; cursor: pointer; padding: 0; flex: none; transition: color .15s, border-color .15s, background .15s; }
.fav:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.fav.is-on { color: #f43f5e; border-color: rgba(244,63,94,.55); background: rgba(244,63,94,.12); }
.fav.is-on .ico { fill: currentColor; }
.votes { display: inline-flex; align-items: center; gap: 2px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 7px; padding: 2px; flex: none; }
.votes button { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 5px; cursor: pointer; padding: 0; }
.votes button .ico { width: 15px; height: 15px; }
.votes__up { color: #4ade80; }
.votes__down { color: #fb7185; }
.votes button:hover { background: rgba(255,255,255,.07); }
.votes button:disabled { opacity: .4; cursor: default; }
.votes__n { min-width: 22px; text-align: center; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.votes.is-voted { border-color: rgba(74,222,128,.4); }
.ipbox { display: inline-flex; align-items: center; gap: 7px; min-width: 0; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; height: 34px; color: #cfd3da; cursor: pointer; font: inherit; }
.ipbox .ico { width: 13px; height: 13px; flex: none; color: var(--muted); }
.ipbox .mono { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipbox:hover { border-color: #4a4f58; color: #fff; }
.ipbox.is-copied { border-color: rgba(74,222,128,.5); color: #4ade80; }
.playbtn { width: 38px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: linear-gradient(135deg, #f3d58f, #d9a648); color: #1d1504; flex: none; }
.playbtn .ico { width: 16px; height: 16px; }
.playbtn:hover { filter: brightness(1.1); color: #1d1504; }
.country { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); display: block; }
.country__name { color: var(--muted); font-size: 13.5px; white-space: nowrap; }

/* моди */
.mods { margin: 6px 0 26px; }
.mods__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 12px; }
.mods__head .ico { width: 18px; height: 18px; color: var(--accent); fill: var(--accent); }
.mods__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mchip { padding: 8px 13px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: #d6d8dc; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.mchip:hover { border-color: #4a4f58; color: #fff; }
.mchip.is-on { border-color: var(--accent); color: var(--accent2); background: rgba(226,180,90,.08); }

/* заголовок списку + параметри */
.listhead { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.listhead__title { font-size: 26px; font-weight: 800; margin: 0; padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.1; }
.listhead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.listhead__actions .btn { text-transform: uppercase; font-size: 12px; letter-spacing: .3px; padding: 9px 14px; }
.params { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto auto; gap: 12px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.params[hidden] { display: none; }
.params .input { width: 100%; }
.params .check { padding-bottom: 10px; }
.params__btns { display: flex; gap: 8px; }

/* рядки серверів */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) 260px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 114px; transition: border-color .15s; }
.row2:hover { border-color: #43474f; }
.row2--color { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 32%, var(--panel)), color-mix(in srgb, var(--rc) 14%, var(--panel)) 70%, var(--panel)); border-color: color-mix(in srgb, var(--rc) 40%, var(--line)); box-shadow: inset 4px 0 0 var(--rc); }
.row2--first { box-shadow: inset 4px 0 0 var(--gold); border-color: rgba(245,197,66,.35); }
.row2--off { opacity: .55; }
.row2__main { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.row2__line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row2__name { font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-transform: uppercase; letter-spacing: .1px; }
.row2__name:hover { color: #fff; }
.row2__icons { display: inline-flex; gap: 6px; align-items: center; flex: none; }
.ic { display: inline-flex; }
.ic .ico { width: 18px; height: 18px; }
.ic--boost { color: #a855f7; }
.ic--boost .ico { fill: rgba(168,85,247,.35); }
.ic--color { color: #ec4899; }
.row2__pl { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.row2__pl b { color: var(--text); }
.row2__mode { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row2__right { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; flex: none; }
.row2 .ipbox { flex: 0 1 auto; }
.row2__map { position: relative; display: block; background: #2a2b2e center/cover no-repeat; border-left: 1px solid var(--line); }
.row2__map .maptag { position: absolute; left: 10px; bottom: 10px; }

@media (max-width: 1150px) {
  .gcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .params { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row2 { grid-template-columns: minmax(0, 1fr) 170px; }
  .row2__mode { display: none; }
}
@media (max-width: 680px) {
  .hero2 { padding: 24px 20px; }
  .hero2 h1 { font-size: 24px; }
  .hero2__actions, .hero2__actions .btn { width: 100%; }
  .sechead { font-size: 20px; }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gcard__media { height: 120px; }
  .gcard__row .votes { display: none; }
  .params { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .row2__map { display: none; }
  .row2__line { flex-wrap: wrap; }
  .row2__name { white-space: normal; flex-basis: calc(100% - 30px); }
  .row2__pl { margin-left: 0; }
  .row2__right { margin-left: auto; }
  .country__name { display: none; }
  .listhead__title { font-size: 21px; }
}

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f2125; border: 1px solid rgba(74,222,128,.45); color: #e7e9ee; padding: 10px 16px; border-radius: 9px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--err { border-color: rgba(251,113,133,.5); }
.vote__btns { display: flex; gap: 6px; width: 100%; } .vote__btns .btn--ghost { flex: none; padding: 9px 11px; } .vote__btns .btn--ghost .ico { color: #fb7185; }
