:root{--ink:#14211f;--muted:#6b7773;--paper:#f8f8f4;--line:#e4e8e2;--green:#0f654b;--lime:#c8f36b;--white:#fff;--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,sans-serif}a{color:inherit;text-decoration:none}.topbar{height:82px;padding:0 6vw;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--green);color:#fff;font-weight:800;letter-spacing:-1px}.brand b{display:block;font-size:12px;letter-spacing:.08em}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.topbar nav{display:flex;gap:28px;font-size:13px;font-weight:600;color:#53615c}.topbar nav a:hover{color:var(--green)}.btn{border:0;border-radius:999px;padding:13px 19px;font-weight:700;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:.18s}.btn-primary{background:var(--green);color:white}.btn-primary:hover{background:#084b37;transform:translateY(-1px)}.btn-light{background:#edf2ed;color:var(--ink)}.btn-outline{background:transparent;border:1px solid #ccd6cd;color:var(--ink)}.event-banner{width:100%;background:#101820;overflow:hidden;position:relative;line-height:0;border-bottom:5px solid var(--green)}
.event-banner img{display:block;width:100%;height:auto;max-height:clamp(260px,43vw,650px);object-fit:cover;object-position:center center}
/* Refined event-first template */
.topbar{position:relative;z-index:3;min-height:82px;height:auto;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.brand-mark{box-shadow:0 5px 14px #0f654b25}
.content-section{scroll-margin-top:20px}
.section-head h2,.role-section h2{font-weight:800}
.data-card,.video-card,.role-cards article{box-shadow:0 8px 26px #15251c08;transition:transform .18s ease,box-shadow .18s ease}
.data-card:hover,.video-card:hover,.role-cards article:hover{transform:translateY(-3px);box-shadow:0 14px 32px #15251c12}
.hero{min-height:530px;background:var(--green);color:#fff;display:grid;grid-template-columns:1.05fr .95fr;padding:70px 9vw 64px;overflow:hidden;position:relative}.hero-copy{position:relative;z-index:2;max-width:580px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:800;color:var(--green);margin-bottom:17px}.hero .eyebrow{color:#d6f7a3}.dot,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--lime);margin-right:9px}.hero h1{font-size:clamp(46px,5.6vw,78px);line-height:.99;letter-spacing:-.065em;margin:0 0 22px;font-weight:800}.hero h1 em{font-style:normal;color:var(--lime)}.hero-copy>p{max-width:410px;color:#d7e7df;font-size:15px;line-height:1.8}.hero-actions{display:flex;gap:12px;margin-top:30px}.hero .btn-primary{background:var(--lime);color:var(--ink)}.hero .btn-outline{border-color:#7fa594;color:#fff}.hero-note{font-size:11px;color:#c7ddd3;margin-top:35px}.hero-art{position:relative;min-height:360px;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #5e8e7b;border-radius:50%;width:330px;height:330px}.orbit-two{width:440px;height:440px;border-color:#3e7a64}.karate-symbol{width:220px;height:220px;border-radius:50%;background:var(--lime);color:var(--green);display:grid;place-content:center;text-align:center;font-size:88px;font-weight:700;box-shadow:0 25px 80px #052e234d;z-index:1}.karate-symbol small{font-size:9px;letter-spacing:.22em;margin-top:5px}.art-card{position:absolute;right:0;bottom:3px;background:#fff;color:var(--ink);padding:22px 24px;border-radius:16px;width:210px;box-shadow:0 20px 50px #082e2440;z-index:2}.mini-label{display:block;font-size:9px;letter-spacing:.15em;color:var(--green);font-weight:800;margin-bottom:12px}.art-card b{font-size:17px;line-height:1.3}.art-line{display:block;width:40px;height:3px;background:var(--lime);margin:17px 0 12px}.art-card small{font-size:9px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;padding:28px 9vw;border-bottom:1px solid var(--line)}.stats>div{padding:4px 20px;border-right:1px solid var(--line)}.stats>div:first-child{padding-left:0}.stats>div:last-child{border:0}.stats strong{display:block;font-size:28px;letter-spacing:-.05em}.stats span{display:block;font-size:11px;color:var(--muted);margin-top:7px}.content-section{padding:76px 9vw}.tint{background:#eef2eb}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.section-head h2,.role-section h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.055em;line-height:1.08;margin:0 0 10px}.section-head p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}.data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.empty-state{grid-column:1/-1;border:1px dashed #cbd5ca;border-radius:var(--radius);padding:34px;text-align:center;color:var(--muted);font-size:13px;background:#ffffff90}.data-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.data-card h3{font-size:16px;margin:7px 0}.data-card p{font-size:12px;line-height:1.6;color:var(--muted)}.pill{display:inline-block;border-radius:999px;background:#e8f4e3;color:var(--green);font-size:9px;font-weight:800;letter-spacing:.06em;padding:6px 9px}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.video-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.video-thumb{height:150px;background:linear-gradient(135deg,#dce8d9,#edf0df);display:grid;place-items:center;color:var(--green);font-size:32px}.video-body{padding:18px}.video-body h3{margin:0 0 7px;font-size:15px}.video-body p{margin:0;color:var(--muted);font-size:11px}.filter-wrap input{border:1px solid var(--line);background:white;padding:13px 16px;border-radius:999px;min-width:240px;font:inherit;font-size:12px}.role-section{padding:70px 9vw;background:#fff;display:grid;grid-template-columns:.7fr 1.3fr;gap:60px;align-items:start}.role-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.role-cards article{border:1px solid var(--line);border-radius:16px;padding:20px}.role-cards article>span{font-size:10px;color:var(--green);font-weight:800}.role-cards h3{font-size:16px;margin:22px 0 10px}.role-cards p{font-size:11px;line-height:1.7;color:var(--muted)}footer{display:flex;align-items:center;justify-content:space-between;padding:30px 9vw;background:#122a22;color:#d7e3dc;gap:20px}footer .brand-mark{background:var(--lime);color:var(--green)}footer .brand small,footer>span{color:#9fb6aa;font-size:10px}.modal{position:fixed;inset:0;background:#071b15b8;display:grid;place-items:center;padding:20px;z-index:10}.modal-card{width:min(100%,440px);background:#fff;border-radius:22px;padding:32px;position:relative;box-shadow:0 30px 100px #0004}.modal-card h2{font-size:29px;letter-spacing:-.05em;margin:0 0 7px}.muted{color:var(--muted);font-size:12px}.close{position:absolute;right:18px;top:14px;border:0;background:transparent;font-size:27px;cursor:pointer;color:var(--muted)}.tabs{display:flex;background:#eff2ed;border-radius:999px;padding:4px;margin:23px 0}.tab{flex:1;border:0;background:transparent;border-radius:999px;padding:10px;font-size:12px;font-weight:700;cursor:pointer}.tab.active{background:#fff;box-shadow:0 2px 8px #14211f12}form label{display:block;font-size:11px;font-weight:700;margin:14px 0}form input{display:block;width:100%;margin-top:7px;padding:13px;border:1px solid #dce2dc;border-radius:10px;font:inherit;font-size:13px}form input:focus{outline:2px solid #c8f36b;border-color:var(--green)}.full{width:100%;margin-top:8px}.form-message{font-size:12px;line-height:1.5;color:var(--green)}.fine-print{font-size:10px;color:var(--muted);line-height:1.6;margin-top:20px}.hidden{display:none!important}.account-panel{padding:60px 9vw;background:#f1f5ed}.toast{position:fixed;bottom:22px;right:22px;background:#14211f;color:#fff;padding:13px 18px;border-radius:12px;font-size:12px;box-shadow:0 10px 30px #0002;opacity:0;pointer-events:none;transition:.2s;z-index:20}.toast.show{opacity:1}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.account-actions button{border:1px solid var(--line);background:#fff;padding:14px;border-radius:12px;cursor:pointer;font-weight:600;font-size:12px}.status-line{font-size:12px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
@media(max-width:850px){.event-banner img{max-height:none;object-fit:contain}.topbar{padding:12px 5vw}.topbar nav{display:none}.hero{grid-template-columns:1fr;padding:55px 7vw 40px}.hero-art{min-height:280px;margin-top:25px}.orbit{width:230px;height:230px}.orbit-two{width:300px;height:300px}.karate-symbol{width:160px;height:160px;font-size:62px}.art-card{right:0;bottom:0}.stats{padding:22px 5vw}.stats>div{padding:4px 10px}.stats strong{font-size:22px}.content-section{padding:55px 6vw}.data-grid,.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.role-section{padding:55px 6vw;grid-template-columns:1fr;gap:30px}.role-cards{grid-template-columns:repeat(3,1fr)}footer{padding:25px 6vw;align-items:flex-start;flex-direction:column}}@media(max-width:560px){.topbar{height:70px}.brand b{font-size:10px}.brand small{font-size:9px}.topbar>.btn{padding:11px;font-size:10px}.hero h1{font-size:48px}.hero-art{min-height:250px}.art-card{width:165px;padding:16px}.art-card b{font-size:14px}.stats{grid-template-columns:repeat(2,1fr);gap:18px}.stats>div:nth-child(2){border:0}.stats>div:nth-child(3){padding-left:0}.section-head{align-items:flex-start;flex-direction:column}.data-grid,.video-grid{grid-template-columns:1fr}.role-cards{grid-template-columns:1fr}.filter-wrap,.filter-wrap input{width:100%;min-width:0}.modal-card{padding:26px 22px}}

/* HPKS navy-and-red visual identity refresh */
:root{--ink:#eaf2ff;--muted:#a9bad2;--paper:#061a31;--line:#19395c;--green:#e11d2e;--lime:#49baff;--white:#fff;--radius:18px}
body{background:#061a31;color:#edf4ff;background-image:radial-gradient(ellipse at 50% -20%,#164a7a 0,transparent 55%),linear-gradient(180deg,#061a31 0%,#07182b 100%)}
.topbar{position:sticky;top:0;z-index:20;min-height:78px;background:rgba(3,20,40,.97);border-bottom:2px solid #d7192d;box-shadow:0 8px 28px #0006;backdrop-filter:blur(12px);padding-left:4vw;padding-right:4vw}
.brand{gap:14px}.brand-mark{width:48px;height:48px;border-radius:12px;background:linear-gradient(145deg,#f5f8ff 0%,#9bb6d8 28%,#e11d2e 30%,#a20d1b 60%,#071d3b 62%,#1465b6 100%);box-shadow:inset 0 2px 4px #fff9,inset 0 -5px 8px #00132f,0 5px 0 #021025,0 8px 18px #0008;transform:perspective(150px) rotateY(-8deg)}.brand-mark span{font-size:12px;color:white;text-shadow:0 2px 3px #00152e;letter-spacing:-.5px}.brand b{font-size:12px;color:#fff;letter-spacing:.06em}.brand small{color:#9fb9d8}.topbar nav{gap:clamp(10px,1.7vw,27px);color:#dce9fa}.topbar nav a{padding:12px 0;white-space:nowrap}.topbar nav a:first-child{background:#d7192d;padding:12px 16px;border-radius:9px;color:#fff}.topbar nav a:hover{color:#55baff}.btn{border-radius:10px}.btn-primary{background:linear-gradient(135deg,#ed1c2e,#a90b1a);box-shadow:0 6px 18px #c10e2433}.btn-light{background:#102e50;border:1px solid #31577f;color:#fff}.btn-outline{border-color:#31577f;color:#edf4ff}.event-banner{border-bottom:4px solid #e11d2e;background:#041329;box-shadow:0 14px 34px #0005}.event-banner img{max-height:clamp(280px,38vw,590px);object-fit:cover;object-position:center}.hero{background:linear-gradient(135deg,#0b2949,#07182d);border:1px solid #183b60;border-radius:20px;margin:34px auto;max-width:1400px;width:92%;padding:clamp(24px,4vw,58px);box-shadow:0 18px 50px #0003}.hero h1{color:#fff}.hero h1 em{color:#53baff}.hero p,.hero-note{color:#b5c9e2}.eyebrow{color:#60bfff}.stats{max-width:1300px;width:92%;margin:0 auto 32px;background:#0b2745;border:1px solid #1b4167;border-radius:16px;color:#fff}.stats span{color:#a9c0db}.content-section,.role-section,.account-panel{max-width:1300px;width:92%;margin:32px auto;background:#0a2340;border:1px solid #193c60;border-radius:18px;padding:clamp(22px,3vw,40px);color:#edf4ff}.content-section.tint{background:#0b1e35}.section-head p,.role-cards p,.muted{color:#a9bad2}.section-head h2,.role-section h2{color:#fff}.data-card,.video-card,.role-cards article,.modal-card{background:#102d4d;border:1px solid #254a70;color:#edf4ff}.empty-state{background:#0d2948;border:1px dashed #31577f;color:#b5c9e2}.role-section{display:grid;grid-template-columns:.7fr 1.3fr;gap:28px;align-items:center}.role-cards article{border-radius:14px}.role-cards article span{color:#55baff}.event-banner+ .league-calendar{margin-top:0}
.league-calendar{max-width:1400px;width:92%;margin:24px auto 34px;padding:clamp(20px,3vw,36px);border:1px solid #19456f;border-radius:18px;background:linear-gradient(145deg,#071d36,#0b2948);box-shadow:0 16px 42px #0004}.calendar-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.calendar-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:linear-gradient(145deg,#e91c30,#9f0b1b);font-size:27px;box-shadow:0 5px 0 #590914,0 9px 18px #0005}.calendar-heading small{color:#5dbaff;font-size:10px;font-weight:800;letter-spacing:.18em}.calendar-heading h2{font-size:clamp(20px,2.5vw,30px);margin:3px 0 0;color:white}.calendar-global{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.calendar-global article{display:flex;flex-direction:column;gap:8px;background:#0e3154;border:1px solid #24547d;border-radius:12px;padding:15px}.calendar-global b,.round-card p b{color:#fff;font-size:14px}.calendar-global span,.round-card p span{color:#b6cbe2;font-size:12px;line-height:1.5}.round-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.round-card{background:linear-gradient(155deg,#0d2a49,#081b31);border:1px solid #245078;border-radius:14px;padding:16px;box-shadow:inset 0 1px #ffffff0d}.round-title{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #254665}.round-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,#f02638,#a80d1d);color:#fff;font-weight:800;box-shadow:0 4px 0 #570916}.round-title h3{margin:0;color:#fff;font-size:16px}.round-card p{display:flex;flex-direction:column;gap:4px;margin:10px 0 0;padding-left:10px;border-left:2px solid #35a9f9}.round-card p:last-child{border-left-color:#ed2538}.modal{background:#020b16cc}.modal-card label{color:#d9e7f8}.modal-card input{background:#071c32;color:#fff;border:1px solid #31577f}.tabs{border-color:#284c70}.tab{color:#bed0e6}.tab.active{background:#e11d2e;color:#fff}footer{background:#031327;color:#b6cbe2;border-top:1px solid #173c61;padding:28px 5vw}footer .brand-mark{transform:none}
@media(max-width:1050px){.topbar nav{order:3;width:100%;overflow-x:auto;padding:4px 0}.topbar{gap:12px}.round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.role-section{grid-template-columns:1fr}}
@media(max-width:620px){.topbar{padding:12px 4vw}.brand b{font-size:10px}.brand small{font-size:9px}.topbar nav{gap:18px;font-size:12px}.event-banner img{max-height:none;object-fit:contain}.calendar-global{grid-template-columns:1fr}.round-grid{grid-template-columns:1fr}.league-calendar,.hero,.content-section,.role-section,.account-panel,.stats{width:94%}.hero{margin:18px auto}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.role-cards{grid-template-columns:1fr}}

/* Dorada: kompaktniji registracijski prozor za zaslone prijenosnih i stolnih računala */
.modal{
  padding:12px;
  overflow-y:auto;
  align-items:center;
}
.modal-card{
  width:min(100%, 420px);
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  padding:22px 24px 20px;
  border-radius:18px;
  overscroll-behavior:contain;
}
.modal-card h2{font-size:25px;line-height:1.12;margin:0 0 6px;padding-right:20px}
.modal-card>.muted{font-size:12px;line-height:1.45;margin:6px 0 10px}
.modal-card .tabs{margin:12px 0;padding:3px}
.modal-card .tab{padding:8px 6px;font-size:11px}
.modal-card form label{margin:9px 0;font-size:11px}
.modal-card form input{margin-top:5px;padding:10px 11px}
.modal-card .fine-print{font-size:10px;line-height:1.4;margin-top:11px}
.modal-card .full{margin-top:5px;padding:11px 14px}
.modal-card .close{right:12px;top:9px}
@media(max-height:760px){
  .modal-card{padding:18px 22px 16px;max-height:calc(100dvh - 16px)}
  .modal-card .tabs{margin:9px 0}
  .modal-card form label{margin:7px 0}
  .modal-card .fine-print{margin-top:8px}
}
@media(max-width:480px){
  .modal{padding:8px}
  .modal-card{width:100%;max-height:calc(100dvh - 16px);padding:20px 18px 16px}
}

/* Password recovery control */
#forgotPassword { margin-top: 8px; }
#resetPasswordModal { z-index: 30; }
#resetPasswordModal .modal-card { max-width: 440px; }

/* Fix: auth and password recovery dialogs must be above sticky header/banner. */
#authModal, #resetPasswordModal {
  position: fixed;
  inset: 0;
  z-index: 1000 !important;
  overflow-y: auto;
  align-items: center;
}
#authModal .modal-card, #resetPasswordModal .modal-card {
  position: relative;
  z-index: 1001;
  margin: auto;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

#entryAgePreview { margin: 12px 0; background: #09213b; border-color: #2a5e89; color: #eaf2ff; line-height: 1.6; }
#entryAgePreview b { color: #55baff; }
#entryAgePreview span { color: #c5d8ee; }

/* Language selector */
.language-switch{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#dce9fa;font-size:14px}
.language-switch select{appearance:auto;background:#102e50;color:#fff;border:1px solid #31577f;border-radius:9px;padding:10px 8px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.language-switch select:focus{outline:2px solid #49baff;outline-offset:2px}
@media(max-width:620px){.language-switch{margin-left:auto}.language-switch select{padding:8px 6px}}

/* Flagged language menu */
.language-switch select{max-width:185px;min-width:130px}
@media(max-width:620px){.language-switch select{max-width:154px;min-width:108px;font-size:10px}}

/* Right-to-left reading direction for Arabic and Persian */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .language-switch { direction: rtl; }
html[dir="rtl"] input, html[dir="rtl"] textarea { text-align: right; }

/* Per-entry payment options and official HUB3 PDF417 scan-to-pay barcode */
.hub3-payment{margin-top:14px;padding:12px;border:1px solid var(--border-color,#d4dce5);border-radius:12px;background:rgba(127,127,127,.045)}
.hub3-payment h4{margin:.25rem 0 .5rem}
.hub3-canvas-wrap{display:flex;flex-direction:column;align-items:flex-start;overflow-x:auto;background:#fff;padding:8px;border-radius:8px}
.hub3-canvas{display:block;width:58mm;max-width:100%;height:auto;image-rendering:pixelated}
.payment-methods{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.payment-methods .btn{margin:0}
.small-note{font-size:.88em;opacity:.85}
@media print{.payment-methods,button[data-download-hub3],button[data-copy-payment-desc]{display:none!important}.hub3-payment{break-inside:avoid;border:0}.hub3-canvas{width:58mm;max-width:58mm}}

/* Make the waiting list prominent and easy to find in the admin panel */
.admin-quick-links{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.admin-waiting-list{scroll-margin-top:24px;border:2px solid var(--accent,#4b64aa)}
.admin-waiting-list h3{font-size:1.15rem}


/* Final responsive header fix: keep login and club registration visible together */
.topbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:72px;height:auto}
.topbar nav{display:flex;flex:1 1 560px;justify-content:center;min-width:0}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;white-space:nowrap}
.header-actions>.btn{white-space:nowrap}
@media(max-width:1450px){.topbar nav{display:none}}
@media(max-width:850px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:10px 5vw;gap:10px}
  .brand{min-width:0}
  .language-switch{justify-self:end;margin-left:0}
  .header-actions{grid-column:1 / -1;width:100%;display:grid;grid-template-columns:1fr;gap:8px}
  .header-actions>.btn{width:100%;padding:12px 8px;font-size:12px}
}
@media(max-width:480px){
  .topbar{padding:10px 4vw}
  .brand{gap:8px}
  .brand b{font-size:9px}
  .brand small{font-size:8px}
  .brand-mark{width:34px;height:34px}
  .language-switch select{max-width:130px;min-width:100px}
  .header-actions>.btn{font-size:11px}
}

/* HPKS nav restoration: keep the page menu visible in the header on every screen size. */
@media (max-width: 1450px) {
  .topbar nav {
    display: flex !important;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: clamp(12px, 2vw, 24px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 7px;
    border-top: 1px solid #1b4167;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .topbar nav a { flex: 0 0 auto; }
  .topbar { row-gap: 8px; }
}
@media (max-width: 850px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand language actions"
      "nav nav nav";
    align-items: center;
    gap: 8px;
    padding: 9px 3vw 0;
  }
  .brand { grid-area: brand; min-width: 0; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
  .brand b { font-size: clamp(7px, 1.8vw, 10px); line-height: 1.2; }
  .brand small { font-size: 7px; margin-top: 2px; }
  .language-switch { grid-area: language; justify-self: end; margin: 0; }
  .language-switch select { min-width: 68px; max-width: 90px; padding: 7px 3px; font-size: 9px; }
  .header-actions {
    grid-area: actions;
    grid-column: auto;
    display: flex;
    width: auto;
    justify-content: flex-end;
    gap: 4px;
  }
  .header-actions > .btn { width: auto; padding: 8px 9px; font-size: 9px; }
  .topbar nav {
    grid-area: nav;
    order: initial;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 7px 0 8px;
    gap: 16px;
    font-size: 11px;
  }
  .topbar nav a:first-child { padding: 8px 10px; }
}
@media (max-width: 430px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "language language" "nav nav"; }
  .language-switch { justify-self: start; }
  .header-actions > .btn { padding: 8px 7px; font-size: 8px; }
}


/* Dropdown za odobravanje natjecatelja i sudaca. */
.topbar nav { overflow: visible !important; overflow-x: visible !important; overflow-y: visible !important; flex-wrap: wrap; }
.topbar nav > .nav-dropdown { position: relative; display: block; flex: 0 0 auto; align-self: center; }
.topbar nav .nav-dropdown-summary { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; color: #dce9fa; white-space: nowrap; font: inherit; font-weight: 600; cursor: pointer; list-style: none; }
.topbar nav .nav-dropdown-summary::-webkit-details-marker { display: none; }
.topbar nav .nav-dropdown-summary::marker { content: ""; }
.topbar nav .nav-dropdown[open] > .nav-dropdown-summary,
.topbar nav .nav-dropdown-summary:hover { color: #55baff; }
.topbar nav .nav-dropdown-menu { position: absolute; left: 0; top: calc(100% + 2px); min-width: 250px; max-width: min(360px, 88vw); display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #0b2745; border: 1px solid #31577f; border-radius: 12px; box-shadow: 0 16px 36px #0009; z-index: 1000; box-sizing: border-box; }
.topbar nav .nav-dropdown-menu a,
.topbar nav .nav-dropdown-menu a:first-child { display: block; width: 100%; padding: 11px 12px !important; border-radius: 8px; background: transparent !important; color: #edf4ff; white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
.topbar nav .nav-dropdown-menu a:hover { background: #153b60 !important; color: #55baff; }
.queue-anchor { scroll-margin-top: 110px; }
.queue-focus { outline: 2px solid #49baff; box-shadow: 0 0 0 5px #49baff24, 0 15px 38px #0005; transition: box-shadow .3s ease; }
@media (max-width: 1450px) {
  .topbar nav { justify-content: flex-start; flex-wrap: wrap; gap: clamp(10px, 1.7vw, 22px); padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 850px) {
  .topbar nav { overflow: visible !important; flex-wrap: wrap; gap: 8px 14px; padding-top: 8px; padding-bottom: 10px; }
  .topbar nav .nav-dropdown-summary { padding: 8px 0; }
  .topbar nav .nav-dropdown-menu { min-width: min(250px, 82vw); max-width: min(340px, 88vw); left: auto; right: 0; }
}


/* Password visibility controls (R14). */
.password-input-wrap{position:relative;display:block;width:100%;margin-top:7px}
form .password-input-wrap input{display:block;width:100%;margin-top:0;padding-right:48px}
.password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:38px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink,#14211f);font-size:18px;line-height:1;cursor:pointer;box-shadow:none}
.password-toggle:hover{background:rgba(127,127,127,.12)}
.password-toggle:focus-visible{outline:2px solid var(--green,#0f654b);outline-offset:1px}

/* Compact league navigation */
.topbar nav.sd-nav { display:flex; align-items:center; gap:0; flex-wrap:wrap; }
.topbar nav.sd-nav > a,
.topbar nav.sd-nav .nav-dropdown-summary {
  padding: 10px 14px !important;
  border-left: 1px solid #31577f;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}
.topbar nav.sd-nav > a:first-child { border-left: none; }
.topbar nav.sd-nav .nav-dropdown-menu {
  min-width: 280px;
  background: #071a30;
  border: 1px solid #3d6a99;
}
.topbar nav.sd-nav .nav-dropdown-menu a {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  border-bottom: 1px solid #1c3d5e;
  border-radius: 0;
}
.topbar nav.sd-nav .nav-dropdown[open] > .nav-dropdown-summary {
  background: #153b60;
  color: #fff;
}

.content-section.folded > :not(.section-head) { display: none; }
.content-section > .section-head { cursor: pointer; }
.content-section > .section-head h2::after { content: " ▾"; color: #8eb4ff; font-size: .8em; }
.content-section.folded > .section-head h2::after { content: " ▸"; }

@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; padding: 10px 12px; }
  .topbar nav.sd-nav { width: 100%; overflow-x: auto; }
  .data-grid { grid-template-columns: 1fr !important; }
  .round-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .data-card h3 { font-size: 16px; }
}

/* Compact athlete grid */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.athlete-thumb {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.athlete-thumb:hover {
  transform: translateY(-2px);
}
.athlete-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #31577f;
  background: #13283f;
}
.athlete-thumb span {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  color: #e8eef8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  margin-left: auto;
  margin-right: auto;
}

/* Compact athlete grid with search and pagination */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
  margin: 12px 0;
}
.athlete-thumb {
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.15s;
}
.athlete-thumb:hover {
  background: rgba(49, 87, 127, 0.3);
}
.athlete-thumb img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #31577f;
  background: #13283f;
}
.athlete-thumb span {
  display: block;
  font-size: 0.72rem;
  margin-top: 4px;
  color: #e8eef8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.athlete-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.athlete-controls input {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #31577f;
  background: #0f1c2e;
  color: #fff;
}
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.pagination button {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #31577f;
  background: #13283f;
  color: #e8eef8;
  cursor: pointer;
}
.pagination button.active {
  background: #31577f;
}
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-box {
  background: #13283f; padding: 24px; border-radius: 12px;
  max-width: 420px; width: 90%; color: #e8eef8;
}
.modal-box img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.modal-box h3 { margin: 8px 0; }

/* Admin athlete queue: grouped by club without changing existing workflow controls. */
.athlete-club-group{margin:16px 0 22px;padding:12px;border:1px solid rgba(104,159,213,.28);border-radius:14px;background:rgba(5,22,42,.22)}
.athlete-club-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:0 0 9px;border-bottom:1px solid rgba(104,159,213,.25);color:#dceaff;font-size:1.05rem}
.athlete-club-group .data-grid{margin-top:10px}

/* HPKS compact admin roster grouped by club */
.athlete-club-group { margin: 14px 0 20px; padding: 12px; border: 1px solid #24486a; border-radius: 14px; background: rgba(7,25,45,.38); }
.athlete-club-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 10px; padding-bottom:8px; border-bottom:1px solid #24486a; font-size:1rem; }
.admin-athlete-roster { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:10px; }
.admin-athlete-tile { min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; padding:9px 5px; border:1px solid #24486a; border-radius:11px; background:#0d2742; text-align:center; }
.admin-athlete-profile { width:100%; border:0; background:transparent; color:#eef5ff; display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; padding:0; }
.admin-athlete-profile img,.athlete-avatar-fallback { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid #31577f; background:#13283f; }
.athlete-avatar-fallback { display:flex; align-items:center; justify-content:center; color:#9bbcff; font-weight:800; }
.admin-athlete-name { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.admin-athlete-tile .pill { font-size:.65rem; padding:3px 7px; }
.admin-athlete-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.admin-athlete-actions .btn { padding:4px 6px; font-size:.65rem; min-height:24px; }
.admin-profile-overlay { position:fixed; inset:0; z-index:10020; display:flex; justify-content:center; align-items:center; padding:16px; overflow:auto; background:rgba(0,0,0,.78); }
.admin-profile-dialog { width:min(860px,100%); max-height:92vh; overflow:auto; background:#0d2742; color:#edf5ff; border:2px solid #ed1230; border-radius:16px; padding:20px; box-shadow:0 20px 70px #0009; }
.admin-profile-close { float:right; font-size:1.2rem; padding:5px 10px; }
.admin-profile-header { display:flex; align-items:center; gap:16px; margin:4px 0 18px; }
.admin-profile-header img,.admin-profile-avatar { width:76px; height:76px; flex:0 0 76px; border-radius:50%; object-fit:cover; border:2px solid #31577f; background:#13283f; }
.admin-profile-avatar { display:grid; place-items:center; color:#9bbcff; font-size:1.8rem; }
.admin-profile-header h2 { margin:4px 0; }
.admin-profile-header p { margin:0; color:#b8cce4; }
.admin-profile-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:6px; }
.admin-profile-field { display:flex; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid #24486a; border-radius:7px; font-size:.82rem; }
.admin-profile-field span { text-transform:capitalize; color:#b8cce4; }
.admin-profile-field b { text-align:right; overflow-wrap:anywhere; }
.admin-profile-entries { display:grid; gap:8px; }
.admin-profile-entry { padding:10px; border:1px solid #24486a; border-radius:9px; }
.admin-profile-entry p { margin:5px 0; }
.admin-profile-footer { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
@media(max-width:650px){.admin-athlete-roster{grid-template-columns:repeat(3,minmax(0,1fr));}.admin-profile-dialog{padding:12px}.admin-profile-field{flex-direction:column}.admin-profile-field b{text-align:left}}


/* Compact club athlete roster, matching the admin athlete tiles. */
.club-athlete-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
.club-athlete-tile{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border:1px solid #24486a;border-radius:11px;background:#0d2742;text-align:center}
.club-athlete-profile{width:100%;border:0;background:transparent;color:#eef5ff;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;padding:0}
.club-athlete-profile img,.club-athlete-profile .athlete-avatar-fallback{width:48px;height:48px;flex:0 0 48px;border-radius:50%;object-fit:cover;border:2px solid #31577f;background:#13283f}
.club-athlete-name{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:700}
.club-athlete-meta{margin:0;color:#b8cce4;font-size:.72rem}
.club-athlete-tile .pill{font-size:.65rem;padding:3px 7px}
.club-athlete-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}
.club-athlete-actions .btn{padding:4px 6px;font-size:.65rem;min-height:24px}
@media(max-width:650px){.club-athlete-roster{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* HPKS R18 — roster and athlete profile workspace inspired by the requested layout. */
.athlete-roster-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(170px,.8fr) minmax(160px,.7fr);gap:10px;align-items:end;margin:8px 0 16px;padding:12px;border:1px solid #24486a;border-radius:12px;background:#081e34}
.athlete-roster-filters label{display:flex;flex-direction:column;gap:6px;color:#c6d8ef;font-size:.82rem;font-weight:650}
.athlete-roster-filters input,.athlete-roster-filters select{width:100%;min-height:40px;border:1px solid #31577f;border-radius:8px;background:#0d2742;color:#eef5ff;padding:9px 11px}
#athleteQueueList .athlete-club-group{background:#071d32;border-color:#214a70;padding:12px;margin:12px 0 16px}
#athleteQueueList .athlete-club-heading{background:linear-gradient(90deg,#0c3658,#0a2744);border:1px solid #234d73;border-radius:9px;padding:10px 12px;color:#f1f7ff}
#athleteQueueList .admin-athlete-roster{grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:8px}
#athleteQueueList .admin-athlete-tile{background:#0a2540;border-color:#20466b;padding:9px 5px;transition:border-color .15s,transform .15s}
#athleteQueueList .admin-athlete-tile:hover{border-color:#1388ff;transform:translateY(-1px)}
#athleteQueueList .admin-athlete-profile img,#athleteQueueList .athlete-avatar-fallback{width:46px;height:46px;border-color:#1689e8}
#athleteQueueList .admin-athlete-name{white-space:normal;line-height:1.25;min-height:2.4em;font-weight:650}
#athleteQueueList .admin-athlete-actions .btn{min-height:25px}
/* Profile opens as a right-side details panel, leaving the roster context visible. */
.admin-profile-overlay{justify-content:flex-end;align-items:stretch;padding:0;background:rgba(0,8,18,.56);backdrop-filter:blur(3px)}
.admin-profile-dialog{width:min(650px, min(52vw, 100%));height:100%;max-height:100vh;border-radius:18px 0 0 18px;border:1px solid #1f5b87;border-right:0;padding:22px;background:linear-gradient(160deg,#08233d,#06182a 70%);box-shadow:-22px 0 70px #0007;animation:hpksProfileIn .18s ease-out}
.admin-profile-close{position:sticky;top:0;float:right;z-index:2;border:1px solid #31577f;border-radius:8px;background:#0d3152;color:#eef5ff;cursor:pointer}
.admin-profile-header{padding:14px;border:1px solid #21486b;border-radius:14px;background:#0b2b48}
.admin-profile-header img,.admin-profile-avatar{width:82px;height:82px;flex-basis:82px;border-color:#0787e8}
.admin-profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-profile-field{background:#0a2540;border-color:#20466b}
.admin-profile-entry{background:#0a2540;border-color:#20466b}
.admin-profile-footer{position:sticky;bottom:-22px;padding:14px 0 4px;background:linear-gradient(180deg,rgba(6,24,42,0),#06182a 28%)}
@keyframes hpksProfileIn{from{transform:translateX(18px);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(max-width:800px){.athlete-roster-filters{grid-template-columns:1fr}.admin-profile-dialog{width:100%;border-radius:0;padding:14px}.admin-profile-fields{grid-template-columns:1fr}.admin-profile-footer{bottom:-14px}}


/* HPKS Professional compact roster pass: no oversized avatar cards. */
#athleteQueueList .admin-athlete-roster,
.admin-athlete-roster {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid #234765;
  border-radius: 8px;
  overflow: hidden;
}
#athleteQueueList .admin-athlete-tile,
.admin-athlete-tile {
  display: grid !important;
  grid-template-columns: minmax(180px, 2fr) minmax(105px, .8fr) minmax(210px, 1.5fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #1e3c59 !important;
  border-radius: 0 !important;
  background: #0b2238 !important;
  text-align: left !important;
  min-height: 42px;
}
#athleteQueueList .admin-athlete-tile:last-child,
.admin-athlete-tile:last-child { border-bottom: 0 !important; }
#athleteQueueList .admin-athlete-profile,
.admin-athlete-profile {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: auto !important;
  min-width: 0;
  text-align: left !important;
  font-size: .88rem;
}
#athleteQueueList .admin-athlete-profile img,
#athleteQueueList .athlete-avatar-fallback,
.admin-athlete-profile img,
.admin-athlete-profile .athlete-avatar-fallback { display: none !important; }
#athleteQueueList .admin-athlete-name,
.admin-athlete-name {
  min-height: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
  font-size: .88rem !important;
  font-weight: 650;
  line-height: 1.3;
}
#athleteQueueList .admin-athlete-tile .pill,
.admin-athlete-tile .pill { justify-self: start; font-size: .72rem !important; }
#athleteQueueList .admin-athlete-actions,
.admin-athlete-actions { justify-content: flex-end !important; gap: 5px !important; }
#athleteQueueList .admin-athlete-actions .btn,
.admin-athlete-actions .btn { padding: 5px 8px !important; min-height: 28px !important; font-size: .72rem !important; }
.athlete-club-heading { padding: 10px 12px !important; margin: 14px 0 0 !important; background: #103453; border: 1px solid #24486a; border-radius: 8px 8px 0 0; }
/* Club-owned athlete roster: compact rows, no large avatar tiles. */
.club-athlete-roster { display:flex !important; flex-direction:column !important; gap:0 !important; border:1px solid #234765; border-radius:8px; overflow:hidden; }
.club-athlete-tile { display:grid !important; grid-template-columns:minmax(180px,2fr) minmax(100px,.8fr) minmax(150px,1fr) !important; align-items:center !important; justify-items:stretch !important; gap:10px !important; padding:8px 12px !important; border:0 !important; border-bottom:1px solid #1e3c59 !important; border-radius:0 !important; text-align:left !important; background:#0b2238 !important; }
.club-athlete-profile { display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:flex-start !important; gap:0 !important; text-align:left !important; }
.club-athlete-profile img,.club-athlete-profile .athlete-avatar-fallback { display:none !important; }
@media (max-width: 760px) {
  #athleteQueueList .admin-athlete-tile,.admin-athlete-tile { grid-template-columns:minmax(0,1fr) auto !important; }
  #athleteQueueList .admin-athlete-actions,.admin-athlete-actions { grid-column:1 / -1; justify-content:flex-start !important; }
  .club-athlete-tile { grid-template-columns:minmax(0,1fr) auto !important; }
}

/* HPKS compact payment list: replace oversized payment cards with a dense, readable table. */
.table-scroll{width:100%;overflow-x:auto;margin-top:10px}.hpks-compact-table{width:100%;border-collapse:collapse;min-width:760px;font-size:13px}.hpks-compact-table th,.hpks-compact-table td{padding:8px 10px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--border-color,rgba(120,160,200,.22))}.hpks-compact-table th{font-weight:700;white-space:nowrap;background:rgba(20,60,95,.24)}.hpks-compact-table td{line-height:1.35}.hpks-compact-table .btn{padding:5px 9px;font-size:12px;white-space:nowrap}.hpks-compact-table code{font-size:11px;overflow-wrap:anywhere}

/* HPKS professional club workspace: compact rows, small clickable avatar and collapsed forms. */
.club-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.club-summary-grid article{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #21486b;border-radius:12px;background:linear-gradient(145deg,#0c2e4e,#09223a)}
.club-summary-grid span,.club-summary-grid small{color:#b8cce4;font-size:.82rem}
.club-summary-grid strong{font-size:1.65rem;color:#f5f9ff}
.club-roster-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid #234765;border-radius:9px;background:#0a2540}
.club-roster-toolbar input{max-width:300px;width:100%;background:#071b30;color:#edf5ff;border:1px solid #31577f;border-radius:8px;padding:9px 11px}
.club-athlete-roster{display:flex!important;flex-direction:column!important;gap:0!important;border:1px solid #234765;border-radius:9px;overflow:hidden}
.club-athlete-tile{display:grid!important;grid-template-columns:minmax(220px,1.5fr) minmax(90px,.65fr) minmax(130px,.7fr) minmax(190px,1fr)!important;align-items:center!important;justify-items:stretch!important;gap:12px!important;padding:9px 12px!important;border:0!important;border-bottom:1px solid #1e3c59!important;border-radius:0!important;text-align:left!important;background:#0b2238!important}
.club-athlete-profile{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-width:0;width:100%;border:0;background:transparent;color:#eef5ff;cursor:pointer;text-align:left}
.club-athlete-profile img,.club-athlete-profile .athlete-avatar-fallback{display:grid!important;width:34px!important;height:34px!important;min-width:34px;flex:0 0 34px!important;border-radius:50%!important;object-fit:cover!important;border:2px solid #1689e8!important;background:#13283f!important;align-items:center;justify-content:center}
.club-athlete-name{white-space:normal!important;overflow-wrap:anywhere;font-size:.84rem!important}
.club-athlete-meta{font-size:.78rem!important}
.club-athlete-actions{display:flex;flex-wrap:wrap;justify-content:flex-end!important;gap:5px!important}
.club-athlete-actions .btn{font-size:.73rem!important;min-height:30px!important;padding:5px 9px!important}
.hpks-collapsible-form{border:1px solid #24486a;border-radius:10px;padding:10px;background:#0a2540}
.hpks-collapsible-form summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none}
.hpks-collapsible-form summary::-webkit-details-marker{display:none}
.hpks-collapsible-body{padding-top:14px}
.hpks-athlete-profile-dialog{display:block;overflow:auto}
.hpks-profile-photo{width:82px;height:82px;flex:0 0 82px;object-fit:cover;border-radius:50%;border:2px solid #0787e8;background:#13283f}
.hpks-profile-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px;border-bottom:1px solid #234765;padding-bottom:10px}
.hpks-profile-tabs a{color:#d8e8ff;text-decoration:none;padding:8px 12px;border:1px solid #234765;border-radius:8px;background:#0a2540;font-size:.82rem}
.hpks-athlete-profile-dialog section{margin:14px 0}
#hpksVideoLinkDialog{z-index:10050!important}
@media(max-width:760px){.club-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.club-summary-grid article{padding:9px}.club-summary-grid strong{font-size:1.25rem}.club-athlete-tile{grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}.club-athlete-meta{grid-column:1}.club-athlete-tile>.pill{grid-column:2;grid-row:1}.club-athlete-actions{grid-column:1/-1;justify-content:flex-start!important}.club-roster-toolbar{align-items:stretch;flex-direction:column}.club-roster-toolbar input{max-width:none}}
/* Keep small avatar icons visible in compact admin and club rows. */
#athleteQueueList .admin-athlete-profile img,#athleteQueueList .athlete-avatar-fallback,.admin-athlete-profile img,.admin-athlete-profile .athlete-avatar-fallback{display:grid!important;width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:50%!important;object-fit:cover!important;border:2px solid #1689e8!important;background:#13283f!important;place-items:center}
.admin-athlete-profile{gap:9px!important}

/* HPKS test: compact club logo in club workspace */
.hpks-club-logo{display:inline-block;width:54px;height:54px;object-fit:contain;vertical-align:middle;margin-right:12px;border-radius:10px;background:#fff;padding:4px;border:1px solid rgba(120,150,180,.35)}
@media(max-width:600px){.hpks-club-logo{width:42px;height:42px;margin-right:8px}.form-field input[type=file]{max-width:100%;font-size:14px}}

/* HPKS TEST FIX 2026-10-18: compact, non-overlapping mobile navigation */
@media (max-width: 850px) {
  .topbar {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand actions" "language language" "nav nav" !important;
    align-items: center !important;
    gap: 10px 12px !important;
    padding: 12px 4vw 10px !important;
    overflow: visible !important;
    position: relative;
    z-index: 20;
  }
  .topbar > .brand { grid-area: brand; min-width: 0; }
  .topbar > .header-actions { grid-area: actions; justify-self: end; }
  .topbar > .language-switch { grid-area: language; justify-self: start; margin: 0 !important; }
  .topbar > nav.sd-nav {
    grid-area: nav;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    white-space: nowrap !important;
    padding: 6px 0 8px !important;
    border-top: 1px solid #24466b;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .topbar nav.sd-nav > a,
  .topbar nav.sd-nav .nav-dropdown-summary {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  .topbar nav.sd-nav > .nav-dropdown { position: relative !important; flex: 0 0 auto !important; }
  .topbar nav.sd-nav .nav-dropdown-menu {
    position: fixed !important;
    top: auto !important;
    left: 4vw !important;
    right: auto !important;
    bottom: auto !important;
    width: min(340px, 88vw) !important;
    max-width: 88vw !important;
    max-height: 60vh !important;
    overflow: auto !important;
    z-index: 9999 !important;
    white-space: normal !important;
  }
  .topbar nav.sd-nav .nav-dropdown-menu a { white-space: normal !important; }
}
@media (max-width: 430px) {
  .topbar > .brand b { font-size: 9px !important; }
  .topbar > .brand small { font-size: 8px !important; }
  .topbar > .brand-mark { width: 40px !important; height: 40px !important; }
  .topbar > .header-actions .btn { padding: 9px 10px !important; font-size: 10px !important; }
  .topbar > .language-switch select { max-width: 160px !important; }
}

/* HPKS test build: compact public sections with accessible expandable headings. */
.content-section.folded { padding-top: 20px; padding-bottom: 20px; }
.content-section.folded > :not(.section-head) { display: none !important; }
.content-section > .section-head { cursor: pointer; }
.content-section > .section-head:focus-visible { outline: 2px solid #55baff; outline-offset: 4px; border-radius: 8px; }
.content-section > .section-head h2::after { content: "  ▾"; font-size: .7em; opacity: .7; }
.content-section.folded > .section-head h2::after { content: "  ▸"; }
.athlete-thumb img, .athlete-thumb .athlete-avatar-fallback { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }


/* R19 compact homepage: sections available from menu, not displayed together on home. */
.menu-page-section[hidden] { display: none !important; }
.menu-page-section { scroll-margin-top: 90px; }


/* Sve prijave: category overview and approved-athlete list */
.nav-all-entries{font-weight:800!important;color:#fff!important;background:rgba(76,119,190,.22);border:1px solid rgba(142,180,255,.32);border-radius:8px;padding:8px 12px!important}
.all-entries-summary{overflow-x:auto;border:1px solid var(--line,#29415f);border-radius:12px;background:rgba(17,43,69,.72)}
.all-entries-table{width:100%;border-collapse:collapse;min-width:620px}
.all-entries-table th,.all-entries-table td{padding:12px 14px;text-align:left;border-bottom:1px solid rgba(142,180,255,.13)}
.all-entries-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#66c8ff;background:rgba(8,19,35,.6)}
.all-entries-table tr:last-child td{border-bottom:0}
.all-entries-table button{color:#eaf3ff;background:none;border:0;text-decoration:underline;text-decoration-color:#66c8ff;text-underline-offset:3px;font:inherit;font-weight:700;text-align:left;cursor:pointer;padding:2px 0}
.all-entries-table button:hover{color:#66c8ff}
.all-entries-detail{margin-top:18px}
.all-entries-detail:empty{display:none}
.all-entries-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.all-entries-athletes{overflow-x:auto;border:1px solid var(--line,#29415f);border-radius:12px;background:rgba(17,43,69,.72)}
.all-entries-athletes table{width:100%;border-collapse:collapse;min-width:640px}
.all-entries-athletes th,.all-entries-athletes td{padding:10px 13px;text-align:left;border-bottom:1px solid rgba(142,180,255,.13)}
.all-entries-athletes th{color:#66c8ff;background:rgba(8,19,35,.6);font-size:.78rem;text-transform:uppercase}
.all-entries-athletes tr:last-child td{border-bottom:0}
.all-entry-athlete{display:flex;align-items:center;gap:10px;min-width:200px}
.all-entry-athlete img,.all-entry-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#294967;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;color:#eaf3ff}
.all-entry-athlete button{border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:left;padding:0}
.all-entry-athlete button:hover{color:#66c8ff}
@media(max-width:700px){.all-entries-table th,.all-entries-table td,.all-entries-athletes th,.all-entries-athletes td{padding:9px 8px}.all-entries-detail-head h3{font-size:1.05rem}}

/* R29: kompaktniji javni pregled video poveznica — manje praznog prostora */
.video-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.video-card{border-radius:14px}
.video-thumb{height:82px;font-size:21px}
.video-body{padding:13px 14px}
.video-body h3{font-size:14px;margin-bottom:5px}
.video-body p{font-size:10px;line-height:1.45}
.video-body p[style*="margin-top"]{margin-top:8px!important}
.video-body .btn{padding:8px 11px;font-size:11px}
@media(max-width:1050px){.video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.video-grid{grid-template-columns:1fr}.video-thumb{height:76px}}

/* R30: athlete profile photo upload control */
.hpks-profile-photo-area{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 auto;min-width:96px}
.hpks-profile-photo-tools{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.hpks-photo-upload-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #1689e8;border-radius:50%;background:#092540;color:#fff;font-size:17px;cursor:pointer;box-shadow:0 2px 8px #0004}
.hpks-photo-upload-button:hover,.hpks-photo-upload-button:focus{background:#12456b;outline:2px solid #7bc1ff;outline-offset:2px}
.hpks-profile-photo-tools small{font-size:10px;color:#b8cce4}
.hpks-profile-photo-tools .fine-print{font-size:11px;max-width:160px;margin:0}
.hpks-profile-photo-fallback{display:flex;align-items:center;justify-content:center}


/* R33: athlete portraits shown consistently across public and authenticated league views */
.hpks-athlete-avatar{display:inline-flex;position:relative;overflow:hidden;align-items:center;justify-content:center;flex:0 0 var(--hpks-avatar-size,44px);width:var(--hpks-avatar-size,44px);height:var(--hpks-avatar-size,44px);border-radius:50%;background:#13283f;border:1px solid rgba(102,200,255,.45);vertical-align:middle}
.hpks-athlete-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.hpks-athlete-avatar-fallback{width:100%;height:100%;align-items:center;justify-content:center;font-weight:800;font-size:calc(var(--hpks-avatar-size,44px) * .32);color:#c8e4ff;background:#203b58}
.hpks-public-athlete-card{display:flex;align-items:center;gap:14px}
.hpks-public-athlete-card-photo{flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.hpks-public-athlete-card-body{min-width:0;flex:1}
.hpks-public-athlete-card-body h3{margin:6px 0;overflow-wrap:anywhere}
.hpks-draw-athlete-head{display:flex;align-items:center;gap:10px;margin-top:8px}
.hpks-draw-athlete-head h3{margin:0;min-width:0}
.hpks-video-thumb{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#13283f}
.hpks-video-thumb .hpks-athlete-avatar{--hpks-avatar-size:100%;width:100%;height:100%;border-radius:0;border:0;flex-basis:100%}
.hpks-video-thumb .hpks-athlete-avatar-fallback{border-radius:0;font-size:30px}
.hpks-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#071426d9;color:#fff;border:1px solid #ffffff99;pointer-events:none}
.hpks-admin-payment-athlete{display:flex;align-items:center;gap:8px;min-width:190px}
.hpks-judge-athlete{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.hpks-judge-athlete b{display:block}
@media(max-width:560px){.hpks-public-athlete-card{gap:10px}.hpks-public-athlete-card-body h3{font-size:15px}.hpks-admin-payment-athlete{min-width:150px}.hpks-judge-athlete{align-items:flex-start}}
