/* NOW 965 · cloud system · black / gold, Montserrat + Montserrat Arabic */
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Mont"; src: url("../fonts/Montserrat-BlackItalic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "MontAr"; src: url("../fonts/MontserratArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MontAr"; src: url("../fonts/MontserratArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MontAr"; src: url("../fonts/MontserratArabic-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --gold: #C9B595; --deep: #8C7A5B; --ink: #000; --panel: #0f0f0f; --panel2: #171717; --line: #2a2a2a;
  --light: #EAEAEA; --silver: #D1D3D4; --steel: #A7A9AC; --ok: #6fbf73; --bad: #e0675a; --warn: #e6b450;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: var(--light); font-family: "Mont", "MontAr", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--gold); }
.ar { font-family: "MontAr", "Mont", sans-serif; direction: rtl; }
.muted { color: var(--steel); }
.gold { color: var(--gold); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.top img.logo { height: 30px; }
.top .title { font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; color: var(--gold); }
.top .title .ar { letter-spacing: 0; font-size: 14px; margin-left: 10px; color: var(--light); }
.top .who { margin-inline-start: auto; font-size: 12px; color: var(--steel); text-align: end; }
.top .who b { color: var(--light); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 60px; }

/* type */
h1 { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; font-size: 28px; margin: 6px 0 2px; }
h2 { font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
h2 .ar { letter-spacing: 0; font-size: 16px; color: var(--light); margin-left: 10px; font-weight: 700; }
.kick { font-size: 11px; font-weight: 800; letter-spacing: .25em; color: var(--deep); text-transform: uppercase; }

/* cards, panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.stat .n { font-size: 34px; font-weight: 900; font-style: italic; color: var(--gold); line-height: 1; }
.stat .l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-top: 6px; }

/* forms */
label.f { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin: 10px 0 5px; font-weight: 700; }
label.f .ar { letter-spacing: 0; font-size: 12px; text-transform: none; margin-left: 8px; }
input, select, textarea { width: 100%; background: #0a0a0a; border: 1px solid #333; color: var(--light); border-radius: 8px; padding: 11px 12px;
  font: 500 15px "Mont", "MontAr", sans-serif; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--gold); }
textarea { min-height: 70px; }
.seg { display: flex; border: 1px solid #333; border-radius: 9px; overflow: hidden; }
.seg button { flex: 1; background: #0a0a0a; color: var(--steel); border: 0; padding: 11px 6px; font: 700 13px "Mont", "MontAr"; cursor: pointer; }
.seg button + button { border-inline-start: 1px solid #333; }
.seg button.on { background: var(--gold); color: #000; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #3a3a3a; background: #111; color: var(--light);
  border-radius: 999px; padding: 10px 18px; font: 800 12px "Mont", "MontAr"; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); color: #000; border-color: var(--gold); }
.btn.white { background: #fff; color: #000; border-color: #fff; }
.btn.red { border-color: var(--bad); color: var(--bad); }
.btn.sm { padding: 7px 12px; font-size: 11px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 12px 0 16px; }
.tabs button { background: none; border: 0; color: var(--steel); padding: 12px 12px; font: 800 12px "Mont", "MontAr"; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--gold); border-bottom-color: var(--gold); }

/* tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: start; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); background: #0b0b0b; padding: 10px; position: sticky; top: 0; }
table.t td { padding: 10px; border-top: 1px solid #1d1d1d; vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #121212; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .1em; background: #222; color: var(--light); white-space: nowrap; }
.badge.gold { background: var(--gold); color: #000; }
.badge.ok { background: #1f3b21; color: var(--ok); }
.badge.bad { background: #3b1f1c; color: var(--bad); }
.badge.warn { background: #3b301a; color: var(--warn); }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex; align-items: flex-start; justify-content: center; z-index: 50; padding: 30px 12px; overflow-y: auto; }
.modal .box { background: var(--panel); border: 1px solid var(--gold); border-radius: 14px; width: min(720px, 100%); padding: 20px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#toast div { background: #111; border: 1px solid var(--gold); color: var(--light); padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
#toast div.bad { border-color: var(--bad); }

/* setup banner */
.setup { margin: 24px auto; max-width: 720px; border: 1px dashed var(--warn); color: var(--warn); padding: 18px; border-radius: 12px; font-weight: 600; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-inline-end: 6px; animation: pulse 1.2s infinite; }
.live-dot.on { background: var(--ok); }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 640px) { h1 { font-size: 22px; } .top .title .ar { display: none; } .wrap { padding: 14px 12px 60px; } }

/* own password (first sign-in) */
.pwd-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pwd-box { width: min(440px, 100%); }
/* pop-ups (top corner): new registrations, judge lost / back. NOW black + gold, coloured top line by kind */
#notices { position: fixed; top: 74px; right: 16px; z-index: 150; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.notice { position: relative; overflow: hidden; background: linear-gradient(180deg, #121212, #090909); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 40px 14px 16px; color: var(--light); box-shadow: 0 18px 44px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.03); animation: notice-in .32s cubic-bezier(.2,.8,.2,1); }
.notice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.notice.alert { border-color: rgba(224,103,90,.55); box-shadow: 0 18px 44px rgba(0,0,0,.75), 0 0 28px rgba(224,103,90,.2); }
.notice.alert::before { background: var(--bad); } .notice.ok::before { background: var(--ok); }
.notice.click { cursor: pointer; } .notice.click:hover { border-color: var(--gold); }
.notice .x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: #1a1a1a; border: 1px solid var(--line); color: var(--steel); font-size: 15px; line-height: 1; cursor: pointer; }
.notice .x:hover { color: var(--light); border-color: var(--steel); }
.nt-k { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.nt-k i { font-style: normal; margin-inline-end: 6px; }
.nt-k { flex-wrap: wrap; row-gap: 3px; } .nt-k > span:first-child { white-space: nowrap; } .nt-k .ar { margin-left: auto; text-align: right; }
.nt-k .ar { letter-spacing: 0; font-size: 12px; font-weight: 700; text-transform: none; }
.notice.alert .nt-k { color: var(--bad); } .notice.ok .nt-k { color: var(--ok); }
.nt-b { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.nt-n { flex: none; min-width: 50px; height: 50px; padding: 0 9px; border-radius: 12px; background: #161616; border: 1px solid #333; display: grid; place-items: center;
  font-size: 24px; font-weight: 900; font-style: italic; color: var(--gold); letter-spacing: -.02em; }
.notice.alert .nt-n { color: var(--bad); background: #1d0f0d; border-color: rgba(224,103,90,.45); animation: nt-pulse 1.3s ease-in-out infinite; }
.notice.ok .nt-n { color: var(--ok); background: #0f1a10; border-color: rgba(111,191,115,.4); }
.nt-t { min-width: 0; }
.nt-title { font-size: 17px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.nt-sub { font-size: 12px; color: var(--steel); margin-top: 3px; }
.nt-f { margin-top: 12px; padding-top: 11px; border-top: 1px solid #1f1f1f; font-size: 12px; color: var(--steel); line-height: 1.5; }
.nt-f b { color: var(--light); }
.nt-sec { float: right; margin: -2px 0 0 10px; font-size: 30px; font-weight: 900; font-style: italic; color: var(--bad); line-height: 1; }
.nt-sec small { font-size: 13px; margin-left: 2px; }
.nt-a { margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nt-time { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(201,181,149,.45); transform-origin: left; animation: nt-time linear forwards; }
.notice.ok .nt-time { background: rgba(111,191,115,.5); }
@keyframes notice-in { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
@keyframes nt-pulse { 50% { box-shadow: 0 0 0 6px rgba(224,103,90,.14); } }
@keyframes nt-time { to { transform: scaleX(0); } }
@media (max-width: 640px) { #notices { top: 64px; right: 12px; left: 12px; width: auto; } }
/* judge phone: taps waiting to be sent */
#netBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; padding: 10px 14px; font-size: 13px; font-weight: 800; text-align: center; display: none; }
#netBar.wait { display: block; background: #3b2f12; color: var(--warn); border-top: 1px solid var(--warn); }
#netBar.ok { display: block; background: #1f3b21; color: var(--ok); border-top: 1px solid var(--ok); }
.ls { font-size: 12px; font-weight: 800; margin-top: 4px; }
.ls .on { color: var(--ok); } .ls .off { color: var(--bad); } .ls .q { color: var(--warn); }
