/* Amiga Workbench 1.x / C64 theme - blue desktop, gray windows,
   white titlebars with black text, orange accents */
:root {
  --wb-blue: #0055aa;
  --panel: #a0a0a0;
  --panel-2: #ffffff;
  --border: #000000;
  --text: #000000;
  --muted: #303030;
  --orange: #ff8800;
  --accent: var(--wb-blue);
  --accent-2: var(--orange);
  --ok: #008000; --warn: #cc6600; --danger: #cc0000;
}
* { box-sizing: border-box; border-radius: 0 !important; box-shadow: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background:
    repeating-linear-gradient(180deg, rgba(255,136,0,.12) 0 2px, transparent 2px 24px),
    var(--wb-blue);
  color: var(--text);
  font: 13px/1.5 "Segoe UI", Verdana, Helvetica, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.topnav { background: var(--panel); border-bottom: 3px solid var(--orange); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 4px 8px; gap: 10px; flex-wrap: wrap; }
.brand { font-weight: bold; font-size: 16px; text-decoration: none; padding: 2px 10px; background: #fff; border: 2px solid #000; }
.topnav nav { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.topnav nav a { color: var(--text); text-decoration: none; padding: 3px 7px; }
.topnav nav a:hover, .topnav nav a.on { background: var(--orange); color: #000; outline: 1px solid #000; }
.admin-link { font-weight: bold; }
.credits-badge { color: var(--wb-blue); font-weight: bold; background: #fff; padding: 1px 7px; border: 2px solid #000; }
.nav-sep { width: 2px; height: 16px; background: #000; display: inline-block; }
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer; user-select: none;
  background: #fff; border: 2px solid #000; padding: 2px 9px; font-size: 12px; font-weight: bold;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 2px); background: #fff; border: 2px solid #000; padding: 2px; min-width: 150px; display: flex; flex-direction: column; z-index: 200; }
.lang-menu a { padding: 3px 14px !important; font-size: 12px; text-decoration: none; }
.lang-menu a:hover { background: var(--orange); }
.lang-menu a.on::before { content: "\25a0 "; }
main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: calc(100vh - 125px); }
.card {
  /* Workbench window: white face, black frame, orange title stripe */
  background: var(--panel-2);
  border: 2px solid #000;
  padding: 0 12px 12px;
}
.card > h3:first-child, .auth-box.card > h2 {
  background: #fff; color: #000;
  font-weight: bold; font-size: 13px;
  margin: 0 -14px 0; padding: 5px 12px;
  border-bottom: 3px solid var(--orange);
}
.card.wide { width: 100%; margin-bottom: 18px; }
.hero { text-align: center; padding: 44px 0 28px; }
.hero h1 {
  display: inline-block; background: #fff; border: 2px solid #000;
  font-size: 26px; margin: 0 0 4px; padding: 8px 22px 8px;
  border-bottom: 4px solid var(--orange);
}
.lead { max-width: 600px; margin: 12px auto 20px; font-size: 14px; background:#fff; border:2px solid #000; padding: 10px 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 16px 0; }
.stat { text-align: center; display: flex; flex-direction: column; gap: 3px; background: #fff; border: 2px solid #000; padding: 9px; }
.stat .num { font-size: 23px; font-weight: bold; }
.cta-row { display: flex; gap: 11px; justify-content: center; align-items: center; margin: 19px 0; flex-wrap: wrap; }
.auth-box { max-width: 420px; margin: 40px auto; }
.auth-box.card { padding-top: 0; }
.big-pad { padding: 50px 0; }
.muted { color: var(--muted); } .center { text-align: center; }
h2 { font-size: 17px; font-weight: bold; }
label { display: block; margin-bottom: 10px; color: var(--text); font-size: 13px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%; background: #fff; color: var(--text);
  border: 2px solid #000; padding: 4px 7px;
  font-size: 13px; font-family: inherit; margin-top: 3px;
}
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: -1px; }
.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(--text); }
.tiny { width: 70px !important; }
.btn {
  background: #fff; color: var(--text);
  border: 2px solid #000; padding: 4px 15px;
  font-size: 13px; font-family: inherit; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--orange); }
.btn:active { background: #000; color: var(--orange); }
.btn-sm { padding: 2px 9px; font-size: 12px; }
.btn-lg { padding: 7px 21px; font-size: 15px; font-weight: bold; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-danger { background: #ffdddd; color: #a00000; }
table { width: 100%; border-collapse: collapse; margin-bottom: 18px; background: #fff; border: 2px solid #000; }
th, td { text-align: left; padding: 5px 9px; border-right: 1px solid #000; border-bottom: 1px solid #000; vertical-align: middle; font-size: 13px; }
th { background: var(--panel); border-bottom: 3px solid var(--orange); }
tr:hover td { background: #ffe8c4; }
.url-cell a { word-break: break-all; color: var(--accent); }
.row-banned td { opacity: .45; text-decoration: line-through; }
.status { padding: 1px 7px; border: 2px solid #000; font-size: 11.5px; font-weight: bold; background: #fff; }
.status-active { background: #c8ffc8; }
.status-paused { background: #ffe8c4; }
.tag { background: #fff; border: 1px solid #000; padding: 0 5px; font-size: 11px; }
.tag-admin { color: var(--danger); font-weight: bold; }
.site-thumb { border: 2px solid #000; object-fit: cover; background: #fff; display: block; }
.tags-line { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.opt-details summary { cursor: pointer; color: #000; font-weight: bold; font-size: 12.5px; }
.opt-details[open] summary { margin-bottom: 8px; }
.opt-body {
  display: flex; flex-direction: column; gap: 11px;
  width: 460px; max-width: 92vw;
  background: #fff; border: 2px solid #000; padding: 12px;
  box-shadow: 4px 4px 0 rgba(255,136,0,.85);
}
.opt-body label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text); }
.site-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.frow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.frow.tight { gap: 9px; margin-bottom: 0; }
.frow.end { justify-content: flex-end; margin-bottom: 0; }
.site-form label, .frow > label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 170px; min-width: 0; font-size: 12px; color: var(--text); 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: 6px; font-size: 13px; color: var(--text); border: 2px dotted #000; padding: 5px 10px; }
.frow label.check input { width: auto; margin: 0; accent-color: var(--orange); }
.geo-wrap summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: bold; user-select: none; }
.geo-wrap[open] > summary { margin-bottom: 6px; }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px 16px; max-height: 240px; overflow-y: auto; background: #fff; border: 2px inset #000; padding: 8px 12px; margin-top: 6px; }
.geo-grid label { display: flex; align-items: center; gap: 7px; margin: 0; padding: 2px 0; font-size: 12.5px; cursor: pointer; border-bottom: 1px dotted #999; min-width: 0; }
.geo-grid label:hover { background: var(--orange); }
.geo-grid input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--orange); }
.geo-grid label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert { padding: 8px 12px; margin-bottom: 13px; border: 2px solid #000; background: #fff; }
.alert-info    { background: #d6ecff; }
.alert-success { border-color: var(--ok); background: #e0ffdd; }
.alert-error   { border-color: var(--danger); background: #ffdada; }
.ticks { list-style: square; padding-left: 20px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; 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: 10px; color: var(--muted); margin-top: 3px; }
.bar { width: 100%; background: repeating-linear-gradient(180deg, var(--orange) 0 6px, #000 6px 8px); border: 1px solid #000; border-bottom: none; min-height: 2px; }
.footer { border-top: 3px solid var(--orange); padding: 10px 0; color: #dbeafc; font-size: 12px; background: var(--wb-blue); }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.surf-body { background: var(--wb-blue); }
.surf-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: var(--panel); border-bottom: 3px solid var(--orange);
  display: flex; align-items: center; gap: 12px; padding: 0 13px; z-index: 100;
}
.surf-timer { font-size: 20px; font-weight: bold; min-width: 52px; text-align: center; background: #000; color: var(--orange); padding: 3px 4px; }
.surf-progress { flex: none; width: 210px; height: 15px; background: #fff; border: 2px solid #000; overflow: hidden; }
.ad-slot { flex: none; width: 234px; height: 60px; overflow: hidden; background: #fff; border: 2px solid #000; }
.ad-slot img { display: block; height: 60px; width: auto; max-width: 100%; }
#timer-bar { height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, #000 8px 11px); transition: width 1s linear; }
.surf-site { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.surf-credits b { color: var(--ok); white-space: nowrap; }
#surf-msg { color: #004080; opacity: 0; transition: opacity .3s; white-space: nowrap; font-weight: bold; }
#surf-msg.show { opacity: 1; }
#surf-msg.warn { color: var(--danger); }
.surf-start { max-width: 540px; margin: 0 auto; padding-top: 92px; text-align: center; }
.surf-start .card h3 { margin-top: 0; }
