/* Halaman pelajar & portal calon */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--card-line); transition: background-color .5s var(--ease); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-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); transition: transform .5s var(--spring); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: 11.5px; color: var(--text-3); }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav { animation: fadeIn .5s var(--ease); }
.topnav a { padding: 7px 13px; border-radius: 980px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14px; transition: background-color .3s var(--ease), color .3s var(--ease); position: relative; }
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a.active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.topnav a.cta { background: var(--red); color: #fff; font-weight: 600; margin-left: 4px; }
.topnav a.cta:hover { filter: brightness(1.06); }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 860px) { .topnav { display: none; } #top-actions { margin-left: auto; } .brand-text small { display: none; } }

.bottomnav { display: none; }
@media (max-width: 860px) {
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--card-line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); animation: slideUp .6s var(--ease); }
  @keyframes slideUp { from { transform: translateY(100%); } }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 10.5px; font-weight: 600; color: var(--text-3); text-decoration: none; border: 0; background: none; border-radius: 12px; transition: color .3s var(--ease); width: 100%; }
  .bottomnav .ico { font-size: 20px; line-height: 1; transition: transform .45s var(--spring); }
  .bottomnav .active { color: var(--brand-600); }
  .bottomnav .active .ico { transform: translateY(-2px) scale(1.1); }
  .bottomnav .vote { color: #fff; }
  .bottomnav .vote .ico { width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 8px 20px rgba(236,50,55,.4), 0 0 0 4px var(--bg); font-size: 22px; }
  .bottomnav .vote span:last-child { color: var(--red); }
  .bottomnav .menu-wrap { width: 100%; }
  .bottomnav .menu { bottom: calc(100% + 10px); top: auto; right: 4px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

.footer { padding: 32px 0 36px; border-top: 1px solid var(--line); margin-top: 48px; font-size: 13px; color: var(--text-2); }
.footer a { color: var(--text-2); text-decoration: none; font-weight: 500; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer .foot-logo { height: 40px; width: auto; }
.footer .foot-logo.dark { display: none; }
:root[data-theme="dark"] .footer .foot-logo.light { display: none; }
:root[data-theme="dark"] .footer .foot-logo.dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer .foot-logo.light { display: none; } :root:not([data-theme="light"]) .footer .foot-logo.dark { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 420px at 92% 110%, rgba(236,50,55,.45), transparent 65%), linear-gradient(160deg, #2a2b5c 0%, #41427b 55%, #34356a 100%); }
.hero::before { content: ''; position: absolute; width: 1400px; height: 1400px; left: -700px; top: -620px; background: repeating-conic-gradient(from 0deg, rgba(255,229,28,.16) 0deg 5deg, transparent 5deg 22.5deg); mask-image: radial-gradient(circle, #000 0%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%); animation: rays 90s linear infinite; pointer-events: none; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--ypr-yellow) 0 33%, var(--ypr-red) 33% 66%, #fff 66%); opacity: .9; }
@keyframes rays { to { transform: rotate(360deg); } }
.hero-in { position: relative; z-index: 1; padding-block: clamp(36px, 6vw, 72px) clamp(52px, 7vw, 88px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; transition: padding .6s var(--ease), gap .6s var(--ease), grid-template-columns .6s var(--ease); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 5.6vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 14px; transition: font-size .4s var(--ease); }
.hero h1 .hl { color: var(--ypr-yellow); }
.hero .sub { opacity: .82; font-size: clamp(15px, 1.5vw, 18px); max-width: 560px; line-height: 1.5; }
.phase-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: 13px; margin-bottom: 18px; }
.phase-pill .dot { background: var(--ypr-yellow); box-shadow: 0 0 10px var(--ypr-yellow); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }

.countdown { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; padding: clamp(18px, 2.4vw, 26px); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.countdown .lbl { font-weight: 600; opacity: .85; font-size: 13.5px; margin-bottom: 14px; }
.countdown .units { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 12px); }
.countdown .u { background: rgba(0,0,0,.2); border-radius: 18px; padding: 14px 6px; text-align: center; }
.countdown .u b { display: block; font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown .u small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.countdown .when { margin-top: 12px; font-size: 13px; opacity: .8; }
.flip { animation: flip .4s var(--ease); }
@keyframes flip { from { transform: translateY(-30%); opacity: .3; } }

/* Bar penglibatan */
.turnout { margin-top: -32px; position: relative; z-index: 2; }
.turnout .card { padding: clamp(18px, 2.4vw, 26px); }
.turnout .big { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.turnout .goal { position: relative; }
.turnout .goal .marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; font-weight: 700; }

/* Garis masa */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 4px 0 18px; }
.tl-item .node { position: absolute; left: -28px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-size: 12px; font-weight: 800; color: var(--text-3); }
.tl-item.done .node { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-item.active .node { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(236,50,55,.18); animation: ring 2s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px rgba(236,50,55,.05); } }
.tl-item .box { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--card-line); background: var(--surface); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tl-item.active .box { border-color: var(--red); box-shadow: 0 8px 24px rgba(236,50,55,.12); }
.tl-item .box:hover { transform: translateX(4px); }
.tl-item h4 { margin: 0 0 2px; font-size: 15px; }
.tl-item .dates { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* Makluman */
.ann { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--card-line); background: var(--surface); box-shadow: var(--shadow); }
.ann.pinned { border-color: var(--accent); background: linear-gradient(0deg, var(--surface) 40%, var(--accent-soft)); }
.ann h4 { margin: 0 0 4px; font-size: 15px; }
.ann p { margin: 0; color: var(--text-2); font-size: 14px; white-space: pre-line; }

/* Kad calon */
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.cand-card { position: relative; overflow: hidden; cursor: pointer; transition: transform .6s var(--ease), box-shadow .6s var(--ease); text-align: left; padding: 0; border: 1px solid var(--card-line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.cand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cand-card .photo { aspect-ratio: 4 / 4.2; background: var(--surface-2); position: relative; overflow: hidden; }
.cand-card .photo img, .cand-card .photo .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cand-card:hover .photo img { transform: scale(1.06); }
.cand-card .photo .ph { display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--brand-500); background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); }
.cand-card .cand-no { position: absolute; left: 14px; top: 14px; }
.cand-card .body { padding: 16px 18px 18px; }
.cand-card h3 { font-size: 17px; margin: 0 0 2px; }
.cand-card .tag { color: var(--text-2); font-size: 13.5px; margin: 6px 0 10px; }
.cand-card ul { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; color: var(--text-2); }

.profile-head { position: relative; }
.profile-head .cover { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #2a2b5c, #41427b); overflow: hidden; }
.profile-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head .cand-no { position: absolute; left: 20px; bottom: -30px; border: 4px solid var(--surface); }
.profile-body { padding: 48px 24px 32px; }
.qa { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.qa .q { font-weight: 700; }
.qa .a { margin-top: 6px; color: var(--text-2); white-space: pre-line; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.video-card { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.video-card .thumb { aspect-ratio: 9 / 14; border-radius: 20px; overflow: hidden; background: #000; position: relative; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .92; }
.video-card:hover .thumb img { transform: scale(1.05); opacity: 1; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 20px; color: #000; transition: transform .25s var(--ease); }
.video-card:hover .play span { transform: scale(1.12); }
.video-card .meta { padding: 10px 4px 0; font-size: 13px; font-weight: 600; }
.tiktok-frame { width: 100%; max-width: 340px; aspect-ratio: 9 / 16.5; border: 0; border-radius: 14px; background: #000; display: block; margin: 0 auto; }

/* Undi */
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper .s { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); }
.stepper .s i { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 6px; position: relative; overflow: hidden; }
.stepper .s i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-600), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.stepper .s.on { color: var(--text); }
.stepper .s.on i::after { transform: none; }
.vote-wrap { max-width: 760px; margin: 0 auto; }
.ballot { display: grid; gap: 12px; }
.ballot-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 2px solid var(--card-line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: border-color .3s var(--ease), transform .45s var(--spring), box-shadow .3s var(--ease), background-color .3s; text-align: left; width: 100%; color: var(--text); }
.ballot-item:hover { border-color: var(--brand-500); }
.ballot-item.selected { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 4px var(--ring); transform: scale(1.015); }
.ballot-item img, .ballot-item .avatar-ph { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.ballot-item .info { flex: 1; min-width: 0; }
.ballot-item .info b { font-size: 16px; display: block; }
.ballot-item .tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .25s var(--ease); flex: none; }
.ballot-item.selected .tick { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.1); }
.confirm-box { text-align: center; padding: 32px 24px; border-radius: 24px; background: var(--brand-50); border: 2px dashed var(--brand-500); }
.confirm-box img, .confirm-box .avatar-ph { width: 110px; height: 110px; border-radius: 50%; margin: 14px auto; object-fit: cover; font-size: 36px; }
.confirm-box .who { font-size: 22px; font-weight: 800; }
.success { text-align: center; padding: 30px 10px; }
.success .check-anim { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 48px; animation: pop .6s var(--ease); box-shadow: 0 0 0 12px var(--ok-soft); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } }

/* Liga semester & suapan */
.league-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.league-row .pos { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.league-row:nth-child(1) .pos { background: var(--ypr-yellow); color: #1d1e45; }
.league-row:nth-child(2) .pos { background: #e5e7eb; color: #374151; }
.league-row:nth-child(3) .pos { background: #fed7aa; color: #9a3412; }
.feed-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; animation: viewIn .5s var(--ease); }
.feed-item .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }

/* Cara mengundi */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 20px); counter-reset: s; transition: grid-template-columns .6s var(--ease); }
@media (max-width: 860px) { .howto { grid-template-columns: repeat(2, 1fr); } }
.howto .st { padding: clamp(18px, 2.2vw, 24px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--card-line); box-shadow: var(--shadow); position: relative; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.howto .st:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.howto .st .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-600); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.howto .st:nth-child(2) .n { background: var(--red); } .howto .st:nth-child(3) .n { background: var(--ypr-yellow); color: #1d1e45; } .howto .st:nth-child(4) .n { background: var(--ok); }
.howto .st .em { font-size: 28px; position: absolute; right: 14px; top: 14px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
details.faq { border: 1px solid var(--card-line); border-radius: 16px; background: var(--surface); padding: 0 18px; box-shadow: var(--shadow); transition: background-color .3s; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--red); transition: transform .5s var(--spring); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--text-2); padding-bottom: 4px; }
details.faq[open] > :not(summary) { animation: viewIn .5s var(--ease); }

/* Keputusan */
.result-row { display: grid; grid-template-columns: 44px 52px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--card-line); background: var(--surface); box-shadow: var(--shadow); }
.result-row.elected { border-color: var(--ok); background: linear-gradient(90deg, var(--ok-soft), var(--surface) 60%); }
.result-row .rank { font-weight: 800; font-size: 18px; color: var(--text-3); text-align: center; }
.result-row .votes { text-align: right; }
.result-row .votes b { font-size: 22px; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.result-row .bar { margin-top: 8px; }
.show-mode { position: fixed; inset: 0; z-index: 900; overflow: auto; background: radial-gradient(800px 500px at 90% 110%, rgba(236,50,55,.4), transparent 65%), linear-gradient(160deg, #1d1e45, #41427b); color: #fff; padding: clamp(24px, 4vw, 48px) 4vw; }
.show-mode .result-row { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.show-mode .result-row.elected { background: linear-gradient(90deg, rgba(255,229,28,.28), rgba(255,255,255,.06)); border-color: var(--ypr-yellow); }
.show-mode .muted, .show-mode .tiny { color: rgba(255,255,255,.75); }
.show-mode .progress { background: rgba(255,255,255,.15); }

/* Barisan MPP */
.ydp-card { display: grid; grid-template-columns: 280px 1fr; gap: 0; overflow: hidden; border-radius: 28px; background: radial-gradient(500px 300px at 100% 100%, rgba(236,50,55,.4), transparent 70%), linear-gradient(160deg, #2a2b5c, #41427b); color: #fff; box-shadow: var(--shadow-lg); transition: grid-template-columns .6s var(--ease); }
@media (max-width: 700px) { .ydp-card { grid-template-columns: 1fr; } }
.ydp-card .ph { aspect-ratio: 1; background: rgba(255,255,255,.1); }
.ydp-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.ydp-card .in { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.ydp-card .crown { display: inline-flex; gap: 6px; align-items: center; background: var(--ypr-yellow); color: #1d1e45; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 12.5px; width: max-content; margin-bottom: 10px; }
.ydp-card h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 4px; }
.ydp-card .social a { background: rgba(255,255,255,.12); color: #fff; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.member { text-align: center; padding: 24px 18px; }
.member img, .member .avatar-ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; font-size: 30px; }
.member .pos { color: var(--red); font-weight: 600; font-size: 13px; }
.member .social { justify-content: center; margin-top: 10px; }

.login-card { max-width: 440px; margin: 0 auto; }
.portal-head { display: flex; gap: 16px; align-items: center; }
.portal-head img, .portal-head .avatar-ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 24px; }
.manifesto-list .item { display: flex; gap: 8px; margin-bottom: 8px; }
.manifesto-list .item .input { flex: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .01em; opacity: .9; margin-bottom: 14px; }
.hero .eyebrow img { width: 28px; height: 28px; padding: 3px; border-radius: 8px; background: #fff; }
.cand-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; font: inherit; }
.cand-card .body { flex: 1; display: flex; flex-direction: column; }
.cand-card .body .social { margin-top: auto; }

/* ---------- Hero ala Apple: berpusat, tipografi besar ---------- */
.hero-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-copy { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(40px, 7.5vw, 80px); letter-spacing: -.045em; line-height: 1.02; background: linear-gradient(180deg, #fff 30%, #c9cae8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .hl { background: linear-gradient(180deg, #fff46b, var(--ypr-yellow) 60%, #f5b800); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin: 4px auto 0; font-size: clamp(17px, 1.9vw, 21px); opacity: .78; }
.hero .actions { justify-content: center; align-items: center; gap: 24px; }
.hero .link-more { color: #fff; font-size: 17px; }
.hero .link-more.link-btn, .hero .cal-slot .link-more { color: #fff; }
.hero .phase-pill { margin: 26px 0 0; }
.hero .countdown { width: min(640px, 100%); margin-top: 8px; }
.countdown .lbl { text-align: center; }
.countdown .when { text-align: center; }
/* Butang garis bawah (kebab dalam hero) */
.link-btn { font-size: 17px; }

/* Ikon dalam kad cara mengundi */
.howto .st .em { font-size: 26px; color: var(--text-3); animation: none; }
.howto .st .em .i { stroke-width: 1.4; }
/* Bar tab bawah gaya iOS */
@media (max-width: 860px) {
  .bottomnav .ico .i { width: 25px; height: 25px; stroke-width: 1.6; }
  .bottomnav .vote .ico .i { width: 24px; height: 24px; stroke-width: 1.9; }
}
.topbar .kebab, .topbar .btn-icon { border: 0; }

/* =========================================================
   Gaya korporat: rata, minimalis, profesional
   ========================================================= */
.topbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
.topbar-in { height: 64px; }
.brand-mark { box-shadow: none; padding: 0; background: none; width: 36px; height: 36px; border-radius: 0; }
.brand:hover .brand-mark { transform: none; }
.topnav a { border-radius: 6px; font-weight: 500; color: var(--text-2); }
.topnav a.active { background: none; color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand-ink); border-radius: 0; }
:root[data-theme="dark"] .topnav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.topnav a.cta { border-radius: 8px; background: var(--ypr-red); margin-left: 10px; }
.topbar .kebab, .topbar .btn-icon { border: 1px solid var(--line); border-radius: 8px; }

/* Hero korporat: biru tua rata, susun kiri */
.hero { background: var(--ypr-navy); }
.hero::before { display: none; }
.hero::after { height: 4px; background: linear-gradient(90deg, var(--ypr-yellow) 0 50%, var(--ypr-red) 50%); opacity: 1; }
.hero-in { grid-template-columns: 1.25fr 1fr; justify-items: stretch; text-align: left; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } }
.hero-copy { align-items: flex-start; max-width: 640px; }
.hero .eyebrow { justify-content: flex-start; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 600; }
.hero .eyebrow img { display: none; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.025em; line-height: 1.08; background: none; color: #fff; -webkit-background-clip: border-box; background-clip: border-box; }
.hero h1 .hl { background: none; color: var(--ypr-yellow); -webkit-background-clip: border-box; background-clip: border-box; }
.hero .sub { margin: 4px 0 0; font-size: clamp(15px, 1.5vw, 17px); opacity: .8; }
.hero .actions { justify-content: flex-start; gap: 20px; margin-top: 28px; }
.hero .phase-pill { margin: 24px 0 0; background: rgba(255,255,255,.08); backdrop-filter: none; border-radius: 6px; border-color: rgba(255,255,255,.16); }
.hero .phase-pill .dot { box-shadow: none; }
.btn-light { border-radius: 8px; }
.hero .countdown { width: 100%; margin-top: 0; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.countdown .lbl { text-align: left; color: var(--text-2); opacity: 1; font-size: 13px; }
.countdown .lbl b { color: var(--text); }
.countdown .u { background: var(--surface-2); border-radius: 8px; }
.countdown .u b { color: var(--brand-ink); font-weight: 700; letter-spacing: -.02em; }
:root[data-theme="dark"] .countdown .u b { color: var(--text); }
.countdown .u small { color: var(--text-3); opacity: 1; }
.countdown .when { text-align: left; color: var(--text-2); opacity: 1; }
.turnout .big { font-weight: 700; }

/* Kad dan senarai */
.cand-card { border-radius: 12px; }
.cand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cand-card:hover .photo img { transform: none; }
.cand-card .photo .ph { background: var(--surface-2); color: var(--text-3); font-weight: 600; }
.tl-item .box { border-radius: 10px; box-shadow: none; }
.tl-item .box:hover { transform: none; }
.tl-item.active .node { background: var(--ypr-navy); border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-100); animation: none; }
.tl-item.active .box { border-color: var(--brand-ink); box-shadow: none; }
.ann { border-radius: 10px; box-shadow: none; }
.ann.pinned { background: var(--surface); border-color: var(--line); border-left: 3px solid var(--ypr-navy); }
.howto .st { border-radius: 12px; }
.howto .st:hover { transform: none; box-shadow: var(--shadow); }
.howto .st .n, .howto .st:nth-child(n) .n { background: var(--surface-2); color: var(--brand-ink); border-radius: 8px; font-weight: 700; }
.howto .st .em { color: var(--text-3); }
details.faq { border-radius: 10px; box-shadow: none; }
details.faq summary::after { color: var(--text-3); }
.ballot-item { border-radius: 12px; border-width: 1px; box-shadow: none; }
.ballot-item.selected { transform: none; border-color: var(--brand-ink); box-shadow: 0 0 0 1px var(--ypr-navy); }
.ballot-item img, .ballot-item .avatar-ph { border-radius: 8px; }
.confirm-box { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.confirm-box img, .confirm-box .avatar-ph { border-radius: 12px; }
.success .check-anim { box-shadow: none; }
.result-row { border-radius: 10px; box-shadow: none; }
.result-row.elected { background: var(--surface); border-color: var(--brand-ink); border-left: 3px solid var(--ypr-navy); }
.show-mode { background: var(--ypr-navy); }
.show-mode .result-row.elected { background: rgba(255,255,255,.08); border-color: var(--ypr-yellow); }
.ydp-card { background: var(--ypr-navy); border-radius: 12px; }
.ydp-card .crown { border-radius: 6px; }
.member .pos { color: var(--brand-ink); }
:root[data-theme="dark"] .member .pos { color: var(--text-2); }
.league-row .pos { border-radius: 6px; }
.league-row:nth-child(1) .pos { background: var(--ypr-navy); color: #fff; }
.portal-head img, .portal-head .avatar-ph, .ballot-item img { border-radius: 8px; }
.video-card .thumb { border-radius: 10px; }

/* Bar tab bawah telefon */
@media (max-width: 860px) {
  .bottomnav { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--line); animation: none; }
  .bottomnav .active { color: var(--brand-ink); }
  :root[data-theme="dark"] .bottomnav .active { color: var(--text); }
  .bottomnav .vote { color: var(--ypr-red); }
  .bottomnav .vote .ico { width: auto; height: auto; margin-top: 0; border-radius: 0; background: none; box-shadow: none; font-size: 20px; color: var(--ypr-red); }
  .bottomnav .vote .ico .i { width: 25px; height: 25px; }
  .bottomnav .active .ico { transform: none; }
}
.footer { background: var(--surface); margin-top: 56px; }
.brand-logo { display: flex; align-items: center; height: 34px; }
.brand-logo img { height: 34px; width: auto; }
.brand-logo .lg-dark { display: none; }
:root[data-theme="dark"] .brand-logo .lg-light { display: none; }
:root[data-theme="dark"] .brand-logo .lg-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo .lg-light { display: none; } :root:not([data-theme="light"]) .brand-logo .lg-dark { display: block; } }
.brand-sep { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }
@media (max-width: 860px) { .brand-logo img { height: 30px; } }
.section { padding-block: clamp(24px, 3.6vw, 44px); }
.howto .st .em { display: none; }

/* =========================================================
   Sistem undi profesional: penjejak fasa, jalur kepercayaan,
   cincin penglibatan, kertas undi rasmi, resit undi
   ========================================================= */
.hero-in { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 3.6vw, 40px); }

/* Penjejak fasa (dalam hero) */
.ptrack { list-style: none; margin: 0; padding: 0 0 clamp(56px, 6vw, 76px); display: flex; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.ptrack::-webkit-scrollbar { display: none; }
.ptrack li { flex: 1 0 118px; position: relative; padding-right: 12px; color: rgba(255,255,255,.62); }
.ptrack li::before { content: ''; position: absolute; top: 13px; left: 30px; right: 0; height: 2px; background: rgba(255,255,255,.18); }
.ptrack li:last-child::before { display: none; }
.ptrack li.done::before { background: var(--ypr-yellow); }
.ptrack .pn { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid rgba(255,255,255,.3); background: var(--ypr-navy); color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.ptrack .pn .i { width: 15px; height: 15px; stroke-width: 2.6; }
.ptrack li.done .pn { background: var(--ypr-yellow); border-color: var(--ypr-yellow); color: var(--ypr-navy); }
.ptrack li.active { color: #fff; }
.ptrack li.active .pn { background: #fff; border-color: #fff; color: var(--ypr-navy); box-shadow: 0 0 0 5px rgba(255,229,28,.35); animation: ptPulse 2.4s ease-in-out infinite; }
@keyframes ptPulse { 50% { box-shadow: 0 0 0 9px rgba(255,229,28,.08); } }
.ptrack .pt { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ptrack .pd { display: block; margin-top: 2px; font-size: 11.5px; opacity: .75; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ptrack li.active .pn { animation: none; } }

/* Jalur kepercayaan */
.trust { position: relative; z-index: 2; margin-top: -34px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(29,30,69,.08); }
.trust .tr { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; }
.trust .tr + .tr { border-left: 1px solid var(--line); }
.trust .tr > .i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: var(--brand-50); color: var(--brand-ink); stroke-width: 1.8; }
.trust b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.trust span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } .trust .tr:nth-child(3) { border-left: 0; } .trust .tr:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .trust .tr { padding: 14px; gap: 10px; } .trust .tr > .i { width: 30px; height: 30px; padding: 6px; } .trust span { display: none; } }

/* Cincin penglibatan */
.turnout { margin-top: 20px; }
.turnout-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3.4vw, 40px); align-items: center; padding: clamp(18px, 2.6vw, 28px); }
.ring { position: relative; width: clamp(120px, 15vw, 150px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--ypr-navy); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
:root[data-theme="dark"] .ring .fg { stroke: var(--brand-ink); }
.ring .rv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .rv b { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.ring .rv small { font-size: 11.5px; color: var(--text-3); }
.tstats .tk { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tgrid > div { padding-right: 14px; }
.tgrid > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.tgrid span { display: block; font-size: 12.5px; color: var(--text-2); }
.tgrid b { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); margin-top: 2px; }
.tgoal { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tgoal .progress { flex: 1; }
@media (max-width: 600px) {
  .turnout-card { grid-template-columns: 1fr; justify-items: center; }
  .tstats { width: 100%; }
  .tstats .tk { text-align: center; }
  .tgrid > div + div { padding-left: 10px; }
  .tgrid > div { padding-right: 6px; }
}

/* Langkah mengundi */
.stepper { display: block; margin-bottom: 20px; }
.stepper .st-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.stepper .st-top span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.stepper .st-top b { font-size: 15px; font-weight: 600; color: var(--text); }
.stepper .segs { display: flex; gap: 6px; }
.stepper .s { flex: 1; text-align: left; font-size: 12px; }
.stepper .s i { height: 4px; border-radius: 2px; }
.stepper .s i::after { background: var(--ypr-navy); }
:root[data-theme="dark"] .stepper .s i::after { background: var(--brand-ink); }
.stepper .s.cur { color: var(--brand-ink); font-weight: 600; }
@media (max-width: 600px) { .stepper .s span { display: none; } }

/* Kertas undi rasmi */
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(29,30,69,.06); }
.paper-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: relative; }
.paper-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--ypr-navy) 0 60%, var(--ypr-yellow) 60% 80%, var(--ypr-red) 80%); }
.paper-head .brand-logo, .paper-head .brand-logo img { height: 40px; }
.ph-t { border-left: 1px solid var(--line); padding-left: 16px; min-width: 0; }
.ph-t span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ypr-red); }
.ph-t b { display: block; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.25; margin-top: 2px; }
.ph-t small { display: block; font-size: 12px; color: var(--text-3); }
.paper-instr { padding: 14px 22px; background: var(--surface-2); font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.paper-instr b { color: var(--text); }
.paper .ballot { gap: 0; }
.paper .ballot-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 22px; gap: 16px; background: transparent; box-shadow: none; transition: background-color .2s var(--ease); }
.paper .ballot-item:last-child { border-bottom: 0; }
.paper .ballot-item:hover { background: var(--surface-2); }
.paper .ballot-item:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: -2px; }
.paper .ballot-item.selected { background: var(--brand-50); box-shadow: inset 4px 0 0 var(--ypr-navy); transform: none; }
.paper .ballot-item.static { cursor: default; }
.b-no { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--text); border-radius: 6px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--text); }
.ballot-item.selected .b-no { background: var(--ypr-navy); border-color: var(--ypr-navy); color: #fff; }
.paper .ballot-item img, .paper .ballot-item .avatar-ph { width: 52px; height: 52px; border-radius: 6px; }
.b-box { flex: none; width: 44px; height: 44px; border: 2px solid var(--text-3); border-radius: 4px; display: grid; place-items: center; transition: border-color .2s; }
.b-box .x { width: 30px; height: 30px; fill: none; stroke: var(--ypr-red); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease); }
.ballot-item.selected .b-box { border-color: var(--text); }
.ballot-item.selected .b-box .x { stroke-dashoffset: 0; }
.paper-foot { display: flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--line); background: var(--surface-2); }
.paper-foot .i { width: 16px; height: 16px; flex: none; }
.vote-bar { position: sticky; bottom: 16px; z-index: 5; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(29,30,69,.12); }
@media (max-width: 860px) { .vote-bar { bottom: 82px; } }
@media (max-width: 520px) {
  .paper-head { padding: 14px 16px; gap: 12px; }
  .paper-head .brand-logo, .paper-head .brand-logo img { height: 30px; }
  .ph-t { padding-left: 12px; } .ph-t b { font-size: 15px; } .ph-t small { display: none; }
  .paper-instr, .paper-foot { padding-inline: 16px; }
  .paper .ballot-item { padding: 12px 16px; gap: 12px; }
  .b-no { width: 44px; height: 44px; font-size: 19px; }
  .paper .ballot-item img, .paper .ballot-item .avatar-ph { width: 44px; height: 44px; }
  .b-box { width: 38px; height: 38px; } .b-box .x { width: 26px; height: 26px; }
}
.rv-title { padding: 18px 22px 6px; }
.rv-title h3 { margin: 0 0 4px; }
.review .ballot { margin: 10px 22px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rv-list { list-style: none; margin: 0; padding: 8px 22px 20px; display: grid; gap: 10px; }
.rv-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.rv-list .i { flex: none; width: 18px; height: 18px; color: var(--brand-ink); margin-top: 1px; }

/* Resit undi */
.receipt { text-align: left; max-width: 480px; margin: 22px auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.r-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ypr-navy); color: #fff; border-bottom: 3px solid var(--ypr-yellow); }
.r-head img { width: 36px; height: 36px; border-radius: 6px; background: #fff; padding: 3px; }
.r-head b { display: block; font-size: 15px; }
.r-head small { display: block; font-size: 12px; opacity: .75; }
.r-head .badge { margin-left: auto; }
.r-code { padding: 18px 18px 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(24px, 6vw, 32px); font-weight: 700; letter-spacing: .06em; color: var(--text); text-align: center; }
.r-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 18px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.r-meta > div { padding: 10px 0; }
.r-meta > div + div { padding-left: 14px; border-left: 1px dashed var(--line); }
.r-meta span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.r-meta b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.receipt .tiny { padding: 4px 18px 0; margin: 0; line-height: 1.5; }
.r-act { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; }
.r-act .btn { flex: 1; justify-content: center; }
.r-act .i { width: 16px; height: 16px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.rcheck { text-align: center; }
.rc-ico { width: 56px; height: 56px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-ink); }
.rc-ico .i { width: 28px; height: 28px; stroke-width: 1.7; }
.rcheck p { max-width: 520px; margin-inline: auto; }
.rc-form { display: flex; gap: 10px; max-width: 440px; margin: 20px auto 0; }
.rc-form .input { flex: 1; text-transform: uppercase; font-size: 18px; text-align: center; }
.rc-out { display: flex; gap: 12px; align-items: center; text-align: left; max-width: 440px; margin: 16px auto 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.rc-out .i { flex: none; width: 26px; height: 26px; }
.rc-out b { display: block; }
.rc-out span { display: block; font-size: 13px; color: var(--text-2); }
.rc-out.ok { border-color: var(--ok); background: var(--ok-soft); }
.rc-out.ok .i { color: var(--ok); }
.rc-out.bad { border-color: var(--ypr-red); background: rgba(236,50,55,.06); }
.rc-out.bad .i { color: var(--ypr-red); }

/* Kerusi dalam keputusan */
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.seat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border: 1px solid var(--line); border-top: 3px solid var(--ypr-navy); border-radius: 10px; background: var(--surface); }
.seat img, .seat .avatar-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.seat .sn { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ypr-red); }
.seat b { font-size: 14px; line-height: 1.3; }
.show-mode .seat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); border-top-color: var(--ypr-yellow); color: #fff; }
#survey > b { display: block; }
#survey .stars { justify-content: center; }

/* =========================================================
   Kemas padding dan susun atur telefon
   ========================================================= */
.sheet-close { float: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin: 12px 12px -52px auto; }
input[name="sid"]::placeholder { text-transform: none; }
.feed-item { align-items: flex-start; }
.feed-item .ic { margin-top: 1px; }
.feed-item .tiny { flex: none; white-space: nowrap; padding-top: 4px; }
.tl-item .row-between { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.tl-item h4 { flex: 1; min-width: 0; }
.tl-item .badge { flex: none; }

@media (max-width: 600px) {
  .section { padding-block: 22px; }
  .section-title { margin-bottom: 12px; }
  .section-title select { width: 100% !important; }

  /* Hero */
  .hero-in { padding-block: 28px 20px; gap: 20px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .06em; margin-bottom: 10px; }
  .hero h1 { font-size: 34px; margin-bottom: 10px; }
  .hero .sub { font-size: 15px; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 22px; width: 100%; }
  .hero .actions > .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .hero .actions .link-more, .hero .cal-slot .link-more { font-size: 15px; }
  .hero .phase-pill { margin-top: 18px; }
  .hero .countdown { padding: 16px; }
  .countdown .units { gap: 8px; }
  .countdown .u { padding: 12px 4px; }
  .countdown .u b { font-size: 28px; }

  /* Penjejak fasa: lebar penuh skrin, tidak terpotong di tepi */
  .ptrack { margin-inline: -16px; padding: 0 16px 52px; scroll-padding-inline: 16px; }
  .ptrack li { flex-basis: 104px; }
  .ptrack .pt { font-size: 12.5px; }
  .trust { margin-top: -30px; }
  .trust .tr { padding: 14px 12px; align-items: center; }
  .trust b { font-size: 13px; line-height: 1.3; }

  /* Penglibatan */
  .turnout-card { padding: 18px 16px; gap: 14px; }
  .ring { width: 132px; }
  .ring .rv b { font-size: 24px; }
  .ring .rv small { font-size: 10.5px; }
  .tgrid span { font-size: 11.5px; line-height: 1.3; min-height: 30px; }
  .tgrid b { font-size: 24px; }
  .tgrid > div { padding-right: 8px; }
  .tgrid > div + div { padding-left: 10px; }

  /* Garis masa dan kad */
  .timeline { padding-left: 24px; }
  .tl-item .node { left: -24px; width: 22px; height: 22px; font-size: 11px; }
  .tl-item .box { padding: 12px 14px; }
  .tl-item .dates { font-size: 12.5px; }
  .ann { padding: 14px; }
  details.faq { padding: 0 16px; }
  details.faq summary { padding: 14px 0; font-size: 15px; gap: 12px; }
  details.faq p { padding-bottom: 10px; margin-top: 0; }
  .howto { gap: 10px; }
  .howto .st { padding: 14px; }

  /* Calon: dua lajur, kad padat */
  .cand-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cand-card .photo { aspect-ratio: 1; }
  .cand-card .photo .ph { font-size: 34px; }
  .cand-card .cand-no { left: 8px; top: 8px; min-width: 36px; height: 36px; font-size: 16px; border-radius: 6px; }
  .cand-card .body { padding: 10px 12px 12px; }
  .cand-card .body h3 { font-size: 15px; margin-bottom: 2px; }
  .cand-card .body .tag { font-size: 13px; margin-top: 4px; }
  .cand-card .body ul, .cand-card .body .social { display: none; }

  /* Profil calon */
  .profile-head .cover { aspect-ratio: 16 / 9; }
  .profile-head .cand-no { left: 16px; }
  .profile-body { padding: 44px 16px 28px; }

  /* Video */
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Keputusan */
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-4 > .card-pad { padding: 14px; }
  .grid-4 [data-cu] { font-size: 24px !important; }
  .seats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .seat { padding: 12px 8px; }
  .result-row { grid-template-columns: 26px 40px 1fr auto; gap: 10px; padding: 12px; }
  .result-row .rank { font-size: 14px; }
  .result-row .cand-no { min-width: 40px; height: 40px; font-size: 16px; }
  .result-row .votes b { font-size: 19px; }

  /* Barisan MPP */
  .ydp-card .ph { aspect-ratio: 16 / 9; }
  .ydp-card .in { padding: 18px 16px 20px; }
  .member-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Borang dan halaman undi */
  .login-card .input-lg { font-size: 16px; padding: 12px 14px; }
  .stepper { margin-bottom: 14px; }
  .vote-bar { padding: 10px 10px 10px 14px; }
  .vote-bar .btn-lg { padding: 12px 16px; }
  .receipt { margin: 18px 0; }
  .r-act .btn { padding-inline: 8px; }
  .rc-form { flex-direction: column; }
  .success { padding: 20px 4px; }
  .success .check-anim { width: 72px; height: 72px; font-size: 36px; }

  /* Kaki laman */
  .footer { margin-top: 32px; padding-bottom: 96px; }
  .footer .row-between { flex-direction: column; }
}

/* Kad tarikh belum diumumkan */
.countdown.cd-empty { display: flex; gap: 14px; align-items: flex-start; }
.cd-empty .cd-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-ink); }
.cd-empty .cd-ico .i { width: 22px; height: 22px; }
.cd-empty b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.cd-empty p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Kaki laman sentiasa di bawah walaupun halaman pendek */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#app { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
.cand-grid > .empty, .video-grid > .empty, .member-grid > .empty { grid-column: 1 / -1; }
