:root {
	--primary: #9d121b;
	--primary-dark: #7a0e15;
	--primary-light: #c41522;
	--white: #ffffff;
	--off-white: #faf9f7;
	--text-dark: #1a1a1a;
	--text-muted: #6b6b6b;
	--border: #e8e0db;
	--success: #2d7a4f;
	--danger: #9d121b;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	font-family: 'Poppins', sans-serif;
}

body {
	margin: 0;
	background: var(--off-white);
	color: var(--text-dark);
}

h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 16px; font-weight: 500; }

p, li, td, th { font-size: 15px; line-height: 1.6; }

.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted) !important; }

.btn {
	min-height: 48px;
	min-width: 48px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
	background: var(--primary);
	color: var(--white);
	border: none;
}

.btn-primary:hover {
	background: var(--primary-dark);
	color: var(--white);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-outline-primary,
.btn-outline {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.btn-outline-primary:hover,
.btn-outline:hover {
	background: var(--primary);
	color: var(--white);
}

.btn-danger {
	background: var(--primary);
	color: var(--white);
	border: none;
}

.btn-block,
.w-100.btn {
	display: block;
	width: 100%;
	text-align: center;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
	min-height: 48px;
	padding: 12px 16px;
	font-size: 15px;
	border-radius: 10px;
	border: 1.5px solid var(--border);
	width: 100%;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(157, 18, 27, 0.12);
}

.masterpis-header {
	background: var(--primary);
	padding: 16px 24px;
	text-align: center;
}

.header-logo {
	height: 48px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

.customer-main {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.points-hero {
	background: var(--white);
	border-radius: 20px;
	padding: 32px 24px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(157, 18, 27, 0.08);
	margin-bottom: 20px;
}

.points-display {
	font-size: 64px;
	font-weight: 700;
	color: var(--primary);
	line-height: 1;
	letter-spacing: -2px;
}

.points-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-top: 4px;
}

.card-code {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 12px;
}

.holder-name {
	font-size: 18px;
	font-weight: 600;
	margin-top: 4px;
	color: var(--text-dark);
}

.progress-section {
	margin: 20px 0;
}

.progress-section .progress {
	height: 10px;
	border-radius: 10px;
	background: var(--border);
}

.progress-section .progress-bar {
	background: var(--primary);
	border-radius: 10px;
	transition: width 0.6s ease;
}

.progress-label {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 6px;
}

.customer-status-text {
	font-size: 15px;
	line-height: 1.5;
}

.customer-accent {
	color: var(--primary);
	font-weight: 600;
}

.reward-tier {
	background: var(--white);
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	border: 2px solid var(--border);
	transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.reward-tier.unlocked {
	border-color: var(--primary);
}

.reward-tier.locked {
	opacity: 0.55;
}

.reward-tier.reward-tier-next {
	opacity: 1;
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgba(157, 18, 27, 0.12);
}

.reward-badge {
	background: var(--primary);
	color: var(--white);
	font-size: 13px;
	font-weight: 700;
	border-radius: 10px;
	padding: 8px 12px;
	white-space: nowrap;
	min-width: 64px;
	text-align: center;
}

.reward-tier.locked .reward-badge {
	background: var(--border);
	color: var(--text-muted);
}

.reward-tier.unlocked .reward-badge {
	background: var(--primary);
	color: var(--white);
}

.reward-name {
	font-size: 14px;
	font-weight: 500;
	flex: 1;
	min-width: 0;
}

.reward-meta {
	margin-left: auto;
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.reward-meta .text-success {
	color: var(--success) !important;
}

.menu-section {
	margin-top: 32px;
}

.menu-section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--primary);
}

.menu-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}

.menu-price {
	font-weight: 600;
	color: var(--primary);
}

.customer-menu-acc {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--white);
}

.customer-menu-acc .accordion-item {
	background: var(--white);
	border-color: var(--border);
}

.customer-menu-acc .accordion-button {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--primary);
	background: var(--white);
	box-shadow: none !important;
	min-height: 48px;
}

.customer-menu-acc .accordion-button:not(.collapsed) {
	background: rgba(157, 18, 27, 0.06);
	color: var(--primary-dark);
}

.customer-menu-acc .accordion-button::after {
	filter: none;
	background-image: var(--bs-accordion-btn-icon);
}

.customer-menu-list li {
	border-color: var(--border) !important;
	color: var(--text-dark);
}

.customer-menu-list .menu-price {
	font-size: 14px;
}

.customer-footer {
	text-align: center;
	padding: 32px 16px 56px;
	font-size: 12px;
	color: var(--text-muted);
}

.customer-footer p {
	margin: 0;
	font-size: 12px;
}

.customer-footer .qwertysite-badge {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* Invalid / simple cards */
.customer-message-card {
	background: var(--white);
	border-radius: 20px;
	padding: 32px 24px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(157, 18, 27, 0.08);
}

.customer-invalid-title {
	color: var(--primary);
}

.visit-footer-note {
	text-align: center;
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 24px;
	margin-bottom: 0;
}
