/* The server list. Each server is a card with its icon, role, plan and a live quota ring. */
.sv-main { padding: 56px 0 110px; min-height: 70vh; }
.sv-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-bottom: 34px; }
.sv-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.sv-sub { margin-top: 12px; color: #A9AFC0; font-size: 17px; }
.sv-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sv-search { display: flex; align-items: center; gap: 10px; background: var(--slab); border: 1px solid var(--line2); border-radius: 10px; padding: 0 14px; height: 46px; color: var(--muted); min-width: 240px; }
.sv-search:focus-within { border-color: var(--bot); color: var(--ink); }
.sv-search input { background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 15px; width: 100%; }
.sv-tools select { height: 46px; border-radius: 10px; border: 1px solid var(--line2); background: var(--slab); color: var(--ink); padding: 0 12px; font: inherit; font-size: 15px; }
.sv-add { height: 46px; padding: 0 20px; }

.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.sv-card { background: var(--slab); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.sv-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.sv-cover { height: 92px; position: relative; overflow: hidden; background: var(--c, #5B6BFF); }
.sv-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.26), transparent 55%), linear-gradient(0deg, rgba(7, 8, 11, 0.45), transparent 70%); }
.sv-cover img { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) saturate(1.3); opacity: 0.7; }
.sv-role { position: absolute; top: 12px; right: 12px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(7, 8, 11, 0.62); color: #fff; backdrop-filter: blur(6px); }
.sv-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sv-id { display: flex; gap: 14px; align-items: flex-end; margin-top: -30px; position: relative; }
.sv-sq { width: 64px; height: 64px; border-radius: 18px; border: 4px solid var(--slab); display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 28px; font-weight: 700; overflow: hidden; position: relative; flex: none; background: var(--c); }
.sv-sq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-id h2 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.15; padding-bottom: 4px; overflow-wrap: anywhere; font-family: var(--display); }
.sv-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.sv-badge { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sv-badge.premium { background: rgba(124, 139, 255, 0.16); color: #A3AEFF; }
.sv-badge.plus { background: rgba(176, 140, 255, 0.18); color: #C7AAFF; }
.sv-badge.free { background: var(--raised); color: var(--muted); }
.sv-badge.warn { background: rgba(255, 107, 129, 0.15); color: #FF8EA0; }
.sv-stats { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-block: 1px solid var(--line); }
.sv-ring { width: 58px; height: 58px; position: relative; flex: none; }
.sv-ring svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.sv-ring circle { fill: none; stroke-width: 6; }
.sv-ring .bg { stroke: var(--raised); }
.sv-ring .fg { stroke: var(--tone, var(--ok)); stroke-linecap: round; stroke-dasharray: 138.2; transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.sv-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sv-stat span { color: var(--muted); font-size: 13.5px; }
.sv-acts { display: flex; gap: 10px; margin-top: auto; }
.sv-acts a { flex: 1; justify-content: center; padding: 11px 14px; font-size: 15px; }
.sv-acts .link-btn { flex: 0 0 auto; }
.sv-card.off { opacity: 0.6; }
.sv-card.off .sv-acts { display: none; }
.sv-card.off .sv-cover { filter: grayscale(1); }

.sv-card.add { background: transparent; border: 1.5px dashed var(--line2); align-items: center; justify-content: center; text-align: center; padding: 34px 24px; gap: 14px; min-height: 280px; }
.sv-card.add:hover { transform: none; border-color: var(--bot); }
.sv-card.add .plus-ico { width: 56px; height: 56px; border-radius: 16px; border: 1.5px dashed var(--line2); display: grid; place-items: center; font-size: 28px; color: var(--bot); }
.sv-card.add h2 { font-size: 20px; }
.sv-card.add p { color: var(--muted); font-size: 15px; max-width: 28ch; }

.sv-skel { height: 330px; border-radius: 16px; background: linear-gradient(100deg, var(--slab) 30%, var(--raised) 50%, var(--slab) 70%); background-size: 250% 100%; animation: shim 1.4s linear infinite; border: 1px solid var(--line); }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.sv-empty { grid-column: 1 / -1; border: 1px solid var(--line2); border-radius: 18px; padding: 44px; background: var(--slab); display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.sv-empty h2 { font-size: 30px; }
.sv-empty p { margin-top: 12px; color: #A9AFC0; max-width: 44ch; font-size: 17px; }
.sv-empty .btn-big { margin-top: 22px; }
.sv-empty ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: e; }
.sv-empty li { counter-increment: e; display: flex; gap: 14px; align-items: center; font-size: 16px; }
.sv-empty li::before { content: counter(e); width: 30px; height: 30px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.sv-none { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; font-size: 17px; }

.sv-own { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--slab); max-width: 720px; }
.sv-own summary { display: flex; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.sv-own summary::-webkit-details-marker { display: none; }
.sv-own summary b { display: block; font-size: 16.5px; }
.sv-own summary small { color: var(--muted); font-size: 14.5px; }
.sv-own-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; color: var(--link); flex: none; }
.sv-own[open] summary { border-bottom: 1px solid var(--line); }
.sv-own-body { padding: 20px; display: grid; gap: 14px; }
.sv-own-body label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.sv-own-body input { background: var(--night); border: 1px solid var(--line2); border-radius: 8px; padding: 11px 12px; color: var(--ink); font: inherit; font-weight: 400; }
.sv-own-body input:focus { outline: 2px solid var(--bot); outline-offset: -1px; }
.sv-msg { min-height: 20px; color: #FF8EA0; font-size: 14.5px; margin: 0; }
.sv-fine { color: var(--muted); font-size: 13.5px; }

.sv-gate { max-width: 440px; margin: 70px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.sv-gate-logo { width: 72px; height: 72px; border-radius: 18px; }
.sv-gate h1 { font-size: 34px; }
.sv-gate p { color: #A9AFC0; }
.sv-gate .btn-big { margin-top: 10px; }

@media (max-width: 720px) {
  .sv-main { padding: 34px 0 80px; }
  .sv-tools { width: 100%; }
  .sv-search { flex: 1 1 100%; }
  .sv-tools select, .sv-add { flex: 1; }
  .sv-grid { grid-template-columns: 1fr; }
  .sv-empty { grid-template-columns: 1fr; padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { .sv-card, .sv-ring .fg { transition: none; } .sv-skel { animation: none; } }

/* beat the global form styles */
body.sv .sv-search input { border: 0; padding: 0; height: auto; min-height: 0; background: transparent; width: 100%; box-shadow: none; border-radius: 0; }
body.sv .sv-tools select { width: auto; min-width: 170px; }
body.sv .sv-tools { flex: 0 1 auto; }
.sv-cover::after { content: attr(data-l); position: absolute; right: 18px; bottom: -34px; font-family: var(--display); font-weight: 800; font-size: 130px; line-height: 1; color: rgba(255, 255, 255, 0.16); pointer-events: none; }
#serverSearch { border: 0; padding: 0; height: auto; background: transparent; box-shadow: none; border-radius: 0; }
#serverSearch:hover, #serverSearch:focus { border: 0; box-shadow: none; }
#serverSort { width: auto; min-width: 170px; height: 46px; }
