:root {
	--bg: #f8fafc;
	--card-bg: #ffffff;
	--fg: #0f172a;
	--fg-muted: #64748b;
	--fg-subtle: #94a3b8;
	--border: #e2e8f0;
	--border-light: #f1f5f9;
	--primary: #059669;
	--primary-hover: #047857;
	--primary-light: #ecfdf5;
	--primary-border: #a7f3d0;
	--accent: #0284c7;
	--accent-light: #e0f2fe;
	--warning: #d97706;
	--warning-light: #fef3c7;
	--danger: #dc2626;
	--danger-light: #fee2e2;
	--dark-card: #0f172a;
	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 18px;
	--radius-full: 9999px;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
	--font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

/* App Header & Navigation */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.95);
}

.nav-container {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0.85rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--fg);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	cursor: pointer;
}

.brand-icon {
	width: 2.1rem;
	height: 2.1rem;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	background: transparent;
	color: var(--fg-muted);
	transition: all 0.15s ease;
}

.nav-btn:hover {
	color: var(--fg);
	background: var(--border-light);
}

.nav-btn.active {
	background: var(--primary-light);
	color: var(--primary);
	border-color: var(--primary-border);
}

.nav-btn.admin-link {
	border-color: var(--border);
	font-size: 0.8125rem;
}

/* Container */
.main-shell {
	max-width: 1040px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3.5rem;
}

/* Hero Section */
.hero {
	text-align: center;
	padding: 2.25rem 1rem 2.5rem;
	background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
	border: 1px solid #dcfce7;
	border-radius: var(--radius-lg);
	margin-bottom: 2rem;
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	background: #dcfce7;
	color: #065f46;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 1rem;
	border: 1px solid #bbf7d0;
}

.hero-title {
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
	font-weight: 800;
	color: #064e3b;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin-bottom: 0.75rem;
}

.hero-title span {
	color: var(--primary);
}

.hero-desc {
	font-size: clamp(0.95rem, 2vw, 1.1rem);
	color: #374151;
	max-width: 600px;
	margin: 0 auto 1.5rem;
}

.hero-hours-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	background: #ffffff;
	border: 1px solid #bbf7d0;
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	color: #065f46;
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

/* Capacity Section */
.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.section-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--fg);
	letter-spacing: -0.02em;
}

.section-subtitle {
	font-size: 0.875rem;
	color: var(--fg-muted);
}

/* Cards Grid */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.bank-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--shadow);
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bank-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.bank-card.highlight {
	border-color: #6ee7b7;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.bank-card.disabled {
	opacity: 0.75;
	background: #fafafa;
}

.card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.capacity-badge {
	font-size: 1.65rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.03em;
}

.capacity-badge small {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--fg-muted);
	margin-left: 2px;
}

.stock-status {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 700;
}

.stock-status.available {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.stock-status.unavailable {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.stock-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.price-tag {
	margin: 0.75rem 0 1rem;
	padding: 0.85rem;
	background: #f8fafc;
	border-radius: var(--radius);
	border: 1px solid var(--border-light);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.price-label {
	font-size: 0.825rem;
	color: var(--fg-muted);
	font-weight: 500;
}

.price-amount {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--fg);
}

.specs-list {
	list-style: none;
	margin: 0 0 1.5rem 0;
	display: grid;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #475569;
}

.specs-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.specs-list svg {
	color: var(--primary);
	flex-shrink: 0;
}

/* Payment Box */
.payment-card {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #f8fafc;
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-bottom: 2rem;
	box-shadow: var(--shadow-lg);
	position: relative;
	overflow: hidden;
}

.payment-card::after {
	content: "";
	position: absolute;
	top: -30px;
	right: -30px;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
	pointer-events: none;
}

.payment-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.payment-title {
	font-size: 1.1rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #ffffff;
}

.opay-badge {
	background: #00b955;
	color: #ffffff;
	font-weight: 800;
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-sm);
	font-size: 0.8125rem;
	letter-spacing: 0.05em;
}

.payment-details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
	gap: 1rem;
	background: rgba(255, 255, 255, 0.06);
	padding: 1rem;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.pay-item-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	margin-bottom: 0.25rem;
}

.pay-item-val {
	font-size: 1.05rem;
	font-weight: 700;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.account-copy-btn {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 0.2rem 0.55rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.account-copy-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* Info Alert */
.info-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: var(--radius);
	color: #1e40af;
	font-size: 0.85rem;
	margin-top: 0.85rem;
}

/* Form Styles */
.form-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--shadow);
}

.form-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.form-subtitle {
	font-size: 0.875rem;
	color: var(--fg-muted);
	margin-bottom: 1.5rem;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 600px) {
	.form-grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.form-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.form-label .required-star {
	color: var(--danger);
	margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	color: var(--fg);
	background: #ffffff;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
	outline: none;
}

.form-hint {
	font-size: 0.775rem;
	color: var(--fg-muted);
}

/* User Toggle Card */
.toggle-choice-card {
	background: #f8fafc;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.toggle-options {
	display: flex;
	gap: 0.5rem;
}

.toggle-option-btn {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: #ffffff;
	color: var(--fg-muted);
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
}

.toggle-option-btn.selected {
	border-color: var(--primary);
	background: var(--primary-light);
	color: var(--primary);
}

/* Photo Upload Box */
.photo-upload-box {
	border: 2px dashed #cbd5e1;
	border-radius: var(--radius);
	padding: 1.25rem;
	text-align: center;
	background: #fafafa;
	position: relative;
	cursor: pointer;
	transition: all 0.15s ease;
}

.photo-upload-box:hover {
	border-color: var(--primary);
	background: #f0fdf4;
}

.photo-preview-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.photo-preview-img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 2px solid var(--primary-border);
	box-shadow: var(--shadow);
}

/* Capacity Selection Buttons */
.capacity-selector-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.cap-select-btn {
	border: 2px solid var(--border);
	border-radius: var(--radius);
	padding: 0.85rem;
	background: #ffffff;
	cursor: pointer;
	text-align: left;
	transition: all 0.15s ease;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.cap-select-btn.selected {
	border-color: var(--primary);
	background: #ecfdf5;
}

.cap-select-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f1f5f9;
}

.cap-title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--fg);
}

.cap-sub {
	font-size: 0.775rem;
	color: var(--fg-muted);
}

/* Buttons */
.btn-primary {
	width: 100%;
	padding: 0.85rem 1.25rem;
	background: var(--primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
	transition: all 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.btn-primary:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
	opacity: 0.7;
}

.btn-outline {
	padding: 0.65rem 1rem;
	background: transparent;
	color: var(--fg);
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.btn-outline:hover {
	background: var(--border-light);
	border-color: #cbd5e1;
}

.btn-whatsapp {
	background: #25d366;
	color: #ffffff;
	border: none;
	border-radius: var(--radius);
	padding: 0.85rem 1.25rem;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
	transition: all 0.15s ease;
}

.btn-whatsapp:hover {
	background: #1eb954;
	transform: translateY(-1px);
}

/* Success Confirmation Overlay / Box */
.confirmation-card {
	background: #ffffff;
	border: 2px solid #6ee7b7;
	border-radius: var(--radius-lg);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--shadow-lg);
	text-align: center;
}

.success-icon-badge {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: #dcfce7;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.assigned-code-pill {
	display: inline-block;
	background: linear-gradient(135deg, #059669, #047857);
	color: #ffffff;
	font-size: 1.5rem;
	font-weight: 800;
	padding: 0.35rem 1.5rem;
	border-radius: var(--radius-full);
	letter-spacing: 0.05em;
	box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
	margin: 0.5rem 0 1.25rem;
}

.summary-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	margin: 1.25rem 0;
	background: #f8fafc;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.summary-table tr {
	border-bottom: 1px solid var(--border);
}

.summary-table tr:last-child {
	border-bottom: none;
}

.summary-table td {
	padding: 0.65rem 0.85rem;
	font-size: 0.875rem;
}

.summary-table td:first-child {
	color: var(--fg-muted);
	font-weight: 500;
	width: 40%;
}

.summary-table td:last-child {
	font-weight: 600;
	color: var(--fg);
}

.whatsapp-box {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--radius);
	padding: 1rem;
	margin: 1.25rem 0;
	text-align: left;
}

.whatsapp-box-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: #065f46;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.whatsapp-raw-text {
	background: #ffffff;
	border: 1px solid #dcfce7;
	border-radius: var(--radius-sm);
	padding: 0.75rem;
	font-family: monospace;
	font-size: 0.8125rem;
	white-space: pre-wrap;
	color: #1e293b;
	line-height: 1.4;
}

/* Management / Admin Section */
.admin-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	background: #e0e7ff;
	color: #3730a3;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 700;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.stat-card {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	box-shadow: var(--shadow-sm);
}

.stat-num {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--fg);
	line-height: 1.1;
}

.stat-label {
	font-size: 0.775rem;
	color: var(--fg-muted);
	font-weight: 500;
	margin-top: 0.25rem;
}

/* Table */
.data-table-wrapper {
	overflow-x: auto;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	text-align: left;
}

.data-table th {
	background: #f8fafc;
	padding: 0.75rem 0.85rem;
	font-weight: 600;
	color: var(--fg-muted);
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}

.data-table td {
	padding: 0.75rem 0.85rem;
	border-bottom: 1px solid var(--border-light);
	vertical-align: middle;
}

.data-table tr:hover td {
	background: #fafafa;
}

/* Code Pills Grid */
.codes-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0.75rem;
	background: #f8fafc;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.code-pill {
	padding: 0.25rem 0.55rem;
	border-radius: var(--radius-sm);
	font-size: 0.775rem;
	font-weight: 700;
	font-family: monospace;
	border: 1px solid transparent;
}

.code-pill.available {
	background: #ecfdf5;
	color: #065f46;
	border-color: #a7f3d0;
}

.code-pill.rented {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

/* Modal */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 100;
}

.modal-content {
	background: #ffffff;
	border-radius: var(--radius-lg);
	max-width: 500px;
	width: 100%;
	padding: 1.5rem;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2);
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

/* Toast */
.toast-bar {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	background: #0f172a;
	color: #ffffff;
	padding: 0.65rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	box-shadow: var(--shadow-lg);
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	animation: slide-up 0.2s ease-out;
}

@keyframes slide-up {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Feature grid */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 1rem;
	margin: 2.5rem 0;
}

.feature-box {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.feature-icon {
	width: 2.2rem;
	height: 2.2rem;
	border-radius: var(--radius-sm);
	background: var(--primary-light);
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.25rem;
}

.feature-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fg);
}

.feature-text {
	font-size: 0.825rem;
	color: var(--fg-muted);
}
