/* ============================================
   CVI Virtual – Design system migliorato
   ============================================ */

:root {
  --bg-color: #0b0f19;
  --bg-elevated: #0f1524;
  --card-bg: #111827;
  --card-bg-hover: #152033;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  --text-main: #f8fafc;
  --text-muted: #a8b4c7;
  --accent-color: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.25);
  --success: #34d399;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px var(--border-hover), 0 12px 32px rgba(56, 189, 248, 0.08);
  --transition: 0.2s ease;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Focus visibile per tastiera (accessibilità) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-accedi:focus-visible,
.nav-toggle:focus-visible,
.lang-selector:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; z-index: 1000; border-bottom: 1px solid var(--border-color);
}
.logo-container { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; z-index: 1001; }
.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}
.logo-text { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.logo-text span { color: var(--accent-color); }
.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop ul { list-style: none; display: flex; align-items: center; gap: 0.15rem; }
.nav-desktop ul li a {
  display: block; padding: 0.45rem 0.7rem; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-desktop ul li a:hover, .nav-desktop ul li a.active { color: var(--accent-color); background: var(--accent-soft); }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 170px;
  background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); padding: 0.4rem; flex-direction: column; gap: 2px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: flex; }
.dropdown-menu li a { padding: 0.5rem 0.75rem !important; border-radius: 6px; font-size: 0.875rem; }
.dropdown-menu li a:hover { background: var(--accent-soft); color: var(--accent-color); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lang-selector {
  background: var(--card-bg); color: var(--accent-color); border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.4rem 0.6rem; border-radius: 6px; font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.lang-selector:hover, .lang-selector:focus { border-color: var(--accent-color); outline: none; }
.btn-accedi {
  display: inline-flex; align-items: center; border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.45rem 1rem; border-radius: 6px; color: var(--accent-color) !important;
  font-size: 0.875rem; font-weight: 600;
}
.btn-accedi:hover { background: var(--accent-soft); border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--accent-glow); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border-color); border-radius: 8px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; z-index: 1001;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-main); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 0; top: var(--header-h); background: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(16px); padding: 1.5rem; flex-direction: column; gap: 0.25rem; overflow-y: auto; z-index: 999;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { display: block; padding: 0.85rem 1rem; color: var(--text-muted); font-size: 1.05rem; font-weight: 500; border-radius: var(--radius-sm); }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--accent-color); background: var(--accent-soft); }
.nav-mobile .mobile-dropdown { padding-left: 1rem; }
.nav-mobile .mobile-dropdown a { font-size: 0.95rem; padding: 0.6rem 1rem; }

.page-content {
  padding-top: calc(var(--header-h) + 2.5rem); max-width: 1120px; margin: 0 auto;
  padding-left: 1.5rem; padding-right: 1.5rem; padding-bottom: 4rem;
}
.hero-section { text-align: center; padding: 1.5rem 0 3.5rem; }
.hero-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-color);
  padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.25rem; border: 1px solid rgba(56, 189, 248, 0.3);
}
.hero-section h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1.1rem; color: #fff;
}
.hero-section h1 em { font-style: italic; color: var(--accent-color); }
.hero-section p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; background: var(--accent-color); color: #0b0f19;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover { background: #7dd3fc; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text-main);
  border: 1px solid var(--border-color); padding: 0.8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
}
.btn-secondary:hover { border-color: var(--accent-color); background: var(--accent-soft); transform: translateY(-1px); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 1.25rem; margin-bottom: 2rem; }
.stats-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.stat-item {
  background: var(--card-bg); border: 1px solid var(--border-color); padding: 1.35rem 1rem;
  border-radius: var(--radius-md); text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.stat-item:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.stat-number { display: block; font-size: 1.9rem; font-weight: 800; color: var(--accent-color); letter-spacing: -0.03em; line-height: 1.2; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 0.25rem; }

.next-regata-card {
  position: relative;
  overflow: hidden;
  background-color: #0c1929;
  background-image:
    linear-gradient(135deg, rgba(11, 15, 25, 0.55) 0%, rgba(15, 40, 70, 0.45) 40%, rgba(11, 15, 25, 0.75) 100%),
    url("https://images.unsplash.com/photo-1505118380757-91f5f5632de0?auto=format&fit=crop&w=1000&q=70");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  box-shadow: var(--shadow-card), 0 0 40px rgba(56, 189, 248, 0.08);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.next-regata-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.85) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.next-regata-card > * {
  position: relative;
  z-index: 1;
}
.next-regata-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), 0 0 50px rgba(56, 189, 248, 0.12);
}
.badge-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: rgba(11, 15, 25, 0.55);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.next-regata-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.regata-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.content-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card-box { background: var(--card-bg); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: var(--radius-md); }
.card-box:hover { border-color: rgba(255, 255, 255, 0.12); }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.15rem; gap: 1rem; }
.card-box h2 { font-size: 1.1rem; font-weight: 650; color: #fff; }
.link-more { font-size: 0.85rem; color: var(--accent-color); font-weight: 600; white-space: nowrap; }

.ranking-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ranking-list li {
  display: flex; align-items: center; gap: 0.6rem; background: #1a2332; padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.04);
}
.ranking-list li:hover { background: #1e2a3d; border-color: rgba(56, 189, 248, 0.15); }
.rank-pos { font-weight: 800; color: var(--accent-color); width: 22px; font-size: 0.95rem; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-info strong { display: block; font-size: 0.92rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info span { font-size: 0.78rem; color: var(--text-muted); }
.team-badge { font-size: 0.7rem; background: var(--accent-soft); color: var(--accent-color); padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.rank-points { font-weight: 800; font-size: 1.05rem; color: #fff; flex-shrink: 0; min-width: 28px; text-align: right; }

.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-sm); margin-top: 0.75rem; background: #0a0e16; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.site-footer { border-top: 1px solid var(--border-color); background: var(--bg-elevated); padding: 2.5rem 1.5rem 2rem; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 280px; }
.footer-brand .logo-text { font-size: 1.15rem; margin-bottom: 0.5rem; display: block; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.85rem; font-weight: 650; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--text-main); padding: 0.25rem 0; }
.footer-col a:hover { color: var(--accent-color); }
.footer-bottom { max-width: 1120px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-muted); text-align: center; }

@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .lang-selector { display: none; }
  .dashboard-grid, .content-row { grid-template-columns: 1fr; }
  .next-regata-card { min-height: 200px; }
}
@media (max-width: 600px) {
  header { padding: 0 1rem; }
  .page-content { padding-left: 1rem; padding-right: 1rem; padding-top: calc(var(--header-h) + 1.5rem); }
  .hero-section { padding: 0.5rem 0 2.5rem; }
  .hero-section h1 { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .stat-number { font-size: 1.6rem; }
  .team-badge { display: none; }
  .footer-inner { flex-direction: column; gap: 1.75rem; }
  .footer-links { gap: 2rem; }
}
body.menu-open { overflow: hidden; }

.page-hero { text-align: center; padding: 0 0 2rem; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.page-hero h1 em { font-style: italic; color: var(--accent-color); }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.content-box { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem; }
.content-box h1, .content-box > h1 { font-size: 1.6rem; color: var(--accent-color); margin-bottom: 0.4rem; font-weight: 700; }
.content-box > p.subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }

/* ============================================
   Sistema "accent card" (dal modello Team)
   Card con accento cromatico riutilizzabile su tutto il sito.
   Personalizzabile con data-theme="sky|teal|amber|violet|red"
   oppure con variabili inline --acc-1/--acc-2/--acc-soft/--acc-glow.
   ============================================ */
:root {
  --acc-1: var(--accent-color);
  --acc-2: #0ea5e9;
  --acc-soft: var(--accent-soft);
  --acc-glow: var(--accent-glow);
}
.acc-card[data-theme="sky"]    { --acc-1:#38bdf8; --acc-2:#0ea5e9; --acc-soft:rgba(56,189,248,.14);  --acc-glow:rgba(56,189,248,.32); }
.acc-card[data-theme="teal"]   { --acc-1:#2dd4bf; --acc-2:#0d9488; --acc-soft:rgba(45,212,191,.15);  --acc-glow:rgba(45,212,191,.32); }
.acc-card[data-theme="amber"]  { --acc-1:#fbbf24; --acc-2:#f59e0b; --acc-soft:rgba(251,191,36,.15);  --acc-glow:rgba(251,191,36,.32); }
.acc-card[data-theme="violet"] { --acc-1:#a78bfa; --acc-2:#8b5cf6; --acc-soft:rgba(167,139,250,.16); --acc-glow:rgba(167,139,250,.34); }
.acc-card[data-theme="red"]    { --acc-1:#f87171; --acc-2:#ef4444; --acc-soft:rgba(248,113,113,.16); --acc-glow:rgba(248,113,113,.34); }

/* Contenitore card con accento (sfondo gradiente + lift + alone colorato) */
.acc-card, .team-card, .gara-card, .card-box {
  position: relative;
  background: linear-gradient(165deg, #152033 0%, #111827 55%, #0f1524 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.acc-card:hover, .team-card:hover, .gara-card:hover, .card-box:hover {
  border-color: var(--acc-1);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--acc-glow);
}

/* Striscia superiore con gradiente accento (firma del modello Team) */
.acc-card::before, .gara-card::before, .card-box::before, .content-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--acc-1), var(--acc-2));
  pointer-events: none;
  z-index: 1;
}

/* Box contenitore ampio: accento senza effetto "lift" */
.content-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #131d2f 0%, #111827 60%, #0f1524 100%);
  border-radius: var(--radius-lg);
  transition: border-color .25s ease;
}
.content-box:hover { border-color: var(--acc-1); }

/* Statistiche: accento + alone colorato */
.stat-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #152033 0%, #111827 60%, #0f1524 100%);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.stat-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--acc-1), var(--acc-2));
  pointer-events: none;
}
.stat-item:hover { border-color: var(--acc-1); transform: translateY(-3px); box-shadow: 0 14px 30px var(--acc-glow); }

/* Parti riutilizzabili del modello */
.acc-avatar {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #0b0f19; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--acc-1) 0%, var(--acc-2) 100%);
  box-shadow: 0 6px 18px var(--acc-glow);
}
.acc-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--acc-soft); color: var(--acc-1); border: 1px solid var(--acc-glow);
  font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; letter-spacing: .02em;
}
.acc-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc-1); font-size: .72rem; font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .acc-card, .team-card, .gara-card, .card-box, .stat-item { transition: none; }
}
.loading-text, .empty-text { color: var(--text-muted); text-align: center; padding: 2rem 1rem; }

.members-table, .results-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.members-table th, .results-table th {
  text-align: left; padding: 0.65rem 0.75rem; color: var(--text-muted); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color);
}
.members-table td, .results-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.download-list { display: flex; flex-direction: column; gap: 1rem; }
.download-item {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(165deg, #152033 0%, #111827 55%, #0f1524 100%);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.download-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--acc-1), var(--acc-2)); pointer-events: none; }
.download-item:hover { border-color: var(--acc-1); transform: translateY(-2px); box-shadow: 0 14px 30px var(--acc-glow); }
.btn-download {
  display: inline-flex; background: var(--accent-color); color: #0b0f19; padding: 0.55rem 1.1rem;
  border-radius: 8px; font-weight: 700; font-size: 0.88rem; white-space: nowrap;
}
.btn-download:hover { background: #7dd3fc; }

.btn-logout {
  background: #ef4444;
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}
.btn-logout:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}
.members-header,
.download-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.members-header h1,
.download-header h1 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 0;
  font-weight: 700;
}

@media (max-width: 600px) {
  .download-item { flex-direction: column; align-items: flex-start; }
  .results-table, .members-table { font-size: 0.85rem; }
  .results-table th, .results-table td, .members-table th, .members-table td { padding: 0.65rem 0.5rem; }
}

/* === Improvements: accessibility + skeleton + logo perf === */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  padding: 0.6rem 1.1rem; background: var(--accent-color); color: #0b0f19;
  border-radius: 8px; font-weight: 700; overflow: visible; outline: none;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}
.logo-img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}
.hero-logo {
  max-width: 140px;
  height: auto;
  margin: 0 auto 1rem;
}
.skeleton-block {
  background: linear-gradient(90deg, #1a2332 25%, #243044 50%, #1a2332 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s ease-in-out infinite;
  border-radius: 4px;
  color: transparent !important;
  min-width: 3.5rem;
  display: inline-block;
}
@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.loading-text, .empty-text { color: var(--text-muted); text-align: center; padding: 2rem 1rem; }
.error-text { color: #f87171; text-align: center; padding: 1.5rem 1rem; }
