/* ============================================================
   MuADMINS - main.css  v7.0
   Brighter blue MuGPS - less abyss, more tech horizon
   ============================================================ */
:root {
  /* ── Core backgrounds - BRIGHTER in v7 ── */
  --bg:          #041020;
  --bg-mid:      #071830;
  --bg-panel:    rgba(8, 18, 46, 0.94);
  --bg-item:     rgba(255, 255, 255, 0.045);
  --bg-item-h:   rgba(255, 255, 255, 0.075);
  --bg-glass:    rgba(10, 24, 60, 0.72);

  /* ── Borders ── */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-blue:  rgba(77, 168, 255, 0.30);
  --border-cyan:  rgba(0, 212, 255, 0.24);

  /* ── Text ── */
  --text:       #e8f2ff;
  --text-dim:   #7cb0d8;
  --text-muted: #3d5a78;

  /* ── Blue - brighter primary ── */
  --blue:       #5ab4ff;
  --blue-bright:#82ccff;
  --blue-glow:  rgba(90, 180, 255, 0.45);
  --blue-halo:  rgba(90, 180, 255, 0.09);

  /* ── Cyan ── */
  --cyan:       #12e0ff;
  --cyan-glow:  rgba(18, 224, 255, 0.38);

  /* ── Status colors ── */
  --green:      #22c55e;
  --green-glow: rgba(34, 197, 94, 0.42);
  --orange:     #ff8c00;
  --orange-glow:rgba(255, 140, 0, 0.36);
  --gold:       #d4a030;
  --gold-glow:  rgba(212, 160, 48, 0.38);

  /* ── Fonts ── */
  --font-display: 'Orbitron', 'Courier New', monospace;
  --font-body:    'Sora', 'Segoe UI', system-ui, sans-serif;

  /* ── UI ── */
  --radius:    14px;
  --radius-sm:  9px;
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-b: cubic-bezier(0.34, 1.56, 0.64, 1.00);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a       { color: inherit; text-decoration: none; }
img     { display: block; max-width: 100%; }
button  { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: var(--font-body); }

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }
.text-blue   { color: var(--blue);   }
.text-cyan   { color: var(--cyan);   }
.text-green  { color: var(--green);  }
.text-orange { color: var(--orange); }
.text-gold   { color: var(--gold);   }
.text-dim    { color: var(--text-dim); }

* { scrollbar-width: thin; scrollbar-color: rgba(90,180,255,0.16) transparent; }
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-thumb { background: rgba(90,180,255,0.20); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* User profile fields (#13) */
.up-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}
.up-field{display:flex;flex-direction:column;gap:2px;font-size:13px}
.up-field span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}
.up-field b{color:var(--text);font-weight:600;word-break:break-all}
@media(max-width:520px){.up-fields{grid-template-columns:1fr}}

/* Mobile (2026-10-29 by MuADMINS Tools): 16px text in form fields on phones, or iPhones zoom in
   on every focus now that pinch zoom is allowed (includes/head.php viewport). */
@media (max-width:600px){
  input[type=text], input[type=search], input[type=email], input[type=password], input[type=url],
  input[type=number], input:not([type]), select, textarea { font-size:16px; }
}
/* (2026-11-12 review) mobile: the rule above is weaker than the page rules .acct-form input[type=text] (register.php),
   .acct-form input (account-login.php, account-recover.php, onboarding.php), .tk-form input[type=text] (contact.php),
   .com-form input (community.css), .dir-f select / .dir-f input[type=search] (directory.css: servers.php, category.php),
   .mx-pin-f input (pins.css), .rv-text, .ucp-field input and others, which set 13 to 15 px, so iPhones zoomed the page on
   every focus. Same 16 px on phones, but only on pages that allow pinch zoom (not index.php, whose viewport blocks zoom and
   whose ring search keeps its look: html.mua-nozoom). Only font-size changes. */
@media (max-width:600px){
  html.mua-steady:not(.mua-nozoom) input[type=text], html.mua-steady:not(.mua-nozoom) input[type=search],
  html.mua-steady:not(.mua-nozoom) input[type=email], html.mua-steady:not(.mua-nozoom) input[type=password],
  html.mua-steady:not(.mua-nozoom) input[type=url], html.mua-steady:not(.mua-nozoom) input[type=number],
  html.mua-steady:not(.mua-nozoom) input[type=tel], html.mua-steady:not(.mua-nozoom) input:not([type]),
  html.mua-steady:not(.mua-nozoom) select, html.mua-steady:not(.mua-nozoom) textarea { font-size:16px !important; }
}

/* Phones (by MuADMINS Tools, 2026-10-29 21:40): the small stand-alone text links (top bars, back links, profile
   and sign-in links, breadcrumbs) get a finger-sized tap area. An invisible ::after around the link takes the
   taps, so nothing moves on the page. */
@media (pointer:coarse) {
  .asi-nav-link, .content-bar-link, .prof-back, .prov-links a, .spk-link, .acct-foot a, .breadcrumb a { position:relative; }
  .asi-nav-link::after, .content-bar-link::after, .prof-back::after, .prov-links a::after, .spk-link::after,
  .acct-foot a::after, .breadcrumb a::after { content:""; position:absolute; inset:-10px -6px; }
}

/* Pages other than the homepage (2026-10-30, html.mua-steady set by includes/head.php): a quick double tap on a
   button no longer zooms the page, and nothing can push the page sideways. Pinch zoom still works (accessibility;
   iOS Safari allows it whatever a page asks). */
html.mua-steady { touch-action: manipulation; }
html.mua-steady, html.mua-steady body { overflow-x: clip; }
/* Every page, the homepage too (2026-10-30): the zoom lock script in includes/head.php is gone, double-tap zoom
   is switched off here instead, pinch zoom and browser zoom stay available. */
html { touch-action: manipulation; }
/* Inner pages (2026-10-30, owner: a calmer, less "childish" look): Inter instead of Orbitron and Sora for titles,
   labels and text. html.mua-steady is set by includes/head.php on every page except the plain homepage; the
   homepage logo keeps Orbitron (css/mugps-pro.css). The admin panel and the Studio do not use this file. */
html.mua-steady { --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif; --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif; }
/* Inner page buttons in the homepage style (2026-10-30): square, white primary, outlined secondary.
   The PayPal button keeps its brand yellow and the green test button stays green. */
html.mua-steady .com-btn, html.mua-steady .spk-btn:not(.paypal):not(.test) {
  background: #fff; color: #04132c; border: 1px solid #fff; border-radius: 3px; box-shadow: none; filter: none;
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
}
html.mua-steady .com-btn:hover, html.mua-steady .spk-btn:not(.paypal):not(.test):hover { background: transparent; color: #fff; box-shadow: none; filter: none; }
html.mua-steady .com-btn.ghost, html.mua-steady .spk-btn.alt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
html.mua-steady .com-btn.ghost:hover, html.mua-steady .spk-btn.alt:hover { background: #fff; color: #04132c; }
html.mua-steady .spk-btn.paypal, html.mua-steady .spk-btn.test { border-radius: 3px; }
/* sponsor.php plan cards: the feature list fills the card height, its rows now stay packed at the top (no gaps) */
html.mua-steady .spk-feats { align-content: start; }
/* main page only (index.php, owner 2026-10-30): no pinch and no double-tap zoom, scrolling still works */
html.mua-nozoom { touch-action: pan-x pan-y; }
/* (2026-11-05) Community Alpha (includes/alpha-kit.php, only while SiteMode::alpha() is on): the badge next to the brand
   (includes/topnav.php, the spk_bar of includes/sponsor-kit.php), the footer line (includes/footer.php, the homepage
   footer) and the homepage banner (index.php; just above the homepage footer since owner 2026-11-05). */
.mua-alpha-brand { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 12px; min-width: 0; }
.mua-alpha-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none; box-sizing: border-box; padding: 5px 9px 5px 8px;
  font: 700 9px/1 Inter, 'Segoe UI', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  transition: background .18s, border-color .18s;
}
.mua-alpha-badge::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #8dffc1; box-shadow: 0 0 0 3px rgba(141, 255, 193, .22); }
.mua-alpha-badge:hover { color: #fff; background: rgba(255, 255, 255, .22); border-color: #fff; }
.mua-alpha-badge:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mua-alpha-s { display: none; }
@media (max-width: 1100px) { .mua-alpha-badge .mua-alpha-l { display: none; } .mua-alpha-badge .mua-alpha-s { display: inline; } }
/* phones: the top bar is full (language, weather, sign in, menu), so the badge is small, left of the brand (owner 2026-11-14) */
@media (max-width: 960px) {
  .mua-alpha-brand { gap: 8px; }   /* (owner 2026-11-14) the badge stays LEFT of the logo, in one row (it sat under the logo before) */
  .mx-nav .mua-alpha-badge { gap: 5px; padding: 3px 7px 3px 6px; font-size: 7.5px; letter-spacing: .14em; }
  .mx-nav .mua-alpha-badge::before { width: 5px; height: 5px; box-shadow: none; }
}
@media (max-width: 380px) { .mx-nav .mua-alpha-badge { display: none; } }
/* (2026-11-05) phones: with the radio speaker (js/warp.js) the right side of the bar grew wider than its column and slid
   over the brand. Up to 520 px it packs tighter (no extra margins, 6 px gaps), a long user name ends in an ellipsis and the
   weather list opens to the right (it went off the left edge); up to 450 px the brand shows MU only (the badge stays under
   it, the full name stays in the aria-label), like below 380 px. Desktop and tablets unchanged. */
@media (max-width: 520px) {
  .mx-nav .mx-right { gap: 6px; }
  .mx-nav .mx-right > .mw-nav-radio, .mx-nav .mx-right > .mu-wx-top { margin-right: 0; }
  .mx-nav .mx-right .mx-btn { display: inline-block; max-width: 96px; }
  .mx-nav .mx-right > .mu-wx-top .mu-lang-list { right: auto; left: 0; }
}
@media (max-width: 450px) { .mx-nav .mx-brand-ad { display: none; } }
/* (owner 2026-11-14) with the badge left of the logo, the left side needs about 90 px up to 450 px: a smaller badge and logo and a
   tighter right side keep the bar in one row from 400 to 450 px. The badge is hidden below 400 px (it was below 380 px: with the
   badge left of the logo, 381 to 399 px left the logo touching the speaker button); the logo stays */
@media (max-width: 399px) { .mx-nav .mua-alpha-badge { display: none; } }
@media (max-width: 450px) and (min-width: 400px) {
  .mua-alpha-brand { gap: 5px; }
  .mx-nav .mua-alpha-badge { gap: 4px; padding: 3px 6px 3px 5px; letter-spacing: .08em; font-size: 7px; }
  .mx-nav .mx-brand-mu { font-size: 17px; }
  .mx-nav .mx-right { gap: 4px; }
}
@media (max-width: 380px) { .mx-nav .mx-right .mx-btn { max-width: 84px; padding: 10px; } }
/* the dark bar of the sponsor pages, credits and the converter */
.spk-bar .mua-alpha-badge { color: var(--text-dim, #7cb0d8); background: transparent; border-color: var(--border-blue, rgba(77, 168, 255, .3)); }
.spk-bar .mua-alpha-badge:hover { color: var(--text, #e8f2ff); background: rgba(255, 255, 255, .04); border-color: var(--text-dim, #7cb0d8); }
/* (owner 2026-11-14: "i never want this part to look grayish, better white background of that text") the footer line is a plain white
   box with dark navy text and a dark blue link, the same on every page and on the sea, the sand and the blue pages (it was a blue
   glass strip, lighter on the pages with the top bar, and bare text on the homepage). Contrast: navy #06224f on white 15.6:1, link #0b3d91 on white 10.0:1. */
.mua-alpha-foot {
  position: relative; z-index: 30; box-sizing: border-box; width: calc(100% - 32px); max-width: 760px; margin: 28px auto 6px; padding: 11px 16px;
  font: 400 12.5px/1.6 Inter, 'Segoe UI', system-ui, sans-serif; text-align: center; color: #06224f;
  background: #fff; border: 1px solid #fff; border-radius: 10px; box-shadow: 0 10px 26px -18px rgba(4, 22, 60, .65);
}
.mua-alpha-foot a { color: #0b3d91; font-weight: 600; text-decoration: none; }
/* (owner 2026-11-10) no underline on "MuADMINS Community Alpha": stronger than the text link rule of css/mugps-pro.css */
html:root .mua-alpha-foot.mua-alpha-foot a:not([class]), html:root .mua-alpha-foot.mua-alpha-foot a:not([class]):is(:hover, :focus-visible) { text-decoration: none; }
.mua-alpha-foot a:hover, .mua-alpha-foot a:focus-visible { color: #02112f; }
/* (2026-11-14) the homepage line sits inside main, where the text link rule of css/mugps-pro.css (light cyan) would win on the white box: the dark link colours,
   stronger than that rule */
html:root .mua-alpha-foot.mua-alpha-foot a:not([class]) { color: #0b3d91; }
html:root .mua-alpha-foot.mua-alpha-foot a:not([class]):is(:hover, :focus-visible) { color: #02112f; }
/* pages with the top bar (blue) hide the language row under the line (css/lang-switch.css): an empty block below it keeps it
   clear of the radio button (a margin would collapse out of the 100% high page there); the box is white there too (2026-11-14) */
body:has(.mu-lang-top) .mua-alpha-foot::after { content: ''; position: absolute; left: 0; top: 100%; width: 1px; height: calc(76px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
/* the homepage footer: the same white box, a little smaller than on the inner pages (it was bare text; owner 2026-11-14) */
body .site-footer .mua-alpha-foot.footer-alpha { width: auto; max-width: 640px; margin: 10px auto 12px; padding: 8px 16px; color: #06224f; background: #fff; border: 1px solid #fff; text-shadow: none; }
body .site-footer .mua-alpha-foot.footer-alpha::after { content: none; }
/* (owner 2026-11-10) the footer sits on the bright sand: white text with a soft dark shadow so it reads */
body .site-footer :is(.footer-copy, .footer-links a) { color: #fff; text-shadow: 0 1px 2px rgba(4, 22, 60, .9), 0 0 10px rgba(4, 22, 60, .6); }
body .site-footer .footer-links a { font-weight: 600; }
body .site-footer .footer-links a:hover { color: #a3e6ff; }
/* the homepage banner; the x hides it on this device (index.php). (owner 2026-11-05) it sits at the very bottom, just
   above the homepage footer, where index.php prints it, never above the ring */
.mua-alpha-banner {
  position: relative; z-index: 4; display: flex; align-items: flex-start; gap: 8px; box-sizing: border-box;
  width: min(760px, calc(100% - 32px)); margin: 28px auto 24px; padding: 11px 8px 11px 16px; text-align: left; color: #fff;
  background: rgba(5, 28, 92, .3); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mua-alpha-banner[hidden] { display: none; }
.mua-alpha-banner p { flex: 1; min-width: 0; margin: 0; font: 400 13.5px/1.6 Inter, 'Segoe UI', system-ui, sans-serif; color: #fff; }
.mua-alpha-banner a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mua-alpha-banner a:hover { color: var(--mx-accent, #a3e6ff); }
.mua-alpha-tag {
  display: inline-block; margin-right: 4px; padding: 3px 8px; vertical-align: 1px; white-space: nowrap;
  font: 700 9px/1.25 Inter, 'Segoe UI', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
}
.mua-alpha-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -5px 0; padding: 0; color: #fff; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.mua-alpha-x:hover { background: rgba(255, 255, 255, .16); }
.mua-alpha-x:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.mua-alpha-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* phones: no tag. (owner 2026-11-05) the ring no longer makes room for the banner (it left the hero) */
@media (max-width: 600px) { .mua-alpha-banner .mua-alpha-tag { display: none; } .mua-alpha-banner p { font-size: 13px; } }
/* (owner 2026-11-05) MuGPS results (js/home-search.js .hs-layout, css/mugps-pro.css): the rail (Overview, MuGPS Top 50,
   Own a server?) on the left, the results on the right; below 1101 px the one column keeps the results first */
@media (min-width: 1101px) {
  #homeResults .hs-layout { grid-template-columns: 300px minmax(0, 1fr); }
  #homeResults .hs-layout > .hs-rail { grid-column: 1; grid-row: 1; }
  #homeResults .hs-layout > .hs-main { grid-column: 2; grid-row: 1; }
}
/* (owner 2026-11-05) "Take part" under the credits (includes/alpha-kit.php mua_take_part: account.php My credits,
   credits.php History): small link buttons like the My messages links of the account page */
.mua-earn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.mua-earn-h { margin-right: 2px; font: 600 11px/1.2 Inter, 'Segoe UI', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim, #9fb4d4); }
.mua-earn a.mua-earn-b {
  display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
  color: var(--text, #e8f2ff); font: 400 13px/1.2 Inter, 'Segoe UI', system-ui, sans-serif; text-decoration: none;
}
.mua-earn a.mua-earn-b:hover { border-color: rgba(255, 255, 255, .4); color: var(--text, #e8f2ff); }
.mua-earn a.mua-earn-b:focus-visible { outline: 2px solid var(--cyan, #7fd4ff); outline-offset: 2px; }
.mua-earn-note { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted, #9fb4d4); }
