/* Panel admin: side panel + sub-tab */
.adm { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; transition: grid-template-columns .6s var(--ease); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-right: 1px solid var(--card-line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; z-index: 50; }
.side .brand { display: flex; gap: 10px; align-items: center; padding: 4px 10px 18px; text-decoration: none; color: var(--text); }
.side .brand-mark, .login-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; padding: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.12); flex: none; }
.side .brand-mark img, .login-mark img { width: 100%; height: 100%; object-fit: contain; }
.login-mark { width: 48px; height: 48px; border-radius: 14px; padding: 6px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14px; transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--spring); position: relative; }
.side a:hover { background: var(--surface-2); color: var(--text); transform: translateX(2px); }
.side a.active { background: var(--brand-600); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(65,66,123,.28); }
.side a .ic { width: 22px; text-align: center; }
.side a .n { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.side .sep { margin: 14px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.main { min-width: 0; }
.side-ov { display: none; }
.side a.brand { padding: 4px 10px 18px; font-weight: 400; }
.side a.brand:hover { background: none; transform: none; }
.side a.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.side .brand-mark { transition: transform .5s var(--spring); }
.mainbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 clamp(16px, 3vw, 32px); background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--card-line); transition: padding .5s var(--ease); }
.mainbar h1 { font-size: 19px; margin: 0; }
.mainbar .burger { display: none; }
.content { padding: clamp(18px, 2.6vw, 32px) clamp(16px, 3vw, 32px) 64px; max-width: 1280px; transition: padding .5s var(--ease); }
.page-tabs { margin-bottom: 20px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.stat { padding: clamp(18px, 2.4vw, 26px); }
.toolbar .input, .toolbar .btn, .toolbar select { min-height: 44px; }
.toolbar .input { padding-block: 10px; }
.stat .l { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.stat .v { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .s { font-size: 12px; color: var(--text-3); }
.stat.link { cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.stat.link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.chart .b { flex: 1; background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; transition: height 1s var(--ease); }
.chart .b span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-3); }
.chart-x { display: flex; gap: 4px; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.chart-x span { flex: 1; text-align: center; overflow: hidden; }
.dropzone { border: 2px dashed var(--line); border-radius: 22px; padding: 40px 24px; text-align: center; transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--spring); cursor: pointer; background: var(--surface); }
.dropzone:hover { border-color: var(--brand-500); }
.dropzone.over { border-color: var(--brand-500); background: var(--brand-50); transform: scale(1.01); }
.switch { position: relative; width: 51px; height: 31px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .4s var(--spring); box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.1); }
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::after { transform: translateX(20px); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; background: radial-gradient(700px 420px at 92% 110%, rgba(236,50,55,.45), transparent 65%), linear-gradient(160deg, #2a2b5c, #41427b); }
.login-wrap::before { content: ''; position: absolute; width: 1400px; height: 1400px; left: -700px; top: -700px; background: repeating-conic-gradient(rgba(255,229,28,.14) 0deg 5deg, transparent 5deg 22.5deg); mask-image: radial-gradient(circle, #000, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000, transparent 62%); animation: rays 90s linear infinite; }
.login-wrap > * { position: relative; }
@keyframes rays { to { transform: rotate(360deg); } }
.cand-row { display: flex; gap: 12px; align-items: center; }
.pill-status { font-size: 11.5px; }
.qr-poster { width: 100%; max-width: 520px; margin: 0 auto; background: radial-gradient(400px 260px at 100% 100%, rgba(236,50,55,.5), transparent 70%), linear-gradient(160deg, #2a2b5c, #41427b); color: #fff; border-radius: 24px; padding: 36px 28px; text-align: center; }
.qr-poster .qr { background: #fff; border-radius: 18px; padding: 18px; display: inline-block; margin: 18px 0; }
.qr-poster h2 { font-size: 30px; margin: 0; }
@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .6s var(--ease); box-shadow: var(--shadow-lg); background: var(--surface); }
  .side.open { transform: none; }
  .side-ov { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
  .side-ov.open { opacity: 1; pointer-events: auto; }
  .mainbar .burger { display: grid; }
}
@media print { .side, .mainbar, .page-tabs, .toolbar { display: none !important; } .adm { display: block; } }

/* Gaya korporat */
.side { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-right: 1px solid var(--line); }
.side .brand-mark, .login-mark { box-shadow: none; padding: 0; background: none; border-radius: 0; }
.side a { border-radius: 8px; transition: background-color .2s, color .2s; }
.side a:hover { transform: none; }
.side a.active { background: var(--brand-50); color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand-ink); }
:root[data-theme="dark"] .side a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--text); }
.side a.brand:hover .brand-mark { transform: none; }
.mainbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
.stat.link:hover { transform: none; box-shadow: var(--shadow-lg); }
.chart .b { background: var(--ypr-navy); border-radius: 3px 3px 0 0; }
.dropzone { border-radius: 12px; }
.dropzone.over { transform: none; }
.login-wrap { background: var(--bg); }
.login-wrap::before { display: none; }
.login-wrap .card { box-shadow: var(--shadow-lg); }
.qr-poster { background: var(--ypr-navy); border-radius: 12px; }
.switch input:checked + span { background: var(--ypr-navy); }
