/* Mac OS 9 "Platinum" theme - pinstriped grays, rounded-top windows,
   soft pill controls, Chicago-era friendliness */
:root {
  --bg: #666666;
  --panel: #dddddd;
  --panel-2: #ffffff;
  --border: #999999;
  --text: #000000;
  --muted: #555555;
  --accent: #2a4a7a;
  --accent-2: #4468a0;
  --ok: #006600; --warn: #996600; --danger: #cc0000;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    var(--bg);
  color: var(--text);
  font: 13px/1.5 Geneva, Verdana, "Segoe UI", sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.topnav {
  background: linear-gradient(180deg, #f2f2f2, #c8c8c8);
  border-bottom: 1px solid #555;
  position: sticky; top: 0; z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 4px 10px; gap: 10px; flex-wrap: wrap; }
.brand { font-weight: bold; font-size: 16px; color: #222; text-decoration: none; letter-spacing: -.3px; }
.topnav nav { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.topnav nav a { color: #222; text-decoration: none; padding: 3px 9px; border-radius: 8px; }
.topnav nav a:hover { background: rgba(255,255,255,.75); }
.topnav nav a.on { background: #4a6c96; color: #fff; }
.admin-link { font-weight: bold; }
.credits-badge { color: #1a5c2a; font-weight: bold; }
.nav-sep { width: 1px; height: 18px; background: #777; display: inline-block; }
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer; user-select: none;
  color: #222; background: linear-gradient(180deg,#ffffff,#d5d5d5);
  border: 1px solid #888; border-radius: 8px; padding: 3px 12px; font-size: 12.5px;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch[open] > summary { background: #b9cdf0; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 5px);
  background: #ecf1fa; border: 1px solid #666; border-radius: 0 0 10px 10px;
  box-shadow: 4px 4px 12px rgba(0,0,0,.35);
  padding: 3px; min-width: 155px; display: flex; flex-direction: column; z-index: 200;
}
.lang-menu a { padding: 4px 22px 4px 12px !important; font-size: 13px; color: #111; text-decoration: none; border-radius: 6px; }
.lang-menu a:hover { background: #4a6c96; color: #fff; }
main.wrap { padding-top: 24px; padding-bottom: 44px; min-height: calc(100vh - 130px); }
.card {
  /* platinum window with striped titlebar area via h3 */
  background: var(--panel);
  border: 1px solid #666;
  border-radius: 10px 10px 4px 4px;
  padding: 14px 16px;
  box-shadow: 3px 3px 10px rgba(0,0,0,.35);
}
.card.wide { width: 100%; margin-bottom: 20px; }
.card > h3:first-child {
  margin: -14px -16px 12px;
  padding: 6px 16px;
  background: repeating-linear-gradient(0deg, #e8e8e8 0 2px, #d0d0d0 2px 4px);
  border-bottom: 1px solid #999;
  border-radius: 9px 9px 0 0;
  font-weight: bold; font-size: 13px; color: #111;
  text-shadow: 0 1px 0 #fff;
}
.hero { text-align: center; padding: 50px 0 32px; }
.hero h1 { font-size: 30px; margin: 0 0 12px; }
.lead { color: #333; max-width: 620px; margin: 0 auto 22px; font-size: 15px; }
.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: 25px; font-weight: bold; color: #2a4a7a; }
.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; }
.auth-box.card > h2 {
  margin: -14px -16px 12px; padding: 6px 16px;
  background: repeating-linear-gradient(0deg, #e8e8e8 0 2px, #d0d0d0 2px 4px);
  border-bottom: 1px solid #999; border-radius: 9px 9px 0 0;
  font-size: 15px;
}
.big-pad { padding: 55px 0; }
.muted { color: var(--muted); } .center { text-align: center; }
label { display: block; margin-bottom: 12px; color: #222; font-size: 12.5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  background: #fff; color: #000;
  border: 1px solid #888; border-radius: 6px;
  padding: 6px 10px; font-size: 13px; font-family: inherit; margin-top: 4px;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,.15);
}
input:focus, select:focus { outline: 3px solid #b9cdf0; }
.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: #333; }
.tiny { width: 70px !important; }
.btn {
  background: linear-gradient(180deg, #ffffff, #d9d9d9);
  color: #111; border: 1px solid #777; border-radius: 9px;
  padding: 6px 17px; font-size: 13px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn:hover { background: #fff; }
.btn-sm { padding: 3px 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 9px 23px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-ghost { background: transparent; }
.btn-danger { color: #c00; font-weight: bold; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 18px; }
th, td { text-align: left; padding: 6px 10px; vertical-align: middle; font-size: 12.5px; }
th {
  background: repeating-linear-gradient(0deg, #ececec 0 2px, #dedede 2px 4px);
  border-bottom: 1px solid #999; font-weight: bold;
}
td { border-bottom: 1px solid #ccc; background: rgba(255,255,255,.65); }
tr:hover td { background: #dde6f4; }
.url-cell a { word-break: break-all; color: #0039a6; }
.row-banned td { opacity: .45; text-decoration: line-through; }
.status { padding: 2px 10px; border-radius: 9px; font-size: 12px; font-weight: bold; border: 1px solid #777; background: #f5f5f5; }
.status-active { color: var(--ok); }
.status-paused { color: var(--warn); }
.tag { background: #eee; border: 1px solid #aaa; border-radius: 8px; padding: 1px 7px; font-size: 11px; color: #333; }
.tag-admin { color: #0039a6; font-weight: bold; }
.site-thumb { border: 1px solid #888; 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: #0039a6; font-size: 12.5px; }
.opt-details[open] summary { margin-bottom: 8px; font-weight: bold; }
.opt-body {
  display: flex; flex-direction: column; gap: 12px;
  width: 460px; max-width: 92vw;
  background: #ecf1fa; border: 1px solid #666; border-radius: 10px;
  padding: 13px; box-shadow: 4px 4px 12px rgba(0,0,0,.3);
}
.opt-body label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #222; }
.site-form { display: flex; flex-direction: column; gap: 13px; margin-top: 12px; }
.frow { display: flex; gap: 13px; 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: 4px; flex: 1 1 170px; min-width: 0; font-size: 12px; color: #222; 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: 13px; color: #111;
  background: linear-gradient(180deg,#ffffff,#dcdcdc);
  border: 1px solid #888; border-radius: 8px; padding: 7px 12px;
}
.frow label.check input { width: auto; margin: 0; accent-color: #4a6c96; }
.geo-wrap summary { cursor: pointer; color: #0039a6; font-size: 12.5px; user-select: none; }
.geo-wrap[open] > summary { margin-bottom: 7px; }
.geo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 18px; max-height: 250px; overflow-y: auto;
  background: #fff; border: 1px solid #888; border-radius: 8px;
  padding: 10px 13px; margin-top: 7px;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,.2);
}
.geo-grid label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 3px 0; font-size: 12.5px; cursor: pointer; border-bottom: 1px dotted #bbb; min-width: 0; }
.geo-grid label:hover { background: #dde6f4; }
.geo-grid input { width: auto; margin: 0; flex: 0 0 auto; accent-color: #2a4a7a; }
.geo-grid label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid #777; background: #ffffe1; }
.alert-info    { background: #e3ecfb; }
.alert-success { border-color: var(--ok); background: #e2f5e2; }
.alert-error   { border-color: #c00; background: #ffe3e3; }
.ticks { list-style: disc; padding-left: 22px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 155px; 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: 10.5px; color: #444; margin-top: 4px; }
.bar {
  width: 100%;
  background: repeating-linear-gradient(0deg, #4a6c96 0 3px, #5d80ad 3px 6px);
  border: 1px solid #33486a; border-bottom: none; min-height: 2px;
}
.footer { border-top: 1px solid #555; padding: 12px 0; color: #ddd; font-size: 12px; background: repeating-linear-gradient(0deg, #7a7a7a 0 2px, #6f6f6f 2px 4px); }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.surf-body { background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), #6b6b6b; }
.surf-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: repeating-linear-gradient(0deg, #e9e9e9 0 2px, #d6d6d6 2px 4px);
  border-bottom: 1px solid #555;
  display: flex; align-items: center; gap: 13px; padding: 0 15px; z-index: 100;
}
.surf-bar .brand { font-size: 15px; }
.surf-timer { font-size: 19px; font-weight: bold; min-width: 52px; text-align: center; color: #222; }
.surf-progress { flex: none; width: 210px; height: 12px; background: #fff; border: 1px solid #777; border-radius: 6px; overflow: hidden; box-shadow: inset 1px 1px 2px rgba(0,0,0,.25); }
.ad-slot { flex: none; width: 234px; height: 60px; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid #777; }
.ad-slot img { display: block; height: 60px; width: auto; max-width: 100%; }
#timer-bar { height: 100%; width: 100%; background: repeating-linear-gradient(90deg, #4a6c96 0 4px, #6d8cb8 4px 8px); transition: width 1s linear; }
.surf-site { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #222; }
.surf-credits b { color: #1a5c2a; white-space: nowrap; }
#surf-msg { color: #1a5c2a; opacity: 0; transition: opacity .3s; white-space: nowrap; font-weight: bold; }
#surf-msg.show { opacity: 1; }
#surf-msg.warn { color: #996600; }
.surf-start { max-width: 540px; margin: 0 auto; padding-top: 95px; text-align: center; }
.surf-start .card h3 { margin-top: 4px; }
