/* L2TOP V33: clean public-facing visual layer.
   Scope: body.l2top-public only; existing Admin layout is untouched.
   This file is intentionally loaded AFTER legacy l2.css while existing Views are migrated.
   Dark mode follows Bootstrap data-bs-theme; do not add a second theme state. */

body.l2top-public {
  --lt-bg: #eef2f7;
  --lt-surface: #ffffff;
  --lt-soft: #f7f9fc;
  --lt-text: #1e3048;
  --lt-muted: #69798e;
  --lt-border: #dbe3ed;
  --lt-gold: #245b91;
  --lt-gold-hover: #245b91;
  --lt-gold-soft: #a5c7e9;
  --lt-shadow: 0 8px 24px rgba(32,50,75,.055);
  background: var(--lt-bg);
  color: var(--lt-text);
  font-size: 14px;
}
html[data-bs-theme="dark"] body.l2top-public {
  --lt-bg: #101a28;
  --lt-surface: #182638;
  --lt-soft: #202f43;
  --lt-text: #ebf1f9;
  --lt-muted: #acbbcc;
  --lt-border: #36485e;
  --lt-gold: #245b91;
  --lt-gold-hover: #245b91;
  --lt-gold-soft: #14365b;
  --lt-shadow: 0 8px 26px rgba(0,0,0,.18);
}
body.l2top-public a { text-underline-offset: 3px; }
body.l2top-public .layout-wrapper { gap: 20px; padding: 16px 12px 28px; min-height: 0; }
body.l2top-public .center-area { width: 1050px; max-width: 100%; min-width: 0; }
body.l2top-public .center-area img { max-width: 100%; }
body.l2top-public .page-content { min-width: 0; }

/* Navigation: preserve existing auth/admin links and collapse behavior. */
body.l2top-public .main-navbar {
  min-height: 67px;
  background: var(--lt-surface) !important;
  border-color: var(--lt-border) !important;
  box-shadow: 0 2px 14px rgba(27,42,66,.055);
  backdrop-filter: blur(12px);
}
body.l2top-public .main-navbar-logo { height: 56px; width: auto; max-width: 170px; object-fit: contain; }
body.l2top-public .main-menu { gap: 2px; }
body.l2top-public .main-menu .nav-link {
  padding: 16px 10px;
  color: var(--lt-muted);
  font-size: 15px;
  font-weight: 700;
}
body.l2top-public .main-menu .nav-link:hover,
body.l2top-public .main-menu .nav-link.active { color: var(--lt-text); }
body.l2top-public .main-menu .nav-link::after { bottom: 7px; left: 10px; right: 10px; background: var(--lt-gold); }
body.l2top-public .main-menu .premium-link { color: var(--lt-gold); }
body.l2top-public .main-menu .advertising-link { color: var(--lt-gold); }
body.l2top-public .navbar-action,
body.l2top-public .theme-toggle {
  border-radius: 8px;
  min-height: 35px;
  font-size: 14px;
}
body.l2top-public .navbar-action-primary,
body.l2top-public .navbar-action-dark {
  color: #fff !important;
  background: linear-gradient(180deg,#245b91,#245b91);
  border-color: #245b91;
}
body.l2top-public .navbar-action-primary:hover,
body.l2top-public .navbar-action-dark:hover { background: #4e85be; border-color: #4e85be; color: #fff !important; }
body.l2top-public .navbar-action-light,
body.l2top-public .theme-toggle { color: var(--lt-text); background: var(--lt-surface); border-color: var(--lt-border); }
body.l2top-public .navbar-action-light:hover,
body.l2top-public .theme-toggle:hover { background: var(--lt-soft); color: var(--lt-text); }

/* Shared public controls. Intentionally excludes admin layout. */
body.l2top-public .btn-primary,
body.l2top-public button.btn-primary,
body.l2top-public input.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-bg: #245b91;
  --bs-btn-border-color: #245b91;
  --bs-btn-hover-bg: #4e85be;
  --bs-btn-hover-border-color: #4e85be;
  background: linear-gradient(180deg,#245b91,#245b91);
  color: #fff !important;
  border-color: #245b91;
  box-shadow: none;
  font-weight: 700;
}
body.l2top-public .btn-primary:hover,
body.l2top-public .btn-primary:focus-visible {
  background: #4e85be;
  color: #fff !important;
  border-color: #4e85be;
}
body.l2top-public .btn-outline-primary {
  --bs-btn-color: var(--lt-gold);
  --bs-btn-border-color: var(--lt-gold);
  --bs-btn-hover-bg: var(--lt-gold);
  --bs-btn-hover-border-color: var(--lt-gold);
  color: var(--lt-gold);
  border-color: var(--lt-gold);
}
body.l2top-public .btn-outline-primary:hover { background: var(--lt-gold); color: #fff; }
body.l2top-public .card,
body.l2top-public .account-sidebar,
body.l2top-public .account-content {
  color: var(--lt-text);
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-radius: 12px;
  box-shadow: var(--lt-shadow);
}
body.l2top-public .card-header { background: var(--lt-soft); border-color: var(--lt-border); }
body.l2top-public .form-control,
body.l2top-public .form-select,
body.l2top-public .input-group-text {
  color: var(--lt-text);
  background-color: var(--lt-surface);
  border-color: var(--lt-border);
}
body.l2top-public .form-control:focus,
body.l2top-public .form-select:focus { border-color: var(--lt-gold); box-shadow: 0 0 0 .2rem rgba(36,91,145,.16); }
body.l2top-public .text-muted { color: var(--lt-muted) !important; }
body.l2top-public .breadcrumb a { color: var(--lt-gold); }
body.l2top-public .table { --bs-table-bg: transparent; --bs-table-color: var(--lt-text); --bs-table-border-color: var(--lt-border); }
body.l2top-public .pagination .page-link { color: var(--lt-text); background: var(--lt-surface); border-color: var(--lt-border); }
body.l2top-public .pagination .active .page-link { color: #fff; background: var(--lt-gold); border-color: var(--lt-gold); }

/* Existing footer includes its own CSS; this layer overrides palette only. */
body.l2top-public .footer-dark {
  margin-top: 24px;
  border-top: 2px solid #245b91;
  background: linear-gradient(140deg,#172536,#23344b 58%,#172536) !important;
  color: #e8edf5;
}
body.l2top-public .footer-dark .footer-heading { color: #4e85be; }
body.l2top-public .footer-dark .footer-brand { color: #fff; }
body.l2top-public .footer-dark .footer-link:hover,
body.l2top-public .footer-dark a:hover { color: #4e85be; }

/* Header banner slots and side banners keep their existing dimensions / click handlers. */
body.l2top-public .top-ads { gap: 8px; margin-bottom: 14px; }
body.l2top-public .side-ad { top: 77px; }

/* Unmodified forms may use fixed widths; prioritize responsive preservation. */
@media (max-width: 1199.98px) {
  body.l2top-public .main-menu .nav-link { padding: 12px 8px; }
  body.l2top-public .side-ad { display: none !important; }
}
@media (max-width: 991.98px) {
  body.l2top-public .navbar-actions { padding: 12px 0; flex-wrap: wrap; }
  body.l2top-public .main-menu .nav-link { padding: 10px 8px; }
  body.l2top-public .main-menu .nav-link::after { display: none; }
  body.l2top-public .layout-wrapper { padding: 12px 8px 20px; }
}
@media (max-width: 575.98px) {
  body.l2top-public .main-navbar-logo { height: 46px; }
  body.l2top-public .layout-wrapper { padding: 8px 5px 18px; }
  body.l2top-public .center-area { width: 100%; }
  body.l2top-public .navbar-action { padding-inline: 10px; }
}


/* V34 — Reuse approved Home design on live public Views, no preview controller. */
/* L2TOP NEXT — Scoped admin preview. Does not recolor the public website. */
.l2next{--n-bg:#f2f5fa;--n-panel:#fff;--n-panel-soft:#f8fafc;--n-ink:#15263e;--n-muted:#6c7c91;--n-border:#dce3ec;--n-gold:#245b91;--n-gold-soft:#d8e8f9;--n-shadow:0 8px 28px rgba(27,49,76,.07);color:var(--n-ink);background:var(--n-bg);padding:16px clamp(12px,2vw,26px) 28px;border-radius:16px;isolation:isolate;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
html[data-bs-theme="dark"] .l2next{--n-bg:#0c1421;--n-panel:#152233;--n-panel-soft:#1d2c3e;--n-ink:#f2f5fc;--n-muted:#adbbcd;--n-border:#344359;--n-gold:#4e85be;--n-gold-soft:#342b23;--n-shadow:0 12px 34px rgba(0,0,0,.25)}
.l2next *{box-sizing:border-box}.l2next a{text-decoration:none}.l2next h1,.l2next h2,.l2next h3{color:var(--n-ink)}.l2next .ln-admin-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:16px;padding:8px 12px;border:1px solid var(--n-border);border-radius:9px;background:var(--n-panel);font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--n-gold)}.l2next .ln-admin-actions{display:flex;gap:12px;align-items:center}.l2next .ln-admin-actions>a{color:var(--n-muted)}.l2next .ln-theme-toggle{background:var(--n-panel-soft);border:1px solid var(--n-border);border-radius:8px;padding:7px 12px;color:var(--n-ink);font-weight:700}
.l2next .ln-card{background:var(--n-panel);border:1px solid var(--n-border);border-radius:13px;box-shadow:var(--n-shadow);min-width:0}.l2next .ln-eyebrow{font-weight:800;font-size:10px;letter-spacing:.16em;color:var(--n-gold);text-transform:uppercase}.l2next .ln-hero{position:relative;overflow:hidden;display:grid;place-items:center;min-height:270px;padding:32px 18px;border:1px solid var(--n-border);border-radius:15px;text-align:center;background:radial-gradient(circle at 9% 80%,rgba(36,91,145,.18),transparent 39%),radial-gradient(circle at 96% 4%,rgba(116,157,202,.18),transparent 43%),linear-gradient(125deg,var(--n-panel),var(--n-panel-soft))}.l2next .ln-hero-inner{position:relative;z-index:1}.l2next .ln-hero h1{font:700 clamp(25px,3vw,38px)/1.18 Georgia,serif;margin:10px 0;color:var(--n-ink)}.l2next .ln-hero p{font-size:13px;color:var(--n-muted);margin:0 0 18px}.l2next .ln-hero-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.l2next .ln-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:9px;font-size:12px;font-weight:800;border:1px solid var(--n-border);color:var(--n-ink);background:var(--n-panel)}.l2next .ln-button-primary{background:linear-gradient(180deg,#4e85be,#245b91);border-color:#245b91;color:#1b2230!important}.l2next .ln-button-outline{color:var(--n-ink)}.l2next .ln-chronicles{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:17px}.l2next .ln-chronicles a{padding:6px 11px;border:1px solid var(--n-border);border-radius:20px;color:var(--n-ink);background:var(--n-panel);font-size:11px;font-weight:700}
.l2next .ln-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.l2next .ln-quick-card{display:flex;align-items:center;gap:12px;padding:15px;color:var(--n-ink)!important}.l2next .ln-quick-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;font-size:21px;color:var(--n-gold);border-radius:10px;background:var(--n-gold-soft)}.l2next .ln-quick-card strong{display:block;font-family:Georgia,serif;font-size:16px;color:var(--n-ink)}.l2next .ln-quick-card small{font-size:11px;color:var(--n-muted)}.l2next .ln-count{font-size:10px;white-space:nowrap;color:var(--n-gold);margin-left:auto}.l2next .ln-panel-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--n-border);padding:14px 16px}.l2next .ln-panel-header h2{margin:0;font:700 19px/1.25 Georgia,serif}.l2next .ln-inline-link{color:var(--n-gold)!important;font-size:11px;font-weight:800}.l2next .ln-header-right{display:flex;align-items:center;gap:12px}.l2next .ln-period{font-size:10px;background:var(--n-panel-soft);border:1px solid var(--n-border);padding:5px 9px;border-radius:20px;color:var(--n-muted)}
.l2next .ln-featured{margin-bottom:16px;border-color:color-mix(in srgb,var(--n-gold) 40%,var(--n-border))}.l2next .ln-featured-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;padding:12px}.l2next .ln-featured-item{min-width:0}.l2next .ln-featured-item .server-row-vip{width:100%;max-width:100%}.l2next .ln-content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,30%);gap:13px}.l2next .ln-ranking-list{padding:8px;min-width:0}.l2next .ln-ranking-list>.server-row{max-width:100%;margin-bottom:6px}.l2next .ln-ranking-list img{max-width:100%}.l2next .ln-sidebar{display:grid;align-content:start;gap:12px;min-width:0}.l2next .ln-small-panel .ln-panel-header h2{font-size:16px}.l2next .ln-compact-list{padding:3px 13px}.l2next .ln-compact-item{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:10px 0;border-bottom:1px solid var(--n-border);font-size:11px}.l2next .ln-compact-item:last-child{border-bottom:0}.l2next .ln-name{font-weight:800;color:var(--n-ink)!important}.l2next .ln-compact-meta,.l2next time{color:var(--n-muted);font-size:10px}.l2next time{margin-left:auto}.l2next .ln-boost{font-size:9px;color:var(--n-gold);background:var(--n-gold-soft);padding:2px 6px;border-radius:5px}.l2next .ln-empty{padding:18px;color:var(--n-muted);font-size:12px;margin:0}.l2next .ln-cta{margin-top:16px;padding:21px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.l2next .ln-cta h2{font:700 21px Georgia,serif;margin:4px 0}.l2next .ln-cta p{margin:0;font-size:12px;color:var(--n-muted)}
/* Existing shared server partials have their own light/dark rules. This scope adapts them without modifying global l2.css. */
html[data-bs-theme="dark"] .l2next .server-row,html[data-bs-theme="dark"] .l2next .server-row-vip{background:var(--n-panel)!important;color:var(--n-ink)!important;border-color:var(--n-border)!important}html[data-bs-theme="dark"] .l2next .server-row a,html[data-bs-theme="dark"] .l2next .server-row-vip a{color:inherit}html[data-bs-theme="dark"] .l2next .server-row .text-muted,html[data-bs-theme="dark"] .l2next .server-row-vip .text-muted{color:var(--n-muted)!important}
@media(max-width:1000px){.l2next .ln-content-grid{grid-template-columns:1fr}}@media(max-width:680px){.l2next{padding:10px 8px 20px}.l2next .ln-quick{grid-template-columns:1fr;gap:8px}.l2next .ln-hero{min-height:235px;padding:24px 12px}.l2next .ln-hero h1{font-size:27px}.l2next .ln-featured-grid{grid-template-columns:1fr}.l2next .ln-panel-header h2{font-size:17px}.l2next .ln-admin-bar{align-items:flex-start}}

/* v2: compact, readable ranking independent of the public server_row partial */
.l2next .ln-ranking-list{padding:6px 10px 11px}
.l2next .ln-server-row{display:grid;grid-template-columns:38px minmax(0,1fr) 88px 118px;gap:12px;align-items:center;padding:12px 9px;border-bottom:1px solid var(--n-border);min-width:0}
.l2next .ln-server-row:last-child{border-bottom:0}
.l2next .ln-server-row.is-vip{background:linear-gradient(90deg,var(--n-gold-soft),transparent 68%);border-radius:9px}
.l2next .ln-rank{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--n-border);border-radius:10px;font:700 18px Georgia,serif;background:var(--n-panel-soft);color:var(--n-muted)}
.l2next .ln-rank-1{color:#ffffff;background:#245b91;border-color:#245b91}
.l2next .ln-rank-2{color:#41546c;background:#e8edf4;border-color:#c6d3e1}
.l2next .ln-rank-3{color:#174c7e;background:#d9eafb;border-color:#90b6dd}
.l2next .ln-server-main{min-width:0}
.l2next .ln-server-title-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.l2next .ln-server-title{font-weight:800;font-size:14px;color:var(--n-ink)!important;overflow-wrap:anywhere}
.l2next .ln-vip-label{background:#4e85be;color:#4e85be;font-size:9px;font-weight:800;padding:3px 6px;border-radius:5px}
.l2next .ln-server-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px}
.l2next .ln-chronicle,.l2next .ln-rate{font-size:10px;padding:4px 7px;border-radius:6px;border:1px solid var(--n-border);background:var(--n-panel-soft);color:var(--n-muted)}
.l2next .ln-chronicle{color:var(--n-ink);font-weight:700}
.l2next .ln-rate b{color:var(--n-ink);font-weight:750}
.l2next .ln-server-votes{text-align:center}
.l2next .ln-server-votes strong{display:block;color:var(--n-ink);font-size:16px}
.l2next .ln-server-votes small{font-size:9px;color:var(--n-muted)}
.l2next .ln-server-actions{display:grid;gap:5px}
.l2next .ln-server-actions a{display:block;text-align:center;border-radius:7px;padding:6px;font-size:11px;font-weight:800}
.l2next .ln-vote-button{background:linear-gradient(#4e85be,#245b91);color:#1e2632!important}
.l2next .ln-details-button{border:1px solid var(--n-border);background:var(--n-panel-soft);color:var(--n-ink)!important}
.l2next .ln-search-form{max-width:600px;display:flex;gap:8px;margin:17px auto 2px}
.l2next .ln-search-form input{min-width:0;flex:1;padding:12px 15px;background:var(--n-panel);color:var(--n-ink);border:1px solid var(--n-border);border-radius:9px;font-size:13px}
.l2next .ln-search-form button{padding:10px 16px;border:1px solid #245b91;border-radius:9px;background:linear-gradient(#4e85be,#245b91);font-size:12px;font-weight:800;color:#182536}
.l2next .ln-hero{min-height:260px}
.l2next .ln-featured{margin:16px 0 0}
.l2next .ln-server-row a:focus-visible,.l2next .ln-search-form input:focus-visible,.l2next .ln-search-form button:focus-visible{outline:2px solid var(--n-gold);outline-offset:2px}
@media(max-width:680px){
.l2next .ln-server-row{grid-template-columns:33px minmax(0,1fr) 82px;gap:7px}
.l2next .ln-server-votes{grid-column:3}
.l2next .ln-server-actions{grid-column:2/-1;display:flex}
.l2next .ln-server-actions a{flex:1}
.l2next .ln-search-form{flex-direction:column}
}

.l2next .ln-server-row[hidden]{display:none!important}
.l2next .ln-search-link{display:grid;place-items:center;padding:10px 16px;border:1px solid #245b91;border-radius:9px;background:linear-gradient(#4e85be,#245b91);font-size:12px;font-weight:800;color:#182536!important;white-space:nowrap}


/* =========================================================
   L2TOP NEXT V3 – visual refinement (admin preview only)
   The public website does not receive these styles.
   ========================================================= */
.l2next {
  --n-bg: #edf2f8;
  --n-panel: #ffffff;
  --n-panel-soft: #f5f8fc;
  --n-ink: #14253d;
  --n-muted: #64758b;
  --n-border: #d9e1ec;
  --n-gold: #245b91;
  --n-gold-soft: #a5c7e9;
  --n-shadow: 0 8px 24px rgba(24, 48, 79, .065);
  border: 1px solid rgba(60,82,108,.08);
}
html[data-bs-theme="dark"] .l2next {
  --n-bg: #0c1420;
  --n-panel: #142131;
  --n-panel-soft: #1c2c40;
  --n-ink: #eef3fb;
  --n-muted: #a9b8cb;
  --n-border: #35475f;
  --n-gold: #4e85be;
  --n-gold-soft: #342c25;
  --n-shadow: 0 12px 26px rgba(0,0,0,.19);
}
.l2next .ln-admin-bar {padding: 7px 13px; margin-bottom: 12px; box-shadow:none}
.l2next .ln-hero {
  min-height: 0;
  padding: 25px 20px 23px;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--n-gold) 25%, var(--n-border));
  background:
    radial-gradient(ellipse at -10% 110%, rgba(36,91,145,.20) 0, transparent 44%),
    radial-gradient(ellipse at 110% -20%, rgba(100,145,195,.23) 0, transparent 45%),
    linear-gradient(135deg,var(--n-panel),var(--n-panel-soft));
}
.l2next .ln-hero::before,.l2next .ln-hero::after {
  content: ''; position:absolute; pointer-events:none; z-index:0;
  width: 34%; height: 90%; bottom: -30%;
  border: 1px solid color-mix(in srgb,var(--n-gold) 16%,transparent);
  transform: rotate(38deg);
  border-radius: 30px;
}
.l2next .ln-hero::before {left:-22%}
.l2next .ln-hero::after {right:-22%;transform:rotate(-38deg)}
.l2next .ln-hero-inner {width:100%; max-width:810px}
.l2next .ln-hero h1 {font-size:clamp(26px,3vw,37px); letter-spacing:-.035em; margin:7px 0 5px}
.l2next .ln-hero p {font-size:12px; margin:0 0 10px}
.l2next .ln-search-form {margin:13px auto 0; max-width:570px}
.l2next .ln-search-form input {padding:10px 13px}
.l2next .ln-search-link {padding:8px 15px}
.l2next .ln-hero-actions {margin-top:8px}
.l2next .ln-hero-actions .ln-button {padding:8px 12px}
.l2next .ln-chronicles {margin-top:11px}
.l2next .ln-chronicles a {padding:5px 11px;transition:background .15s,color .15s}
.l2next .ln-chronicles a:hover {background:var(--n-gold-soft);color:var(--n-ink)}
.l2next .ln-quick {margin:12px 0; gap:11px}
.l2next .ln-quick-card {padding:13px 12px; transition:transform .18s,box-shadow .18s}
.l2next .ln-quick-card:hover {transform:translateY(-2px);box-shadow:0 11px 26px rgba(19,38,65,.10)}
.l2next .ln-quick-card strong {font-size:15px}
.l2next .ln-quick-card small {font-size:10px}
.l2next .ln-content-grid {grid-template-columns:minmax(0,1fr) minmax(245px,30%);gap:12px}
.l2next .ln-panel-header {padding:12px 15px}
.l2next .ln-panel-header h2 {font-size:19px}
.l2next .ln-server-row {padding:12px 9px; gap:10px; grid-template-columns:36px minmax(0,1fr) 67px 100px}
.l2next .ln-server-title {font-size:14px}
.l2next .ln-server-tags {gap:4px}
.l2next .ln-server-votes strong {font-size:17px}
.l2next .ln-server-actions a {padding:7px 5px;transition:filter .15s}
.l2next .ln-server-actions a:hover {filter:brightness(1.07)}
.l2next .ln-small-panel .ln-panel-header h2 {font-size:15px}
.l2next .ln-compact-item {padding:9px 0}
.l2next .ln-name {overflow-wrap:anywhere}
.l2next .ln-cta {background:linear-gradient(112deg,var(--n-panel),var(--n-panel-soft))}
.l2next .ln-theme-toggle {cursor:pointer}
.l2next .ln-theme-toggle:hover {border-color:var(--n-gold)}
.l2next :focus-visible {outline:2px solid var(--n-gold);outline-offset:3px}
@media (max-width: 1000px) {
 .l2next .ln-content-grid {grid-template-columns:minmax(0,1fr) minmax(210px,31%)}
}
@media (max-width: 780px) {
 .l2next .ln-content-grid {grid-template-columns:minmax(0,1fr)}
 .l2next .ln-sidebar {grid-template-columns:repeat(2,minmax(0,1fr))}
 .l2next .ln-server-row {grid-template-columns:36px minmax(0,1fr) 72px 104px}
}
@media (max-width: 580px) {
 .l2next .ln-sidebar {grid-template-columns:1fr}
 .l2next .ln-quick {grid-template-columns:1fr}
 .l2next .ln-hero {padding:22px 12px}
 .l2next .ln-hero h1 {font-size:26px}
 .l2next .ln-search-form {flex-direction:column}
 .l2next .ln-server-row {grid-template-columns:33px minmax(0,1fr) 65px;gap:8px}
 .l2next .ln-server-actions {grid-column:2/-1;display:flex}
 .l2next .ln-server-actions a {flex:1}
 .l2next .ln-header-right {flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce) {
 .l2next .ln-quick-card,.l2next .ln-server-actions a {transition:none}
}


/* =====================================================
   CHRONICLE COLORS
===================================================== */

.l2next .ln-chronicle{
    font-weight: 800;
    letter-spacing: .1px;
    border-width: 1px;
}

.l2next .ln-chronicle-interlude{
    color: #ffffff;
    border-color: #7f44ff;
    background: linear-gradient(135deg, #8d55ff, #6b34d8);
}

.l2next .ln-chronicle-high-five,
.l2next .ln-chronicle-highfive{
    color: #ffffff;
    border-color: #2563eb;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.l2next .ln-chronicle-classic{
    color: #ffffff;
    border-color: #1f9d55;
    background: linear-gradient(135deg, #27b067, #17824c);
}

.l2next .ln-chronicle-essence{
    color: #ffffff;
    border-color: #c084fc;
    background: linear-gradient(135deg, #d8a9ff, #a855f7);
}

.l2next .ln-chronicle-fafurion,
.l2next .ln-chronicle-fafurion-update{
    color: #ffffff;
    border-color: #0f766e;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.l2next .ln-chronicle-helios,
.l2next .ln-chronicle-goddess{
    color: #ffffff;
    border-color: #eaf3fd;
    background: linear-gradient(135deg, #d8e8f9, #eaf3fd);
}

.l2next .ln-chronicle-epilogue,
.l2next .ln-chronicle-gracia-final,
.l2next .ln-chronicle-gracia-epilogue{
    color: #ffffff;
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.l2next .ln-chronicle-c1,
.l2next .ln-chronicle-c2,
.l2next .ln-chronicle-c3,
.l2next .ln-chronicle-c4,
.l2next .ln-chronicle-c5{
    color: #ffffff;
    border-color: #64748b;
    background: linear-gradient(135deg, #7b8798, #475569);
}

.l2next .ln-chronicle-kamael,
.l2next .ln-chronicle-hellbound,
.l2next .ln-chronicle-freya,
.l2next .ln-chronicle-high-five-part-5{
    color: #ffffff;
    border-color: #dc2626;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.l2next .ln-chronicle-ertheia,
.l2next .ln-chronicle-grand-crusade{
    color: #ffffff;
    border-color: #0891b2;
    background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.l2next .ln-chronicle-other{
    color: #233246;
    border-color: #cfd8e3;
    background: #f6f9fc;
}

[data-bs-theme="dark"] .l2next .ln-chronicle{
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

[data-bs-theme="dark"] .l2next .ln-chronicle-other{
    color: #eef5ff;
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
}


/* V5 — consistent chronicle and start-date badges in every preview block */
.l2next .ln-compact-item{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:11px 0}
.l2next .ln-compact-item .ln-name{font-size:12px;line-height:1.35}
.l2next .ln-compact-details,.l2next .ln-featured-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.l2next .ln-compact-details .ln-chronicle,.l2next .ln-featured-badges .ln-chronicle{font-size:10px;padding:4px 8px;line-height:1.2}
.l2next .ln-chronicle{display:inline-flex;align-items:center;justify-content:center;max-width:100%;line-height:1.2}
.l2next .ln-launch{display:inline-flex;align-items:center;border:1px solid transparent;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:800;line-height:1.2;white-space:nowrap;margin:0}
.l2next .ln-launch-today{color:#086b34;background:#d8f7e3;border-color:#8ed7aa}
.l2next .ln-launch-tomorrow{color:#aa2730;background:#ffe5e7;border-color:#f2a2a8}
.l2next .ln-launch-soon{color:#a5c7e9;background:#eaf3fd;border-color:#4e85be}
.l2next .ln-launch-future{color:#506176;background:#ecf1f7;border-color:#d3dce8}
.l2next .ln-launch-past{color:#68768a;background:#f0f3f7;border-color:#dbe1e8}
.l2next .ln-featured-badges{padding:7px 0 9px}
html[data-bs-theme="dark"] .l2next .ln-launch-today{color:#86efac;background:#123d2b;border-color:#276747}
html[data-bs-theme="dark"] .l2next .ln-launch-tomorrow{color:#ffacb2;background:#4a2029;border-color:#82404b}
html[data-bs-theme="dark"] .l2next .ln-launch-soon{color:#d8e8f9;background:#1b4775;border-color:#1b4775}
html[data-bs-theme="dark"] .l2next .ln-launch-future,html[data-bs-theme="dark"] .l2next .ln-launch-past{color:#c0cada;background:#233449;border-color:#43556b}
.l2next .ln-chronicle-interlude,.l2next .ln-chronicle-high-five,.l2next .ln-chronicle-highfive,.l2next .ln-chronicle-classic,.l2next .ln-chronicle-essence,.l2next .ln-chronicle-fafurion,.l2next .ln-chronicle-fafurion-update,.l2next .ln-chronicle-helios,.l2next .ln-chronicle-goddess,.l2next .ln-chronicle-gracia,.l2next .ln-chronicle-gracia-ep,.l2next .ln-chronicle-epilogue,.l2next .ln-chronicle-gracia-final,.l2next .ln-chronicle-gracia-epilogue,.l2next .ln-chronicle-c1,.l2next .ln-chronicle-c2,.l2next .ln-chronicle-c3,.l2next .ln-chronicle-c4,.l2next .ln-chronicle-c5,.l2next .ln-chronicle-kamael,.l2next .ln-chronicle-hellbound,.l2next .ln-chronicle-freya,.l2next .ln-chronicle-ertheia,.l2next .ln-chronicle-grand-crusade{color:#fff!important}
.l2next .ln-chronicle-gracia,.l2next .ln-chronicle-gracia-ep{background:linear-gradient(135deg,#38bdf8,#0284c7);border-color:#0ea5e9}
.l2next .ln-chronicle-high-five,.l2next .ln-chronicle-highfive{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-color:#2563eb}
.l2next .ln-chronicle-classic{background:linear-gradient(135deg,#27b067,#17824c);border-color:#1f9d55}
.l2next .ln-chronicle-essence{background:linear-gradient(135deg,#b56ced,#8433c2);border-color:#9d4ed7}
.l2next .ln-chronicle-interlude{background:linear-gradient(135deg,#8d55ff,#6b34d8);border-color:#7f44ff}
.l2next .ln-chronicle-other{color:var(--n-ink)!important;background:var(--n-panel-soft);border-color:var(--n-border)}
@media(max-width:580px){.l2next .ln-compact-details{gap:5px}.l2next .ln-launch{font-size:10px}}

/* =====================================================
   V6 – SECTION TITLE FRAMES / ACCENTS
   Makes ranking/upcoming/newest headers stand out more.
===================================================== */
.l2next .ln-ranking,
.l2next .ln-small-panel,
.l2next .ln-featured{
  overflow:hidden;
}

.l2next .ln-ranking .ln-panel-header,
.l2next .ln-small-panel .ln-panel-header,
.l2next .ln-featured .ln-panel-header{
  position:relative;
  padding:14px 16px 14px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,249,253,.96));
}

.l2next .ln-ranking .ln-panel-header::before,
.l2next .ln-small-panel .ln-panel-header::before,
.l2next .ln-featured .ln-panel-header::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg, #4e85be, #245b91);
}

.l2next .ln-ranking .ln-panel-header::after,
.l2next .ln-small-panel .ln-panel-header::after,
.l2next .ln-featured .ln-panel-header::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, rgba(36,91,145,.25), rgba(36,91,145,0));
}

.l2next .ln-ranking .ln-panel-header h2,
.l2next .ln-small-panel .ln-panel-header h2,
.l2next .ln-featured .ln-panel-header h2{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:5px 0;
  font-weight:800;
  letter-spacing:-.2px;
}

.l2next .ln-ranking .ln-panel-header h2{
  font-size:18px;
}

.l2next .ln-small-panel .ln-panel-header h2,
.l2next .ln-featured .ln-panel-header h2{
  font-size:16px;
}

.l2next .ln-ranking .ln-eyebrow,
.l2next .ln-featured .ln-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 8px;
  border:1px solid rgba(36,91,145,.24);
  border-radius:999px;
  background:rgba(36,91,145,.08);
  margin-bottom:4px;
}

.l2next .ln-small-panel .ln-inline-link,
.l2next .ln-ranking .ln-inline-link,
.l2next .ln-featured .ln-inline-link{
  padding:6px 10px;
  border:1px solid rgba(36,91,145,.18);
  border-radius:999px;
  background:rgba(36,91,145,.06);
  transition:all .16s ease;
}

.l2next .ln-small-panel .ln-inline-link:hover,
.l2next .ln-ranking .ln-inline-link:hover,
.l2next .ln-featured .ln-inline-link:hover{
  background:rgba(36,91,145,.12);
  border-color:rgba(36,91,145,.32);
}

/* Per-section accent colors */
.l2next .ln-ranking .ln-panel-header::before{
  background:linear-gradient(180deg, #4e85be, #245b91);
}

.l2next .ln-small-panel:nth-of-type(1) .ln-panel-header::before{
  background:linear-gradient(180deg, #a5c7e9, #a5c7e9);
}

.l2next .ln-small-panel:nth-of-type(2) .ln-panel-header::before{
  background:linear-gradient(180deg, #6aa3ff, #285fcb);
}

.l2next .ln-small-panel:nth-of-type(3) .ln-panel-header::before{
  background:linear-gradient(180deg, #46bf76, #1f8d51);
}

.l2next .ln-featured .ln-panel-header::before{
  background:linear-gradient(180deg, #a5c7e9, #245b91);
}

html[data-bs-theme="dark"] .l2next .ln-ranking .ln-panel-header,
html[data-bs-theme="dark"] .l2next .ln-small-panel .ln-panel-header,
html[data-bs-theme="dark"] .l2next .ln-featured .ln-panel-header{
  background:linear-gradient(180deg, rgba(25,39,58,.96), rgba(18,30,45,.98));
}

html[data-bs-theme="dark"] .l2next .ln-ranking .ln-eyebrow,
html[data-bs-theme="dark"] .l2next .ln-featured .ln-eyebrow{
  border-color:rgba(36,91,145,.22);
  background:rgba(36,91,145,.10);
}

html[data-bs-theme="dark"] .l2next .ln-small-panel .ln-inline-link,
html[data-bs-theme="dark"] .l2next .ln-ranking .ln-inline-link,
html[data-bs-theme="dark"] .l2next .ln-featured .ln-inline-link{
  border-color:rgba(36,91,145,.20);
  background:rgba(36,91,145,.08);
}

@media(max-width:680px){
  .l2next .ln-ranking .ln-panel-header,
  .l2next .ln-small-panel .ln-panel-header,
  .l2next .ln-featured .ln-panel-header{
    padding:12px 12px 12px 15px;
  }

  .l2next .ln-ranking .ln-panel-header h2{
    font-size:17px;
  }

  .l2next .ln-small-panel .ln-panel-header h2,
  .l2next .ln-featured .ln-panel-header h2{
    font-size:15px;
  }
}


/* =========================================================
  L2TOP NEXT V7 — Closely matches approved fantasy mockup.
  All selectors are scoped to admin preview; no public changes.
========================================================== */
.l2next{padding:13px clamp(10px,1.3vw,20px) 25px;background:var(--n-bg);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
.l2next .ln-admin-bar{margin-bottom:10px}
.l2next .ln-hero.ln-hero-art{
 min-height:295px;border-radius:13px;padding:28px 16px 23px;
 background-image:linear-gradient(90deg,rgba(244,248,253,.02) 0%,rgba(252,253,255,.23) 23%,rgba(251,253,255,.59) 37%,rgba(251,253,255,.62) 66%,rgba(242,247,252,.04) 100%),url('/public/assets/images/l2top-hero.webp');
 background-position:center;background-size:cover;background-repeat:no-repeat;
 box-shadow:inset 0 -18px 32px rgba(242,246,252,.4);
}
.l2next .ln-hero-inner{width:min(100%,680px);margin:0 auto}
.l2next .ln-hero .ln-eyebrow{font-size:10px;letter-spacing:.28em;color:#245b91;text-shadow:0 1px 3px #fff}
.l2next .ln-hero h1{font-size:clamp(26px,2.8vw,39px);color:#13233f;letter-spacing:-.65px;margin:8px 0}
.l2next .ln-hero p{font-family:Georgia,serif;font-size:13px;color:#263247;margin-bottom:7px;line-height:1.4;text-shadow:0 1px 2px #fff}
.l2next .ln-search-form{max-width:570px;margin:13px auto 9px;gap:0;box-shadow:0 2px 9px rgba(30,55,84,.12);border-radius:9px}
.l2next .ln-search-form input{border-radius:9px 0 0 9px;border:1px solid #cad3df;background:rgba(255,255,255,.95);min-height:41px}
.l2next .ln-search-submit{border-radius:0 9px 9px 0;min-width:96px;background:linear-gradient(#245b91,#245b91);color:#fff;font-family:Georgia,serif;font-weight:bold;border:1px solid #245b91}
.l2next .ln-filter-bar{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;margin:5px auto 0}
.l2next .ln-filter-bar label{display:flex;align-items:center;gap:5px;border-radius:8px;background:rgba(255,255,255,.92);border:1px solid #cdd6e2;box-shadow:0 2px 5px rgba(17,44,80,.07);font-size:10px;color:#25364f;padding:4px 7px;font-weight:700}
.l2next .ln-filter-bar select{min-width:76px;max-width:135px;border:0;background:transparent;color:#25364f;font-size:10px;outline-offset:3px;font-weight:600;cursor:pointer}
.l2next .ln-chronicles{margin-top:10px;gap:8px}
.l2next .ln-chronicles a{padding:5px 11px;background:rgba(255,255,255,.9);color:#243550;border-color:rgba(114,142,173,.28);font-size:10px}
.l2next .ln-chronicles a:hover{background:#4e85be;border-color:#245b91}
.l2next .ln-quick{margin:11px 0 13px;gap:10px}
.l2next .ln-quick-card{padding:11px 13px;gap:10px;min-height:66px;border-radius:10px}
.l2next .ln-quick-card strong{font:700 15px Georgia,serif}
.l2next .ln-quick-card small{font-size:10px}
.l2next .ln-quick-icon{font-size:19px;width:31px;height:31px}
.l2next .ln-content-grid{gap:12px;grid-template-columns:minmax(0,1fr) minmax(230px,31%)}
.l2next .ln-card{border-radius:11px}
.l2next .ln-ranking .ln-panel-header{padding:10px 13px 10px 16px}
.l2next .ln-ranking .ln-panel-header h2{font-size:19px;line-height:1.2}
.l2next .ln-ranking .ln-eyebrow{border:0;padding:0;background:none;font-size:9px;letter-spacing:.13em;margin:0 0 4px}
.l2next .ln-ranking-table-head{display:grid;grid-template-columns:38px minmax(0,1fr) 75px 100px;gap:9px;padding:10px 18px;border-bottom:1px solid var(--n-border);background:var(--n-panel-soft);font-size:10px;font-weight:800;color:var(--n-muted)}
.l2next .ln-ranking-table-head span:nth-child(3),.l2next .ln-ranking-table-head span:nth-child(4){text-align:center}
.l2next .ln-ranking-list{padding:0 9px 5px}
.l2next .ln-server-row{grid-template-columns:38px minmax(0,1fr) 75px 100px;gap:9px;padding:12px 7px;min-height:75px}
.l2next .ln-server-row.is-vip{background:linear-gradient(90deg,rgba(36,91,145,.10),transparent 72%);border:1px solid rgba(36,91,145,.24);margin-top:4px;margin-bottom:4px}
.l2next .ln-server-title{font-size:13px;font-weight:800;color:var(--n-ink)!important}
.l2next .ln-server-tags{margin-top:5px;gap:4px}
.l2next .ln-rate,.l2next .ln-chronicle,.l2next .ln-launch{font-size:10px;padding:4px 6px}
.l2next .ln-server-votes strong{font-size:15px}
.l2next .ln-server-actions{gap:5px}
.l2next .ln-server-actions a{padding:6px 6px;font-size:10px}
.l2next .ln-small-panel .ln-panel-header{padding:12px 12px 12px 16px}
.l2next .ln-small-panel .ln-panel-header h2{font-size:15px}
.l2next .ln-small-panel .ln-inline-link{font-size:10px;padding:4px 6px}
.l2next .ln-compact-item{padding:8px 0;display:block}
.l2next .ln-name{font-size:11px;display:block;max-width:100%;overflow-wrap:anywhere}
.l2next .ln-compact-details{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:5px}
.l2next .ln-compact-list{padding:4px 12px}
.l2next .ln-sidebar{gap:11px}
.l2next .ln-sidebar-featured .ln-panel-header::before{background:linear-gradient(#245b91,#245b91)}
.l2next .ln-spotlight-body{padding:10px}
.l2next .ln-spotlight-art{height:139px;border:1px solid rgba(36,91,145,.33);border-radius:8px;background:linear-gradient(180deg,rgba(16,33,55,.10),rgba(13,25,42,.85)),url('/public/assets/images/l2top-hero.webp') center 45%/cover;display:flex;align-items:center;flex-direction:column;justify-content:end;padding:12px;color:#fff;text-align:center;gap:5px;overflow:hidden}
.l2next .ln-spotlight-label{font-size:9px;color:#a5c7e9;font-weight:900;letter-spacing:.14em}
.l2next .ln-spotlight-art strong{font:700 19px Georgia,serif;color:#fff;text-shadow:0 2px 3px #162437;overflow-wrap:anywhere}
.l2next .ln-spotlight-info{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;padding:10px 2px;font-size:11px;color:var(--n-muted)}
.l2next .ln-spotlight-button{display:block;padding:10px 8px;color:#182536!important;background:linear-gradient(#4e85be,#245b91);border:1px solid #245b91;border-radius:7px;text-align:center;font-weight:800;font-size:12px}
.l2next .ln-no-results[hidden]{display:none!important}
/* Keep the same layout when preview dark mode is selected, with dark overlay on artwork. */
html[data-bs-theme="dark"] .l2next .ln-hero.ln-hero-art{background-image:linear-gradient(90deg,rgba(6,15,29,.40),rgba(8,17,31,.72) 28%,rgba(8,17,31,.84) 49%,rgba(8,17,31,.66) 77%,rgba(6,15,29,.36)),url('/public/assets/images/l2top-hero.webp');box-shadow:inset 0 -15px 40px rgba(7,13,24,.3)}
html[data-bs-theme="dark"] .l2next .ln-hero h1,html[data-bs-theme="dark"] .l2next .ln-hero p{color:#f2f6fd;text-shadow:0 2px 6px rgba(0,0,0,.9)}
html[data-bs-theme="dark"] .l2next .ln-hero .ln-eyebrow{color:#a5c7e9;text-shadow:0 1px 6px rgba(0,0,0,.9)}
html[data-bs-theme="dark"] .l2next .ln-filter-bar label{background:rgba(21,34,51,.92);color:#f2f6fd;border-color:#556378}
html[data-bs-theme="dark"] .l2next .ln-filter-bar select{color:#f2f6fd}
html[data-bs-theme="dark"] .l2next .ln-filter-bar select option{background:#162338;color:#fff}
html[data-bs-theme="dark"] .l2next .ln-search-form input{background:rgba(24,35,53,.94);color:#fff;border-color:#52647e}
html[data-bs-theme="dark"] .l2next .ln-chronicles a{background:rgba(21,34,51,.9);color:#fff;border-color:#5c6d84}
html[data-bs-theme="dark"] .l2next .ln-server-row.is-vip{background:linear-gradient(90deg,rgba(36,91,145,.13),transparent 75%)}
@media(max-width:1050px){.l2next .ln-content-grid{grid-template-columns:minmax(0,1fr) minmax(210px,32%)}}
@media(max-width:790px){.l2next .ln-content-grid{grid-template-columns:1fr}.l2next .ln-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.l2next .ln-hero.ln-hero-art{background-position:50% center}}
@media(max-width:560px){.l2next .ln-hero.ln-hero-art{background-position:54% center;min-height:350px}.l2next .ln-hero h1{font-size:25px}.l2next .ln-hero p{font-size:11px}.l2next .ln-filter-bar{gap:5px}.l2next .ln-filter-bar label{padding:5px}.l2next .ln-filter-bar label span{display:none}.l2next .ln-filter-bar select{max-width:110px}.l2next .ln-sidebar{grid-template-columns:1fr}.l2next .ln-ranking-table-head{display:none}.l2next .ln-server-row{grid-template-columns:32px minmax(0,1fr) 66px;gap:6px}.l2next .ln-server-votes{grid-column:3}.l2next .ln-server-actions{grid-column:2/-1;display:flex}.l2next .ln-server-actions a{flex:1}.l2next .ln-search-form{flex-direction:row}.l2next .ln-search-submit{min-width:70px}.l2next .ln-search-form input{font-size:11px}}

.l2next .ln-server-line{display:flex;align-items:center;gap:9px;min-width:0}
.l2next .ln-server-text{min-width:0;flex:1}
.l2next .ln-server-emblem{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;color:#4e85be;background:radial-gradient(circle at 30% 20%,#465875,#182943 73%);border:1px solid #245b91;border-radius:7px;font:700 18px Georgia,serif;box-shadow:inset 0 1px 3px rgba(255,255,255,.2)}
@media(max-width:560px){.l2next .ln-server-emblem{display:none}}

/* ============================================================
   V8 – COMPACT MOBILE RANKING ACTIONS (ADMIN PREVIEW ONLY)
   Preserve desktop behavior and existing vote/detail links.
   ============================================================ */
@media (max-width: 680px) {
  .l2next .ln-server-actions {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
    margin-top: 3px;
  }
  .l2next .ln-server-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 91px;
    max-width: calc(50% - 4px);
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 7px;
    white-space: nowrap;
  }
  .l2next .ln-server-row {
    row-gap: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media (max-width: 380px) {
  .l2next .ln-server-actions a {
    width: 79px;
    min-height: 30px;
    font-size: 10px;
    padding: 5px 7px;
  }
}


/* ===========================================================
   V9: Isolated preview navigation (the live navbar is intact)
=========================================================== */
body[data-ln-theme="light"]{--ln-nav-bg:#fff;--ln-nav-fg:#15253e;--ln-nav-sub:#7f8b9e;--ln-nav-border:#dde4ed;--ln-nav-hover:#f3f6fb}
body[data-ln-theme="dark"]{--ln-nav-bg:#121d2b;--ln-nav-fg:#f0f4fc;--ln-nav-sub:#a8b6c9;--ln-nav-border:#344357;--ln-nav-hover:#1b2b40}
.ln-site-header{position:relative;z-index:90;background:var(--ln-nav-bg,#fff);color:var(--ln-nav-fg,#15253e);border-bottom:1px solid var(--ln-nav-border,#dde4ed);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
.ln-site-header *{box-sizing:border-box}
.ln-site-header-inner{min-height:70px;width:min(100%,1600px);margin:auto;padding:9px clamp(14px,3vw,35px);display:flex;align-items:center;justify-content:space-between;gap:20px}
.ln-site-logo{display:flex;align-items:center;gap:9px;text-decoration:none!important;color:var(--ln-nav-fg,#15253e)!important;flex-shrink:0}
.ln-site-logo-mark{font-size:33px;line-height:1;color:#245b91}
.ln-site-logo-type{display:flex;flex-direction:column;gap:2px;white-space:nowrap}
.ln-site-logo-type strong{font:700 29px/1 Georgia,serif;letter-spacing:-1px}
.ln-site-logo-type strong span{font-size:.75em;color:#245b91}
.ln-site-logo-type small{font-size:8px;letter-spacing:.16em;font-weight:800;color:var(--ln-nav-sub,#7f8b9e)}
.ln-site-menu{display:flex;align-items:center;justify-content:flex-end;gap:clamp(5px,1.1vw,18px);flex-wrap:wrap}
.ln-site-menu a,.ln-site-theme{border:0;white-space:nowrap;text-decoration:none!important;color:var(--ln-nav-fg,#15253e)!important;font-size:12px;font-weight:750;min-height:36px;padding:9px 10px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}
.ln-site-menu a:hover,.ln-site-theme:hover{background:var(--ln-nav-hover,#f3f6fb)}
.ln-site-menu .is-active{position:relative;color:#245b91!important}
.ln-site-menu .is-active:after{content:"";position:absolute;bottom:1px;left:10px;right:10px;height:2px;border-radius:4px;background:#245b91}
.ln-site-menu .ln-site-add{border:1px solid #245b91;background:linear-gradient(#eaf3fd,#4e85be);color:#4e85be!important}
.ln-site-theme{cursor:pointer;border:1px solid var(--ln-nav-border,#dde4ed);background:transparent;color:var(--ln-nav-fg,#15253e)}
.ln-site-menu .ln-site-login{background:#1e3048;color:#fff!important;padding-inline:15px}
.ln-menu-toggle{display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:43px;height:40px;border-radius:9px;border:1px solid var(--ln-nav-border,#dde4ed);background:var(--ln-nav-bg,#fff);cursor:pointer}
.ln-menu-toggle span{height:2px;width:20px;border-radius:3px;background:var(--ln-nav-fg,#15253e)}
.ln-menu-toggle:focus-visible,.ln-site-header a:focus-visible,.ln-site-theme:focus-visible{outline:2px solid #245b91;outline-offset:3px}
body[data-ln-theme="dark"] .ln-site-menu .ln-site-add{background:linear-gradient(#1b4775,#1b4775);color:#a5c7e9!important;border-color:#245b91}
body[data-ln-theme="dark"] .ln-site-menu .ln-site-login{background:#294360}
/* Keep the header banner strip from the existing layout visually separated. */
.ln-site-header + .layout-wrapper .center-area> :first-child{margin-top:0}
@media(max-width:1140px){
  .ln-site-header-inner{min-height:61px}
  .ln-menu-toggle{display:flex}
  .ln-site-menu{display:none;position:absolute;top:100%;left:12px;right:12px;flex-direction:column;align-items:stretch;gap:3px;padding:12px;background:var(--ln-nav-bg,#fff);border:1px solid var(--ln-nav-border,#dde4ed);border-radius:0 0 13px 13px;box-shadow:0 14px 22px rgba(15,25,40,.2)}
  .ln-site-menu.is-open{display:flex}
  .ln-site-menu a,.ln-site-theme{justify-content:flex-start;width:100%;padding:11px 13px;min-height:41px}
  .ln-site-menu .is-active:after{left:12px;right:auto;width:45px}
  .ln-site-logo-type strong{font-size:25px}
}
@media(max-width:480px){.ln-site-logo-mark{font-size:27px}.ln-site-logo-type strong{font-size:23px}.ln-site-logo-type small{font-size:7px}}


/* =========================================================
   V10 – COMPLETE PREVIEW CANVAS LIGHT/DARK
   Isolated to main_next.php and the admin preview.
   ========================================================= */
body:has(#l2top-home)[data-ln-theme="light"] {
  background: #edf2f8 !important;
  color: #14253d;
  color-scheme: light;
}
body:has(#l2top-home)[data-ln-theme="dark"] {
  background: #0b1421 !important;
  color: #ecf3fc;
  color-scheme: dark;
}
body:has(#l2top-home)[data-ln-theme="dark"] .layout-wrapper,
body:has(#l2top-home)[data-ln-theme="dark"] .center-area,
body:has(#l2top-home)[data-ln-theme="dark"] .page-content {
  background-color: #0b1421 !important;
  color: #ecf3fc;
}
body:has(#l2top-home)[data-ln-theme="light"] .layout-wrapper,
body:has(#l2top-home)[data-ln-theme="light"] .center-area,
body:has(#l2top-home)[data-ln-theme="light"] .page-content {
  background-color: #edf2f8 !important;
}
/* Existing banner image artwork remains unchanged; only its surrounding canvas changes. */
body:has(#l2top-home)[data-ln-theme="dark"] .ln-site-header {
  background: #121d2b !important;
  border-color: #344357 !important;
}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-site-menu {
  color: #f0f4fc;
}
body:has(#l2top-home)[data-ln-theme="dark"] .l2next {
  background: #0e1928;
  border-color: #28394d;
}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-card,
body:has(#l2top-home)[data-ln-theme="dark"] .ln-admin-bar {
  color: #ecf3fc;
}


/* ============================================================
   L2TOP NEXT V11 — EDUCATIONAL BOTTOM SECTION
   Independent of global public CSS; supports Light / Dark.
   ============================================================ */
.l2next .ln-choosing-guide {
    padding: 32px 16px 12px;
    margin-top: 18px;
}
.l2next .ln-guide-intro {
    margin-bottom: 22px;
}
.l2next .ln-guide-kicker {
    display: block;
    margin-bottom: 8px;
    color: #2369b1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}
.l2next .ln-guide-intro h2 {
    margin: 0 0 10px;
    color: var(--n-ink);
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(22px, 2.4vw, 29px);
    font-weight: 800;
    line-height: 1.25;
}
.l2next .ln-guide-intro p {
    margin: 0;
    max-width: 980px;
    color: var(--n-muted);
    font-size: 14px;
    line-height: 1.75;
}
.l2next .ln-guide-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}
.l2next .ln-guide-card {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--n-border);
    border-radius: 16px;
    background: var(--n-panel);
    box-shadow: var(--n-shadow);
}
.l2next .ln-guide-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 11px;
    margin-bottom: 14px;
    font-size: 19px;
}
.l2next .ln-guide-icon-chronicle { background: #e8f3fc; }
.l2next .ln-guide-icon-rates { background: #e8f7e9; }
.l2next .ln-guide-icon-community { background: #eaf3fd; }
.l2next .ln-guide-card h3 {
    margin: 0 0 10px;
    color: var(--n-ink);
    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 800;
}
.l2next .ln-guide-card p {
    margin: 0;
    color: var(--n-muted);
    font-size: 13px;
    line-height: 1.75;
}
html[data-bs-theme="dark"] .l2next .ln-guide-kicker { color: #92bdff; }
html[data-bs-theme="dark"] .l2next .ln-guide-icon-chronicle { background: #213952; }
html[data-bs-theme="dark"] .l2next .ln-guide-icon-rates { background: #23432e; }
html[data-bs-theme="dark"] .l2next .ln-guide-icon-community { background: #1b4775; }
@media(max-width: 900px) {
    .l2next .ln-guide-grid { grid-template-columns: 1fr; gap: 12px; }
    .l2next .ln-guide-card { padding: 19px; }
}
@media(max-width: 575px) {
    .l2next .ln-choosing-guide { padding: 25px 6px 6px; }
    .l2next .ln-guide-intro p { font-size: 13px; }
    .l2next .ln-guide-card h3 { font-size: 16px; }
    .l2next .ln-guide-card p { font-size: 12px; }
}


/* ==========================================================
   L2TOP V14 - compact server title + Details on the same row
   Only the administrator's Next Design view is affected.
   ========================================================== */
.l2next .ln-compact-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.l2next .ln-compact-top .ln-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.l2next .ln-compact-detail-link {
  display: inline;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--n-gold) !important;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.l2next .ln-compact-detail-link:hover {
  color: var(--n-gold) !important;
  background: transparent;
  border: 0;
  text-decoration: underline;
}
.l2next .ln-compact-detail-link:focus-visible {
  outline: 2px solid var(--n-gold);
  outline-offset: 4px;
}
.l2next .ln-compact-item { gap: 5px; }
.l2next .ln-compact-item .ln-compact-details { margin-top: 0; }
.l2next .ln-featured-item .ln-compact-top { margin-bottom: 9px; }
html[data-bs-theme="dark"] .l2next .ln-compact-detail-link {
  border: 0;
  background: transparent;
  color: #a5c7e9 !important;
}
@media (max-width: 410px) {
  .l2next .ln-compact-top { gap: 6px; }
  .l2next .ln-compact-detail-link { padding: 0; font-size: 10px; }
}


/* ==========================================================
   V16 CORE DESIGN — NAVIGATION + FOOTER, preview only
   ========================================================== */
body:has(#l2top-home) .ln-site-header,
body:has(#l2top-home) .ln-next-footer {font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;}
body:has(#l2top-home) .ln-site-header-inner {max-width:1130px;margin:auto;padding-inline:18px;}
body:has(#l2top-home) .ln-site-header {border-bottom:1px solid var(--ln-nav-border,#dce3ec);box-shadow:0 3px 16px rgba(27,49,76,.07);}
body:has(#l2top-home) .ln-site-logo-mark {color:#245b91;}
body:has(#l2top-home) .ln-site-logo-type strong {font-family:Georgia,serif;letter-spacing:-.035em;}
body:has(#l2top-home) .ln-site-menu {gap:clamp(2px,.6vw,10px);}
body:has(#l2top-home) .ln-site-menu a,
body:has(#l2top-home) .ln-site-theme {font-size:11px;padding-inline:8px;}
body:has(#l2top-home) .ln-site-menu .ln-site-add {margin-left:6px;}
body:has(#l2top-home) .ln-site-menu .ln-site-login {background:#24344c;color:#fff!important;}
body:has(#l2top-home) .ln-nav-secondary {color:var(--ln-nav-sub,#65758a)!important;}
body:has(#l2top-home) .ln-next-footer {width:100%;margin-top:28px;background:#edf2f8;color:#24344c;border-top:1px solid #d6deea;}
body:has(#l2top-home) .ln-next-footer-inner {max-width:1130px;margin:auto;padding:36px 22px 20px;}
body:has(#l2top-home) .ln-next-footer-top {display:grid;grid-template-columns:minmax(240px,1.7fr) repeat(3,minmax(110px,1fr));gap:30px;}
body:has(#l2top-home) .ln-next-footer-brand {min-width:0;}
body:has(#l2top-home) .ln-next-footer-logo {display:inline-block;font:700 22px Georgia,serif;color:#23354d;text-decoration:none;}
body:has(#l2top-home) .ln-next-footer-logo span {color:#245b91;}
body:has(#l2top-home) .ln-next-footer-brand p {margin:11px 0 0;max-width:330px;color:#64758a;font-size:12px;line-height:1.7;}
body:has(#l2top-home) .ln-next-footer-col {display:flex;flex-direction:column;align-items:flex-start;gap:9px;}
body:has(#l2top-home) .ln-next-footer-col h2 {font-size:12px;font-weight:800;color:#24344c;margin:3px 0 5px;}
body:has(#l2top-home) .ln-next-footer-col a,
body:has(#l2top-home) .ln-next-footer-bottom a {font-size:12px;text-decoration:none;color:#62738a;}
body:has(#l2top-home) .ln-next-footer a:hover {color:#245b91;text-decoration:underline;}
body:has(#l2top-home) .ln-next-footer-bottom {display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:28px;padding-top:17px;border-top:1px solid #d6deea;font-size:11px;color:#718199;}
body:has(#l2top-home) .ln-next-footer-bottom nav {display:flex;gap:15px;}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer {background:#101b2b;border-color:#2d4057;color:#dce6f4;}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-logo,
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-col h2 {color:#e9f0fb;}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-brand p,
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-col a,
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-bottom a {color:#a7b8cd;}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-bottom {border-color:#2d4057;color:#8c9eb6;}
@media (max-width:1070px) {
 body:has(#l2top-home) .ln-site-menu .ln-nav-secondary {display:none;}
}
@media (max-width:960px) {
 body:has(#l2top-home) .ln-next-footer-top {grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;}
}
@media (max-width:760px) {
 body:has(#l2top-home) .ln-next-footer-inner {padding:28px 18px 18px;}
 body:has(#l2top-home) .ln-next-footer-top {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;}
 body:has(#l2top-home) .ln-site-menu .ln-nav-secondary {display:inline-flex;}
 body:has(#l2top-home) .ln-site-menu a,
 body:has(#l2top-home) .ln-site-theme {font-size:12px;}
}
@media (max-width:460px) {
 body:has(#l2top-home) .ln-next-footer-top {grid-template-columns:1fr 1fr;gap:24px 15px;}
 body:has(#l2top-home) .ln-next-footer-brand {grid-column:1/-1;}
 body:has(#l2top-home) .ln-next-footer-bottom {display:block;}
 body:has(#l2top-home) .ln-next-footer-bottom nav {margin-top:10px;flex-wrap:wrap;}
}


/* ============================================================
   L2TOP V17 — footer alignment and responsive layout fix.
   Preview only; public footer.php is untouched.
   ============================================================ */
body:has(#l2top-home) .ln-next-footer {
  width: min(1050px, calc(100% - 32px));
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0;
  border: 1px solid #d7e0ec;
  border-radius: 13px 13px 0 0;
  background: #f8fafc;
  box-shadow: 0 -3px 22px rgba(28, 50, 78, .045);
  overflow: hidden;
  box-sizing: border-box;
}
body:has(#l2top-home) .ln-next-footer *,
body:has(#l2top-home) .ln-next-footer *::before,
body:has(#l2top-home) .ln-next-footer *::after {
  box-sizing: border-box;
}
body:has(#l2top-home) .ln-next-footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 29px clamp(18px, 3vw, 36px) 17px;
}
body:has(#l2top-home) .ln-next-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, .78fr));
  gap: clamp(14px, 2.4vw, 31px);
  align-items: start;
  width: 100%;
}
body:has(#l2top-home) .ln-next-footer-brand,
body:has(#l2top-home) .ln-next-footer-col {
  min-width: 0;
}
body:has(#l2top-home) .ln-next-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 clamp(20px, 2vw, 24px)/1.15 Georgia, serif;
  letter-spacing: -.025em;
  color: #20304a;
  text-decoration: none;
  max-width: 100%;
}
body:has(#l2top-home) .ln-next-footer-emblem {
  color: #245b91;
  font-size: 24px;
  line-height: 1;
}
body:has(#l2top-home) .ln-next-footer-brand p {
  margin: 12px 0 0;
  max-width: 285px;
  color: #65768c;
  line-height: 1.65;
  font-size: 12px;
}
body:has(#l2top-home) .ln-next-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
body:has(#l2top-home) .ln-next-footer-col h2 {
  font-size: 12px;
  margin: 2px 0 6px;
  font-weight: 800;
}
body:has(#l2top-home) .ln-next-footer-col a,
body:has(#l2top-home) .ln-next-footer-bottom a {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body:has(#l2top-home) .ln-next-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 15px;
  flex-wrap: wrap;
  border-top: 1px solid #dce4ee;
  font-size: 11px;
  line-height: 1.5;
}
body:has(#l2top-home) .ln-next-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 17px;
}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer {
  background: #142131;
  border-color: #35465c;
  box-shadow: 0 -3px 22px rgba(0, 0, 0, .1);
}
body:has(#l2top-home)[data-ln-theme="dark"] .ln-next-footer-bottom {
  border-color: #35465c;
}
@media (max-width: 920px) {
  body:has(#l2top-home) .ln-next-footer-top {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
  }
  body:has(#l2top-home) .ln-next-footer-brand {grid-column: 1 / -1;}
  body:has(#l2top-home) .ln-next-footer-brand p {max-width: 490px;}
}
@media (max-width: 560px) {
  body:has(#l2top-home) .ln-next-footer {
    width: calc(100% - 16px);
    margin-top: 18px;
    border-radius: 11px 11px 0 0;
  }
  body:has(#l2top-home) .ln-next-footer-inner {padding: 24px 18px 17px;}
  body:has(#l2top-home) .ln-next-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 17px;
  }
  body:has(#l2top-home) .ln-next-footer-brand {grid-column: 1 / -1;}
  body:has(#l2top-home) .ln-next-footer-bottom {display: flex; flex-direction: column; align-items: flex-start;}
  body:has(#l2top-home) .ln-next-footer-legal {margin-top: 3px;}
}


/* L2TOP V18 — proper server search controls (admin preview only) */
.l2next .ln-hero.ln-hero-art{min-height:315px}
.l2next .ln-chronicles{gap:7px;align-items:center}
.l2next .ln-chronicles a.is-selected{outline:2px solid #245b91;outline-offset:1px}
.l2next .ln-chronicles .ln-shortcut-low{background:#fff1cf;color:#885b16;border-color:#e5c177}
.l2next .ln-chronicles .ln-shortcut-mid{background:#def8e6;color:#17673d;border-color:#94d4ad}
.l2next .ln-chronicles .ln-shortcut-pvp{background:#ffe5e8;color:#a22c35;border-color:#efacb2}
.l2next .ln-shortcuts-divider{width:1px;height:18px;background:#b8c6d7;margin:0 3px}
.l2next .ln-filter-submit,.l2next .ln-filter-reset{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:5px 12px;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer}
.l2next .ln-filter-submit{border:1px solid #245b91;background:linear-gradient(#4e85be,#245b91);color:#15263e}
.l2next .ln-filter-reset{border:1px solid #cbd7e6;background:#fff;color:#53657c}
.l2next .ln-search-pager{display:flex;align-items:center;justify-content:center;gap:16px;padding:15px 8px;border-top:1px solid var(--n-border);font-size:12px;color:var(--n-muted)}
.l2next .ln-search-pager a{color:var(--n-gold);font-weight:800}
html[data-bs-theme="dark"] .l2next .ln-chronicles .ln-shortcut-low{background:#45341b;color:#fbd58f;border-color:#755930}
html[data-bs-theme="dark"] .l2next .ln-chronicles .ln-shortcut-mid{background:#183a2c;color:#b0f1c5;border-color:#387451}
html[data-bs-theme="dark"] .l2next .ln-chronicles .ln-shortcut-pvp{background:#462329;color:#ffbcc2;border-color:#84505a}
html[data-bs-theme="dark"] .l2next .ln-filter-reset{background:#1c2c40;color:#cbd7e6;border-color:#43556b}
@media(max-width:640px){.l2next .ln-hero.ln-hero-art{padding:25px 10px;min-height:350px}.l2next .ln-chronicles{gap:5px}.l2next .ln-chronicles a{padding:6px 8px;font-size:10px}.l2next .ln-filter-bar{gap:6px}.l2next .ln-shortcuts-divider{display:none}}


/* V19: separate All Servers page in admin-only preview */
.l2next .ln-directory-heading{padding:23px 10px 20px;text-align:center}
.l2next .ln-directory-heading h1{font:700 clamp(26px,3vw,36px)/1.2 Georgia,serif;margin:8px 0;color:var(--n-ink)}
.l2next .ln-directory-heading p{font-size:13px;color:var(--n-muted);margin:0}
.l2next .ln-directory-filters{padding:18px 18px 12px;margin-bottom:15px}
.l2next .ln-directory-filters .ln-search-form{margin:0 auto 12px}
.l2next .ln-directory-filters .ln-filter-bar{margin-top:8px}
.l2next .ln-directory-filters .ln-chronicles{margin-top:13px}
.l2next .ln-directory-results .ln-ranking{width:100%}
.l2next .ln-directory-results .ln-ranking-table-head{grid-template-columns:38px minmax(0,1fr) 75px 100px}
.l2next .ln-directory-results .ln-server-row{grid-template-columns:38px minmax(0,1fr) 75px 100px}
@media(max-width:680px){
.l2next .ln-directory-heading{padding:16px 4px}
.l2next .ln-directory-filters{padding:13px 9px}
.l2next .ln-directory-results .ln-ranking-table-head{display:none}
.l2next .ln-directory-results .ln-server-row{grid-template-columns:32px minmax(0,1fr) 66px}
.l2next .ln-directory-results .ln-server-actions{grid-column:2/-1}
}


/* V20: All Servers – sort + result summary, scoped to preview. */
.l2next .ln-directory-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:11px 15px;margin-bottom:12px;border:1px solid var(--n-border);border-radius:11px;background:var(--n-panel);box-shadow:var(--n-shadow)}
.l2next .ln-directory-summary{display:flex;gap:8px 12px;align-items:baseline;flex-wrap:wrap;color:var(--n-ink)}
.l2next .ln-directory-summary strong{font-size:13px}
.l2next .ln-directory-summary span{font-size:11px;color:var(--n-muted)}
.l2next .ln-directory-sort{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.l2next .ln-directory-sort label{font-size:11px;font-weight:800;color:var(--n-muted);white-space:nowrap}
.l2next .ln-directory-sort select{min-height:34px;max-width:100%;padding:6px 29px 6px 10px;border:1px solid var(--n-border);border-radius:7px;background:var(--n-panel-soft);color:var(--n-ink);font-size:12px;font-weight:650}
.l2next .ln-directory-sort button{min-height:34px;padding:6px 13px;border:1px solid var(--n-border);border-radius:7px;background:var(--n-gold-soft);color:var(--n-ink);font-size:11px;font-weight:800;cursor:pointer}
.l2next .ln-directory-sort :is(select,button):focus-visible{outline:2px solid var(--n-gold);outline-offset:2px}
.l2next .ln-directory-page .ln-search-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:17px 10px}
@media(max-width:640px){.l2next .ln-directory-toolbar{padding:11px}.l2next .ln-directory-sort{width:100%}.l2next .ln-directory-sort select{flex:1;min-width:0}.l2next .ln-directory-sort button{flex:none}}


/* ================================================================
   V23 – WHITE TEXT ON GOLD / BROWN ACTION BUTTONS
   Applied across home and all-servers preview in light and dark.
   Preserve neutral Details links and filter chips.
   ================================================================ */
.l2next .ln-vote-button,
.l2next .ln-search-submit,
.l2next .ln-search-link,
.l2next .ln-search-form button,
.l2next .ln-filter-submit,
.l2next .ln-button-primary,
.l2next .ln-spotlight-button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 1px 1px rgba(56, 36, 14, .28);
}
.l2next .ln-vote-button:hover,
.l2next .ln-search-submit:hover,
.l2next .ln-search-link:hover,
.l2next .ln-filter-submit:hover,
.l2next .ln-button-primary:hover,
.l2next .ln-spotlight-button:hover,
.l2next .ln-vote-button:focus-visible,
.l2next .ln-search-submit:focus-visible,
.l2next .ln-search-link:focus-visible,
.l2next .ln-filter-submit:focus-visible,
.l2next .ln-button-primary:focus-visible,
.l2next .ln-spotlight-button:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}


/* V34 public theme and button consistency. */
html[data-bs-theme="dark"] .l2top-home {--n-bg:#0c1421;--n-panel:#152233;--n-panel-soft:#1d2c3e;--n-ink:#f2f5fc;--n-muted:#adbbcd;--n-border:#344359;--n-gold:#4e85be;--n-gold-soft:#342b23;--n-shadow:0 12px 34px rgba(0,0,0,.25)}
.l2top-home .ln-home-browse{margin:18px 0 6px}.l2top-home .ln-home-browse .ln-search-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 21px;border:1px solid #245b91;background:#245b91;color:#fff!important;border-radius:8px;font-size:12px;font-weight:800;text-decoration:none}
.l2top-home .ln-search-submit,.l2top-home .ln-filter-submit,.l2top-home .ln-vote-button,.l2top-home .ln-spotlight-button {color:#fff!important}
.l2top-home .ln-search-submit:hover,.l2top-home .ln-filter-submit:hover,.l2top-home .ln-vote-button:hover {color:#fff!important}

/* =============================================================
   V35 • LIVE ALL SERVERS CATALOG
   Applies ONLY to /lineage2. All filtering and data come from
   the existing Servers::chroniclesHub controller and server_row.
   ============================================================= */
body.l2top-public .l2-catalog-next {
  --catalog-blue: var(--lt-gold);
  --catalog-blue-dark: var(--lt-gold-hover);
  --catalog-navy: var(--lt-text);
  --catalog-muted: var(--lt-muted);
  --catalog-border: var(--lt-border);
  width: 100%; max-width: 1390px; margin-inline: auto;
  color: var(--lt-text);
  padding-inline: clamp(12px,2vw,34px);
}
body.l2top-public .l2-catalog-next .l2-catalog-hero {
  padding: clamp(27px,3.5vw,55px) 18px 30px;
  text-align: center;
  border: 1px solid var(--lt-border);
  border-radius: 19px;
  margin-bottom: 16px;
  background: linear-gradient(135deg,rgba(36,91,145,.075),transparent 45%),var(--lt-surface);
  box-shadow: var(--lt-shadow);
}
body.l2top-public .l2-catalog-next .l2-catalog-kicker {
  color: var(--lt-gold); font-size: 10px; font-weight: 850;
  letter-spacing: .16em; margin-bottom: 10px;
}
body.l2top-public .l2-catalog-next .l2-catalog-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--lt-text); font-size: clamp(28px,3.8vw,46px);
  letter-spacing: -.025em; line-height: 1.16; font-weight: 750;
}
body.l2top-public .l2-catalog-next .l2-catalog-hero p {
  font-size: 13px; color: var(--lt-muted); margin-top: 12px;
}
body.l2top-public .l2-catalog-next .breadcrumb a {color:var(--lt-gold);}
body.l2top-public .l2-catalog-next .breadcrumb-item.active {color:var(--lt-muted);}
body.l2top-public .l2-catalog-next .l2-filter-card {
  background: var(--lt-surface); border: 1px solid var(--lt-border);
  border-radius: 15px; box-shadow: var(--lt-shadow); overflow: hidden;
}
body.l2top-public .l2-catalog-next .l2-filter-card::before {
  height: 3px; background: linear-gradient(90deg,#245b91,#4e85be,#245b91);
}
body.l2top-public .l2-catalog-next .l2-filter-head {
  background: var(--lt-soft); border-bottom: 1px solid var(--lt-border);
}
body.l2top-public .l2-catalog-next .l2-filter-icon {
  background: var(--lt-gold-soft); border-color: var(--lt-border);
}
body.l2top-public .l2-catalog-next .l2-filter-title,
body.l2top-public .l2-catalog-next .l2-results-head h2 {
  color: var(--lt-text); font-family: Georgia, 'Times New Roman',serif;
  font-size: 19px; font-weight: 750;
}
body.l2top-public .l2-catalog-next .l2-filter-subtitle,
body.l2top-public .l2-catalog-next .l2-filter-label,
body.l2top-public .l2-catalog-next .l2-results-summary>span,
body.l2top-public .l2-catalog-next .l2-active-filter-label {color:var(--lt-muted);}
body.l2top-public .l2-catalog-next .l2-filter-control {
  color: var(--lt-text); background-color: var(--lt-surface);
  border: 1px solid var(--lt-border); border-radius: 9px; min-height: 40px;
  box-shadow: none;
}
body.l2top-public .l2-catalog-next .l2-filter-control:focus {
  border-color:var(--lt-gold); box-shadow:0 0 0 3px rgba(36,91,145,.13);
}
body.l2top-public .l2-catalog-next .l2-filter-apply {
  background: linear-gradient(180deg,#245b91,#245b91); color:#fff !important;
  border: 1px solid #245b91; border-radius: 9px; font-weight:800;
}
body.l2top-public .l2-catalog-next .l2-filter-apply:hover {
  background:#4e85be; border-color:#4e85be; color:#fff !important;
}
body.l2top-public .l2-catalog-next .l2-filter-reset {
  background:var(--lt-soft); color:var(--lt-text); border:1px solid var(--lt-border);
  border-radius: 9px;
}
body.l2top-public .l2-catalog-next .l2-filter-chip {
  background:var(--lt-gold-soft); color:var(--lt-gold); border-color:var(--lt-border);
}
body.l2top-public .l2-catalog-next .l2-results-head {
  margin-top: 23px; padding: 15px 18px; margin-inline: 0; margin-bottom: 0;
  background:var(--lt-surface); border:1px solid var(--lt-border);
  border-bottom: 0; border-radius: 14px 14px 0 0;
}
body.l2top-public .l2-catalog-next .l2-results-head h2 {font-size: 22px;}
body.l2top-public .l2-catalog-next .l2-ranking-switch {
  background:var(--lt-soft); border:1px solid var(--lt-border); border-radius: 10px;
}
body.l2top-public .l2-catalog-next .l2-ranking-option {color:var(--lt-muted);}
body.l2top-public .l2-catalog-next .l2-ranking-option.is-active {
  color:#fff; background:linear-gradient(180deg,#245b91,#245b91);
  box-shadow:0 3px 8px rgba(36,91,145,.12);
}
body.l2top-public .l2-catalog-next .top-server-row {
  margin-bottom: 0 !important; border-radius: 0;
  border:1px solid var(--lt-border); border-top: 0;
  background:var(--lt-surface); box-shadow:none;
  color:var(--lt-text);
}
body.l2top-public .l2-catalog-next .top-server-row:last-of-type {
  border-radius:0 0 13px 13px;
}
body.l2top-public .l2-catalog-next .top-server-row:hover {
  background:var(--lt-soft);
}
body.l2top-public .l2-catalog-next .top-server-name,
body.l2top-public .l2-catalog-next .top-server-votes {color:var(--lt-text);}
body.l2top-public .l2-catalog-next .top-server-description {color:var(--lt-muted);}
body.l2top-public .l2-catalog-next .top-server-play-btn {
  color:#fff !important; border:1px solid #245b91;
  background:linear-gradient(180deg,#245b91,#245b91);
  border-radius:9px; font-weight: 800;
}
body.l2top-public .l2-catalog-next .top-server-play-btn:hover {
  background:#4e85be; color:#fff !important;
}
body.l2top-public .l2-catalog-next .top-server-details-btn {
  color:var(--lt-text); background:var(--lt-soft);
  border:1px solid var(--lt-border); border-radius:9px;
}
body.l2top-public .l2-catalog-next .top-server-details-btn:hover {
  color:var(--lt-gold); background:var(--lt-gold-soft);
}
body.l2top-public .l2-catalog-next .l2-filter-empty {
  background:var(--lt-surface); color:var(--lt-text);
  border:1px solid var(--lt-border); border-radius:0 0 12px 12px;
}
body.l2top-public .l2-catalog-next .pagination .page-link {
  background:var(--lt-surface); color:var(--lt-gold); border-color:var(--lt-border);
}
body.l2top-public .l2-catalog-next .pagination .active .page-link {
  color:#fff; background:var(--lt-gold); border-color:var(--lt-gold);
}
html[data-bs-theme="dark"] body.l2top-public .l2-catalog-next .top-server-rate,
html[data-bs-theme="dark"] body.l2top-public .l2-catalog-next .top-server-rates span {
  color:var(--lt-text); border-color:var(--lt-border);
}
@media(max-width:767.98px) {
  body.l2top-public .l2-catalog-next {padding-inline:9px;}
  body.l2top-public .l2-catalog-next .l2-catalog-hero {padding:25px 12px;}
  body.l2top-public .l2-catalog-next .l2-results-head {padding:13px;}
  body.l2top-public .l2-catalog-next .l2-filter-card {margin-bottom:16px;}
}


/* ==========================================================
   L2TOP V36 — PUBLIC LISTS
   Chronicles / Newest / Upcoming / Types / Premium
   Extends V35 without touching controllers or admin styles.
   ========================================================== */
body.l2top-public .l2-public-list {max-width: 1320px; padding-inline: 12px;}
body.l2top-public .l2-public-list > .row {margin-inline: -8px;}
body.l2top-public .l2-public-list > .row > [class*="col-"] {padding-inline: 8px;}
body.l2top-public .l2-public-list .breadcrumb {font-size: 12px; margin-bottom: 14px;}
body.l2top-public .l2-public-list .breadcrumb a {color: var(--lt-gold);text-decoration:none;}
body.l2top-public .l2-public-list .breadcrumb-item.active {color:var(--lt-muted);}
body.l2top-public .l2-public-list .l2-public-hero,
body.l2top-public .l2-public-list .l2-type-hero {
  position:relative; overflow:hidden;
  background:radial-gradient(circle at 95% 5%, rgba(36,91,145,.15),transparent 35%), var(--lt-surface);
  border:1px solid var(--lt-border); box-shadow:var(--lt-shadow) !important;
  border-radius:16px !important; padding:28px 32px !important;
}
body.l2top-public .l2-public-list .l2-public-hero::before,
body.l2top-public .l2-public-list .l2-type-hero::before {
  content:""; position:absolute;left:0;top:0;bottom:0;width:4px;height:auto;
  background:linear-gradient(180deg,#245b91,#4e85be,#245b91);
}
body.l2top-public .l2-public-list .l2-public-hero h1,
body.l2top-public .l2-public-list .l2-type-hero h1 {
  color:var(--lt-text);font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(26px,3vw,37px);font-weight:700;line-height:1.2;
  letter-spacing:-.4px; margin-bottom:10px !important;
}
body.l2top-public .l2-public-list .l2-public-hero p,
body.l2top-public .l2-public-list .l2-type-hero p,
body.l2top-public .l2-public-list .l2-public-hero .text-muted {
  color:var(--lt-muted) !important;font-size:13px;line-height:1.65;
}
body.l2top-public .l2-public-list .l2-public-eyebrow {display:block;color:var(--lt-gold);font-size:10px;font-weight:800;letter-spacing:1.3px;margin-bottom:7px;}
body.l2top-public .l2-public-list .l2-public-hero .btn,
body.l2top-public .l2-public-list .l2-type-nav-link {
  border-color:var(--lt-border);color:var(--lt-text);background:var(--lt-soft);
  font-size:12px;font-weight:700;border-radius:9px;
}
body.l2top-public .l2-public-list .l2-public-hero .btn:hover,
body.l2top-public .l2-public-list .l2-type-nav-link:hover {color:var(--lt-gold);border-color:var(--lt-gold);}
body.l2top-public .l2-public-list .l2-type-nav-link.active {background:var(--lt-gold);border-color:var(--lt-gold);color:#fff;}
body.l2top-public .l2-public-list .l2-ranking-switch {background:var(--lt-soft);border:1px solid var(--lt-border);border-radius:10px;}
body.l2top-public .l2-public-list .l2-ranking-option {color:var(--lt-muted);}
body.l2top-public .l2-public-list .l2-ranking-option.is-active {
  color:#fff; background:linear-gradient(180deg,#245b91,#245b91);
  box-shadow:0 3px 8px rgba(36,91,145,.12);
}
body.l2top-public .l2-public-list .l2-chronicle-results-head,
body.l2top-public .l2-public-list .l2-type-results-head,
body.l2top-public .l2-public-list .l2-public-results-head {
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:15px 18px;margin:20px 0 0;
  background:var(--lt-surface);border:1px solid var(--lt-border);border-radius:14px 14px 0 0;
}
body.l2top-public .l2-public-list .l2-chronicle-results-head h2,
body.l2top-public .l2-public-list .l2-type-results-head h2,
body.l2top-public .l2-public-list .l2-public-results-head h2 {
  font-family:Georgia,'Times New Roman',serif;font-size:21px;font-weight:700;color:var(--lt-text);margin:0;
}
body.l2top-public .l2-public-list .l2-chronicle-results-head span,
body.l2top-public .l2-public-list .l2-type-results-count,
body.l2top-public .l2-public-list .l2-public-results-label {color:var(--lt-muted);font-size:11px;}
body.l2top-public .l2-public-list .top-server-row {
  margin-bottom:0 !important;background:var(--lt-surface);color:var(--lt-text);
  border:1px solid var(--lt-border);border-top:0;border-radius:0;box-shadow:none;
}
body.l2top-public .l2-public-list .top-server-row:hover {background:var(--lt-soft);}
body.l2top-public .l2-public-list .top-server-row:last-of-type {border-radius:0 0 13px 13px;}
body.l2top-public .l2-public-list .top-server-name,
body.l2top-public .l2-public-list .top-server-votes {color:var(--lt-text);}
body.l2top-public .l2-public-list .top-server-description {color:var(--lt-muted);}
body.l2top-public .l2-public-list .top-server-play-btn {
  color:#fff !important; background:linear-gradient(180deg,#245b91,#245b91);
  border:1px solid #245b91;border-radius:9px;font-weight:800;
}
body.l2top-public .l2-public-list .top-server-play-btn:hover {background:#4e85be;color:#fff !important;}
body.l2top-public .l2-public-list .top-server-details-btn {
  color:var(--lt-text);background:var(--lt-soft);border:1px solid var(--lt-border);border-radius:9px;
}
body.l2top-public .l2-public-list .top-server-details-btn:hover {color:var(--lt-gold);}
body.l2top-public .l2-public-list .l2-pagination-wrap .page-link,
body.l2top-public .l2-public-list .l2-public-pagination .page-link {
  color:var(--lt-gold);border-color:var(--lt-border);background:var(--lt-surface);
}
body.l2top-public .l2-public-list .page-item.active .page-link {
  color:#fff;background:var(--lt-gold);border-color:var(--lt-gold);
}
body.l2top-public .l2-public-list .accordion-item,
body.l2top-public .l2-public-list .l2-type-content {
  color:var(--lt-text);background:var(--lt-surface);border-color:var(--lt-border);
}
body.l2top-public .l2-public-list .accordion-button {color:var(--lt-text);background:var(--lt-soft);}
body.l2top-public .l2-public-list .alert {border-radius:12px;}
@media (max-width:767.98px) {
  body.l2top-public .l2-public-list {padding-inline:8px;}
  body.l2top-public .l2-public-list .l2-public-hero,
  body.l2top-public .l2-public-list .l2-type-hero {padding:20px 17px !important;}
  body.l2top-public .l2-public-list .l2-chronicle-results-head,
  body.l2top-public .l2-public-list .l2-type-results-head,
  body.l2top-public .l2-public-list .l2-public-results-head {
    flex-wrap:wrap;padding:12px;margin-top:16px;
  }
}


/* ==========================================================
   L2TOP V38 — NEWEST / UPCOMING (MATCH ALL SERVERS)
   Scoped only to these two public listing pages.
   No admin, controller, model or route overrides.
   ========================================================== */
body.l2top-public .l2-directory-page {
    width:100%;max-width:none;padding-inline:clamp(12px,2vw,28px);
    color:var(--lt-text);
}
body.l2top-public .l2-directory-page > .row { margin-inline:0; }
body.l2top-public .l2-directory-page > .row > .col-12 { padding-inline:0;min-width:0; }
body.l2top-public .l2-directory-page .l2-directory-hero {
    text-align:center;border:1px solid var(--lt-border);border-radius:22px;
    background:radial-gradient(ellipse at 50% 0%,rgba(36,91,145,.10),transparent 55%),var(--lt-surface);
    box-shadow:var(--lt-shadow);padding:48px 25px 42px;margin-bottom:20px;
}
body.l2top-public .l2-directory-page .l2-directory-kicker {
    color:var(--lt-gold);letter-spacing:2px;font-size:11px;font-weight:800;display:block;margin-bottom:11px;
}
body.l2top-public .l2-directory-page .l2-directory-hero h1 {
    margin:0 0 10px;font-family:Georgia,'Times New Roman',serif;
    font-size:clamp(30px,4vw,54px);font-weight:700;color:var(--lt-text);line-height:1.14;
}
body.l2top-public .l2-directory-page .l2-directory-hero h1 small {
    display:inline-block;color:var(--lt-muted);font-size:.42em;font-family:inherit;
}
body.l2top-public .l2-directory-page .l2-directory-hero p {
    margin:0;color:var(--lt-muted);font-size:clamp(12px,1.1vw,15px);line-height:1.7;
}
body.l2top-public .l2-directory-page .l2-directory-toolbar {
    display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
    background:var(--lt-surface);border:1px solid var(--lt-border);border-radius:15px;
    padding:17px 20px;margin-bottom:20px;box-shadow:var(--lt-shadow);
}
body.l2top-public .l2-directory-page .l2-directory-toolbar strong {font-size:14px;color:var(--lt-text);}
body.l2top-public .l2-directory-page .l2-directory-toolbar-label {
    font-size:10px;font-weight:800;color:var(--lt-gold);letter-spacing:1.1px;margin-bottom:3px;
}
body.l2top-public .l2-directory-page .l2-directory-tabs {display:flex;gap:7px;flex-wrap:wrap;}
body.l2top-public .l2-directory-page .l2-directory-tab {
    display:inline-block;padding:9px 15px;border-radius:9px;background:var(--lt-soft);
    border:1px solid var(--lt-border);font-size:12px;font-weight:700;
    color:var(--lt-text);text-decoration:none;transition:background .15s,color .15s;
}
body.l2top-public .l2-directory-page .l2-directory-tab:hover {
    border-color:var(--lt-gold);color:var(--lt-gold);
}
body.l2top-public .l2-directory-page .l2-directory-tab.is-current {
    color:#fff;background:linear-gradient(180deg,#245b91,#245b91);border-color:#245b91;
}
body.l2top-public .l2-directory-page .l2-directory-results {
    background:var(--lt-surface);border:1px solid var(--lt-border);
    border-radius:16px;overflow:hidden;box-shadow:var(--lt-shadow);
}
body.l2top-public .l2-directory-page .l2-directory-results-head {
    display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;
    padding:17px 21px;border-bottom:1px solid var(--lt-border);border-left:4px solid var(--lt-gold);
}
body.l2top-public .l2-directory-page .l2-directory-results-kicker {
    display:block;color:var(--lt-gold);font-weight:800;letter-spacing:1.1px;font-size:10px;margin-bottom:3px;
}
body.l2top-public .l2-directory-page .l2-directory-results-head h2 {
    font-family:Georgia,'Times New Roman',serif;color:var(--lt-text);font-size:23px;font-weight:700;margin:0;
}
body.l2top-public .l2-directory-page .l2-directory-result-count {
    border:1px solid var(--lt-border);background:var(--lt-soft);border-radius:18px;
    padding:7px 12px;color:var(--lt-muted);font-size:11px;
}
body.l2top-public .l2-directory-page .l2-directory-columns {
    display:grid;grid-template-columns:65px minmax(0,1fr) 120px 125px;
    gap:8px;align-items:center;min-height:43px;padding:8px 17px;
    font-size:11px;font-weight:800;color:var(--lt-muted);background:var(--lt-soft);
    border-bottom:1px solid var(--lt-border);
}
body.l2top-public .l2-directory-page .l2-directory-columns span:nth-child(3),
body.l2top-public .l2-directory-page .l2-directory-columns span:nth-child(4) {text-align:center;}
body.l2top-public .l2-directory-page .l2-directory-server-list .top-server-row {
    border-left:0;border-right:0;border-bottom:1px solid var(--lt-border);border-top:0;
    margin:0 !important;border-radius:0 !important;box-shadow:none;
    background:var(--lt-surface);min-width:0;
}
body.l2top-public .l2-directory-page .l2-directory-server-list .top-server-row:last-child {border-bottom:0;}
body.l2top-public .l2-directory-page .l2-directory-server-list .top-server-row:hover {background:var(--lt-soft);}
body.l2top-public .l2-directory-page .l2-directory-empty {padding:28px 20px;color:var(--lt-text);}
body.l2top-public .l2-directory-page .l2-directory-empty p {color:var(--lt-muted);margin:8px 0 16px;}
body.l2top-public .l2-directory-page .l2-directory-results .l2-pagination-wrap {margin:0 !important;padding:17px 10px;}
body.l2top-public .l2-directory-page .l2-directory-results .l2-pagination-wrap .pagination {margin-bottom:0;}
body.l2top-public .l2-directory-page .l2-directory-results + section {margin-top:30px !important;}
@media(max-width:767.98px) {
  body.l2top-public .l2-directory-page {padding-inline:10px;}
  body.l2top-public .l2-directory-page .l2-directory-hero {padding:29px 15px;}
  body.l2top-public .l2-directory-page .l2-directory-toolbar {padding:14px;}
  body.l2top-public .l2-directory-page .l2-directory-tabs {width:100%;}
  body.l2top-public .l2-directory-page .l2-directory-tab {flex:1;text-align:center;min-width:0;padding-inline:7px;}
  body.l2top-public .l2-directory-page .l2-directory-columns {display:none;}
  body.l2top-public .l2-directory-page .l2-directory-results-head {padding:14px;}
  body.l2top-public .l2-directory-page .l2-directory-results-head h2 {font-size:20px;}
}


/* ================================================================
   L2TOP V42 — NAVY ACTIONS + CHAMPAGNE GOLD ACCENTS
   Visual-only overrides on top of the complete V41 stylesheet.
   Gold remains for Add Server, VIP, highlights and rank accents.
   Chronicle / rate / PvP badges are intentionally unchanged.
   Admin layout and functional form behavior are not modified.
   ================================================================ */
body.l2top-public {
  --lt-action: #182c49;
  --lt-action-hover: #245b91;
  --lt-link: #245b91;
  --lt-accent: #245b91;
}
html[data-bs-theme="dark"] body.l2top-public {
  --lt-action: #345f96;
  --lt-action-hover: #4379ba;
  --lt-link: #9bc7fb;
  --lt-accent: #4e85be;
}

/* Navigation links are blue/navy, with gold reserved for Add Server. */
body.l2top-public .main-menu .nav-link,
body.l2top-public .main-menu .premium-link,
body.l2top-public .main-menu .advertising-link {
  color: var(--lt-text) !important;
}
body.l2top-public .main-menu .nav-link:hover,
body.l2top-public .main-menu .nav-link.active,
body.l2top-public .main-menu .premium-link:hover,
body.l2top-public .main-menu .advertising-link:hover {
  color: var(--lt-link) !important;
}
body.l2top-public .main-menu .nav-link::after { background: var(--lt-accent); }
/* Login stays outlined; Register/My Account become dark navy. */
body.l2top-public .navbar-action-dark {
  background: var(--lt-action) !important;
  border-color: var(--lt-action) !important;
  color: #fff !important;
}
body.l2top-public .navbar-action-dark:hover,
body.l2top-public .navbar-action-dark:focus-visible {
  background: var(--lt-action-hover) !important;
  border-color: var(--lt-action-hover) !important;
}
body.l2top-public .navbar-action-primary {
  background: linear-gradient(180deg,#245b91,#245b91) !important;
  border-color: #245b91 !important;
  color:#fff !important;
}
body.l2top-public .navbar-action-primary:hover { background:#245b91 !important; }

/* Default public actions; keep designated brand CTA separate. */
body.l2top-public .btn-primary,
body.l2top-public button.btn-primary,
body.l2top-public input.btn-primary {
  --bs-btn-bg: var(--lt-action);
  --bs-btn-border-color: var(--lt-action);
  --bs-btn-hover-bg: var(--lt-action-hover);
  --bs-btn-hover-border-color: var(--lt-action-hover);
  --bs-btn-active-bg: var(--lt-action-hover);
  --bs-btn-active-border-color: var(--lt-action-hover);
  background: var(--lt-action) !important;
  border-color: var(--lt-action) !important;
  color: #fff !important;
}
body.l2top-public .btn-primary:hover,
body.l2top-public .btn-primary:focus-visible {
  background: var(--lt-action-hover) !important;
  border-color: var(--lt-action-hover) !important;
  color:#fff !important;
}
body.l2top-public .btn-outline-primary {
  --bs-btn-color: var(--lt-link);
  --bs-btn-border-color: var(--lt-link);
  --bs-btn-hover-bg: var(--lt-link);
  --bs-btn-hover-border-color: var(--lt-link);
  border-color: var(--lt-link);
  color: var(--lt-link);
}
body.l2top-public .btn-outline-primary:hover,
body.l2top-public .btn-outline-primary:focus-visible { color:#fff; background:var(--lt-link); }
body.l2top-public .breadcrumb a,
body.l2top-public .pagination .page-link {color:var(--lt-link);}
body.l2top-public .pagination .active .page-link {background:var(--lt-action);border-color:var(--lt-action);color:#fff;}

/* Home: Vote / Search / Apply / Browse / Featured actions. */
body.l2top-public .l2top-home .ln-vote-button,
body.l2top-public .l2top-home .ln-search-submit,
body.l2top-public .l2top-home .ln-filter-submit,
body.l2top-public .l2top-home .ln-search-link,
body.l2top-public .l2top-home .ln-spotlight-button,
body.l2top-public .l2top-home .ln-button-primary,
body.l2top-public .l2top-home .ln-home-browse .ln-search-link,
body.l2top-public .l2next .ln-vote-button,
body.l2top-public .l2next .ln-search-submit,
body.l2top-public .l2next .ln-filter-submit,
body.l2top-public .l2next .ln-spotlight-button {
  background: var(--lt-action) !important;
  border-color: var(--lt-action) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
body.l2top-public .l2top-home .ln-vote-button:hover,
body.l2top-public .l2top-home .ln-search-submit:hover,
body.l2top-public .l2top-home .ln-filter-submit:hover,
body.l2top-public .l2top-home .ln-search-link:hover,
body.l2top-public .l2top-home .ln-spotlight-button:hover,
body.l2top-public .l2top-home .ln-button-primary:hover,
body.l2top-public .l2next .ln-vote-button:hover,
body.l2top-public .l2next .ln-search-submit:hover,
body.l2top-public .l2next .ln-filter-submit:hover,
body.l2top-public .l2next .ln-spotlight-button:hover {
  background:var(--lt-action-hover) !important;
  border-color:var(--lt-action-hover) !important;
}
body.l2top-public .l2top-home .ln-inline-link,
body.l2top-public .l2top-home .ln-compact-detail,
body.l2top-public .l2next .ln-inline-link,
body.l2top-public .l2next .ln-search-pager a {
  color:var(--lt-link) !important;
}
body.l2top-public .l2top-home .ln-inline-link:hover,
body.l2top-public .l2next .ln-inline-link:hover {color:var(--lt-action-hover) !important;}

/* Directory / Chronicle / Newest / Upcoming server actions. */
body.l2top-public .l2-catalog-next .top-server-play-btn,
body.l2top-public .l2-public-list .top-server-play-btn,
body.l2top-public .l2-directory-page .top-server-play-btn,
body.l2top-public .l2-public-list .l2-ranking-option.is-active,
body.l2top-public .l2-directory-page .l2-directory-tab.is-current {
  background:var(--lt-action) !important;
  border-color:var(--lt-action) !important;
  color:#fff !important;
}
body.l2top-public .l2-catalog-next .top-server-play-btn:hover,
body.l2top-public .l2-public-list .top-server-play-btn:hover,
body.l2top-public .l2-directory-page .top-server-play-btn:hover,
body.l2top-public .l2-directory-page .l2-directory-tab.is-current:hover {
  background:var(--lt-action-hover) !important;
  border-color:var(--lt-action-hover) !important;
  color:#fff !important;
}
body.l2top-public .l2-public-list .l2-type-nav-link:hover,
body.l2top-public .l2-directory-page .l2-directory-tab:hover,
body.l2top-public .l2-public-list .top-server-details-btn:hover,
body.l2top-public .l2-public-list .l2-pagination-wrap .page-link,
body.l2top-public .l2-public-list .l2-public-pagination .page-link {
  color:var(--lt-link) !important;
}
body.l2top-public .l2-public-list .page-item.active .page-link {
  background:var(--lt-action) !important;
  border-color:var(--lt-action) !important;
  color:#fff !important;
}

/* Keep logo, VIP, first-place crown and rate/Chronicle badges untouched. */


/* ================================================================
   L2TOP V43 — COMPACT SERVER RANKING ACTION PANEL
   Applies to public listing rows only; Admin and Home are unchanged.
   Keeps all original hyperlinks, vote counts, labels and server data.
   ================================================================ */
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-row {
  grid-template-columns: 62px minmax(0,1fr) 142px;
  min-height: 128px;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-side {
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding: 12px 13px;
  background: transparent;
  border-left: 1px solid var(--lt-border);
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-chronicle {
  justify-content: center;
  line-height: 1;
  margin-bottom: 1px;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-chronicle :is(.badge,span,a) {
  font-size: 10px;
  max-width: 100%;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-votes {
  justify-content: center;
  margin: 0;
  gap: 0;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-votes-icon {
  display: none;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-votes div {
  align-items: center;
  flex-direction: column-reverse;
  gap: 2px;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-votes strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.25px;
  color: var(--lt-text);
  font-variant-numeric: tabular-nums;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-votes small {
  font-size: 9px;
  letter-spacing: .6px;
  color: var(--lt-muted);
  line-height: 1.2;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-actions {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 3px !important;
  margin-top: 2px;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-play-btn {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 8px;
  color: #fff !important;
  background: var(--lt-action,#182c49) !important;
  border: 1px solid var(--lt-action,#182c49) !important;
  box-shadow: none;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-play-btn:hover {
  background: var(--lt-action-hover,#245b91) !important;
  border-color: var(--lt-action-hover,#245b91) !important;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-details-btn {
  width: 100%;
  min-height: 25px;
  padding: 3px 6px;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 5px;
  background: transparent !important;
  color: var(--lt-link,#245b91) !important;
  font-size: 11px;
  text-decoration: none;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-details-btn:hover,
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-details-btn:focus-visible {
  color: var(--lt-action-hover,#245b91) !important;
  text-decoration: underline;
  background: transparent !important;
}
html[data-bs-theme="dark"] body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-side {
  background: transparent;
  border-left-color: var(--lt-border);
}
html[data-bs-theme="dark"] body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-details-btn {
  color: #9cc4f3 !important;
}
@media (max-width: 767.98px) {
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-row {
    grid-template-columns: 42px minmax(0,1fr);
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-side {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border-left: 0;
    border-top: 1px solid var(--lt-border);
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-chronicle {
    display: none;
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-votes div {
    align-items: flex-start;
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-actions {
    flex-direction: row;
    align-items: center;
    margin: 0;
    gap: 6px !important;
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-play-btn {
    width: auto;
    min-width: 92px;
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-details-btn {
    width: auto;
    min-width: 65px;
  }
}
@media (max-width: 390px) {
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-side {
    gap: 6px;
    padding-inline: 10px;
  }
  body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-play-btn {
    min-width: 75px;
  }
}


/* ================================================================
   L2TOP V44 — PLAY LINK NEXT TO SERVER TITLE
   Full listing rows only; Home compact rows are unchanged.
   ================================================================ */
body.l2top-public .top-server-row .top-server-name-wrap .top-server-title-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #c4d8ed;
  border-radius: 6px;
  color: #245b91 !important;
  background: #eef5fd;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
body.l2top-public .top-server-row .top-server-name-wrap .top-server-title-play:hover,
body.l2top-public .top-server-row .top-server-name-wrap .top-server-title-play:focus-visible {
  color: #fff !important;
  background: #245b91;
  border-color: #245b91;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-actions {
  margin-top: 0;
  gap: 0 !important;
}
body.l2top-public :is(.l2-catalog-next,.l2-public-list,.l2-directory-page) .top-server-details-btn {
  min-height: 27px;
}
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-name-wrap .top-server-title-play {
  color: #acd0ff !important;
  background: #203752;
  border-color: #3a5576;
}
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-name-wrap .top-server-title-play:hover,
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-name-wrap .top-server-title-play:focus-visible {
  color: #fff !important;
  background: #245b91;
}


/* ================================================================
   L2TOP V45 — DISTINCT SERVER-TYPE COLORS
   Explicit per-type classes override the legacy red .top-server-type.
   LOW yellow, MID green, HIGH blue, PVP red.
   ================================================================ */
body.l2top-public .top-server-row .top-server-type.top-server-type--low {
  background: #fff0c7 !important;
  border: 1px solid #e9bf64 !important;
  color: #855400 !important;
}
body.l2top-public .top-server-row .top-server-type.top-server-type--mid {
  background: #dff6e8 !important;
  border: 1px solid #8bd5a7 !important;
  color: #176b3a !important;
}
body.l2top-public .top-server-row .top-server-type.top-server-type--high {
  background: #e2efff !important;
  border: 1px solid #96bff1 !important;
  color: #1755a4 !important;
}
body.l2top-public .top-server-row .top-server-type.top-server-type--pvp {
  background: #ffe5e8 !important;
  border: 1px solid #f2a5ae !important;
  color: #b42335 !important;
}
/* Dark background retains readable text contrast. */
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-type.top-server-type--low {
  background: #4b3b1c !important;
  border-color: #9c7a36 !important;
  color: #ffe1a0 !important;
}
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-type.top-server-type--mid {
  background: #183e2e !important;
  border-color: #377955 !important;
  color: #9be7b6 !important;
}
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-type.top-server-type--high {
  background: #1c3556 !important;
  border-color: #476d9e !important;
  color: #add1ff !important;
}
html[data-bs-theme="dark"] body.l2top-public .top-server-row .top-server-type.top-server-type--pvp {
  background: #4c222b !important;
  border-color: #a74d5d !important;
  color: #ffb3bd !important;
}


/* ================================================================
   L2TOP V46 — MINIMUM PUBLIC CONTENT HEIGHT
   Keep the footer below the initial viewport on short pages.
   Applied only to the public site layout, not the admin layout.
   No fixed height: long content grows normally.
   ================================================================ */
body.l2top-public .layout-wrapper {
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
}


/* ================================================================
   L2TOP V48 — NORMAL WEIGHT FOR NAVIGATION AND ACTION CONTROLS
   Body copy, headings, server names and status/rate badges retain
   their existing typography. No markup or functionality changes.
   ================================================================ */
body.l2top-public .main-menu .nav-link,
body.l2top-public .main-menu .nav-link.active,
body.l2top-public .main-menu .nav-link:hover,
body.l2top-public .navbar-action,
body.l2top-public .navbar-actions .btn,
body.l2top-public .theme-toggle,
body.l2top-public a.btn,
body.l2top-public button.btn,
body.l2top-public input[type="submit"],
body.l2top-public input[type="button"],
body.l2top-public button[type="submit"],
body.l2top-public .l2next .ln-button,
body.l2top-public .l2next .ln-search-link,
body.l2top-public .l2next .ln-inline-link,
body.l2top-public .l2next .ln-filter-submit,
body.l2top-public .l2next .ln-filter-reset,
body.l2top-public .l2next .ln-server-actions a,
body.l2top-public .l2top-home .ln-home-browse .ln-search-link,
body.l2top-public .top-server-play-btn,
body.l2top-public .top-server-details-btn,
body.l2top-public .l2-public-list .l2-type-nav-link,
body.l2top-public .l2-catalog-next .btn,
body.l2top-public .l2-public-list .btn {
  font-weight: 400 !important;
}

/* V49 Royal Blue – global public design tokens; legacy variable names retained for compatibility. */
body.l2top-public {
  --lt-gold:#245B91; --lt-gold-hover:#1B4775; --lt-gold-soft:#EAF3FD;
  --lt-action:#245B91; --lt-action-hover:#1B4775; --lt-link:#245B91; --lt-accent:#245B91;
}
html[data-bs-theme="dark"] body.l2top-public {
  --lt-gold:#86B8F0; --lt-gold-hover:#A6CEFA; --lt-gold-soft:#1C344F;
  --lt-action:#346FAE; --lt-action-hover:#4588CE; --lt-link:#9BC7FB; --lt-accent:#86B8F0;
}
/* Preserve previous V48 typography but change every visible brand CTA, including Add Server. */
body.l2top-public .navbar-action-primary,
body.l2top-public .navbar-action-dark,
body.l2top-public .btn-primary,
body.l2top-public .l2top-home .ln-vote-button,
body.l2top-public .l2top-home .ln-search-submit,
body.l2top-public .l2top-home .ln-filter-submit,
body.l2top-public .l2top-home .ln-search-link,
body.l2top-public .l2-public-list .top-server-play-btn,
body.l2top-public .l2-catalog-next .top-server-play-btn {
  background:#245B91 !important; border-color:#245B91 !important; color:#fff !important;
}
body.l2top-public .navbar-action-primary:hover,
body.l2top-public .navbar-action-dark:hover,
body.l2top-public .btn-primary:hover,
body.l2top-public .l2top-home .ln-vote-button:hover,
body.l2top-public .l2top-home .ln-search-submit:hover,
body.l2top-public .l2top-home .ln-filter-submit:hover,
body.l2top-public .l2top-home .ln-search-link:hover {
  background:#1B4775 !important; border-color:#1B4775 !important; color:#fff !important;
}
body.l2top-public .main-menu .nav-link::after {background:var(--lt-link) !important;}

/* ============================================================
   V50 — HOME LIST ROW SEPARATION AND INTERACTION
   Scoped to the real Home view only. Does not change badges,
   links, server queries, or the All Servers / Admin layouts.
   ============================================================ */
body.l2top-public #l2top-home .ln-ranking-list {
  padding: 9px 10px 12px;
}

body.l2top-public #l2top-home .ln-ranking-list .ln-server-row {
  position: relative;
  margin: 0 0 7px;
  padding: 12px 10px;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 44, 73, .035);
  transition: background-color .18s ease, border-color .18s ease,
              box-shadow .18s ease;
}
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid #dde6f0;
}
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row:hover,
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row:focus-within {
  background: #f5f9ff;
  border-color: #8db7e3;
  box-shadow: 0 4px 15px rgba(36, 91, 145, .13);
}
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row.is-vip {
  border-color: #a5c9ec;
  background: linear-gradient(90deg, #eef6ff 0%, #ffffff 75%);
}
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row.is-vip:hover,
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row.is-vip:focus-within {
  border-color: #6fa6dc;
  background: #eaf4ff;
}

body.l2top-public #l2top-home .ln-compact-list {
  padding: 8px 9px 10px;
}
body.l2top-public #l2top-home .ln-compact-list .ln-compact-item {
  position: relative;
  display: block;
  margin: 0 0 6px;
  padding: 9px 10px;
  border: 1px solid #e0e8f2;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 44, 73, .025);
  transition: background-color .18s ease, border-color .18s ease,
              box-shadow .18s ease;
}
body.l2top-public #l2top-home .ln-compact-list .ln-compact-item:last-child {
  margin-bottom: 0;
}
body.l2top-public #l2top-home .ln-compact-list .ln-compact-item:hover,
body.l2top-public #l2top-home .ln-compact-list .ln-compact-item:focus-within {
  background: #f4f8ff;
  border-color: #90b9e5;
  box-shadow: 0 4px 12px rgba(36, 91, 145, .12);
}
body.l2top-public #l2top-home .ln-ranking-list .ln-server-row:hover .ln-server-title,
body.l2top-public #l2top-home .ln-compact-list .ln-compact-item:hover .ln-name {
  color: #245b91 !important;
}

html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-ranking-list .ln-server-row,
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-compact-list .ln-compact-item {
  background: #18283e;
  border-color: #344860;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-ranking-list .ln-server-row:hover,
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-ranking-list .ln-server-row:focus-within,
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-compact-list .ln-compact-item:hover,
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-compact-list .ln-compact-item:focus-within {
  background: #203852;
  border-color: #6a9bd0;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-ranking-list .ln-server-row.is-vip {
  background: linear-gradient(90deg, #213e5d, #18283e 80%);
  border-color: #4775a5;
}

@media (max-width: 580px) {
  body.l2top-public #l2top-home .ln-ranking-list { padding: 7px 6px 10px; }
  body.l2top-public #l2top-home .ln-ranking-list .ln-server-row { padding: 10px 7px; margin-bottom: 6px; }
  body.l2top-public #l2top-home .ln-compact-list { padding: 7px 6px 9px; }
  body.l2top-public #l2top-home .ln-compact-list .ln-compact-item { padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  body.l2top-public #l2top-home .ln-ranking-list .ln-server-row,
  body.l2top-public #l2top-home .ln-compact-list .ln-compact-item { transition: none; }
}

/* ============================================================
   L2TOP V51 — LIGHT MODE HOME LIST CARD CONTRAST
   Only the Home TOP 10 and sidebar server lists are affected.
   Preserve V50 dark mode, status badge colors and functionality.
   ============================================================ */
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-small-panel {
  background: #eaf0f7;
  border-color: #cfdbeb;
  box-shadow: 0 5px 20px rgba(24, 44, 73, .055);
}

html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-compact-list {
  background: #eaf0f7;
}

html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list .ln-server-row,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-compact-list .ln-compact-item {
  background: #f8fbff;
  border-color: #ccdbea;
  box-shadow: 0 1px 4px rgba(24, 44, 73, .055);
}

html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list .ln-server-row:hover,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list .ln-server-row:focus-within,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-compact-list .ln-compact-item:hover,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-compact-list .ln-compact-item:focus-within {
  background: #ffffff;
  border-color: #88b1df;
  box-shadow: 0 6px 18px rgba(36, 91, 145, .14);
}

html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list .ln-server-row.is-vip {
  background: linear-gradient(90deg, #edf5ff 0%, #f8fbff 72%);
  border-color: #a3c4e7;
}
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list .ln-server-row.is-vip:hover,
html:not([data-bs-theme="dark"]) body.l2top-public:not([data-ln-theme="dark"]) #l2top-home .ln-ranking-list .ln-server-row.is-vip:focus-within {
  background: #ffffff;
  border-color: #77a8dc;
}


/* ============================================================
   L2TOP V52 — TOP 3 ranking badges
   Royal Blue, neutral silver and soft blue. No gold/orange text.
   Keeps badges readable in both Light and Dark modes.
   ============================================================ */
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-rank-1 {
  color: #fff; background: #2866a5; border-color: #5796d7;
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-rank-2 {
  color: #e3edfa; background: #344761; border-color: #536c8b;
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-rank-3 {
  color: #c4e3ff; background: #1e4267; border-color: #4477a9;
}


/* ============================================================
   L2TOP V53 — TOP 3 MEDAL RANKS (Gold / Silver / Bronze)
   Scoped to Home TOP 10. All other Royal Blue UI remains intact.
   ============================================================ */
body.l2top-public #l2top-home .ln-rank-1 {
  background: #F5D77F;
  border-color: #D4A73F;
  color: #664300;
}
body.l2top-public #l2top-home .ln-rank-2 {
  background: #E1E7EF;
  border-color: #AFBECE;
  color: #435469;
}
body.l2top-public #l2top-home .ln-rank-3 {
  background: #E8B794;
  border-color: #C78D65;
  color: #66391F;
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-rank-1 {
  background: #98701E;
  border-color: #D9AE4E;
  color: #FFF2C4;
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-rank-2 {
  background: #52647A;
  border-color: #899CAF;
  color: #F1F5FC;
}
html[data-bs-theme="dark"] body.l2top-public #l2top-home .ln-rank-3 {
  background: #865139;
  border-color: #BB7B55;
  color: #FFE4CE;
}
