/*
 * Frutiger Aero theme - glossy aqua surfaces, sky-and-green gradients,
 * bubble highlights, Segoe UI lightness. Same selectors as all themes.
 */
:root {
  --bg: #1b7bd0;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.85);
  --border: #8fd0f0;
  --text: #10303f;
  --muted: #4d7285;
  --accent: #0093d0;
  --accent-2: #00b4e6;
  --ok: #56ab2f;
  --warn: #d69e00;
  --danger: #e04f4f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* sky, sun glow, grass and floating bubbles - pure CSS */
  background:
    radial-gradient(circle 90px at 82% 18%, rgba(255,255,255,.55) 0 38%, rgba(255,255,255,.22) 46%, transparent 60%),
    radial-gradient(circle 46px at 68% 34%, rgba(255,255,255,.45) 0 36%, rgba(255,255,255,.18) 44%, transparent 58%),
    radial-gradient(circle 26px at 90% 52%, rgba(255,255,255,.40) 0 40%, transparent 62%),
    radial-gradient(ellipse 140% 46% at 50% 112%, #8ed656 0%, #57b647 52%, transparent 62%),
    linear-gradient(180deg, #bfeaff 0%, #6ec6f5 42%, #2f9fdf 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.55 "Segoe UI", Frutiger, Tahoma, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- nav ---------- */
.topnav {
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(190,235,255,.65));
  border-bottom: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(0,120,180,.35), 0 4px 16px rgba(0,90,150,.25);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.brand {
  font-weight: 300; font-size: 20px; letter-spacing: .5px;
  color: #0672b0; text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.topnav nav { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.topnav nav a { color: #0b6ea0; text-decoration: none; padding: 4px 2px; }
.topnav nav a:hover, .topnav nav a.on { color: #024f74; text-shadow: 0 0 8px rgba(160,230,255,.9); }
.admin-link { color: #4d9e00 !important; font-weight: 600; }
.credits-badge { color: #23a00a; font-weight: 600; }
.nav-sep { width: 1px; height: 18px; background: rgba(120,200,240,.7); display: inline-block; }

/* ---------- language + theme switcher ---------- */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer; user-select: none;
  color: #065e88;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 49%, rgba(210,240,255,.6) 51%, rgba(170,225,250,.75) 100%);
  border: 1px solid #7cc4e8; border-radius: 14px;
  padding: 3px 12px; font-size: 13px;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch[open] > summary { border-color: var(--accent); color: #024f74; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(235,250,255,.94));
  border: 1px solid #7cc4e8; border-radius: 12px;
  padding: 5px; min-width: 155px;
  display: flex; flex-direction: column; gap: 2px; z-index: 200;
  box-shadow: 0 8px 20px rgba(0,110,170,.3);
}
.lang-menu a {
  padding: 5px 11px !important; border-radius: 9px; font-size: 13.5px;
  color: #0b6ea0; text-decoration: none;
}
.lang-menu a:hover { background: linear-gradient(180deg, #aee6ff, #45b7ef); color: #02405e; }
.lang-menu a.on { font-weight: 600; color: #045a86; }

/* ---------- layout blocks ---------- */
main.wrap { padding-top: 24px; padding-bottom: 46px; min-height: calc(100vh - 130px); }
.card {
  /* aqua gloss: bright top half, subtle bottom half */
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.38) 49%, rgba(225,248,255,.5) 51%, rgba(255,255,255,.72) 100%);
  border: 1px solid rgba(255,255,255,.95);
  outline: 1px solid rgba(60,160,215,.5);
  border-radius: 14px;
  padding: 16px 19px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card.wide { width: 100%; margin-bottom: 20px; }
.hero { text-align: center; padding: 54px 0 34px; }
.hero h1 {
  font-size: 38px; font-weight: 300; margin: 0 0 12px;
  color: #03587f;
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.lead { color: #14608a; max-width: 630px; margin: 0 auto 22px; font-size: 16.5px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-size: 27px; font-weight: 300; color: #045a86; text-shadow: 0 1px 0 rgba(255,255,255,.9); }
.cta-row { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.auth-box { max-width: 420px; margin: 48px auto; }
.big-pad { padding: 60px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- forms ---------- */
label { display: block; margin-bottom: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid #9fd4ee;
  color: var(--text);
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
}
input:focus, select:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0,180,230,.22);
}
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-row input, .form-row select { width: auto; flex: 1 1 180px; margin: 0; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; color: var(--muted); }
.tiny { width: 70px !important; }

.btn {
  background: linear-gradient(180deg, #ffffff 0%, #d8f3ff 48%, #9adcf7 52%, #c9efff 100%);
  color: #05547a;
  border: 1px solid #6fc2e8;
  border-radius: 16px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: linear-gradient(180deg, #ffffff 0%, #c2edff 48%, #7fd2f5 52%, #b5e8ff 100%); }
.btn-sm { padding: 4px 11px; font-size: 13px; border-radius: 12px; }
.btn-lg { padding: 11px 26px; font-size: 16.5px; border-radius: 20px; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-ghost { background: rgba(255,255,255,.4); border-color: #a5dcf2; color: #0b6ea0; }
.btn-danger {
  background: linear-gradient(180deg, #ffd9d9 0%, #ffb3b3 48%, #ff8f8f 52%, #ffc9c9 100%);
  border-color: #e08a8a; color: #a02020;
}

/* ---------- tables ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 20px; }
th, td { text-align: left; padding: 8px 11px; vertical-align: middle; }
th {
  color: #045a86; font-weight: 600; font-size: 12.5px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(205,240,255,.7));
  border-bottom: 1px solid #9fd4ee;
}
td { border-bottom: 1px solid rgba(159,212,238,.5); background: rgba(255,255,255,.5); }
tr:nth-child(even) td { background: rgba(230,248,255,.55); }
tr:hover td { background: rgba(174,230,255,.6); }
.url-cell a { word-break: break-all; color: #0272ae; }
.row-banned td { opacity: .5; text-decoration: line-through; }

.status { padding: 2px 11px; border-radius: 11px; font-size: 12.5px; font-weight: 600; border: 1px solid; background: rgba(255,255,255,.75); }
.status-active { color: var(--ok); border-color: var(--ok); }
.status-paused { color: var(--warn); border-color: var(--warn); }
.tag { background: rgba(255,255,255,.8); border: 1px solid #a5dcf2; border-radius: 10px; padding: 1px 8px; font-size: 11.5px; color: var(--muted); }
.tag-admin { color: #4d9e00; border-color: #7ac142; font-weight: 600; }

/* ---------- site list: thumbs + options editor ---------- */
.site-thumb { border: 1px solid #bfe4f5; object-fit: cover; background: #fff; display: block; }
.tags-line { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.opt-details summary { cursor: pointer; color: #0272ae; font-size: 13px; }
.opt-details[open] summary { margin-bottom: 8px; }
.opt-body {
  display: flex; flex-direction: column; gap: 12px;
  width: 460px; max-width: 92vw;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(230,248,255,.9));
  border: 1px solid #9fd4ee;
  border-radius: 14px; padding: 14px;
  box-shadow: 0 8px 20px rgba(0,110,170,.22);
}
.opt-body label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }

/* ---------- structured site forms ---------- */
.site-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.frow { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.frow.tight { gap: 10px; margin-bottom: 0; }
.frow.end { justify-content: flex-end; margin-bottom: 0; }
.site-form label, .frow > label {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1 1 170px; min-width: 0;
  font-size: 12.5px; color: var(--muted); margin: 0;
}
.site-form .fgrow2 { flex: 2 1 300px; }
.fgrow3 { flex: 3 1 240px !important; }
.frow label.check {
  flex: 0 0 auto; flex-direction: row; align-items: center; gap: 7px;
  font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.7); border: 1px solid #a5dcf2;
  border-radius: 14px; padding: 8px 14px;
}
.frow label.check input { width: auto; margin: 0; accent-color: var(--accent-2); }

/* ---------- geo target grid: strictly aligned columns ---------- */
.geo-wrap summary { cursor: pointer; color: #0272ae; font-size: 13.5px; user-select: none; }
.geo-wrap[open] > summary { margin-bottom: 8px; }
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 18px;
  max-height: 260px; overflow-y: auto;
  background: rgba(255,255,255,.8); border: 1px solid #9fd4ee;
  border-radius: 10px; padding: 12px 14px; margin-top: 8px;
}
.geo-grid label {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 3px 0;
  font-size: 13px; color: var(--text); cursor: pointer;
  border-bottom: 1px dotted rgba(127,196,232,.6);
  min-width: 0;
}
.geo-grid label:hover { color: #024f74; background: rgba(174,230,255,.45); }
.geo-grid input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--accent-2); }
.geo-grid label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- alerts / lists / chart ---------- */
.alert { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; background: rgba(255,255,255,.85); }
.alert-info    { border-color: var(--accent-2); color: #045a86; background: rgba(214,242,255,.9); }
.alert-success { border-color: var(--ok); color: #2c7016; background: rgba(233,255,222,.9); }
.alert-error   { border-color: var(--danger); color: #a02020; background: rgba(255,228,228,.9); }
.ticks { list-style: none; padding-left: 0; }
.ticks li::before { content: "\2714"; color: #57b647; margin-right: 9px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-col span { font-size: 11px; color: var(--muted); margin-top: 4px; }
.bar {
  width: 100%;
  background: linear-gradient(180deg, #bdeaff 0%, #45b7ef 55%, #0093d0 100%);
  border: 1px solid #0083ba; border-bottom: none;
  border-radius: 6px 6px 0 0; min-height: 2px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.9);
  padding: 13px 0; color: #075a84; font-size: 12.5px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(190,235,255,.6));
}
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- surf controller ---------- */
.surf-body { background: var(--bg); }
.surf-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(190,235,255,.78));
  border-bottom: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 1px 0 rgba(0,120,180,.35), 0 4px 16px rgba(0,90,150,.28);
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; z-index: 100;
}
.surf-bar .brand { font-size: 18px; }
.surf-timer { font-size: 21px; font-weight: 300; min-width: 52px; text-align: center; color: #045a86; }
.surf-progress { flex: none; width: 220px; height: 10px; background: rgba(255,255,255,.8); border: 1px solid #7cc4e8; border-radius: 6px; overflow: hidden; }
.ad-slot { flex: none; width: 234px; height: 60px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.85); border: 1px solid #bfe4f5; }
.ad-slot img { display: block; height: 60px; width: auto; max-width: 100%; }
#timer-bar {
  height: 100%; width: 100%;
  background: linear-gradient(180deg, #c9f2ff 0%, #45b7ef 48%, #00a0dd 52%, #66c8f2 100%);
  transition: width 1s linear;
}
.surf-site { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.surf-credits b { color: #23a00a; white-space: nowrap; }
#surf-msg { color: #23a00a; opacity: 0; transition: opacity .3s; white-space: nowrap; font-weight: 600; }
#surf-msg.show { opacity: 1; }
#surf-msg.warn { color: var(--warn); }
.surf-start { max-width: 540px; margin: 0 auto; padding-top: 105px; text-align: center; }
.surf-start .card h3 { margin-top: 4px; }
