:root {
	--brand: #c8102e;
	--brand-dark: #a10c25;
	--brand-bar: #fa1431;
	--navy: #1f2954;
	--text: #1d2433;
	--muted: #667085;
	--line: #e4e7ec;
	--soft: #f6f7f9;
}

html, body { background: #fff; }
body {
	font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	color: var(--text);
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.topbar {
	background: var(--brand-bar);
	color: #fff;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.page {
	max-width: 680px;
	margin: 0 auto;
	padding: 24px 16px 32px;
}
.page-narrow { max-width: 520px; }

.panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 28px 28px 24px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}
@media (max-width: 575.98px) {
	.page { padding-top: 16px; }
	.panel { padding: 22px 18px 18px; border-radius: 12px; }
}

.page-title {
	color: var(--navy);
	font-weight: 600;
	font-size: 1.4rem;
	line-height: 1.3;
	text-align: center;
	margin: 0 0 6px;
}
.page-title small {
	display: block;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 6px;
}
.page-sub {
	color: var(--muted);
	text-align: center;
	margin: 0 0 22px;
}
.divider { border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- Home ---------- */
.hero {
	border-radius: 14px;
	overflow: hidden;
	background: #8f0a18;
	box-shadow: 0 12px 32px rgba(120, 10, 24, .22);
}
.hero img { display: block; width: 100%; height: auto; }
.hero-actions { text-align: center; margin-top: 26px; }
.hero-actions .btn + .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 500; border-radius: 10px; }
.btn-brand {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	padding: .7rem 1.6rem;
}
.btn-brand:hover, .btn-brand:focus, .btn-brand:active {
	background: var(--brand-dark) !important;
	border-color: var(--brand-dark) !important;
	color: #fff !important;
}
.btn-brand:focus { box-shadow: 0 0 0 .2rem rgba(200, 16, 46, .25) !important; }
.btn-brand.btn-lg { padding: .8rem 2.4rem; font-size: 1.05rem; border-radius: 999px; }
.btn-ghost {
	background: #fff;
	border: 1px solid #d0d5dd;
	color: var(--text);
	padding: .7rem 1.4rem;
}
.btn-ghost:hover { background: var(--soft); color: var(--text); }

/* ---------- Forms ---------- */
label { font-weight: 500; font-size: .88rem; color: #344054; margin-bottom: .35rem; }
.req { color: var(--brand); margin-left: 2px; }
.form-control {
	height: calc(1.5em + 1.1rem + 2px);
	padding: .55rem .8rem;
	border-color: #d0d5dd;
	border-radius: 9px;
	font-size: .95rem;
}
.form-control:focus { border-color: #9aa4b2; box-shadow: 0 0 0 .2rem rgba(31, 41, 84, .12); }
.form-text { font-size: .78rem; }
.invalid-feedback { font-size: .8rem; }

.guest-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
	cursor: pointer;
	margin: 6px 0 0;
	font-weight: 500;
	color: var(--text);
}
.guest-toggle input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.guest-box {
	border: 1px solid var(--line);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	padding: 16px 16px 2px;
	margin-top: -6px;
}
.guest-toggle.is-open { border-radius: 10px 10px 0 0; }

/* ---------- Pass ---------- */
.pass-img {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin: 0 auto;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .16);
}
.pass-actions { max-width: 400px; margin: 20px auto 0; }
.pass-actions .btn { display: block; width: 100%; }
.pass-actions .btn + .btn { margin-top: 10px; }
.hint { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 12px; }

/* ---------- Attendance ---------- */
.result {
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 20px;
	border: 1px solid;
}
.result-success { background: #ecfdf3; border-color: #a6f4c5; }
.result-warning { background: #fffaeb; border-color: #fedf89; }
.result-head { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.result-success .result-head { color: #067647; }
.result-warning .result-head { color: #b54708; }
.result-name { font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.result-meta { color: #475467; font-size: .9rem; margin-top: 2px; }
.result-meta strong { color: var(--text); font-weight: 500; }
.guest-chip {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: .82rem;
}

.sticker-box { margin-top: 16px; }
.sticker-frame {
	display: block;
	width: 100%;
	height: 300px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
}
@media (max-width: 575.98px) { .sticker-frame { height: 220px; } }
.sticker-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.sticker-actions .btn { flex: 1 1 auto; }

.desk-status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .82rem;
	color: var(--muted);
	margin-top: 14px;
}
.desk-status a { color: var(--muted); text-decoration: underline; }
.code-input { font-size: 1.25rem !important; letter-spacing: .12em; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
	display: block;
	text-align: center;
	color: #98a2b3;
	font-size: .74rem;
	line-height: 1.6;
	margin-top: 30px;
}
.site-footer a { color: #98a2b3; border-bottom: 1px dotted; text-decoration: none; }
