/* ── Polling Tokoh 2026 — Public Styles ── */
.ptk-wrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 900px; margin: 0 auto; padding: 0; }
.ptk-header { text-align: center; margin-bottom: 24px; }
.ptk-judul { font-size: 24px; font-weight: 700; color: #1d2327; margin: 0 0 8px; }
.ptk-deskripsi { font-size: 14px; color: #646970; margin: 0; }

/* Stats row */
.ptk-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.ptk-stat-card { background: #f6f7f7; border-radius: 8px; padding: 14px 16px; }
.ptk-stat-label { font-size: 12px; color: #646970; margin-bottom: 4px; }
.ptk-stat-val { font-size: 22px; font-weight: 700; color: #1d2327; }
.ptk-stat-sm { font-size: 13px !important; padding-top: 5px; line-height: 1.3; }

/* Instruction */
.ptk-instruksi { font-size: 13px; font-weight: 600; color: #646970; margin-bottom: 14px; }

/* Grid tokoh */
.ptk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 20px; }
.ptk-tokoh-card { background: #fff; border: 1px solid #e2e4e7; border-radius: 10px; padding: 14px 8px; text-align: center; cursor: pointer; transition: border-color .15s, transform .1s; }
.ptk-tokoh-card:hover { border-color: #378ADD; transform: translateY(-2px); }
.ptk-tokoh-card.selected { border: 2px solid #378ADD; background: #f0f6fc; }
.ptk-avatar { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.ptk-card-nama { font-size: 11px; font-weight: 600; color: #1d2327; line-height: 1.3; }
.ptk-card-votes { font-size: 20px; font-weight: 700; margin-top: 4px; }
.ptk-card-pct { font-size: 11px; color: #646970; }

/* Chart */
.ptk-chart-wrap { position: relative; width: 100%; margin-bottom: 24px; }

/* Loading */
.ptk-loading { text-align: center; padding: 40px; color: #646970; font-size: 14px; }

/* ── Modal ── */
.ptk-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ptk-modal { background: #fff; border-radius: 12px; padding: 28px 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; }
.ptk-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: #646970; }
.ptk-modal-title { font-size: 17px; font-weight: 700; margin: 0 0 18px; }
.ptk-form-group { margin-bottom: 14px; }
.ptk-form-group label { display: block; font-size: 13px; color: #646970; margin-bottom: 5px; font-weight: 600; }
.ptk-form-group input, .ptk-form-group select, .ptk-form-group textarea { width: 100%; padding: 9px 11px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.ptk-form-group textarea { min-height: 80px; resize: vertical; }
.ptk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ptk-btn-submit { width: 100%; padding: 11px; background: #378ADD; color: #fff; border: none; border-radius: 7px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.ptk-btn-submit:hover { background: #185FA5; }
.ptk-msg { margin-top: 12px; font-size: 13px; text-align: center; }
.ptk-msg.ok  { color: #00a32a; }
.ptk-msg.err { color: #d63638; }

/* Responsive */
@media (max-width: 600px) {
    .ptk-stats-row { grid-template-columns: 1fr 1fr; }
    .ptk-form-row { grid-template-columns: 1fr; }
    .ptk-judul { font-size: 19px; }
}
