:root {
	--orange: #E8652B;
	--orange-dark: #C9511D;
	--orange-light: #F0845A;
	--orange-glow: rgba(232,101,43,0.25);
	--orange-pale: #FFF4EF;
	--orange-bg: #FEF7F3;
	--bg: #FAFAF8;
	--bg-card: #FFFFFF;
	--bg-section: #F4F3EF;
	--bg-input: #FFFFFF;
	--text: #1A1A1A;
	--text-secondary: #6B6B6B;
	--text-muted: #A0A0A0;
	--border: #E5E3DD;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 20px rgba(0,0,0,0.07);
	--shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
	--font-display: 'Lora', Georgia, serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
	--bg: #111110;
	--bg-card: #1C1C1A;
	--bg-section: #161614;
	--bg-input: #222220;
	--text: #EDECE8;
	--text-secondary: #9B9B95;
	--text-muted: #5C5C58;
	--border: #2E2E2A;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
	--shadow-md: 0 4px 20px rgba(0,0,0,0.3);
	--shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
	--orange-pale: rgba(232,101,43,0.08);
	--orange-bg: rgba(232,101,43,0.04);
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background var(--transition), color var(--transition);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 72px;
	background: rgba(250,250,248,0.85);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	transition: height var(--transition), background var(--transition);
}

[data-theme="dark"] .navbar {
	background: rgba(17,17,16,0.85);
}

.navbar.scrolled {
	height: 56px;
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--text);
}

.brand-icon {
	color: var(--orange);
}

.nav-links {
	display: flex;
	gap: 8px;
}

.nav-link {
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	transition: all var(--transition);
}

.nav-link:hover {
	color: var(--orange);
	background: var(--orange-pale);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.theme-toggle {
	width: 38px;
	height: 38px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: var(--text-secondary);
	transition: all var(--transition);
}

.theme-toggle:hover {
	border-color: var(--orange);
	color: var(--orange);
}

[data-theme="light"] .theme-toggle .bi-sun-fill {
	display: inline;
}

[data-theme="light"] .theme-toggle .bi-moon-fill {
	display: none;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
	display: none;
}

[data-theme="dark"] .theme-toggle .bi-moon-fill {
	display: inline;
}

.nav-username {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 5px;
}

.nav-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn-nav-outline, .btn-nav-primary {
	padding: 7px 18px;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 600;
	font-family: var(--font-body);
	transition: all var(--transition);
	border: none;
	cursor: pointer;
}

.btn-nav-outline {
	background: transparent;
	border: 1.5px solid var(--border);
	color: var(--text);
}

.btn-nav-outline:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.btn-nav-primary {
	background: var(--orange);
	color: white;
}

.btn-nav-primary:hover {
	background: var(--orange-dark);
}

.nav-burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	width: 32px;
	height: 24px;
	position: relative;
}

.nav-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	position: absolute;
	left: 0;
	transition: all var(--transition);
}

.nav-burger span:nth-child(1) {
	top: 0;
}

.nav-burger span:nth-child(2) {
	top: 11px;
}

.nav-burger span:nth-child(3) {
	top: 22px;
}

.mobile-menu {
	display: none;
}

@media (max-width: 768px) {
	.nav-links, .nav-actions {
		display: none;
	}

	.nav-burger {
		display: block;
	}

	.mobile-menu {
		position: fixed;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--bg-card);
		border-bottom: 1px solid var(--border);
		padding: 16px;
		z-index: 99;
		display: none;
		flex-direction: column;
		gap: 4px;
	}

	.mobile-menu.open {
		display: flex;
	}

	.mobile-menu a {
		padding: 12px 16px;
		border-radius: var(--radius-sm);
		font-weight: 500;
	}

	.mobile-menu a:hover {
		background: var(--orange-pale);
		color: var(--orange);
	}
}

.hero {
	padding: 140px 0 80px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, var(--orange-bg) 0%, var(--bg) 60%);
}

.hero-grain {
	position: absolute;
	inset: 0;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 200px;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
}

.hero-eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--orange);
	margin-bottom: 12px;
}

.hero-title {
	font-family: var(--font-display);
	font-size: 3.8rem;
	font-weight: 600;
	line-height: 1.1;
	margin-bottom: 20px;
	color: var(--text);
}

.accent-text {
	background: linear-gradient(135deg, var(--orange), var(--orange-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 32px;
	max-width: 480px;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.btn-primary-lg, .btn-outline-lg {
	padding: 14px 28px;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all var(--transition);
	border: none;
	cursor: pointer;
}

.btn-primary-lg {
	background: var(--orange);
	color: white;
}

.btn-primary-lg:hover {
	background: var(--orange-dark);
	box-shadow: 0 8px 24px var(--orange-glow);
	transform: translateY(-2px);
}

.btn-outline-lg {
	background: transparent;
	border: 1.5px solid var(--border);
	color: var(--text);
}

.btn-outline-lg:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.book-of-day-card {
	background: var(--bg-card);
	border-radius: 16px;
	padding: 24px;
	position: relative;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
	transition: transform var(--transition);
}

.book-of-day-card:hover {
	transform: translateY(-4px);
}

.bod-badge {
	position: absolute;
	top: -10px;
	left: 20px;
	background: var(--orange);
	color: white;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 4px 12px var(--orange-glow);
}

.bod-link {
	display: flex;
	gap: 20px;
	align-items: center;
}

.bod-cover {
	width: 120px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.bod-cover img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
}

.bod-info h3 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.bod-info p {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.hero-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-title {
		font-size: 2.8rem;
	}

	.hero-subtitle {
		margin: 0 auto 32px;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-visual {
		display: flex;
		justify-content: center;
	}
}

.section {
	padding: 72px 0;
}

.section-alt {
	background: var(--bg-section);
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.section-title {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 600;
}

.center-title {
	text-align: center;
	margin-bottom: 40px;
}

.section-link {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--orange);
	display: flex;
	align-items: center;
	gap: 4px;
	transition: gap var(--transition);
}

.section-link:hover {
	gap: 8px;
}

.books-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.book-card {
	background: var(--bg-card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow: hidden;
	transition: all var(--transition);
}

.book-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}

.book-card-link {
	display: block;
}

.book-cover {
	position: relative;
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--bg-section);
}

.book-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
	transform: scale(1.05);
}

.book-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--orange-pale), var(--bg-section));
	color: var(--orange);
	font-size: 2.5rem;
}

.book-cover-placeholder.large {
	font-size: 3.5rem;
}

.badge-available, .badge-unavailable {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
}

.badge-available {
	background: rgba(34,197,94,0.85);
	color: white;
}

.badge-unavailable {
	background: rgba(239,68,68,0.85);
	color: white;
}

.book-info {
	padding: 14px;
}

.book-title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 4px;
	line-height: 1.3;
}

.book-author {
	font-size: 0.82rem;
	color: var(--text-secondary);
	margin-bottom: 10px;
}

.book-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.book-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	font-weight: 600;
}

.book-rating i {
	color: #F59E0B;
	font-size: 0.75rem;
}

.rating-count {
	color: var(--text-muted);
	font-weight: 400;
}

.book-category-badge {
	font-size: 0.7rem;
	padding: 2px 8px;
	border-radius: 12px;
	background: var(--orange-pale);
	color: var(--orange);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100px;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
}

.category-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all var(--transition);
	cursor: pointer;
}

.category-card:hover {
	border-color: var(--orange);
	background: var(--orange-pale);
	transform: translateX(4px);
}

.category-icon {
	color: var(--orange);
	flex-shrink: 0;
	display: flex;
}

.category-name {
	font-weight: 600;
	font-size: 0.92rem;
	flex: 1;
}

.category-arrow {
	color: var(--text-muted);
	transition: color var(--transition);
}

.category-card:hover .category-arrow {
	color: var(--orange);
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.step-card {
	text-align: center;
	padding: 36px 24px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all var(--transition);
}

.step-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.step-num {
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--orange);
	opacity: 0.2;
	margin-bottom: 8px;
}

.step-card svg {
	margin: 0 auto 16px;
}

.step-card h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.step-card p {
	font-size: 0.88rem;
	color: var(--text-secondary);
}

@media (max-width: 768px) {
	.steps-grid {
		grid-template-columns: 1fr;
	}
}

.catalog-header {
	padding-top: 100px;
	margin-bottom: 32px;
}

.catalog-controls {
	display: flex;
	gap: 12px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.search-wrapper {
	flex: 1;
	min-width: 200px;
	position: relative;
}

.search-wrapper i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
}

.search-wrapper input {
	width: 100%;
	padding: 12px 16px 12px 40px;
	background: var(--bg-card);
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.92rem;
	color: var(--text);
	outline: none;
	transition: border-color var(--transition);
}

.search-wrapper input:focus {
	border-color: var(--orange);
}

.custom-select-wrapper {
	position: relative;
	min-width: 170px;
}

.custom-select {
	width: 100%;
	padding: 12px 40px 12px 16px;
	appearance: none;
	-webkit-appearance: none;
	background: var(--bg-card);
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.92rem;
	color: var(--text);
	cursor: pointer;
	outline: none;
	transition: border-color var(--transition);
}

.custom-select:focus {
	border-color: var(--orange);
}

.custom-select-wrapper::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid var(--text-muted);
	pointer-events: none;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
}

.page-btn {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	border: 1.5px solid var(--border);
	background: transparent;
	color: var(--text-secondary);
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	transition: all var(--transition);
}

.page-btn:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.page-btn.active {
	background: var(--orange);
	color: white;
	border-color: var(--orange);
}

.page-btn.ellipsis {
	border: none;
	cursor: default;
}

.search-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	z-index: 50;
	display: none;
	overflow: hidden;
}

.search-dropdown.active {
	display: block;
}

.search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	transition: background var(--transition);
}

.search-result:hover {
	background: var(--orange-pale);
}

.search-result-img {
	width: 36px;
	height: 48px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--bg-section);
	flex-shrink: 0;
}

.search-result-title {
	font-weight: 600;
	font-size: 0.88rem;
}

.search-result-author {
	font-size: 0.78rem;
	color: var(--text-secondary);
}

.search-all-link {
	display: block;
	padding: 10px;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--orange);
	border-top: 1px solid var(--border);
}

.book-detail {
	padding-top: 100px;
}

.book-detail-grid {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

.book-detail-cover {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.book-detail-cover img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
}

.book-detail-info h1 {
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.15;
}

.book-detail-author {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 20px;
}

.book-detail-badges {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.detail-badge {
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--orange-pale);
	color: var(--orange);
}

.book-rating-section {
	margin-bottom: 24px;
}

.stars-display {
	display: flex;
	gap: 2px;
	margin-bottom: 6px;
}

.stars-display .star {
	font-size: 1.2rem;
	color: #D4D4D4;
}

.stars-display .star.filled {
	color: #F59E0B;
}

.stars-input {
	display: flex;
	gap: 4px;
	cursor: pointer;
}

.stars-input .star {
	font-size: 1.5rem;
	color: #D4D4D4;
	cursor: pointer;
	transition: color 0.15s;
}

.stars-input .star:hover, .stars-input .star.active {
	color: #F59E0B;
}

.book-description {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 28px;
}

.btn-reserve {
	padding: 14px 32px;
	background: var(--orange);
	color: white;
	border: none;
	border-radius: var(--radius);
	font-size: 1rem;
	font-weight: 700;
	font-family: var(--font-body);
	cursor: pointer;
	transition: all var(--transition);
}

.btn-reserve:hover {
	background: var(--orange-dark);
	box-shadow: 0 8px 24px var(--orange-glow);
}

.btn-reserve:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.availability-ok {
	color: #22c55e;
	font-weight: 600;
}

.availability-no {
	color: #ef4444;
	font-weight: 600;
}

@media (max-width: 768px) {
	.book-detail-grid {
		grid-template-columns: 1fr;
	}

	.book-detail-cover {
		max-width: 250px;
	}

	.book-detail-info h1 {
		font-size: 1.8rem;
	}
}

.auth-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 100px 24px 40px;
	background: var(--bg);
}

.auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--bg-card);
	border-radius: 16px;
	padding: 40px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
}

.auth-header {
	text-align: center;
	margin-bottom: 28px;
}

.auth-icon-svg {
	margin-bottom: 16px;
	display: flex;
	justify-content: center;
}

.auth-header h1 {
	font-family: var(--font-display);
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.auth-header p {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.alert-error {
	background: rgba(239,68,68,0.08);
	color: #dc2626;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-group label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
	display: block;
}

.input-wrapper {
	position: relative;
}

.input-wrapper i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 0.9rem;
}

.input-wrapper input {
	width: 100%;
	padding: 12px 16px 12px 40px;
	background: var(--bg-input);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.92rem;
	color: var(--text);
	outline: none;
	transition: border-color var(--transition);
}

.input-wrapper input:focus {
	border-color: var(--orange);
}

.btn-auth {
	padding: 13px;
	background: var(--orange);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-auth:hover {
	background: var(--orange-dark);
}

.btn-auth:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.auth-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 0.88rem;
	color: var(--text-secondary);
}

.auth-footer a {
	color: var(--orange);
	font-weight: 600;
}

.link-btn {
	background: none;
	border: none;
	color: var(--orange);
	font-family: var(--font-body);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.link-btn:hover {
	text-decoration: underline;
}

.code-inputs {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 20px;
}

.code-digit {
	width: 48px;
	height: 56px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--font-body);
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-input);
	color: var(--text);
	outline: none;
	transition: border-color var(--transition);
}

.code-digit:focus {
	border-color: var(--orange);
}

.reservations-page {
	padding-top: 100px;
}

.reservations-section {
	margin-bottom: 36px;
}

.reservations-section h2 {
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 600;
	margin-bottom: 16px;
}

.reservation-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 10px;
	transition: all var(--transition);
}

.reservation-card:hover {
	border-color: var(--orange);
}

.res-cover {
	width: 48px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-section);
}

.res-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.res-info {
	flex: 1;
}

.res-info h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
}

.res-info p {
	font-size: 0.82rem;
	color: var(--text-secondary);
}

.res-status {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
}

.res-status.active {
	background: rgba(34,197,94,0.1);
	color: #16a34a;
}

.res-status.overdue {
	background: rgba(239,68,68,0.1);
	color: #dc2626;
}

.res-status.returned {
	background: rgba(160,160,160,0.1);
	color: var(--text-muted);
}

.btn-return {
	padding: 7px 16px;
	background: var(--orange);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 0.82rem;
	font-weight: 600;
	font-family: var(--font-body);
	cursor: pointer;
	transition: all var(--transition);
}

.btn-return:hover {
	background: var(--orange-dark);
}

.empty-state {
	text-align: center;
	padding: 48px 24px;
	color: var(--text-muted);
}

.empty-state svg {
	margin-bottom: 12px;
}

.stats-page {
	padding-top: 100px;
}

.stats-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 36px;
}

.stat-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
	transition: all var(--transition);
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.stat-card .icon {
	margin-bottom: 8px;
}

.stat-card .icon svg {
	display: inline;
}

.stat-card .value {
	font-family: var(--font-display);
	font-size: 2.2rem;
	font-weight: 700;
}

.stat-card .label {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.chart-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 24px;
}

.chart-card h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 16px;
}

.error-section {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 72px;
}

.error-content {
	text-align: center;
}

.error-code {
	font-family: var(--font-display);
	font-size: 8rem;
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(135deg, var(--orange), var(--orange-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.error-icon-svg {
	margin: 16px auto;
}

.error-content h1 {
	font-family: var(--font-display);
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.error-content p {
	color: var(--text-secondary);
	margin-bottom: 28px;
}

.footer {
	background: var(--bg-section);
	border-top: 1px solid var(--border);
	padding: 48px 0 24px;
	margin-top: 48px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 32px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
}

.footer-brand svg {
	color: var(--orange);
}

.footer-desc {
	font-family: var(--font-body);
	font-size: 0.85rem;
	color: var(--text-secondary);
	font-weight: 400;
}

.footer-links h4 {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.footer-links a {
	display: block;
	font-size: 0.88rem;
	color: var(--text-secondary);
	margin-bottom: 8px;
	transition: color var(--transition);
}

.footer-links a:hover {
	color: var(--orange);
}

.footer-bottom {
	text-align: center;
	font-size: 0.8rem;
	color: var(--text-muted);
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.toast {
	padding: 12px 20px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: var(--shadow-md);
	animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	cursor: pointer;
}

.toast.success {
	background: #22c55e;
	color: white;
}

.toast.error {
	background: #ef4444;
	color: white;
}

@keyframes toastIn {
	from {
		transform: translateX(120%);
		opacity: 0;
	}

	to {
		transform: none;
		opacity: 1;
	}
}