/* =========================================================
   Gozdogholo Design System
   Minimal · cute · shadcn + Material inspired
   ========================================================= */

   @font-face {
	font-family: 'Kalameh';
	src: url('../fonts/KalamehFaNum-Thin.ttf') format('truetype');
	font-weight: 100 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kalameh';
	src: url('../fonts/KalamehFaNum-Regular.ttf') format('truetype');
	font-weight: 400 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kalameh';
	src: url('../fonts/KalamehFaNum-Bold.ttf') format('truetype');
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kalameh';
	src: url('../fonts/KalamehFaNum-Black.ttf') format('truetype');
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Semantic tokens (shadcn-like) */
	--background: #fff7fa !important;
	--foreground: #3d2430 !important;
	--card: #ffffff !important;
	--card-foreground: #3d2430 !important;
	--muted: #fceef3 !important;
	--muted-foreground: #8b6574 !important;
	--primary: #f472b6 !important;
	--primary-hover: #ec4899 !important;
	--primary-foreground: #ffffff !important;
	--secondary: #fdf2f8 !important;
	--secondary-foreground: #9d174d !important;
	--accent: #fce7f3 !important;
	--accent-foreground: #be185d !important;
	--border: #f3d4e0 !important;
	--ring: #f9a8d4 !important;
	--success: #6ee7b7 !important;
	--success-fg: #065f46 !important;
	--destructive: #fb7185 !important;

	/* Elevation (Material-soft) */
	--elevation-1: 0 1px 2px rgba(61, 36, 48, 0.04), 0 1px 3px rgba(244, 114, 182, 0.06);
	--elevation-2: 0 4px 12px rgba(61, 36, 48, 0.06), 0 2px 6px rgba(244, 114, 182, 0.08);
	--elevation-3: 0 12px 28px rgba(61, 36, 48, 0.08), 0 4px 12px rgba(244, 114, 182, 0.1);

	/* Shape */
	--radius: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-full: 9999px;

	/* Type */
	--font: 'Kalameh', 'Tahoma', sans-serif;
	--tracking: -0.01em;

	/* Motion */
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--duration: 180ms;
}

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

#wpadminbar{
	display: none !important;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.gozdogholo {
	margin: 0;
	min-height: 100svh;
	max-height: 100svh;
	font-family: var(--font);
	font-weight: 400;
	color: var(--foreground);
	background:
		radial-gradient(ellipse 90% 60% at 100% 0%, rgba(252, 231, 243, 0.7), transparent 55%),
		radial-gradient(ellipse 70% 50% at 0% 100%, rgba(255, 241, 242, 0.8), transparent 50%),
		var(--background);
	line-height: 1.7;
	letter-spacing: var(--tracking);
	overflow-x: hidden;
	direction: rtl;
}

a {
	color: var(--accent-foreground);
	text-decoration: none;
	transition: color var(--duration) var(--ease);
}

a:hover {
	color: var(--primary-hover);
}

img {
	max-width: 100%;
	height: auto;
}

button,
input,
textarea {
	font-family: inherit;
}

/* Apple Color Emoji first — iPhone-style glyphs when available */
.emoji,
.btn-emoji,
.brand-emoji,
.float-emoji,
.pop-heart,
.card-emoji-row,
.hero-bouquet,
.confetti,
.result-emoji,
.success-emoji,
.success-burst,
.heart-row,
.footer-heart,
.title-emojis {
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
}

/* Forced iOS emoji images (cross-platform Apple look) */
img.ios-emoji {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin: 0 0.06em;
	vertical-align: -0.2em;
	object-fit: contain;
	border: 0;
	padding: 0;
	pointer-events: none;
	user-select: none;
}

.btn-emoji img.ios-emoji,
.brand-emoji img.ios-emoji {
	width: 1.05em;
	height: 1.05em;
	margin: 0;
	vertical-align: middle;
}

.float-emoji img.ios-emoji {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
}

.result-emoji img.ios-emoji,
.success-emoji img.ios-emoji {
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	vertical-align: middle;
}

.title-emojis img.ios-emoji {
	width: 1.1em;
	height: 1.1em;
}

.card-emoji-row img.ios-emoji,
.hero-bouquet img.ios-emoji,
.heart-row img.ios-emoji,
.success-burst img.ios-emoji,
.confetti img.ios-emoji {
	width: 1.05em;
	height: 1.05em;
}

.pop-heart img.ios-emoji,
img.ios-emoji-pop {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
}

.jalali-trigger-emoji img.ios-emoji,
.jalali-heart img.ios-emoji {
	width: 1.05em;
	height: 1.05em;
	margin: 0;
	vertical-align: middle;
}

.footer-heart img.ios-emoji {
	width: 1em;
	height: 1em;
	margin: 0 0.1em;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ---------- Soft ambient + floating iOS emojis ---------- */

.bg-decor {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.bg-decor .dot {
	position: absolute;
	border-radius: 50%;
	background: var(--primary);
	opacity: 0.08;
}

.bg-decor .dot-1 { width: 180px; height: 180px; top: -40px; left: -40px; }
.bg-decor .dot-2 { width: 120px; height: 120px; bottom: 10%; right: -30px; opacity: 0.06; }
.bg-decor .dot-3 { width: 64px; height: 64px; top: 40%; left: 8%; opacity: 0.05; }

.float-emoji {
	position: absolute;
	font-size: 1.15rem;
	opacity: 0.38;
	animation: drift 9s ease-in-out infinite;
	user-select: none;
	filter: saturate(1.05);
}

.fe-1 { top: 14%; right: 8%; animation-delay: 0s; }
.fe-2 { top: 28%; left: 7%; animation-delay: 1.2s; font-size: 1rem; }
.fe-3 { top: 48%; right: 14%; animation-delay: 2.4s; }
.fe-4 { bottom: 22%; left: 12%; animation-delay: 0.8s; font-size: 0.95rem; }
.fe-5 { top: 18%; left: 38%; animation-delay: 3s; font-size: 0.9rem; opacity: 0.3; }
.fe-6 { bottom: 18%; right: 10%; animation-delay: 1.8s; }
.fe-7 { top: 62%; left: 6%; animation-delay: 4s; font-size: 0.95rem; }
.fe-8 { bottom: 32%; right: 28%; animation-delay: 2.8s; font-size: 0.9rem; opacity: 0.32; }

@keyframes drift {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-12px) rotate(6deg); }
}

/* ---------- Layout ---------- */

.site-header {
	position: relative;
	z-index: 10;
	padding: 1.5rem 1.25rem 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--radius-full);
	background: var(--card);
	border: 1px solid var(--border);
	box-shadow: var(--elevation-1);
	color: var(--foreground);
	font-weight: 700;
	font-size: 0.95rem;
	transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.brand:hover {
	color: var(--foreground);
	box-shadow: var(--elevation-2);
	transform: translateY(-1px);
}

.brand-emoji {
	font-size: 1rem;
	animation: pulse 1.6s ease-in-out infinite;
	display: inline-block;
}

.brand-name {
	font-weight: 800;
	letter-spacing: 0;
}

.site-main {
	position: relative;
	z-index: 5;
	padding: 1.25rem 1.25rem 3rem;
	max-width: 440px;
	margin: 0 auto;
	min-height: calc(100vh - 300px);
}

.site-footer {
	position: relative;
	text-align: center;
	padding: 0.5rem 1.25rem 2rem;
	color: var(--muted-foreground);
	font-size: 0.8125rem;
	font-weight: 400;
}

.footer-heart {
	display: inline-block;
	animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.15); opacity: 0.85; }
}

/* ---------- Hero ---------- */

.hero-home {
	text-align: center;
	padding: 1.25rem 0 1rem;
	animation: fadeIn 0.5s var(--ease-out) both;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 0.3rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--secondary-foreground);
	background: var(--secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
}

.hero-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.75rem, 7vw, 2.25rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--foreground);
	letter-spacing: -0.02em;
}

.title-emojis {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.55em;
	letter-spacing: 0.15em;
	animation: drift 4s ease-in-out infinite;
}

.hero-sub {
	margin: 0 auto 2rem;
	max-width: 20rem;
	font-size: 0.9375rem;
	color: var(--muted-foreground);
	font-weight: 400;
	line-height: 1.75;
}

.home-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hero-bouquet {
	display: flex;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 1.75rem;
	font-size: 1.15rem;
	opacity: 0.85;
}

.hero-bouquet span {
	display: inline-block;
	animation: drift 5s ease-in-out infinite;
}

.hero-bouquet span:nth-child(2) { animation-delay: 0.4s; }
.hero-bouquet span:nth-child(3) { animation-delay: 0.8s; }
.hero-bouquet span:nth-child(4) { animation-delay: 1.2s; }
.hero-bouquet span:nth-child(5) { animation-delay: 1.6s; }

/* ---------- Buttons (shadcn / Material) ---------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	transition:
		background var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease),
		transform var(--duration) var(--ease),
		color var(--duration) var(--ease);
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary {
	color: var(--primary-foreground);
	background: var(--primary);
	box-shadow: var(--elevation-1);
}

.btn-primary:hover {
	background: var(--primary-hover);
	color: var(--primary-foreground);
	box-shadow: var(--elevation-2);
}

.btn-secondary {
	color: var(--secondary-foreground);
	background: var(--card);
	border-color: var(--border);
	box-shadow: var(--elevation-1);
}

.btn-secondary:hover {
	background: var(--muted);
	color: var(--secondary-foreground);
	border-color: var(--ring);
}

.btn-ghost {
	color: var(--muted-foreground);
	background: transparent;
	min-height: auto;
	padding: 0.4rem 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	box-shadow: none;
}

.btn-ghost:hover {
	color: var(--foreground);
	background: var(--muted);
}

.btn-emoji {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.22);
	flex-shrink: 0;
	font-size: 0.95rem;
}

.btn-secondary .btn-emoji {
	background: var(--accent);
}

.btn-block {
	width: 100%;
	justify-content: flex-start;
}

.btn-block .btn-label {
	flex: 1;
	text-align: center;
	padding-left: 28px;
}

.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* ---------- Card surface ---------- */

.page-shell {
	padding: 0.25rem 0 1.5rem;
	animation: fadeIn 0.45s var(--ease-out) both;
}

.card {
	background: var(--card);
	color: var(--card-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 1.5rem 1.25rem 1.75rem;
	box-shadow: var(--elevation-2);
	position: relative;
}

.card-emoji-row {
	text-align: center;
	font-size: 0.95rem;
	letter-spacing: 0.35em;
	opacity: 0.7;
	margin-bottom: 0.65rem;
}

.card-emoji-row.bottom {
	margin: 1.25rem 0 0;
	margin-bottom: 0;
}

.page-title .emoji {
	display: inline-block;
	margin-left: 0.25rem;
	vertical-align: -0.05em;
}

.page-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.25rem, 4.5vw, 1.5rem);
	font-weight: 800;
	color: var(--foreground);
	text-align: center;
	line-height: 1.45;
	letter-spacing: -0.015em;
}

.page-lead {
	text-align: center;
	color: var(--muted-foreground);
	margin: 0 0 1.5rem;
	font-size: 0.9rem;
	line-height: 1.75;
}

.page-lead strong {
	color: var(--accent-foreground);
	font-weight: 700;
}

.tiny-note {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	color: var(--muted-foreground);
}

.back-row {
	margin-bottom: 1.25rem;
}

/* ---------- Feedback ---------- */

.feedback-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

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

.field label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--muted-foreground);
}

.field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.8;
	color: var(--foreground);
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	resize: vertical;
	min-height: 150px;
	transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.field textarea:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.35);
}

.field textarea::placeholder {
	color: #c4a0ad;
}

.field-select {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--foreground);
	background-color: var(--background);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b6574' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 0.9rem center;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.75rem 1rem 0.75rem 2.25rem;
	min-height: 48px;
	cursor: pointer;
	transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.field-select:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.35);
}

.field-select-full {
	width: 100%;
}

.date-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.date-form .field {
	position: relative;
}

.jalali-trigger {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--muted-foreground);
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	text-align: right;
	transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.jalali-trigger.has-value {
	color: var(--foreground);
}

.jalali-trigger:hover,
.jalali-trigger[aria-expanded='true'] {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.35);
}

.jalali-trigger-emoji {
	font-size: 1.05rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.jalali-trigger-text {
	flex: 1;
}

.jalali-trigger-chevron {
	color: var(--muted-foreground);
	font-size: 0.75rem;
	transition: transform var(--duration) var(--ease);
}

.jalali-trigger[aria-expanded='true'] .jalali-trigger-chevron {
	transform: rotate(180deg);
}

.jalali-calendar {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	left: 0;
	z-index: 40;
	padding: 0.9rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--elevation-3);
	animation: fadeIn 0.2s var(--ease-out);
}

.jalali-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.jalali-cal-title {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--foreground);
}

.jalali-heart {
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
	font-size: 0.85rem;
	line-height: 1;
}

.jalali-nav {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--muted);
	color: var(--secondary-foreground);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.jalali-nav:hover {
	background: var(--accent);
	border-color: var(--ring);
}

.jalali-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.2rem;
	margin-bottom: 0.35rem;
	text-align: center;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--muted-foreground);
}

.jalali-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.25rem;
}

.jalali-day {
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--foreground);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.jalali-day.is-empty {
	pointer-events: none;
	visibility: hidden;
}

.jalali-day:hover:not(.is-selected) {
	background: var(--muted);
	transform: scale(1.05);
}

.jalali-day.is-today:not(.is-selected) {
	box-shadow: inset 0 0 0 1.5px var(--ring);
	color: var(--accent-foreground);
}

.jalali-day.is-selected {
	background: var(--primary);
	color: var(--primary-foreground);
	box-shadow: var(--elevation-1);
}

.jalali-cal-footer {
	margin-top: 0.65rem;
	text-align: center;
}

.jalali-today {
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--accent-foreground);
	background: var(--secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	padding: 0.4rem 0.9rem;
	cursor: pointer;
	transition: background var(--duration) var(--ease);
}

.jalali-today:hover {
	background: var(--accent);
}

/* ---------- shadcn-like Multi Select ---------- */

.multi-select {
	position: relative;
}

.multi-trigger {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
	min-height: 48px;
	padding: 0.55rem 0.85rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--muted-foreground);
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	text-align: right;
	transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.multi-trigger.has-value {
	color: var(--foreground);
}

.multi-trigger:hover,
.multi-select.is-open .multi-trigger {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.35);
}

.multi-values {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	min-height: 1.5rem;
}

.multi-placeholder {
	color: var(--muted-foreground);
	font-weight: 600;
}

.multi-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	max-width: 100%;
	padding: 0.2rem 0.35rem 0.2rem 0.55rem;
	border-radius: 8px;
	background: var(--secondary);
	border: 1px solid var(--border);
	color: var(--secondary-foreground);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
}

.multi-badge-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.multi-badge-clear {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: var(--muted-foreground);
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.multi-badge-clear:hover {
	background: var(--accent);
	color: var(--accent-foreground);
}

.multi-chevron {
	margin-top: 0.35rem;
	color: var(--muted-foreground);
	font-size: 0.75rem;
	transition: transform var(--duration) var(--ease);
	flex-shrink: 0;
}

.multi-select.is-open .multi-chevron {
	transform: rotate(180deg);
}

.multi-popover {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	left: 0;
	z-index: 45;
	padding: 0.4rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--elevation-3);
	animation: fadeIn 0.18s var(--ease-out);
	max-height: 260px;
	overflow: auto;
}

.multi-options {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.multi-option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.65rem 0.7rem;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--foreground);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-align: right;
	transition: background var(--duration) var(--ease);
}

.multi-option:hover {
	background: var(--muted);
}

.multi-option.is-selected {
	background: var(--accent);
	color: var(--accent-foreground);
}

.multi-check {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1.5px solid var(--border);
	background: var(--card);
	flex-shrink: 0;
	position: relative;
	transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.multi-option.is-selected .multi-check {
	background: var(--primary);
	border-color: var(--primary);
}

.multi-option.is-selected .multi-check::after {
	content: '';
	position: absolute;
	top: 2px;
	right: 4.5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.multi-option-label {
	flex: 1;
}

.toast {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	text-align: center;
	font-weight: 600;
	font-size: 0.875rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	animation: fadeIn 0.3s var(--ease-out);
}

.toast.success {
	background: #ecfdf5;
	color: var(--success-fg);
	border-color: #a7f3d0;
}

.toast.error {
	background: #fff1f2;
	color: #9f1239;
	border-color: #fecdd3;
}

/* ---------- Love game ---------- */

.love-choices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	min-height: 120px;
	padding: 0.5rem 0 1rem;
	position: relative;
}

.choice-btn {
	font-family: inherit;
	font-weight: 700;
	border-radius: var(--radius-full);
	cursor: pointer;
	border: 1px solid transparent;
	transition:
		transform 0.3s var(--ease-out),
		box-shadow 0.25s var(--ease),
		font-size 0.3s var(--ease-out),
		padding 0.3s var(--ease-out),
		opacity 0.3s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

.choice-no {
	font-size: 0.9375rem;
	padding: 0.7rem 1.35rem;
	color: var(--muted-foreground);
	background: var(--muted);
	border-color: var(--border);
}

.choice-no:hover {
	background: #f8e4ec;
}

.choice-yes {
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
	color: var(--primary-foreground);
	background: var(--primary);
	box-shadow: var(--elevation-1);
}

.choice-yes:hover {
	background: var(--primary-hover);
	box-shadow: var(--elevation-2);
}

.choice-yes:focus-visible,
.choice-no:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.floating-hearts-zone {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.pop-heart {
	position: absolute;
	animation: popHeart 0.9s var(--ease-out) forwards;
	pointer-events: none;
	font-size: 1.15rem;
	opacity: 0.9;
}

@keyframes popHeart {
	0% { opacity: 1; transform: translateY(0) scale(0.6); }
	100% { opacity: 0; transform: translateY(-70px) scale(1.25); }
}

/* ---------- Love result ---------- */

.love-result-page {
	position: relative;
}

.result-card {
	text-align: center;
	padding-top: 1.75rem;
}

.result-emoji {
	font-size: 2.75rem;
	line-height: 1;
	margin-bottom: 0.75rem;
	animation: pulse 1.6s ease-in-out infinite;
	display: inline-block;
}

.result-title {
	font-size: clamp(1.5rem, 5vw, 1.85rem);
}

.result-message {
	font-size: 1rem;
	color: var(--foreground);
	margin: 0 0 0.5rem;
	font-weight: 500;
	line-height: 1.9;
}

.result-message strong {
	color: var(--accent-foreground);
	font-weight: 800;
}

.infinite {
	color: var(--primary);
	font-weight: 800;
}

.result-sub {
	color: var(--muted-foreground);
	margin: 0 0 1rem;
	font-size: 0.875rem;
}

.heart-row {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	font-size: 1.15rem;
	margin-bottom: 1.5rem;
}

.heart-row span {
	animation: drift 3s ease-in-out infinite;
}

.heart-row span:nth-child(odd) { animation-delay: 0.4s; }

.confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.confetti span {
	position: absolute;
	font-size: 1.1rem;
	animation: confettiFall 4.5s linear infinite;
	opacity: 0.75;
}

.confetti span:nth-child(1) { right: 8%; animation-delay: 0s; }
.confetti span:nth-child(2) { right: 22%; animation-delay: 0.5s; }
.confetti span:nth-child(3) { right: 38%; animation-delay: 1s; }
.confetti span:nth-child(4) { right: 52%; animation-delay: 1.5s; }
.confetti span:nth-child(5) { right: 68%; animation-delay: 0.3s; }
.confetti span:nth-child(6) { right: 82%; animation-delay: 0.8s; }
.confetti span:nth-child(7) { right: 14%; animation-delay: 1.8s; }
.confetti span:nth-child(8) { right: 48%; animation-delay: 2.2s; }
.confetti span:nth-child(9) { right: 62%; animation-delay: 1.2s; }
.confetti span:nth-child(10) { right: 34%; animation-delay: 2.5s; }

@keyframes confettiFall {
	0% { top: -8%; transform: rotate(0deg); opacity: 0.9; }
	100% { top: 108%; transform: rotate(320deg) translateX(20px); opacity: 0.2; }
}

/* ---------- Quiz ---------- */

.quiz-progress {
	height: 6px;
	background: var(--muted);
	border-radius: var(--radius-full);
	overflow: hidden;
	margin-bottom: 0.65rem;
}

.quiz-progress-bar {
	height: 100%;
	width: 16.66%;
	background: var(--primary);
	border-radius: var(--radius-full);
	transition: width 0.4s var(--ease-out);
}

.quiz-counter {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--muted-foreground);
	margin: 0 0 1.25rem;
}

.quiz-question {
	text-align: center;
	font-size: clamp(1.05rem, 4vw, 1.25rem);
	font-weight: 800;
	color: var(--foreground);
	margin-bottom: 1.5rem;
	min-height: 3.2em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
	animation: fadeIn 0.35s var(--ease-out) both;
}

.quiz-options {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.option-btn {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	padding: 0.9rem 1.1rem;
	min-height: 48px;
	color: var(--secondary-foreground);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	box-shadow: var(--elevation-1);
	transition:
		transform var(--duration) var(--ease),
		background var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease);
}

.option-btn:hover {
	background: var(--muted);
	border-color: var(--ring);
	box-shadow: var(--elevation-2);
	transform: translateY(-1px);
}

.option-btn:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.option-btn.correct {
	background: #ecfdf5;
	border-color: #6ee7b7;
	color: var(--success-fg);
	animation: fadeIn 0.3s var(--ease-out);
}

.option-btn:disabled {
	cursor: default;
}

.quiz-success {
	text-align: center;
	padding: 0.75rem 0 0.25rem;
	animation: fadeIn 0.45s var(--ease-out);
}

.success-burst {
	font-size: 1rem;
	letter-spacing: 0.2em;
	margin-bottom: 0.5rem;
	opacity: 0.85;
	animation: drift 4s ease-in-out infinite;
}

.success-emoji {
	font-size: 2.75rem;
	margin: 0 0 0.5rem;
	line-height: 1;
	animation: pulse 1.4s ease-in-out infinite;
	display: inline-block;
}

.success-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 4.5vw, 1.65rem);
	font-weight: 800;
	color: var(--foreground);
}

.success-text {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--muted-foreground);
	margin: 0 0 1.5rem;
}

/* ---------- Header extras ---------- */

.site-header {
	justify-content: center;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.brand-logo {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	object-fit: cover;
}

.header-logout {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--muted-foreground);
	padding: 0.35rem 0.7rem;
	border-radius: var(--radius-full);
	border: 1px solid var(--border);
	background: var(--card);
}

.header-logout:hover {
	color: var(--accent-foreground);
	background: var(--muted);
}

.site-main-wide {
	max-width: 560px !important;
}

.nav-badge {
	display: inline-grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	margin-right: 0.35rem;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
}

/* ---------- Forms / Login ---------- */

.field-input {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--foreground);
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	min-height: 48px;
	transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.field-input:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.35);
}

.login-card {
	text-align: center;
}

.login-logo {
	margin: 0.25rem auto 1rem;
}

.login-logo img {
	width: 88px;
	height: 88px;
	border-radius: 22px;
	box-shadow: var(--elevation-2);
	border: 1px solid var(--border);
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	text-align: right;
	margin-top: 0.5rem;
}

.remember-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted-foreground);
	cursor: pointer;
}

.login-hint {
	margin: 1.25rem 0 0;
	font-size: 0.8125rem;
	color: var(--muted-foreground);
}

/* ---------- Admin panel ---------- */

.admin-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.4rem;
	margin: 0 0 1.25rem;
}

.admin-tab {
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.65rem 0.4rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--muted-foreground);
	cursor: pointer;
}

.admin-tab.is-active {
	background: var(--accent);
	color: var(--accent-foreground);
	border-color: var(--ring);
}

.admin-item {
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--background);
	margin-bottom: 0.75rem;
}

.admin-item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.badge {
	display: inline-flex;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--secondary);
	border: 1px solid var(--border);
	color: var(--secondary-foreground);
	font-weight: 700;
	font-size: 0.72rem;
}

.admin-item-body {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--foreground);
	white-space: pre-wrap;
}

.admin-reply-box {
	padding: 0.75rem;
	border-radius: var(--radius);
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
}

.admin-reply-box p {
	margin: 0.35rem 0 0;
}

.admin-reply-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.btn-sm {
	min-height: 40px;
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
	align-self: flex-end;
}

.create-user-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.user-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.user-list li {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 0.45rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.user-list code {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	font-family: inherit;
}

.empty-state {
	text-align: center;
	color: var(--muted-foreground);
	font-weight: 600;
	padding: 1.5rem 0.5rem;
}

/* ---------- Inbox ---------- */

.inbox-item {
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--background);
	margin-bottom: 0.75rem;
}

.inbox-item.is-unread {
	border-color: var(--ring);
	background: var(--secondary);
}

.inbox-item-top {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.55rem;
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.inbox-item-top time {
	margin-right: auto;
}

.dot-new {
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
}

.inbox-orig,
.inbox-reply p {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.7;
}

.inbox-reply {
	margin-top: 0.75rem;
	padding: 0.75rem;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--border);
	font-size: 0.875rem;
}

/* ---------- PWA install overlay (one-time) ---------- */

body.pwa-overlay-open {
	overflow: hidden;
}

.pwa-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: end center;
	padding: 1rem;
	padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.pwa-overlay[hidden] {
	display: none !important;
}

.pwa-overlay-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(61, 36, 48, 0.35);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s var(--ease);
}

.pwa-overlay.is-open .pwa-overlay-backdrop {
	opacity: 1;
}

.pwa-overlay-card {
	position: relative;
	z-index: 1;
	width: min(100%, 380px);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: var(--elevation-3);
	padding: 1.5rem 1.25rem 1.25rem;
	text-align: center;
	transform: translateY(24px);
	opacity: 0;
	transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.pwa-overlay.is-open .pwa-overlay-card {
	transform: translateY(0);
	opacity: 1;
}

.pwa-overlay-icon {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	border: 1px solid var(--border);
	box-shadow: var(--elevation-1);
	margin: 0 auto 0.85rem;
	display: block;
}

.pwa-overlay-emoji {
	font-size: 2.5rem;
	line-height: 1;
	margin: 0 auto 0.75rem;
}

.pwa-overlay-emoji img.ios-emoji {
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
}

.pwa-overlay-title {
	margin: 0 0 0.45rem;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--foreground);
}

.pwa-overlay-text {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.pwa-overlay-hint {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	border-radius: var(--radius);
	background: var(--secondary);
	border: 1px solid var(--border);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--secondary-foreground);
}

.pwa-overlay-skip {
	margin-top: 0.5rem;
	width: 100%;
	justify-content: center;
}

/* ---------- Responsive ---------- */

@media (min-width: 480px) {
	.site-main {
		max-width: 420px;
	}

	.site-main-wide {
		max-width: 560px !important;
	}

	.card {
		padding: 1.75rem 1.5rem 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
