:root {
  --bg: #07090d;
  --surface: #0d1118;
  --surface-2: #121722;
  --surface-3: #171d29;
  --border: #212837;
  --border-strong: #2d3649;
  --text: #f6f7fb;
  --muted: #929caf;
  --muted-2: #697386;
  --accent: #6d5dfc;
  --accent-2: #8d82ff;
  --accent-soft: rgba(109, 93, 252, .12);
  --success: #56d98d;
  --warning: #f5c65b;
  --danger: #ff6b7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(109, 93, 252, .13), transparent 32rem),
    radial-gradient(circle at 95% 15%, rgba(76, 201, 240, .06), transparent 26rem),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.ambient { position: fixed; pointer-events: none; filter: blur(80px); opacity: .3; z-index: -1; border-radius: 999px; }
.ambient-one { width: 320px; height: 320px; background: #6655ff; top: -190px; left: 8%; }
.ambient-two { width: 260px; height: 260px; background: #2563eb; right: -180px; top: 36%; opacity: .13; }

.nav-wrap { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px); background: rgba(7, 9, 13, .78); border-bottom: 1px solid rgba(255,255,255,.055); }
.nav { width: min(1240px, calc(100% - 36px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 28px rgba(109,93,252,.28); font-weight: 950; }
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: .98rem; letter-spacing: -.02em; }
.brand small { color: var(--muted-2); font-size: .68rem; margin-top: 3px; }
.nav nav { display: flex; align-items: center; gap: 10px; }
.nav-link { color: var(--muted); padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 700; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-2); }
.user-pill { display: flex; align-items: center; gap: 9px; margin-left: 4px; padding: 5px 9px 5px 5px; border: 1px solid var(--border); background: rgba(13,17,24,.86); border-radius: 12px; }
.user-pill img { width: 32px; height: 32px; border-radius: 9px; }
.user-pill > span { display: grid; min-width: 0; }
.user-pill strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.user-pill small { color: var(--muted-2); font-size: .68rem; margin-top: 2px; }
.inline-form { display: inline; margin: 0; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; cursor: pointer; color: var(--muted); }
.icon-button:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

.shell { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 46px 0 72px; }
.hero { min-height: 66vh; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; }
h1 { margin: 10px 0 18px; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .96; letter-spacing: -.065em; }
h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.65; }
.eyebrow { color: var(--accent-2); font-size: .72rem; font-weight: 900; letter-spacing: .17em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.actions { margin-top: 28px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #7667ff, #5d4df4); color: white; padding: 11px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); cursor: pointer; font-weight: 800; box-shadow: 0 9px 28px rgba(109,93,252,.18); transition: transform .15s ease, filter .15s ease, border-color .15s ease; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.small { padding: 8px 12px; }
.button.secondary { background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: none; color: #d8dcec; }

.feature-card, .card, .card-soft { background: linear-gradient(180deg, rgba(17,22,31,.94), rgba(12,16,23,.94)); border: 1px solid var(--border); border-radius: 17px; box-shadow: var(--shadow); }
.card-soft { box-shadow: none; }
.feature-card { padding: 10px 24px; }
.feature-card div { padding: 20px 0; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.feature-card div:last-child { border: 0; }
.feature-card span { color: var(--muted); text-align: right; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); margin: 7px 0 0; }
.page-head p { margin: 12px 0 0; max-width: 560px; }
.dashboard-head { align-items: center; }
.back { color: var(--muted); font-size: .86rem; font-weight: 700; }
.back:hover { color: var(--text); }

.stats-grid { display: grid; gap: 12px; }
.dashboard-stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.guild-stats { grid-template-columns: repeat(4, 1fr); margin: 14px 0 20px; }
.stat-card { min-height: 118px; padding: 19px 20px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(20,25,35,.95), rgba(11,15,22,.95)); border: 1px solid var(--border); border-radius: 15px; }
.stat-card span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat-card strong { font-size: 1.85rem; letter-spacing: -.045em; }
.stat-card small { color: var(--muted-2); font-size: .73rem; }

.toolbar { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.toolbar > div { display: grid; gap: 3px; }
.toolbar strong { font-size: .9rem; }
.toolbar > div span { color: var(--muted-2); font-size: .76rem; }
.search-box { min-width: 310px; display: flex; align-items: center; gap: 8px; background: #090c12; border: 1px solid var(--border); border-radius: 10px; padding: 0 11px; color: var(--muted-2); }
.search-box:focus-within { border-color: #4d4a78; box-shadow: 0 0 0 3px rgba(109,93,252,.08); }
.search-box input { border: 0; background: transparent; padding: 10px 0; outline: none; color: var(--text); width: 100%; }

.guild-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guild-card { padding: 18px; display: grid; gap: 18px; min-width: 0; box-shadow: 0 20px 55px rgba(0,0,0,.21); transition: border-color .18s ease, transform .18s ease; }
.guild-card:hover { border-color: #343d52; transform: translateY(-2px); }
.guild-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.guild-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.guild-title img, .fallback-icon { width: 50px; height: 50px; border-radius: 14px; flex: 0 0 auto; object-fit: cover; }
.fallback-icon { background: linear-gradient(145deg, #272d3d, #171c27); display: grid; place-items: center; font-weight: 900; }
.guild-title > div:last-child { min-width: 0; }
.guild-title h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.guild-id { display: block; margin-top: 5px; color: var(--muted-2); font: .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; border: 1px solid var(--border); color: var(--muted); }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.status-badge.online { color: var(--success); border-color: rgba(86,217,141,.18); background: rgba(86,217,141,.055); }
.status-badge.offline { color: #8993a7; }
.guild-metrics { display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.guild-metrics strong { color: #dfe3ef; margin-right: 4px; }
.guild-action { width: 100%; justify-content: space-between; background: var(--surface-2); border-color: var(--border-strong); box-shadow: none; }
.guild-unavailable { padding: 12px 13px; border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.guild-hero { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 26px; overflow: hidden; position: relative; }
.guild-hero::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(109,93,252,.09); filter: blur(40px); right: -80px; top: -140px; pointer-events: none; }
.guild-identity { display: flex; align-items: center; gap: 18px; min-width: 0; position: relative; z-index: 1; }
.guild-hero-icon { width: 78px; height: 78px; border-radius: 22px; object-fit: cover; border: 1px solid rgba(255,255,255,.09); }
.guild-identity h1 { margin: 6px 0 10px; font-size: clamp(2rem, 4vw, 3.15rem); }
.hero-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: .72rem; }
.guild-hero-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.guild-hero-actions > span { color: var(--muted-2); font-size: .75rem; }

.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-sidebar { position: sticky; top: 92px; padding: 13px; }
.sidebar-label { display: block; color: var(--muted-2); font-size: .67rem; font-weight: 900; letter-spacing: .14em; padding: 7px 9px 10px; text-transform: uppercase; }
.settings-sidebar nav { display: grid; gap: 4px; }
.settings-sidebar nav a { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; font-weight: 750; padding: 10px; border-radius: 9px; transition: .15s ease; }
.settings-sidebar nav a span { width: 20px; color: var(--muted-2); }
.settings-sidebar nav a:hover, .settings-sidebar nav a.active { color: var(--text); background: var(--accent-soft); }
.settings-sidebar nav a.active span { color: var(--accent-2); }
.sidebar-health { margin-top: 14px; padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(5,8,12,.38); display: grid; gap: 7px; }
.sidebar-health > span { color: var(--muted-2); font-size: .68rem; }
.sidebar-health strong { display: flex; align-items: center; gap: 7px; color: var(--success); font-size: .8rem; }
.sidebar-health strong i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.sidebar-health small { color: var(--muted-2); font-size: .68rem; line-height: 1.5; }

.settings-form { display: grid; gap: 14px; min-width: 0; }
.settings-section { padding: 23px; scroll-margin-top: 96px; box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 19px; border-bottom: 1px solid var(--border); }
.section-heading h2 { margin-top: 5px; font-size: 1.28rem; }
.section-heading p { margin: 6px 0 0; font-size: .82rem; }
.section-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(109,93,252,.16); }
.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; font-weight: 750; }
.field > span:first-child { font-size: .84rem; }
.field small { color: var(--muted-2); font-weight: 450; font-size: .74rem; line-height: 1.4; }
input, select, textarea, .readonly-value { width: 100%; border: 1px solid var(--border); background: #090c12; color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { border-color: #504b80; box-shadow: 0 0 0 3px rgba(109,93,252,.08); }
textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.readonly-value { color: var(--muted); min-height: 43px; display: flex; align-items: center; font-size: .77rem; }
code { color: #c4bdff; background: rgba(109,93,252,.1); border: 1px solid rgba(109,93,252,.12); padding: 2px 5px; border-radius: 5px; }
.field-meta { display: flex; justify-content: space-between; color: var(--muted-2); font-size: .68rem; font-weight: 450; }

.welcome-editor { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 14px; margin-top: 16px; }
.preview-card { border: 1px solid var(--border); background: #0a0d13; border-radius: 12px; overflow: hidden; align-self: stretch; }
.preview-label { display: block; padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--muted-2); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.discord-preview { display: flex; gap: 11px; padding: 15px; }
.discord-preview > img { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; }
.discord-author { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 19px; }
.discord-author strong { font-size: .81rem; }
.discord-author span { padding: 1px 4px; border-radius: 3px; background: #5865f2; color: white; font-size: .52rem; font-weight: 900; }
.discord-author small { color: #72798a; font-size: .63rem; }
.discord-preview p { margin: 4px 0 0; color: #d8dbe3; font-size: .79rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.toggle-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px; border: 1px solid var(--border); background: #090c12; border-radius: 11px; cursor: pointer; }
.toggle-card > div { display: grid; gap: 4px; }
.toggle-card strong { font-size: .82rem; }
.toggle-card > div span { color: var(--muted-2); font-size: .72rem; }
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 42px; height: 23px; flex: 0 0 auto; border-radius: 999px; background: #252b38; border: 1px solid #323a4b; position: relative; transition: .2s ease; }
.toggle-ui::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #939bad; top: 2px; left: 2px; transition: .2s ease; }
.toggle-card input:checked + .toggle-ui { background: var(--accent); border-color: var(--accent); }
.toggle-card input:checked + .toggle-ui::after { transform: translateX(19px); background: white; }

.save-bar { position: sticky; bottom: 14px; z-index: 18; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(13,17,24,.9); backdrop-filter: blur(16px); }
.save-bar > div { display: grid; gap: 3px; }
.save-bar strong { font-size: .8rem; }
.save-bar strong.dirty { color: var(--warning); }
.save-bar span { color: var(--muted-2); font-size: .7rem; }

.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .8rem; transition: opacity .3s ease, transform .3s ease; }
.notice.success { color: var(--success); background: rgba(86,217,141,.07); border: 1px solid rgba(86,217,141,.18); }
.notice.warning { color: var(--warning); background: rgba(245,198,91,.07); border: 1px solid rgba(245,198,91,.18); }
.toast-hide { opacity: 0; transform: translateY(-5px); pointer-events: none; }
.error-page { max-width: 720px; padding: 34px; }
.error-page h1 { font-size: 3rem; }
.empty { padding: 28px; color: var(--muted); }
.hidden { display: none !important; }

footer { width: min(1240px, calc(100% - 36px)); margin: 0 auto; border-top: 1px solid var(--border); padding: 23px 0 34px; color: var(--muted-2); font-size: .72rem; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .guild-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; }
  .settings-sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .sidebar-health { display: none; }
  .welcome-editor { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { min-height: 64px; }
  .nav-link, .user-pill span { display: none; }
  .shell { width: min(100% - 24px, 1240px); padding-top: 30px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .page-head, .guild-hero { align-items: stretch; flex-direction: column; }
  .dashboard-head { align-items: stretch; }
  .dashboard-head .button { width: 100%; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .guild-stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .guild-card-top { align-items: flex-start; }
  .guild-hero-actions { align-items: stretch; }
  .field-grid.two { grid-template-columns: 1fr; }
  .settings-sidebar { overflow-x: auto; padding: 8px; }
  .settings-sidebar .sidebar-label { display: none; }
  .settings-sidebar nav { display: flex; min-width: max-content; }
  .settings-sidebar nav a { white-space: nowrap; }
  .settings-section { padding: 18px; }
  .section-heading { margin-bottom: 18px; }
  .save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .save-bar .button { width: 100%; }
  footer { width: min(100% - 24px, 1240px); flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .guild-identity { align-items: flex-start; }
  .guild-hero-icon { width: 58px; height: 58px; border-radius: 17px; }
  .hero-meta { align-items: flex-start; flex-direction: column; }
  .guild-title h2 { max-width: 180px; }
  .status-badge { font-size: .64rem; }
  .guild-metrics { flex-direction: column; gap: 5px; }
}

/* Multi-page guild configuration */
.guild-hero-compact { margin-bottom: 14px; }
.multipage-layout { align-items: start; }
.settings-content { min-width: 0; display: grid; gap: 14px; }
.multipage-sidebar { top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; }
.sidebar-label-spaced { margin-top: 18px; }
.multipage-sidebar nav { display: grid; gap: 5px; }
.multipage-sidebar nav a span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
}
.multipage-sidebar nav a.active span { background: var(--accent-soft); color: var(--accent-2); }

.config-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.config-page-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(18,23,34,.66);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.config-page-card:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-3); }
.config-page-card > div { display: grid; gap: 4px; min-width: 0; }
.config-page-card strong { font-size: .9rem; }
.config-page-card small { color: var(--muted); line-height: 1.45; }
.config-page-card b { color: var(--muted-2); font-size: 1rem; }
.config-page-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(109,93,252,.18);
  color: var(--accent-2);
  font-weight: 950;
}
.module-card .config-page-icon { background: rgba(255,255,255,.035); border-color: var(--border); color: var(--muted); }

.overview-status-card { padding: 22px; }
.overview-status-card h3 { margin: 5px 0 0; }
.overview-state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.overview-state-grid > div { padding: 13px; border: 1px solid var(--border); background: rgba(18,23,34,.58); border-radius: 12px; display: grid; gap: 5px; }
.overview-state-grid span { color: var(--muted-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.overview-state-grid strong { font-size: .82rem; }

.module-coming-soon { padding: 20px; border: 1px solid rgba(109,93,252,.2); border-radius: 14px; background: var(--accent-soft); margin-bottom: 16px; }
.module-coming-soon h3 { margin: 9px 0 7px; }
.module-coming-soon p { margin: 0; color: var(--muted); line-height: 1.6; }
.module-status { color: var(--accent-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.feature-list { display: grid; gap: 9px; }
.feature-list-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(18,23,34,.5); }
.feature-list-item > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); color: var(--accent-2); font-weight: 900; }
.feature-list-item strong { font-size: .82rem; }
.feature-list-item small { color: var(--muted-2); text-align: right; }

@media (max-width: 980px) {
  .multipage-sidebar { max-height: none; overflow: visible; }
  .multipage-sidebar .sidebar-label { display: block; }
  .multipage-sidebar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .multipage-sidebar nav a { min-width: 0; }
  .overview-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .multipage-sidebar { overflow-x: auto; }
  .multipage-sidebar .sidebar-label, .multipage-sidebar .sidebar-health { display: none; }
  .multipage-sidebar nav { display: flex; min-width: max-content; margin-bottom: 4px; }
  .multipage-sidebar nav a { white-space: nowrap; }
  .config-page-grid { grid-template-columns: 1fr; }
  .feature-list-item { grid-template-columns: 30px minmax(0, 1fr); }
  .feature-list-item small { grid-column: 2; text-align: left; }
}

@media (max-width: 480px) {
  .overview-state-grid { grid-template-columns: 1fr 1fr; }
  .config-page-card { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .config-page-icon { width: 42px; height: 42px; }
}

/* Dashboard FR / EN switch */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13,17,24,.86);
}
.language-switch button {
  min-width: 34px;
  height: 29px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.language-switch button:hover { color: var(--text); background: var(--surface-2); }
.language-switch button.active { color: #fff; background: var(--accent); }
@media (max-width: 480px) {
  .language-switch { margin-left: auto; }
  .language-switch button { min-width: 31px; }
}
