/* Garena 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: #111216; color: #F2EFE8; 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 #F2EFE8; 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: #2B2C34; }
.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, #2B2C34, #191A20); }
[hidden] { display: none !important; }

/* buttons and fields */
.btn { min-height: 44px; padding: 0 18px; border-radius: 10px; background: #1F1F23; border: 1px solid #41424C; color: #F2EFE8; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: #2B2C34; color: #F2EFE8; }
.btn-primary { background: #ED2939; border: 0; color: #FFFFFF; font-weight: 700; }
.btn-primary:hover { background: #FF4655; color: #FFFFFF; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border: 2px solid #ED2939; 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 #2B2C34; 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: #F2EFE8; }
.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: #15161B; border: 1px solid #2A2A2E; color: #F2EFE8; font-size: 15px; outline: none; }
.input:focus { border-color: #ED2939; }
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: #191A20; border: 1px solid #2A2A2E; min-width: 260px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #F2EFE8; font-size: 15px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #2A2A2E; background: #191A20; color: #F2EFE8; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { color: #F2EFE8; border-color: #41424C; }
.chip[aria-pressed="true"], .chip[aria-current] { background: #2A1012; border-color: #ED2939; }
.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 #ED2939; color: #FECACA; }
.dlg { background: #191A20; color: #F2EFE8; border: 1px solid #2B2C34; 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 #41424C; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: #F2EFE8; }
.seg input:checked + span { background: #2A1012; border-color: #ED2939; }
.seg input:focus-visible + span { outline: 2px solid #F2EFE8; outline-offset: 2px; }

/* panels */
.card { background: #191A20; border: 1px solid #2B2C34; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.inset { background: #15161B; border-radius: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: #191A20; 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; }
.adm-menu { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.adm-menu-btn { display: none; }
.adm-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ED2939; color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .adm-nav { max-width: 232px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
/* phones and tablets: a top bar with the menu behind one button */
@media (max-width: 899px) {
  .adm-nav { flex: 1 1 100%; position: sticky; top: 0; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid #222226; }
  .adm-brand { padding: 0; gap: 2px; flex: 1 1 0; min-width: 0; }
  .adm-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-first] { scroll-margin-top: 84px; }
  .adm-brand svg, .adm-brand img { width: 104px; height: auto; }
  .adm-tag { font-size: 10px; letter-spacing: 0.2em; }
  .adm-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: #1F1F23; border: 1px solid #41424C; color: #F2EFE8; font-weight: 600; font-size: 15px; }
  .adm-menu { display: none; flex: 1 1 100%; gap: 14px; padding-bottom: 8px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .adm-nav[data-open] .adm-menu { display: flex; }
  .adm-links a { min-height: 48px; font-size: 16px; }
  .adm-staff { margin-top: 0; }
  .split > [data-first] { order: -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 24px; }
  .h1 { font-size: 26px; }
  .kasa-bar { display: flex; }
}
@media (max-width: 600px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kasa-bar { display: none; position: sticky; bottom: 12px; z-index: 15; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 14px; background: #ED2939; color: #FFFFFF; text-decoration: none; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.kasa-bar:hover { color: #FFFFFF; }
.kasa-bar b { font-family: 'Chakra Petch', sans-serif; font-size: 20px; }
.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: #1B1C22; color: #F2EFE8; }
.adm-links a[aria-current] { background: #1F1F23; color: #F2EFE8; font-weight: 600; }
.adm-staff { margin-top: auto; padding: 14px; border-radius: 12px; background: #1B1C22; border: 1px solid #2B2C34; 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: #F2EFE8; text-align: left; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.pc-tile:hover { color: #F2EFE8; filter: brightness(1.15); }
.pc-tile[aria-current] { box-shadow: 0 0 0 3px #F2EFE8; }
.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: #22C55E; background: #0C2014; } .st-free .dot, .dot.st-free { background: #4ADE80; }
.st-busy { border-color: #ED2939; 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: #2B2C34; background: #101012; } .st-offline .dot, .dot.st-offline { background: #52525B; }
.st-service { border-color: #FA6470; background: #1A1430; } .st-service .dot, .dot.st-service { background: #FA6470; }
.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: #191A20; border: 1px solid #2B2C34; 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: #F2EFE8; text-align: left; font-size: 14px; text-decoration: none; }
a.tbl-row:hover { background: #1B1C22; color: #F2EFE8; }
.tbl-row[aria-current] { background: #2A1012; }
.tbl-head { padding: 14px 20px; border-bottom: 1px solid #2B2C34; font-size: 12px; font-weight: 600; color: #A1A1AA; letter-spacing: 0.04em; }
.tbl-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.tbl-sort:hover, .tbl-sort[aria-sort] { color: #F2EFE8; }
.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: #191A20; border: 1px solid #2B2C34; color: #F2EFE8; text-align: left; display: flex; flex-direction: column; overflow: hidden; }
.prod:hover { border-color: #41424C; }
.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 #41424C; color: #F2EFE8; 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: #111216; }
.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 #222329; 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: #191A20; border: 1px solid #2B2C34; 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: #191A20; border: 1px solid #2B2C34; color: #F2EFE8; text-decoration: none; }
.sh-me:hover { color: #F2EFE8; border-color: #41424C; }
.sh-icon-btn { width: 60px; height: 60px; border-radius: 14px; background: #191A20; border: 1px solid #41424C; color: #F2EFE8; 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 #222329; 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: #191A20; color: #F2EFE8; }
.sh-nav a[aria-current] { background: #1F1F23; color: #F2EFE8; 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 #222329; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.sh-card { padding: 20px; border-radius: 18px; background: #191A20; border: 1px solid #2B2C34; 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: #F2EFE8; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.game:hover { border-color: #ED2939; }
.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 #41424C; color: #F2EFE8; 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: #191A20; border: 1px solid #2A2A2E; color: #E4E4E7; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
.genre:hover { color: #F2EFE8; }
.genre[aria-current] { background: #F2EFE8; border: 0; color: #111216; 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 #2B2C34; 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: #15161B; } .daily .done b { color: #4ADE80; }
.daily .today { background: #2A1012; border-color: #ED2939; } .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: #ED2939; }
.pc-toast.ok { border-color: #2E8B3E; }
.pc-dlg { background: #191A20; color: #F2EFE8; border: 1px solid #2B2C34; 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: #111216 center / cover no-repeat; }
.switch { appearance: none; width: 60px; height: 34px; border-radius: 17px; background: #2B2C34; border: 1px solid #41424C; 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: #ED2939; border-color: #ED2939; }
.switch:checked::after { left: 29px; background: #FFFFFF; }
.range { width: 100%; accent-color: #ED2939; height: 32px; }

/* portal (phone) */
.ptl-body { background: #111216; overscroll-behavior-y: none; }
/* the iPhone app draws under the status bar: a solid strip there, so scrolled content does not run under the clock */
.ptl-body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: #111216; z-index: 40; pointer-events: none; }
.ptl { max-width: 480px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.ptl-main { flex: 1; padding: calc(20px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 16px; }
/* fixed to the screen, not sticky: in the iPhone app a sticky bar drifts with the scroll and the bounce */
.ptl-nav-on .ptl-main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.ptl-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: 100%; max-width: 480px; margin: 0 auto; height: calc(78px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); flex: none; border-top: 1px solid #35363a; background: linear-gradient(180deg, rgba(18,13,25,0.96), #0d0e12); backdrop-filter: blur(10px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.ptl-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #EEEAE2; text-decoration: none; font-size: 11px; font-weight: 500; height: 100%; }
.ptl-nav a[aria-current] { color: #F5F3FF; font-weight: 600; }
.ptl-nav a[aria-current]:not(.ptl-qr) svg { stroke: #C4B5FD; }
.ptl-nav a[aria-current]:not(.ptl-qr)::before { content: ''; position: absolute; top: -1px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: #F65B68; }
/* the QR button sits above the bar: sign in on a PC from anywhere */
.ptl-nav .ptl-qr { justify-content: flex-end; padding-bottom: 6px; color: #ED2939; font-size: 11px; }
.ptl-qr-btn { width: 62px; height: 62px; margin-top: -34px; border-radius: 22px; background: #ED2939; display: grid; place-items: center; box-shadow: 0 0 0 6px #0d0e12, 0 8px 24px rgba(163, 230, 53, 0.35); }
.ptl-nav .ptl-qr b { font-weight: 700; }
.ptl-badge { position: absolute; top: 10px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F43F5E; color: #FFFFFF; font: 700 10px/18px 'Figtree', sans-serif; font-style: normal; text-align: center; }
.ptl-badge.ptl-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 14px; left: calc(50% + 7px); }
.ptl-badge[hidden] { display: none; }
/* header: the logo or the page title, and the avatar that opens Profil */
.ptl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.ptl-top svg { display: block; }
.ptl-title { margin: 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 26px; }
.ptl-me { display: flex; border-radius: 22px; text-decoration: none; color: inherit; }
.ptl-back { width: 40px; height: 40px; display: grid; place-items: center; color: #F5F3FF; border-radius: 12px; }
.scan-view { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #111216; }
.scan-view[hidden] { display: none; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid #FF4A50; border-radius: 18px; box-shadow: 0 0 0 999px rgba(11,11,12,0.45); }
.tu-chip { min-height: 64px; border-radius: 12px; background: #15161B; border: 1px solid #2B2C34; color: #F2EFE8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.tu-chip[aria-pressed="true"] { background: #0F1C2E; border: 2px solid #4A9EFF; }
.ptl-card { padding: 16px; border-radius: 18px; background: #191A20; border: 1px solid #2B2C34; display: flex; flex-direction: column; gap: 12px; }
.ptl-h2 { font-weight: 700; font-size: 17px; }
/* Početna: the purple card with rank, XP and the three balances */
.ptl-hero { position: relative; overflow: hidden; padding: 18px; border-radius: 22px; border: 1px solid #D92736; background: radial-gradient(120% 140% at 0% 0%, #ED3A48 0%, #A8202C 45%, #333438 100%); display: flex; flex-direction: column; gap: 10px; }
.ptl-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 230, 53, 0.2), transparent 70%); pointer-events: none; }
.ptl-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ptl-hero-hi { display: block; font-size: 13px; color: #DDD6FE; }
.ptl-hero-name { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 24px; word-break: break-word; }
.ptl-rank { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(13, 10, 18, 0.45); border: 1px solid currentColor; }
.ptl-xp { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.ptl-xp i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ED2939, #4ADE80); }
.ptl-hero-sub { font-size: 12px; color: #DDD6FE; }
.ptl-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; position: relative; z-index: 1; }
.ptl-wallet > span { padding: 10px 12px; border-radius: 14px; background: rgba(13, 10, 18, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptl-wallet > span > span:first-child { font-size: 12px; color: #C4B5FD; }
.ptl-wallet b { font-family: 'Chakra Petch', sans-serif; font-size: 21px; white-space: nowrap; }
.ptl-wallet small { font-size: 12px; color: #C4B5FD; font-weight: 600; }
.ptl-playing { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #132009; border: 1px solid #3F6212; color: #F5F3FF; text-decoration: none; }
.ptl-playing > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ptl-playing b { font-size: 16px; }
.ptl-pulse { width: 10px; height: 10px; flex: none; border-radius: 5px; background: #ED2939; box-shadow: 0 0 0 5px rgba(163, 230, 53, 0.2); }
.ptl-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ptl-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: #18191d; border: 1px solid #35363a; font-size: 12px; color: #F5F3FF; text-decoration: none; text-align: center; }
.ptl-link { color: #C4B5FD; font-size: 13px; font-weight: 600; text-decoration: none; }
.ptl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* Nagrade: tabs and the shop */
.ptl-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #18191d; border: 1px solid #35363a; }
.ptl-seg a { text-align: center; padding: 9px 0; border-radius: 10px; font-size: 13px; color: #EEEAE2; font-weight: 600; text-decoration: none; }
.ptl-seg a[aria-current] { background: #D92736; color: #FFFFFF; }
.ptl-jp { padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #2B1B05, #18191d); border: 1px solid #5C4512; display: flex; flex-direction: column; gap: 4px; }
.ptl-shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ptl-item { background: #18191d; border: 1px solid #35363a; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ptl-item > div:first-child { border-radius: 12px; overflow: hidden; }
.ptl-item > div:first-child > div { height: 92px !important; }
.ptl-item form, .ptl-item .btn { width: 100%; }
.ptl-item .btn { min-height: 38px; border-radius: 10px; font-size: 13px; }
/* Profil: one list of everything about the account */
.ptl-menu { border-radius: 18px; background: #18191d; border: 1px solid #35363a; overflow: hidden; }
.ptl-menu > a, .ptl-menu > button, .ptl-menu > form > button, .ptl-menu > div { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-top: 1px solid #35363a; background: none; color: #F5F3FF; font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.ptl-menu > :first-child, .ptl-menu > form:first-child > button { border-top: 0; }
.ptl-menu > button:disabled { opacity: 0.6; cursor: default; }
.ptl-menu .ptl-menu-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ptl-menu .ptl-menu-text small { font-size: 12px; color: #EEEAE2; }
.ptl-menu .danger { color: #F43F5E; }
.ptl-pill { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: #ED2939; background: #132009; border: 1px solid #3F6212; white-space: nowrap; }
.ptl-pill.off { color: #EEEAE2; background: #212226; border-color: #35363a; }
/* the request to turn on notifications, shown once the portal runs as an installed app */
.push-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 3, 7, 0.6); backdrop-filter: blur(2px); }
.push-sheet > div { width: 100%; max-width: 460px; margin: 10px; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px; background: #1d1e22; border: 1px solid #45464a; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.push-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #45464a; }
.push-sheet .bell { width: 72px; height: 72px; border-radius: 24px; background: #132009; border: 1px solid #3F6212; display: grid; place-items: center; margin-top: 6px; }
.push-sheet h2 { margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: 22px; }
.push-sheet p { margin: 0; color: #EEEAE2; font-size: 14px; line-height: 1.5; }
.push-sheet .btn { align-self: stretch; min-height: 48px; border-radius: 14px; font-size: 15px; }
.ptl-tile { padding: 10px; border-radius: 12px; background: #15161B; 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 #2B2C34; display: flex; align-items: center; justify-content: center; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 14px; }
.ptl-daily .done { background: #15161B; color: #4ADE80; }
.ptl-daily .today { background: #2A1012; border: 2px solid #ED2939; }
.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 #41424C; }
.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: #2B2C34; border: 1px solid #41424C; color: #F2EFE8; 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 #2B2C34; 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 #F2EFE8; }
.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: #2B2C34; border: 1px solid #41424C; color: #F2EFE8; 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; }

/* admin: grouped menu, settings tabs, page sections */
.adm-links { gap: 4px; }
.adm-group { display: flex; flex-direction: column; gap: 2px; }
.adm-group-head { display: flex; align-items: center; gap: 2px; }
.adm-links a.adm-group-name { flex: 1; min-width: 0; min-height: 40px; gap: 12px; padding: 0 12px; border-radius: 10px; color: #A1A1AA; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.adm-links a.adm-group-name:hover, .adm-group-fold:hover { background: #1B1C22; color: #F2EFE8; }
.adm-group[data-here] .adm-group-name { color: #F2EFE8; }
.adm-group-name > .adm-badge { margin-left: auto; }
.adm-group[data-open] .adm-group-name > .adm-badge { display: none; }
.adm-group-fold { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 40px; border: 0; border-radius: 10px; background: none; color: #A1A1AA; cursor: pointer; }
.adm-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.adm-group[data-open] .adm-caret { transform: rotate(45deg); }
.adm-group-links { display: none; flex-direction: column; gap: 2px; padding: 2px 0 8px 18px; margin-left: 20px; border-left: 1px solid #2B2C34; }
.adm-group[data-open] > .adm-group-links { display: flex; }
.adm-links .adm-group-links a { min-height: 38px; font-size: 14px; padding: 0 10px; }
.adm-group-links .adm-badge { margin-left: auto; }
.adm-sub { font-size: 14px; color: #A1A1AA; line-height: 1.45; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #2B2C34; margin-bottom: -4px; scrollbar-width: thin; }
.tabs a { flex: none; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; color: #A1A1AA; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: #F2EFE8; }
.tabs a[aria-current] { color: #F2EFE8; border-bottom-color: #ED2939; }
.card-head { display: flex; flex-direction: column; gap: 4px; }
.card-help { margin: 0; font-size: 13px; color: #A1A1AA; line-height: 1.5; }
/* Desk screens show no static explanations; status lines (with an id or role) stay. */
.adm-plain .adm-sub, .adm-plain .card-help:not([id]):not([role]) { display: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #222226; cursor: pointer; }
.switch-row:first-of-type { border-top: 0; }
.switch-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.switch-text .muted { font-size: 13px; }
input.tgl { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; background: #41424C; position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
input.tgl::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #F2EFE8; transition: left 0.15s; }
input.tgl:checked { background: #22C55E; }
input.tgl:checked::after { left: 23px; }
input.tgl:focus-visible { outline: 2px solid #F2EFE8; outline-offset: 2px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #222226; flex-wrap: wrap; }
.list-row:first-child { border-top: 0; }
.list-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-main b { font-size: 15px; }
.list-main span { font-size: 13px; color: #A1A1AA; }
.empty { padding: 24px; text-align: center; color: #A1A1AA; font-size: 14px; border: 1px dashed #41424C; border-radius: 12px; }

/* Mapa sale */
.floor-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.floor-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.floor-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid; font-size: 13px; color: #E4E4E7; }
.floor-chip b { font-family: 'Chakra Petch', sans-serif; font-size: 15px; }
details.more summary { cursor: pointer; font-size: 14px; color: #A1A1AA; padding: 6px 0; list-style: none; }
details.more summary::before { content: '▸ '; }
details.more[open] summary::before { content: '▾ '; }
details.more .grid2 { padding-top: 8px; }

/* Kasa groups */
.chip-groups { display: flex; flex-wrap: wrap; gap: 16px; }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #71717A; margin-right: 2px; }

/* chat bubble on the admin pages */
.chatw { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chatw-btn { position: relative; width: 60px; height: 60px; border-radius: 30px; border: 0; background: #ED2939; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.chatw-btn:hover { background: #EF1C25; }
.chatw-btn[aria-expanded="true"] { background: #2B2C34; }
.chatw-badge { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #FFFFFF; color: #ED2939; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.chatw-badge[hidden], .chatw [hidden] { display: none !important; }
.chatw-toast { max-width: 340px; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid #64232C; background: #1A0D0E; color: #F2EFE8; display: flex; flex-direction: column; gap: 4px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); font: inherit; font-size: 14px; line-height: 1.4; }
.chatw-toast span { color: #D4D4D8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.chatw-panel { width: 380px; height: min(560px, calc(100vh - 120px)); border-radius: 16px; border: 1px solid #2A2A2E; background: #191A20; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55); }
.chatw-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #222226; }
.chatw-back { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2A2A2E; background: transparent; color: #F2EFE8; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chatw-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.chatw-title span { font-size: 12px; color: #A1A1AA; }
.chatw-all { font-size: 13px; color: #FF4A50; white-space: nowrap; }
.chatw-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chatw-conv { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: #F2EFE8; text-align: left; cursor: pointer; font: inherit; font-size: 14px; }
.chatw-conv:hover { background: #1F1F23; }
.chatw-conv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chatw-conv-last { color: #A1A1AA; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatw-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid #222226; }
.chatw-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2A2A2E; background: #15161B; color: #F2EFE8; font: inherit; font-size: 14px; resize: vertical; }
@media (max-width: 599px) {
  .chatw { right: 16px; bottom: 16px; }
  .chatw-panel { width: calc(100vw - 32px); height: calc(100vh - 110px); }
}

/* Per-PC diagnostics tables. */
.diag-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.diag-table th, .diag-table td { padding: 10px 12px; border-bottom: 1px solid #2B2C34; vertical-align: top; }
.diag-table th { color: #A1A1AA; font-weight: 600; white-space: nowrap; }
.diag-table td { overflow-wrap: anywhere; }

/* Client rewards: keep the existing design, reflow at the real viewport width. */
.pc-responsive { overflow: auto; }
.pc-responsive .pc-root { width: 100%; height: auto; min-height: 100dvh; overflow: visible; }
.pc-responsive .sh { height: auto; min-height: 100dvh; }
.pc-responsive .sh-head { height: auto; min-height: 96px; flex-wrap: wrap; gap: 16px 24px; padding: 18px 32px; }
.pc-responsive .sh-head > svg { flex: none; max-width: 100%; }
.pc-responsive .sh-head h1 { min-width: 0; overflow-wrap: anywhere; }
.pc-responsive .sh-right { flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 10px; }
.pc-responsive .sh-me { min-width: 0; max-width: 100%; }
.pc-responsive .sh-me > span { min-width: 0 !important; overflow-wrap: anywhere; }
.pc-responsive .sh-body { display: grid; grid-template-columns: 232px minmax(0, 1fr) 420px; align-items: start; }
.pc-responsive .sh-nav { width: auto; min-width: 0; min-height: calc(100dvh - 96px); }
.pc-responsive .sh-main { min-width: 0; overflow: visible; container-type: inline-size; }
.pc-responsive .sh-aside { width: auto; min-width: 0; overflow: visible; }
.pc-responsive .sh-card { min-width: 0; overflow-wrap: anywhere; }
.pc-responsive .sh-aside span { min-width: 0; overflow-wrap: anywhere; }
.pc-rewards-summary { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); min-height: 0 !important; }
.pc-rewards-summary > section { min-width: 0; }
.pc-rewards-summary [data-points] { font-size: clamp(40px, 8cqi, 64px) !important; overflow-wrap: anywhere; }
.pc-rewards-level { flex-wrap: wrap; }
.pc-rewards-level > :first-child { flex: none; max-width: 100%; }
.pc-rewards-level-content { min-width: 0; flex: 1 1 260px !important; }
.pc-rewards-xp { flex-wrap: wrap; gap: 8px 16px; }
.pc-rewards-xp > span { min-width: 0; overflow-wrap: anywhere; }
.pc-rewards-tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)) !important; }
.pc-rewards-tiers > span { min-width: 0; overflow-wrap: anywhere; }
.pc-rewards-shop-heading { flex-wrap: wrap; gap: 8px 20px; }
.pc-rewards-shop-heading > * { min-width: 0; overflow-wrap: anywhere; }
.pc-rewards-shop > article { min-width: 0; }
.pc-rewards-shop > article > div:last-child > span { flex-wrap: wrap; }
.pc-rewards-shop button { white-space: normal; overflow-wrap: anywhere; }
.pc-responsive .pc-dlg { width: min(600px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
.pc-responsive .pc-toast { max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
@container (max-width: 1000px) {
  .pc-rewards-shop { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@container (max-width: 850px) {
  .pc-rewards-summary { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 650px) {
  .pc-rewards-shop { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@container (max-width: 380px) {
  .pc-rewards-shop { grid-template-columns: minmax(0, 1fr) !important; }
  .pc-rewards-level { padding: 20px !important; gap: 20px !important; }
  .pc-rewards-xp > .disp { font-size: 28px !important; }
}
@media (max-width: 1700px) {
  .pc-responsive .sh-body { grid-template-columns: 190px minmax(0, 1fr) 320px; }
  .pc-responsive .sh-main, .pc-responsive .sh-aside { padding: 20px; }
  .pc-responsive .sh-nav { padding: 20px 12px; }
  .pc-responsive .sh-nav a { padding: 0 12px; }
}
@media (max-width: 1400px) {
  .pc-responsive .sh-body { grid-template-columns: 180px minmax(0, 1fr); }
  .pc-responsive .sh-nav { grid-row: 1 / span 2; align-self: stretch; }
  .pc-responsive .sh-aside { grid-column: 2; border-left: 0; padding-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
}
@media (max-width: 900px) {
  .pc-responsive .sh-head { padding: 16px; }
  .pc-responsive .sh-head h1 { flex: 1; font-size: 24px; }
  .pc-responsive .sh-right { flex: 1 1 100%; margin-left: 0; }
  .pc-responsive .sh-pill { flex: 1; padding: 10px 12px; align-items: flex-start; }
  .pc-responsive .sh-me { flex: 1 1 150px; }
  .pc-responsive .sh-icon-btn { width: 48px; height: 48px; flex: none; }
  .pc-responsive .sh-body { grid-template-columns: minmax(0, 1fr); }
  .pc-responsive .sh-nav { grid-row: auto; min-height: 0; border-right: 0; border-bottom: 1px solid #222329; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
  .pc-responsive .sh-nav a { min-height: 44px; font-size: 15px; gap: 8px; }
  .pc-responsive .sh-nav > div { margin-top: 0 !important; flex: 1 1 100%; flex-direction: row !important; align-items: center; flex-wrap: wrap; }
  .pc-responsive .sh-nav > div .btn { min-height: 40px !important; padding: 8px 12px; font-size: 14px !important; }
  .pc-responsive .sh-main { padding: 20px 16px; }
  .pc-responsive .sh-aside { grid-column: 1; padding: 0 16px 20px; }
}


/* Kasa: table/PC accounts, pending orders and explicit payment. */
.cafe-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: 24px; align-items: start; }
.cafe-map-side { display: grid; gap: 20px; min-width: 0; }
.cafe-layout .card, .cafe-area { min-width: 0; }
.cafe-area { display: grid; gap: 12px; }
.cafe-area .h2 { font-size: 15px; color: #A1A1AA; }
.cafe-table-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cafe-pc-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cafe-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #2A2A2E; border-radius: 12px; text-decoration: none; color: #F2EFE8; overflow-wrap: anywhere; }
.cafe-tile strong { font-size: 17px; }
.cafe-tile span { font-size: 12px; color: #A1A1AA; }
.cafe-tile b { margin-top: auto; font-size: 12px; }
.cafe-tile.cafe-free { background: #101813; border-color: #22432E; }
.cafe-tile.cafe-unpaid { background: #241B0C; border-color: #665021; }
.cafe-tile.cafe-unpaid b { color: #F5C04A; }
.cafe-tile[aria-current] { outline: 2px solid #F2EFE8; outline-offset: 2px; }
.cafe-bill { position: sticky; top: 20px; min-width: 0; }
.cafe-bill hr { width: 100%; border: 0; border-top: 1px solid #2A2A2E; }
.cafe-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.cafe-product.btn { min-width: 0; white-space: normal; justify-content: space-between; text-align: left; gap: 10px; }
.cafe-product > span { min-width: 0; overflow-wrap: anywhere; }
.cafe-product small { display: block; color: #A1A1AA; font-weight: 400; }
.cafe-product b { white-space: nowrap; font-size: 12px; }
.cafe-order { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid #2B2C34; }
.cafe-order-head { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; font-size: 13px; }
.cafe-order-head span { font-size: 12px; }
.cafe-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cafe-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; min-width: 0; }
.cafe-line > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cafe-line > b { flex: none; white-space: nowrap; }
.cafe-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; }
.cafe-total b { font-family: 'Chakra Petch', sans-serif; font-size: 28px; white-space: nowrap; }
.cafe-check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 40px; }
.cafe-open-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 0; color: #F2EFE8; text-decoration: none; border-top: 1px solid #2B2C34; overflow-wrap: anywhere; }
.cafe-open-row small { display: block; color: #A1A1AA; margin-top: 4px; }
.cafe-open-row b { color: #F5C04A; }
.cafe-table-editor summary { cursor: pointer; font-weight: 600; }
.cafe-table-editor form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding-top: 16px; }
#cafe-pay-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
#cafe-pay-dialog > * + * { margin-top: 14px; }
#cafe-pay-error { color: #FCA5A5; overflow-wrap: anywhere; }
.floor-pc-wrap { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.floor-pc-wrap .pc-tile { flex: 1; }
.floor-bulk-pick { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #A1A1AA; min-height: 28px; }
.floor-bulk-pick input { accent-color: #ED2939; }
.floor-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; }
.time-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
@media (max-width: 1200px) { .cafe-layout { grid-template-columns: minmax(0,1fr); } .cafe-bill { position: static; } }
@media (max-width: 700px) { .cafe-table-map { grid-template-columns: repeat(3,minmax(0,1fr)); } .cafe-table-map > .cafe-tile { grid-column: auto !important; grid-row: auto !important; } }
@media (max-width: 450px) { .cafe-table-map { grid-template-columns: repeat(2,minmax(0,1fr)); } .cafe-products, .cafe-table-editor form { grid-template-columns: minmax(0,1fr); } .time-presets { grid-template-columns: repeat(2,minmax(0,1fr)); } .cafe-total { flex-wrap: wrap; } }
.cafe-tabs { overflow-y: hidden; }

/* Desktop sidebar: full labels or an icon rail. Mobile keeps the menu button. */
.adm-mini-logo { display: none; }
.adm-collapse-btn { display: none; }
@media (min-width: 900px) {
  .adm { flex-wrap: nowrap; }
  .adm-nav { flex: 0 0 232px; width: 232px; min-width: 0; }
  .adm-collapse-btn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 36px; padding: 0 12px; border: 1px solid #303036; border-radius: 9px; background: #1B1B1F; color: #C4C4CC; }
  .adm-collapse-btn > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 18px; font-size: 26px; line-height: 1; }
  .adm-collapse-label { font-size: 12px; }
  .adm[data-nav-collapsed=true] .adm-nav { flex-basis: 72px; width: 72px; max-width: 72px; padding: 16px 8px; gap: 16px; }
  .adm[data-nav-collapsed=true] .adm-brand { padding: 0; align-items: center; }
  .adm[data-nav-collapsed=true] .adm-full-logo, .adm[data-nav-collapsed=true] .adm-tag, .adm[data-nav-collapsed=true] .adm-link-label, .adm[data-nav-collapsed=true] .adm-collapse-label { display: none; }
  .adm[data-nav-collapsed=true] .adm-mini-logo { display: flex; justify-content: center; }
  .adm-mini-logo span { font-size: 17px; color: #FF4A50; }
  .adm[data-nav-collapsed=true] .adm-collapse-btn { justify-content: center; padding: 0; width: 100%; }
  .adm[data-nav-collapsed=true] .adm-collapse-btn > span:first-child { transform: rotate(180deg); }
  .adm[data-nav-collapsed=true] .adm-menu { gap: 16px; }
  .adm[data-nav-collapsed=true] .adm-links a { position: relative; justify-content: center; padding: 0; }
  .adm[data-nav-collapsed=true] .adm-group-links, .adm[data-nav-collapsed=true] .adm-group-fold { display: none !important; }
  .adm[data-nav-collapsed=true] .adm-links a.adm-group-name { position: relative; justify-content: center; padding: 0; min-height: 44px; }
  .adm[data-nav-collapsed=true] .adm-group-name > .adm-badge { display: inline-flex; }
  .adm[data-nav-collapsed=true] .adm-links a > svg { flex: 0 0 18px; }
  .adm[data-nav-collapsed=true] .adm-badge { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 3px; font-size: 9px; }
  .adm[data-nav-collapsed=true] .adm-staff { padding: 7px; align-items: center; }
  .adm[data-nav-collapsed=true] .adm-staff > span > span:not(.av), .adm[data-nav-collapsed=true] .adm-staff > a, .adm[data-nav-collapsed=true] .adm-staff > form { display: none !important; }
}
.prod-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-picker-current img { display: block; max-width: 120px; max-height: 120px; object-fit: contain; border-radius: 8px; background: #15161B; }
.image-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.image-picker-grid:empty { display: none; }
.image-picker-item { aspect-ratio: 3 / 4; padding: 4px; border-radius: 10px; border: 2px solid #2B2C34; background: #15161B; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-picker-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-picker-item[aria-selected=true] { border-color: #ED2939; }
.install-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 52px 1fr; gap: 10px 14px; align-items: center; padding: 16px; border-radius: 18px; background: #18181B; border: 1px solid #41424C; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); max-width: 520px; margin: 0 auto; }
.install-sheet img { border-radius: 12px; }
.install-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #C4C4CC; line-height: 1.45; }
.install-text b { color: #F2EFE8; font-size: 16px; }
.install-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pazar-wrap { overflow-x: auto; }
.pazar-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pazar-table th, .pazar-table td { padding: 10px 12px; border-bottom: 1px solid #1F1F23; text-align: right; white-space: nowrap; }
.pazar-table th[scope=row], .pazar-table thead th:nth-child(2) { text-align: left; font-weight: 600; }
.pazar-table td:first-child { width: 32px; text-align: center; }
.pazar-table input[type=checkbox] { width: 18px; height: 18px; }
.pazar-table thead th { color: #A1A1AA; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pazar-table tfoot th, .pazar-table tfoot td { border-top: 2px solid #41424C; border-bottom: 0; font-weight: 700; }
.pazar-table .pazar-till { color: #F5C04A; font-weight: 700; }
.pazar-table .pazar-empty { color: #4ADE80; }
.pazar-small { min-width: 0; }
.pazar-small th, .pazar-small td { text-align: left; }

/* Responsive admin: a bottom bar on phones and tablets, tables as cards, wrapping toolbars. */
.adm-tabbar { display: none; }
@media (max-width: 899px) {
  .adm-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #15161B; border-top: 1px solid #2B2C34; }
  .adm-tabbar a, .adm-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border: 0; background: transparent; color: #A1A1AA; font: inherit; font-size: 11px; font-weight: 600; text-decoration: none; }
  .adm-tabbar a[aria-current] { color: #F2EFE8; }
  .adm-tabbar .adm-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 10px; font-style: normal; }
  .adm-menu-btn { display: none !important; }
  .adm-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .chatw { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .adm-head > * { max-width: 100%; }
  .adm-head .adm-tools, .adm-head nav { width: 100%; }
}
.adm-head nav form, .adm-tools form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-head nav form .input, .adm-tools form .input { flex: 1 1 140px; width: auto; min-width: 0; }
.btn, .chip { max-width: 100%; }
.btn { white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 700px) {
  .tbl { min-width: 0 !important; }
  .tbl-wrap { overflow: visible; }
  .tbl-head { display: none !important; }
  .tbl-head.tbl-head-sort { display: flex !important; flex-wrap: wrap; gap: 8px 14px; }
  .tbl-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px 14px; padding: 14px 16px; }
  .tbl-row > :first-child { grid-column: 1 / -1; }
  .tbl-row > [data-label]:not(:first-child)::before, .adm-main table td[data-label]::before, .adm-main table tbody th[data-label]:not([scope=row])::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #71717A; margin-bottom: 2px; }
  .adm-main table, .adm-main table tbody, .adm-main table tfoot, .adm-main table tr { display: block; min-width: 0 !important; width: 100%; }
  .adm-main table thead { display: none; }
  .adm-main table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid #2B2C34; }
  .adm-main table td, .adm-main table th { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; min-width: 0; overflow-wrap: anywhere; }
  .adm-main table th[scope=row] { grid-column: 1 / -1; font-size: 15px; }
  .adm-main table td:empty { display: none; }
  .pazar-wrap { overflow: visible; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 16px; }
  .card { padding: 16px; }
}
/* Pregled */
.dash-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-quick .btn { flex: 1 1 140px; }
.dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.stat-link { color: #F2EFE8; text-decoration: none; transition: border-color .15s; }
a.stat-link:hover { border-color: #41424C; color: #F2EFE8; }
.dash-setup summary { cursor: pointer; list-style: none; }
.dash-setup summary::after { content: ' ▾'; color: #71717A; }
.dash-setup:not([open]) summary::after { content: ' ▸'; }
@media (max-width: 899px) { .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-quick .btn { flex: 1 1 calc(50% - 8px); } }
/* phones and tablets: the till comes right after the tiles, before the rest of the page */
@media (max-width: 899px) { .dash-split { flex-direction: column; flex-wrap: nowrap; align-items: stretch; } .dash-split > .split-main, .dash-split > .split-side { display: contents; } .dash-split .dash-till { order: -1; } }
/* Podešavanja → Računari: one tidy row per PC, two lines on phones */
.pc-edit { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pc-edit .input { min-height: 40px; }
.pc-edit-state { grid-column: 1 / -1; font-size: 13px; }
@media (min-width: 1200px) { .pc-edit { grid-template-columns: 110px 170px 150px auto minmax(0, 1fr); } .pc-edit-state { grid-column: auto; } }
@media (max-width: 700px) {
  .pc-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .form-grid > :first-child { grid-column: 1 / -1; }
}
/* period chooser (Statistika, Pazari): quick periods and a date range; full width, even columns on phones */
.period { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.period-chips { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.period-chips .chip { justify-content: center; }
.adm-head .period-range, .period-range { display: grid; grid-template-columns: 150px 150px auto; gap: 6px; align-items: center; }
.period-range .input { width: 100%; min-width: 0; min-height: 44px; }
/* Safari sizes date fields by their own content unless the native look is dropped */
/* date and time fields: the value sits in the middle of the field and the calendar icon is visible on the
   dark background, in Chrome and Safari alike (Safari also needs the native look dropped to shrink) */
.input { color-scheme: dark; }
/* iPhone Safari draws time fields narrow-centered and wider than their box unless told exactly */
input[type="date"].input, input[type="time"].input, input[type="datetime-local"].input { width: 100%; max-width: 100%; height: 44px; box-sizing: border-box; text-align: left; overflow: hidden; }
input[type="date"].input, input[type="time"].input, input[type="datetime-local"].input { -webkit-appearance: none; appearance: none; min-width: 0; display: flex; align-items: center; line-height: 1.2; position: relative; padding-right: 40px; }
input[type="date"].input::-webkit-date-and-time-value, input[type="time"].input::-webkit-date-and-time-value, input[type="datetime-local"].input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].input::-webkit-datetime-edit, input[type="time"].input::-webkit-datetime-edit, input[type="datetime-local"].input::-webkit-datetime-edit { flex: 1 1 auto; padding: 0; display: flex; align-items: center; }
input[type="date"].input::-webkit-calendar-picker-indicator, input[type="time"].input::-webkit-calendar-picker-indicator, input[type="datetime-local"].input::-webkit-calendar-picker-indicator { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; opacity: 0.75; cursor: pointer; }
/* check boxes and radio buttons in the panel's look; :where keeps them below any specific sizing */
:where(input[type="checkbox"], input[type="radio"]):not(.tgl) { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 2px solid #52525B; border-radius: 6px; background: #15161B center / 14px 14px no-repeat; cursor: pointer; vertical-align: middle; transition: background-color 0.12s, border-color 0.12s; }
:where(input[type="radio"]):not(.tgl) { border-radius: 50%; }
:where(input[type="checkbox"], input[type="radio"]):not(.tgl):hover { border-color: #A1A1AA; }
:where(input[type="checkbox"]):not(.tgl):checked { background-color: #ED2939; border-color: #ED2939; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
:where(input[type="radio"]):not(.tgl):checked { border-color: #ED2939; background: radial-gradient(circle, #ED2939 0 4.5px, #15161B 5.5px); }
:where(input[type="checkbox"], input[type="radio"]):not(.tgl):focus-visible { outline: 2px solid #F2EFE8; outline-offset: 2px; }
:where(input[type="checkbox"], input[type="radio"]):not(.tgl):disabled { opacity: 0.45; cursor: default; }
.seg input { width: 100%; height: 100%; }
@media (max-width: 899px) {
  .period, .period-chips, .adm-head .period-range { width: 100%; }
  .period-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .period-chips .chip { padding: 0 6px; }
  .adm-head .period-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .adm-head .period-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .period-range .chip { grid-column: 1 / -1; justify-content: center; }
  .period-range .input { padding-left: 10px; padding-right: 34px; }
  .period-range input[type="date"].input::-webkit-calendar-picker-indicator { right: 8px; }
}
/* Nagrade: Garena poeni with an example under each number; the reward shop editor */
.jp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.jp-row { display: flex; flex-direction: column; gap: 4px; }
.jp-input { display: flex; align-items: center; gap: 8px; }
.jp-input .input { width: 120px; }
.jp-ex { font-size: 12px; color: #F5C04A; min-height: 16px; }
.shop-list { display: flex; flex-direction: column; }
.shop-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 96px; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid #222226; }
/* two lines per reward. children: hidden id, on, name, kind, minutes | cost, how often, remove */
.shop-row > :nth-child(6) { grid-column: 2; }
.shop-row > :nth-child(7) { grid-column: 3; }
.shop-row > :nth-child(8) { grid-column: 4; }
.shop-row.shop-new { border-top: 1px dashed #41424C; }
/* a reward without minutes keeps the column, so prices stay in one line */
.shop-row > [data-when][hidden] { display: flex !important; visibility: hidden; }
.shop-on { padding-bottom: 12px; }
.shop-on input, .shop-del input { width: 18px; height: 18px; }
.shop-del { display: flex; gap: 6px; align-items: center; font-size: 13px; padding-bottom: 12px; }
@media (max-width: 700px) {
  .jp-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .shop-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); }
  .shop-row > :nth-child(3) { grid-column: 2 / -1; }
  .shop-row > :nth-child(4), .shop-row > :nth-child(6), .shop-row > :nth-child(8) { grid-column: 2; }
  .shop-row > :nth-child(5), .shop-row > :nth-child(7) { grid-column: 3; }
}
/* Nagrade → Nivoi i rangovi */
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.lv-gift-row { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)) 76px; gap: 10px; align-items: end; padding: 8px 0; }
.lv-gift-row.lv-every { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rank-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid #222226; }
.rank-row .rank-name { grid-column: span 2; }
.rank-row .rank-note { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 700px) {
  .lv-gift-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-gift-row.lv-every { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Igre → Baza igara */
.gdb > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.gdb-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.gdb-tools .input { flex: 1 1 220px; }
.gdb-tools .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.gdb-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gdb-tile[hidden] { display: none; }
.gdb-tile b { font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdb-tile .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdb-tile .btn { align-self: flex-start; margin-top: 2px; }
.gdb-cover { display: block; aspect-ratio: 3 / 4; border-radius: 10px; border: 1px solid #2A2A2E; background: #191A20 center / cover no-repeat; }
.gdb-have { font-size: 13px; color: #4ADE80; padding: 6px 0; }
.pegi { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 1px solid #41424C; color: #C4C4CC; vertical-align: 2px; }
.gdb-match { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid #2A2A2E; font-size: 14px; color: #C4C4CC; }

/* Igre → Biblioteka igara */
.lib-row { gap: 12px; }
.lib-row[hidden] { display: none; }
.lib-row > input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: #F65B68; }
.lib-off .cv, .lib-off .list-main { opacity: 0.5; }
.lib-switch[aria-pressed="true"] { border-color: #4ADE80; color: #4ADE80; }
.lib-switch[aria-pressed="false"] { color: #A1A1AA; }
.lib-bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.lib-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #C4C4CC; margin-right: auto; }
.lib-list { max-height: 900px; overflow-y: auto; }

/* Dijagnostika */
.diag-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.diag-good { color: #4ADE80; }
.diag-warn { color: #F5A524; }
.diag-bad { color: #FF4A50; }
.diag-info { color: #FA6470; }
.diag-muted { color: #A1A1AA; }
.diag-row { color: inherit; text-decoration: none; align-items: center; }
.diag-row:hover { background: #1A1A1E; }
.diag-checks { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.diag-check { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #222226; overflow-wrap: anywhere; }
.diag-mark { flex: none; width: 18px; font-weight: 700; text-align: center; }
.diag-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.diag-stack { flex-direction: column; }
.diag-stack .btn { width: 100%; }
.diag-request { border-top: 1px solid #222226; padding: 10px 0; }
.diag-request summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.diag-request-body { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.diag-pre { white-space: pre-wrap; font-size: 12px; max-height: 300px; overflow: auto; }
@media (max-width: 899px) { .adm-links a.adm-group-name, .adm-group-fold, .adm-links .adm-group-links a { min-height: 44px; } .adm-group-fold { width: 44px; } .adm-links .adm-group-links a { font-size: 15px; } }
.backup-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 14px 16px; border-radius: 12px; background: #111113; border: 1px solid #222226; }
.backup-row .act-text { flex: 1 1 200px; }
.backup-actions { display: flex; gap: 8px; margin-left: auto; }
.pazar-short { color: #FF6B6B; font-weight: 600; }
.close-shift { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.close-list { display: grid; gap: 2px; }
.close-cat { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A1A1AA; }
.close-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #222226; font-size: 15px; }
.close-input { display: flex; align-items: center; gap: 10px; flex: 0 0 290px; }
.close-input .input { flex: 1; min-width: 0; min-height: 40px; text-align: right; }
.close-input small { flex: 0 0 120px; font-size: 12px; color: #A1A1AA; }
@media (max-width: 600px) { .close-row { flex-wrap: wrap; } .close-input { flex: 1 1 100%; } }
.bar-popis { margin: 0; padding: 12px; border: 1px solid #2B2C34; border-radius: 12px; display: grid; gap: 10px; min-width: 0; }
.bar-popis legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: #C4C4CC; }
.sched-table th, .sched-table td { text-align: left; vertical-align: top; }
.sched-table td { min-width: 96px; }
.sched-shift { display: block; margin: 2px 0; padding: 4px 8px; border-radius: 8px; background: #2A1012; color: #F2EFE8; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
a.sched-shift:hover { background: #64232C; }
.sched-today { background: rgba(215, 20, 28, 0.06); }
.sched-rate { display: flex; gap: 4px; align-items: center; }
.sched-rate .input { width: 80px; min-height: 34px; padding: 4px 8px; }
.remote { gap: 12px; }
.remote-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; color: #C4C4CC; }
.remote-actions { display: flex; gap: 12px; align-items: center; }
.remote-toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.remote-view { background: #111216; border: 1px solid #2B2C34; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; min-height: 240px; outline: none; }
.remote-view:focus-visible { border-color: #ED2939; }
.remote-view img { max-width: 100%; max-height: calc(100vh - 220px); width: auto; height: auto; display: block; }
.remote-view.remote-live img { cursor: crosshair; }
.adm-loc { padding: 0 0 12px; }
.adm-loc select { width: 100%; }
.adm[data-nav-collapsed="true"] .adm-loc { display: none; }
.lib-show { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; font-size: 13px; color: #A1A1AA; }

/* Najviše igre: member boards and PC top-three carousel. */
.lbm-page{display:flex;flex-direction:column;gap:18px;min-width:0}.lbm-hero{border:1px solid #626367;border-radius:22px;padding:26px 22px;background:radial-gradient(ellipse at 100% 0,#A8293466,transparent 70%),#1e1f23}.lbm-hero>small{font-size:10px;letter-spacing:.18em;color:#ED2939;font-weight:800}.lbm-hero h1{font-size:30px;line-height:1.1;margin:10px 0}.lbm-hero p{color:#EEEAE2;margin:0;font-size:13px;line-height:1.5}.lbm-tabs{display:flex;flex-wrap:wrap;gap:7px}.lbm-tabs a{padding:10px 13px;border:1px solid #424347;border-radius:12px;color:#EEEAE2;text-decoration:none;font-size:13px}.lbm-tabs a[aria-current]{color:#fff;background:#595a5e;border-color:#F2606C}.lbm-me{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;border:1px solid #5d723a;border-radius:16px;background:linear-gradient(115deg,#27341b,#151b13)}.lbm-me>div{display:flex;flex-direction:column;gap:5px}.lbm-me small{font-size:12px;color:#c9d8b8}.lbm-me strong{font-size:21px;color:#ED2939}.lbm-me>b{font-size:20px;color:#dcf5c8;white-space:nowrap}.lbm-period{color:#EEEAE2;font-size:12px;text-align:center;margin:0}.lbm-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px;padding-top:12px}.lbm-pedestal{min-width:0;text-align:center;display:flex;flex-direction:column;justify-content:end;gap:12px}.lbm-pedestal>div{display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0}.lbm-pedestal strong{font-size:12px;overflow-wrap:anywhere;line-height:1.25}.lbm-pedestal small{font-size:11px;color:#EEEAE2}.lbm-pedestal>b{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:75px;border:1px solid #EEEAE2;border-radius:14px 14px 4px 4px;background:linear-gradient(#55565a,#212226);color:#dbd4e6;font-size:30px}.lbm-pedestal>b>span{font-size:9px;letter-spacing:.1em}.lbm-pedestal.place-1>b{min-height:110px;border-color:#d6ae53;background:linear-gradient(#685026,#2a2014);color:#ffe09a}.lbm-pedestal.place-3>b{min-height:55px;border-color:#855b49;background:linear-gradient(#4a3029,#241815);color:#dba78a}.lbm-empty{width:56px;height:56px;border:1px dashed #616266;border-radius:18px;display:grid;place-items:center;font-size:24px;color:#A8434B}.lbm-prizes,.lbm-score{padding:18px 16px;background:#191a1e;border:1px solid #38393d;border-radius:18px;min-width:0}.lbm-prizes h2,.lbm-score h2{font-size:16px;margin:0 0 14px}.lbm-prizes ol,.lbm-score ol,.lbm-slide ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.lbm-prizes li{display:flex;flex-direction:column;gap:5px;border-top:1px solid #35363a;padding:12px 0}.lbm-prizes li>span{font-size:11px;color:#EEEAE2}.lbm-prizes li>strong{font-size:14px;line-height:1.5;color:#ED2939;overflow-wrap:anywhere}.lbm-score li,.lbm-slide li{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #333438;min-width:0}.lbm-score li:last-child,.lbm-slide li:last-child{border-bottom:0}.lbm-score li>span,.lbm-slide li>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.lbm-score li>strong,.lbm-slide li>strong{font-size:13px;white-space:nowrap}.lbm-rank{width:20px;flex:none;color:#CA505A;font-size:14px}.lbm-score li.is-me,.lbm-slide li.is-me{background:#2d2e32;border-radius:10px}.lbm-score small,.lbm-slide small{color:#ED2939;font-size:10px}.lbm-note{font-size:11px;line-height:1.6;color:#EEEAE2;margin:0}.lbm-carousel{min-width:0;padding:18px;border:1px solid #47484c;border-radius:18px;background:linear-gradient(115deg,#242529,#101115);overflow:hidden}.lbm-slide[hidden]{display:none!important}.lbm-slide>header{display:flex;align-items:center;gap:12px;margin-bottom:8px}.lbm-slide>header>small{font-size:11px;letter-spacing:.1em;font-weight:800;color:#ED2939;white-space:nowrap}.lbm-slide h2{font-size:17px;line-height:1.3;margin:0;overflow-wrap:anywhere}.lbm-slide p,.lbm-prizes p,.lbm-score p{font-size:13px;color:#EEEAE2}.lbm-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;color:#EEEAE2;font-size:12px}.lbm-controls button{border:1px solid #5f6064;background:#28292d;color:#EEEAE2;border-radius:9px;min-width:36px;height:32px;cursor:pointer;font-size:18px}.lbm-controls button:focus-visible{outline:2px solid #ED2939;outline-offset:3px}.lockbg .lbm-carousel{max-width:1020px}.lockbg .lbm-slide ol{flex-direction:row;gap:20px}.lockbg .lbm-slide li{flex:1;border:0}@media(max-width:360px){.lbm-hero{padding:20px 16px}.lbm-hero h1{font-size:26px}.lbm-score{padding:16px 10px}.lbm-score li{gap:7px}.lbm-score li>strong{font-size:12px}.lbm-me strong{font-size:18px}}

.lockbg .lbm-slide h2{font-size:20px}.lockbg .lbm-slide li>span{font-size:18px}.lockbg .lbm-slide li>strong,.lockbg .lbm-rank{font-size:16px}

.ptl-header-actions{display:flex;align-items:center;gap:10px;flex:none}.ptl-lb{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;border:1px solid #58595d;background:#26272b;color:#ED5E6A;text-decoration:none}.ptl-lb:hover,.ptl-lb[aria-current]{color:#ED2939;border-color:#ED2939;background:#25301b}.ptl-lb:focus-visible{outline:2px solid #ED2939;outline-offset:3px}.ptl-top>.ptl-title{min-width:0;overflow-wrap:anywhere}

/* GARENA actions and errors */
.btn-primary { background: #ED2939; color: #FFFFFF; }
.btn-primary:hover { background: #ED2939; color: #FFFFFF; }
.btn-danger { border-color: #F43F5E; color: #F43F5E; }
.btn-danger:hover { background: #2A0F1A; color: #F43F5E; }
.flash-error { background: #2A0F1A; border-color: #F43F5E; color: #FECDD3; }
