/* Joker Cloud UI. Colors, type and spacing follow the design; one file for admin, PC and portal. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #0B0B0C; color: #F4F4F5; font-family: 'Figtree', sans-serif; }
a { color: #FF4A50; }
a:hover { color: #FF7A7F; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: default; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid #F4F4F5; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.disp { font-family: 'Chakra Petch', sans-serif; }
.muted { color: #A1A1AA; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.av, .bn, .cv { background-size: cover; background-position: center; background-color: #26262B; }
.av { display: inline-flex; align-items: center; justify-content: center; color: #D4D4D8; font-family: 'Chakra Petch', sans-serif; font-weight: 700; letter-spacing: 0.02em; }
.cv { background-image: linear-gradient(160deg, #26262B, #151517); }
[hidden] { display: none !important; }

/* buttons and fields */
.btn { min-height: 44px; padding: 0 18px; border-radius: 10px; background: #1F1F23; border: 1px solid #3A3A40; color: #F4F4F5; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: #26262B; color: #F4F4F5; }
.btn-primary { background: #D7141C; border: 0; color: #FFFFFF; font-weight: 700; }
.btn-primary:hover { background: #E62A31; color: #FFFFFF; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border: 2px solid #D7141C; color: #FF4A50; font-weight: 700; }
.btn-danger:hover { background: #2A1012; color: #FF4A50; }
.btn-gold { background: #1A1408; border-color: #5C4512; color: #F5C04A; }
.btn-gold:hover { background: #241B0A; color: #F5C04A; }
.btn-blue { color: #4A9EFF; }
.btn-blue:hover { color: #4A9EFF; }
.btn-goldtext { color: #F5C04A; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.btn-lg { min-height: 52px; font-size: 15px; }
.btn:disabled, .btn[aria-disabled="true"] { background: #1F1F23; border: 1px solid #26262B; color: #A1A1AA; }
.btn-done:disabled { background: #0E1F14; border: 0; color: #4ADE80; }
.linkish { background: none; border: 0; color: #A1A1AA; font-size: 12px; padding: 2px 0; text-decoration: underline; text-align: left; }
.linkish:hover { color: #F4F4F5; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #C4C4CC; }
.input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #0E0E10; border: 1px solid #2A2A2E; color: #F4F4F5; font-size: 15px; outline: none; }
.input:focus { border-color: #D7141C; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #A1A1AA 50%), linear-gradient(135deg, #A1A1AA 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #151517; border: 1px solid #2A2A2E; min-width: 260px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #F4F4F5; font-size: 15px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #2A2A2E; background: #151517; color: #F4F4F5; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { color: #F4F4F5; border-color: #3A3A40; }
.chip[aria-pressed="true"], .chip[aria-current] { background: #2A1012; border-color: #D7141C; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.flash-ok { background: #0E1F14; border: 1px solid #2E8B3E; color: #BBF7D0; }
.flash-error { background: #2A1012; border: 1px solid #D7141C; color: #FECACA; }
.dlg { background: #151517; color: #F4F4F5; border: 1px solid #26262B; border-radius: 16px; padding: 24px; width: min(440px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.65); }
.dlg form { display: flex; flex-direction: column; gap: 14px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { min-height: 44px; border-radius: 10px; background: #1F1F23; border: 1px solid #3A3A40; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: #F4F4F5; }
.seg input:checked + span { background: #2A1012; border-color: #D7141C; }
.seg input:focus-visible + span { outline: 2px solid #F4F4F5; outline-offset: 2px; }

/* panels */
.card { background: #151517; border: 1px solid #26262B; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.inset { background: #0E0E10; border-radius: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: #151517; border: 1px solid #222226; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 13px; color: #A1A1AA; }
.stat-value { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 30px; }
.stat-unit { font-size: 18px; color: #A1A1AA; }
.h1 { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 0.02em; }
.h2 { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 18px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.dl dt { color: #A1A1AA; }
.dl dd { margin: 0; }

/* admin */
.adm { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.adm-nav { flex: 1 1 232px; max-width: 100%; background: #111113; border-right: 1px solid #222226; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 900px) { .adm-nav { max-width: 232px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.adm-brand { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.adm-tag { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.32em; color: #A1A1AA; }
.adm-links { display: flex; flex-direction: column; gap: 4px; }
.adm-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #C4C4CC; text-decoration: none; font-size: 15px; }
.adm-links a:hover { background: #17171A; color: #F4F4F5; }
.adm-links a[aria-current] { background: #1F1F23; color: #F4F4F5; font-weight: 600; }
.adm-staff { margin-top: auto; padding: 14px; border-radius: 12px; background: #17171A; border: 1px solid #26262B; display: flex; flex-direction: column; gap: 10px; }
.adm-main { flex: 999 1 560px; min-width: 0; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 600px) { .adm-main { padding: 20px 16px 32px; } .search { min-width: 0; flex: 1 1 100%; } }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #C4C4CC; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.zone { display: flex; flex-direction: column; gap: 12px; }
.zone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid #222226; padding-bottom: 8px; }
.zone-head h2 { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.04em; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.pc-tile { min-height: 104px; padding: 10px 12px; border-radius: 12px; border: 2px solid; color: #F4F4F5; text-align: left; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.pc-tile:hover { color: #F4F4F5; filter: brightness(1.15); }
.pc-tile[aria-current] { box-shadow: 0 0 0 3px #F4F4F5; }
.pc-tile-name { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 17px; }
.pc-tile-time { font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; flex: none; }
.st-free { border-color: #3A3A40; background: #151517; } .st-free .dot, .dot.st-free { background: #71717A; }
.st-busy { border-color: #D7141C; background: #2A1012; } .st-busy .dot, .dot.st-busy { background: #FF4A50; }
.st-ending { border-color: #F5A524; background: #2A1F0B; } .st-ending .dot, .dot.st-ending { background: #F5A524; }
.st-reserved { border-color: #4A9EFF; background: #0F1C2E; } .st-reserved .dot, .dot.st-reserved { background: #4A9EFF; }
.st-offline { border-color: #26262B; background: #101012; } .st-offline .dot, .dot.st-offline { background: #52525B; }
.st-service { border-color: #A78BFA; background: #1A1430; } .st-service .dot, .dot.st-service { background: #A78BFA; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid; font-size: 13px; font-weight: 600; background: transparent; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #222226; }
.act-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-text > span:first-child { font-size: 14px; }
.act-text > span:last-child { font-size: 12px; color: #A1A1AA; }
.tbl-wrap { background: #151517; border: 1px solid #26262B; border-radius: 16px; overflow-x: auto; }
.tbl { min-width: 720px; }
.tbl-row { width: 100%; display: grid; gap: 12px; align-items: center; padding: 10px 20px; border: 0; border-bottom: 1px solid #1F1F23; background: transparent; color: #F4F4F5; text-align: left; font-size: 14px; text-decoration: none; }
a.tbl-row:hover { background: #17171A; color: #F4F4F5; }
.tbl-row[aria-current] { background: #2A1012; }
.tbl-head { padding: 14px 20px; border-bottom: 1px solid #26262B; font-size: 12px; font-weight: 600; color: #A1A1AA; letter-spacing: 0.04em; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.prod { min-height: 168px; padding: 0; border-radius: 14px; background: #151517; border: 1px solid #26262B; color: #F4F4F5; text-align: left; display: flex; flex-direction: column; overflow: hidden; }
.prod:hover { border-color: #3A3A40; }
.prod-art { height: 72px; width: 100%; display: flex; align-items: center; justify-content: center; }
.prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.prod-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.prod-price { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 17px; }
.prod-plus { width: 30px; height: 30px; border-radius: 8px; background: #1F1F23; display: flex; align-items: center; justify-content: center; }
.qty-btn { width: 36px; height: 36px; border-radius: 8px; background: #1F1F23; border: 1px solid #3A3A40; color: #F4F4F5; font-size: 18px; }
.promo-strip { min-height: 120px; border-radius: 14px; display: flex; align-items: flex-end; overflow: hidden; }
.promo-strip > span { width: 100%; padding: 12px 16px; background: linear-gradient(transparent, rgba(11,11,12,0.94)); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }

/* guest PC: drawn at 1920×1080, pc.js zooms it to the screen */
.pc-body { overflow: hidden; background: #0B0B0C; }
.pc-root { width: 1920px; height: 1080px; position: relative; overflow: hidden; }
.sh { height: 100%; display: flex; flex-direction: column; }
.sh-head { height: 96px; flex: none; padding: 0 32px; border-bottom: 1px solid #1C1C1F; display: flex; align-items: center; gap: 28px; }
.sh-head h1 { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 30px; }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sh-pill { min-height: 60px; padding: 0 18px; border-radius: 14px; background: #151517; border: 1px solid #26262B; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.sh-pill > span:first-child { font-size: 13px; color: #A1A1AA; }
.sh-pill > span:last-child { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.1; }
.sh-me { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 16px; background: #151517; border: 1px solid #26262B; color: #F4F4F5; text-decoration: none; }
.sh-me:hover { color: #F4F4F5; border-color: #3A3A40; }
.sh-icon-btn { width: 60px; height: 60px; border-radius: 14px; background: #151517; border: 1px solid #3A3A40; color: #F4F4F5; display: flex; align-items: center; justify-content: center; }
.sh-body { flex: 1; min-height: 0; display: flex; }
.sh-nav { width: 232px; flex: none; padding: 28px 20px; border-right: 1px solid #1C1C1F; display: flex; flex-direction: column; gap: 6px; }
.sh-nav a { min-height: 54px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-radius: 12px; color: #C4C4CC; text-decoration: none; font-size: 18px; }
.sh-nav a:hover { background: #151517; color: #F4F4F5; }
.sh-nav a[aria-current] { background: #1F1F23; color: #F4F4F5; font-weight: 700; }
.sh-main { flex: 1; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.sh-aside { width: 420px; flex: none; padding: 28px; border-left: 1px solid #1C1C1F; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.sh-card { padding: 20px; border-radius: 18px; background: #151517; border: 1px solid #26262B; display: flex; flex-direction: column; gap: 14px; }
.sh-h2 { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 22px; }
.sh-cap { display: flex; align-items: baseline; justify-content: space-between; }
.games { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.game { aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid #2A2A2E; padding: 0; color: #F4F4F5; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.game:hover { border-color: #D7141C; }
.game-cap { padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(11,11,12,0.92)); display: flex; flex-direction: column; gap: 2px; }
.game-cap b { font-weight: 700; font-size: 17px; }
.game-cap span { font-size: 13px; color: #A1A1AA; }
.game-fav { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 10px; background: rgba(11,11,12,0.7); border: 1px solid #3A3A40; color: #F4F4F5; display: flex; align-items: center; justify-content: center; }
.game-fav[aria-pressed="true"] { color: #F5C04A; border-color: #5C4512; }
.genre { min-height: 44px; padding: 0 18px; border-radius: 999px; background: #151517; border: 1px solid #2A2A2E; color: #E4E4E7; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
.genre:hover { color: #F4F4F5; }
.genre[aria-current] { background: #F4F4F5; border: 0; color: #0B0B0C; font-weight: 700; }
.daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.daily > span { height: 64px; border-radius: 10px; border: 2px solid #26262B; background: #1A1A1D; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.daily small { font-size: 11px; color: #A1A1AA; }
.daily b { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 15px; }
.daily .done { background: #0E0E10; } .daily .done b { color: #4ADE80; }
.daily .today { background: #2A1012; border-color: #D7141C; } .daily .today small { color: #FCA5A5; }
.daily .last { border-color: #F5C04A; } .daily .last b { color: #F5C04A; }
.mission { display: flex; flex-direction: column; gap: 6px; }
.mission-top { display: flex; justify-content: space-between; font-size: 15px; gap: 12px; }
.pc-toast { position: absolute; right: 32px; bottom: 32px; max-width: 520px; padding: 16px 20px; border-radius: 16px; background: rgba(11,11,12,0.96); border: 1px solid #2A2A2E; font-size: 17px; line-height: 1.4; z-index: 5; }
.pc-toast.err { border-color: #D7141C; }
.pc-toast.ok { border-color: #2E8B3E; }
.pc-dlg { background: #151517; color: #F4F4F5; border: 1px solid #26262B; border-radius: 20px; padding: 28px; width: 560px; }
.pc-dlg::backdrop { background: rgba(0, 0, 0, 0.65); }
.pc-dlg .input { min-height: 56px; font-size: 18px; }
.lockbg { background: #0B0B0C center / cover no-repeat; }
.switch { appearance: none; width: 60px; height: 34px; border-radius: 17px; background: #26262B; border: 1px solid #3A3A40; position: relative; cursor: pointer; flex: none; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #A1A1AA; transition: left 0.12s; }
.switch:checked { background: #D7141C; border-color: #D7141C; }
.switch:checked::after { left: 29px; background: #FFFFFF; }
.range { width: 100%; accent-color: #D7141C; height: 32px; }

/* portal (phone) */
.ptl-body { background: #0B0B0C; }
.ptl { max-width: 480px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.ptl-main { flex: 1; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.ptl-nav { position: sticky; bottom: 0; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); flex: none; border-top: 1px solid #1C1C1F; background: #0B0B0C; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ptl-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #A1A1AA; text-decoration: none; font-size: 12px; }
.ptl-nav a[aria-current] { color: #F4F4F5; font-weight: 600; }
.ptl-card { padding: 16px; border-radius: 18px; background: #151517; border: 1px solid #26262B; display: flex; flex-direction: column; gap: 12px; }
.ptl-h2 { font-weight: 700; font-size: 17px; }
.ptl-tile { padding: 10px; border-radius: 12px; background: #0E0E10; display: flex; flex-direction: column; gap: 2px; }
.ptl-tile > span:first-child { font-size: 12px; color: #A1A1AA; }
.ptl-tile > span:last-child { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 19px; }
.ptl-daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ptl-daily > span { height: 44px; border-radius: 8px; background: #1A1A1D; border: 1px solid #26262B; display: flex; align-items: center; justify-content: center; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 14px; }
.ptl-daily .done { background: #0E0E10; color: #4ADE80; }
.ptl-daily .today { background: #2A1012; border: 2px solid #D7141C; }
.ptl-daily .last { border: 2px solid #F5C04A; color: #F5C04A; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; }

/* Charts on Pregled and Statistika: thin bars from a baseline, one hue per measure */
.chart { display: flex; flex-direction: column; gap: 8px; }
.chart-plot { position: relative; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #3A3A40; }
.chart-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.chart-col span { display: block; width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; min-height: 0; }
.chart-col:hover span { filter: brightness(1.25); }
.chart-col:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #26262B; border: 1px solid #3A3A40; color: #F4F4F5; font-size: 12px; pointer-events: none; z-index: 2; }
.chart-x { display: flex; gap: 2px; font-size: 11px; color: #A1A1AA; }
.chart-x span { flex: 1 1 0; min-width: 0; text-align: left; overflow: visible; white-space: nowrap; }
.chart-max { position: absolute; top: 0; left: 0; font-size: 11px; color: #A1A1AA; border-top: 1px dashed #26262B; width: 100%; padding-top: 2px; pointer-events: none; }
.heat { display: grid; gap: 2px; font-size: 11px; color: #A1A1AA; }
.heat-cell { height: 26px; border-radius: 4px; background: #1F1F23; position: relative; }
.heat-cell:hover { outline: 2px solid #F4F4F5; }
.heat-cell:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #26262B; border: 1px solid #3A3A40; color: #F4F4F5; font-size: 12px; pointer-events: none; z-index: 2; }
.attn { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #222226; font-size: 14px; }
.attn:first-of-type { border-top: 0; }
.attn b { font-weight: 600; }
.attn .btn { margin-left: auto; }
