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

:root {
	--primary: #6366f1;
	--primary-dark: #4f46e5;
	--primary-light: #818cf8;
	--secondary: #f8fafc;
	--accent: #10b981;
	--text: #0f172a;
	--text-light: #64748b;
	--text-lighter: #94a3b8;
	--border: #e2e8f0;
	--border-light: #f1f5f9;
	--shadow: rgba(0, 0, 0, 0.08);
	--shadow-md: rgba(0, 0, 0, 0.12);
	--shadow-lg: rgba(0, 0, 0, 0.16);
	--success: #10b981;
	--error: #ef4444;
	--warning: #f59e0b;
	--info: #3b82f6;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
		sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 20px;
	color: var(--text);
	overflow-x: hidden;
	line-height: 1.6;
}

.container {
	background: white;
	border-radius: 24px;
	box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.25);
	max-width: 1400px;
	width: 100%;
	padding: 32px;
	animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	margin: 0 auto;
}

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

/* Header */
header {
	margin-bottom: 32px;
	padding-bottom: 0;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	position: relative;
}

.header-buttons {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.language-selector-container {
	position: relative;
}

.language-selector {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: white;
	color: var(--text);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 150px;
}

.language-selector:hover {
	border-color: var(--primary);
	box-shadow: 0 2px 4px var(--shadow);
}

.language-selector:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
	.language-selector {
		min-width: 120px;
		font-size: 12px;
		padding: 6px 10px;
	}
}

#install-button-container {
	flex-shrink: 0;
}

.install-btn,
.support-btn {
	padding: 10px 18px;
	font-size: 0.875rem;
	white-space: nowrap;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* Support Us Button - Green/Donation Style */
.support-btn {
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
	position: relative;
	overflow: visible;
}

.support-btn::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: middle;
	opacity: 0.95;
	transition: transform 0.2s ease;
}

.support-btn:hover::before {
	transform: scale(1.15);
}

.support-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45);
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.support-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.support-btn:active::before {
	transform: scale(0.95);
}

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

.support-btn:disabled::before {
	opacity: 0.5;
}

/* Install App Button - Blue/Action Style */
.install-btn {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
	position: relative;
	overflow: visible;
}

.install-btn::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: middle;
	opacity: 0.95;
	transition: transform 0.2s ease;
}

.install-btn:hover::before {
	transform: translateY(-2px);
}

.install-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.install-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.install-btn:active::before {
	transform: translateY(0) scale(0.95);
}

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

.install-btn:disabled::before {
	opacity: 0.5;
}

.logo {
	width: 80px;
	height: 80px;
	display: block;
	flex-shrink: 0;
	object-fit: contain;
	border-radius: 25%;
	align-self: center;
	margin-top: 6.5px;
}

header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text);
	margin: 0;
	letter-spacing: -0.03em;
	line-height: 1.2;
	display: flex;
	align-items: center;
}

/* Main Layout */
.main-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.left-column,
.right-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Sections */
section {
	background: white;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	transition: all 0.3s ease;
}

section:hover {
	box-shadow: 0 4px 12px var(--shadow);
	border-color: var(--border-light);
}

section h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}

/* AI Search Section */
.ai-search-section {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.ai-header {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ai-header h2 {
	color: var(--text);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.01em;
}

.coming-soon-badge {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: white;
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.ai-input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.ai-input-group input {
	flex: 1;
	padding: 12px 16px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
	background: white;
	color: var(--text);
}

.ai-input-group input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ai-input-group input:disabled {
	background: #f8fafc;
	cursor: not-allowed;
	opacity: 0.6;
}

.ai-search-section.coming-soon {
	opacity: 0.7;
	position: relative;
}

.ai-search-section.coming-soon::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 16px;
	pointer-events: none;
	z-index: 1;
}

.ai-search-section.coming-soon .ai-header,
.ai-search-section.coming-soon .ai-input-group {
	position: relative;
	z-index: 2;
}

/* API Key Section */
.api-key-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.api-key-section details {
	cursor: pointer;
}

.api-key-section summary {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
	padding: 8px 0;
	list-style: none;
	user-select: none;
}

.api-key-section summary::-webkit-details-marker {
	display: none;
}

.api-key-section summary::before {
	content: "▶";
	display: inline-block;
	margin-right: 8px;
	transition: transform 0.2s ease;
	font-size: 0.75rem;
	color: var(--text-light);
}

.api-key-section details[open] summary::before {
	transform: rotate(90deg);
}

.api-key-input {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.api-key-input input {
	flex: 1;
	padding: 10px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: 0.9375rem;
	background: white;
	color: var(--text);
	font-family: monospace;
}

.api-key-input input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.api-key-hint {
	font-size: 0.75rem;
	color: var(--text-light);
	margin-top: 8px;
	margin-bottom: 0;
	font-style: italic;
}

/* Food Selector */
.food-selector label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
	margin-bottom: 6px;
	margin-top: 12px;
}

.food-selector label:first-of-type {
	margin-top: 0;
}

.food-selector select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: 0.9375rem;
	background: white;
	color: var(--text);
	cursor: pointer;
	transition: all 0.2s ease;
}

.food-selector select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.food-selector select:disabled {
	background: #f8fafc;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Manual Timer Section */
.manual-timer-section {
	background: var(--secondary);
	border-radius: 16px;
	padding: 20px;
	margin-top: 24px;
	border: 1.5px solid var(--border);
}

.manual-timer-section h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 16px;
}

.manual-timer-section label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
	margin-bottom: 6px;
	margin-top: 12px;
}

.manual-timer-section label:first-of-type {
	margin-top: 0;
}

.manual-timer-section input[type="text"],
.manual-timer-section input[type="number"] {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: 0.9375rem;
	background: white;
	color: var(--text);
	transition: all 0.2s ease;
}

.manual-timer-section input[type="text"]:focus,
.manual-timer-section input[type="number"]:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.manual-timer-section input[type="number"] {
	-moz-appearance: textfield;
}

.manual-timer-section input[type="number"]::-webkit-outer-spin-button,
.manual-timer-section input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#create-manual-timer-btn {
	width: 100%;
	margin-top: 16px;
}

/* Searchable Select Styles */
.searchable-select-wrapper {
	position: relative;
	width: 100%;
}

.searchable-select-button {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: 0.9375rem;
	background: white;
	color: var(--text);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
}

.searchable-select-button:hover:not(:disabled) {
	border-color: var(--primary-light);
}

.searchable-select-button:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.searchable-select-button.active {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.searchable-select-button:disabled {
	background: #f8fafc;
	cursor: not-allowed;
	opacity: 0.6;
}

.select-text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.select-arrow {
	font-size: 0.75rem;
	color: var(--text-light);
	transition: transform 0.2s ease;
	margin-left: 8px;
}

.searchable-select-button.active .select-arrow {
	transform: rotate(180deg);
}

.searchable-select-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	margin-top: 4px;
	max-height: 300px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.searchable-select-search {
	width: 100%;
	padding: 10px 14px;
	border: none;
	border-bottom: 1px solid var(--border);
	border-radius: 10px 10px 0 0;
	font-size: 0.9375rem;
	background: white;
	color: var(--text);
	outline: none;
}

.searchable-select-search:focus {
	background: var(--secondary);
}

.searchable-select-options {
	max-height: 250px;
	overflow-y: auto;
	padding: 4px 0;
}

.searchable-select-option {
	padding: 10px 14px;
	cursor: pointer;
	transition: all 0.15s ease;
	color: var(--text);
	font-size: 0.9375rem;
}

.searchable-select-option:hover {
	background: var(--secondary);
	color: var(--primary);
}

.searchable-select-option.selected {
	background: rgba(99, 102, 241, 0.1);
	color: var(--primary);
	font-weight: 600;
}

.searchable-select-no-results {
	padding: 10px 14px;
	color: var(--text-light);
	font-size: 0.875rem;
	text-align: center;
	font-style: italic;
}

/* Timers Section - Multi-Timer Layout */
.timers-section {
	width: 100%;
}

.timers-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.timers-header h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	margin: 0;
}

.timers-count {
	background: var(--primary);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	min-width: 28px;
	text-align: center;
}

.timers-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: 600px;
	overflow-y: auto;
	padding-right: 4px;
}

.timers-container::-webkit-scrollbar {
	width: 6px;
}

.timers-container::-webkit-scrollbar-track {
	background: var(--border-light);
	border-radius: 3px;
}

.timers-container::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

.timers-container::-webkit-scrollbar-thumb:hover {
	background: var(--text-light);
}

.timers-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-light);
}

.timers-empty-icon {
	width: 120px;
	height: 120px;
	margin: 0 auto 16px;
	opacity: 0.6;
	object-fit: contain;
}

.timers-empty-text {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 8px;
}

.timers-empty-hint {
	font-size: 0.9375rem;
	color: var(--text-light);
}

/* Timer Card */
.timer-card {
	background: white;
	border: 2px solid var(--border);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideOut {
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

.timer-card:hover {
	border-color: var(--primary-light);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.timer-card.timer-finished-card {
	border-color: var(--accent);
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	animation: celebrateCard 0.6s ease;
}

@keyframes celebrateCard {
	0%,
	100% {
		transform: scale(1);
	}
	25% {
		transform: scale(1.02) rotate(1deg);
	}
	75% {
		transform: scale(1.02) rotate(-1deg);
	}
}

.timer-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
}

.timer-card-info {
	flex: 1;
}

.timer-food-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 4px 0;
}

.timer-method {
	font-size: 0.875rem;
	color: var(--text-light);
	margin: 0;
}

.timer-delete-btn {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	color: var(--text-light);
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.2s ease;
	line-height: 1;
	padding: 0;
	flex-shrink: 0;
}

.timer-delete-btn:hover {
	background: var(--error);
	color: white;
	transform: scale(1.1);
}

.timer-card-body {
	margin-bottom: 16px;
}

.timer-card-time {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary);
	text-align: center;
	margin-bottom: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	transition: all 0.3s ease;
}

.timer-card-time.running {
	color: var(--primary-dark);
	animation: pulseTime 2s ease-in-out infinite;
}

.timer-card-time.finished {
	color: var(--accent);
	font-size: 2.75rem;
	animation: celebrateTime 0.6s ease;
}

@keyframes pulseTime {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

@keyframes celebrateTime {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.timer-card-temperature {
	font-size: 0.875rem;
	color: var(--primary-dark);
	font-weight: 600;
	margin-bottom: 8px;
	padding: 8px 12px;
	background: rgba(99, 102, 241, 0.1);
	border-radius: 8px;
	border-left: 3px solid var(--primary);
}

.timer-card-temperature strong {
	color: var(--primary);
}

.timer-card-tips {
	font-size: 0.875rem;
	color: var(--text);
	line-height: 1.5;
	padding: 12px;
	background: var(--secondary);
	border-radius: 10px;
	border-left: 3px solid var(--primary-light);
	margin-top: 8px;
}

.timer-card-controls {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-sm {
	padding: 8px 16px;
	font-size: 0.875rem;
	min-width: 80px;
}

/* Buttons */
.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

.btn-primary {
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	color: white;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary {
	background: white;
	color: var(--text);
	border: 1.5px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
	background: var(--secondary);
	border-color: var(--primary-light);
	transform: translateY(-2px);
}

/* Info Panel */
.info-panel {
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	border: 2px solid #6ee7b7;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 12px rgba(110, 231, 183, 0.2);
	position: relative;
	overflow: hidden;
}

.info-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #6ee7b7 0%, #34d399 100%);
}

.info-panel h3 {
	color: #047857;
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 12px 0;
	letter-spacing: -0.01em;
}

.info-panel p {
	color: #059669;
	font-size: 0.9375rem;
	line-height: 1.7;
	margin: 0;
	font-weight: 500;
}

/* Loading Spinner */
.spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Message Toast */
.message-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	padding: 14px 20px;
	border-radius: 12px;
	color: white;
	font-weight: 500;
	font-size: 0.9375rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	animation: slideIn 0.3s ease;
	display: none;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.message-success {
	background: var(--success);
}

.message-error {
	background: var(--error);
}

.message-warning {
	background: var(--warning);
}

.message-info {
	background: var(--info);
}

/* Monetization Footer */
.monetization-footer {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.ad-container {
	background: var(--secondary);
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0;
	text-align: center;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ad-placeholder {
	color: var(--text-lighter);
	font-size: 0.875rem;
}

.ad-placeholder p {
	margin: 0;
}

/* Support Section */
.support-section {
	margin: 24px 0;
	padding: 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 16px;
	position: relative;
	border: 1px solid var(--border);
}

.support-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.support-header h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
	letter-spacing: -0.01em;
}

.support-section.coming-soon {
	opacity: 0.7;
}

.support-section.coming-soon::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	pointer-events: none;
	z-index: 1;
}

.support-section.coming-soon .support-header,
.support-section.coming-soon .support-info,
.support-section.coming-soon .support-buttons {
	position: relative;
	z-index: 2;
}

.query-status {
	font-size: 0.875rem;
	color: var(--text);
	margin: 0 0 16px 0;
	font-weight: 500;
}

.support-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.btn-support {
	background: #ef4444;
	color: white;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 0.9375rem;
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
	min-width: 140px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
}

.btn-support:hover {
	background: #dc2626;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-premium {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: white;
	padding: 12px 24px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	font-size: 0.9375rem;
	box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
	min-width: 140px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-premium:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Premium Modal */
.modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
	backdrop-filter: blur(4px);
}

.modal-content {
	background: white;
	border-radius: 24px;
	padding: 32px;
	max-width: 700px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
	position: absolute;
	right: 24px;
	top: 24px;
	font-size: 28px;
	font-weight: bold;
	color: var(--text-light);
	cursor: pointer;
	transition: color 0.3s;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.modal-close:hover {
	color: var(--text);
	background: var(--secondary);
}

.modal-content h2 {
	margin-bottom: 24px;
	color: var(--text);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.premium-features {
	margin: 24px 0;
}

.premium-features ul {
	list-style: none;
	padding: 0;
}

.premium-features li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9375rem;
	color: var(--text);
}

.premium-features li:last-child {
	border-bottom: none;
}

.premium-pricing {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.pricing-option {
	background: var(--secondary);
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	position: relative;
	transition: transform 0.3s ease;
	border: 1px solid var(--border);
}

.pricing-option:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px var(--shadow);
}

.pricing-option.featured {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: white;
	border: none;
}

.pricing-option.featured h3,
.pricing-option.featured .price {
	color: white;
}

.badge {
	position: absolute;
	top: -10px;
	right: 12px;
	background: var(--success);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
}

.pricing-option h3 {
	margin: 0 0 12px 0;
	font-size: 1.125rem;
	color: var(--text);
	font-weight: 600;
}

.price {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 12px 0;
	color: var(--text);
	letter-spacing: -0.02em;
}

.price span {
	font-size: 0.875rem;
	font-weight: 400;
}

.savings {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 8px 0;
}

.premium-note {
	font-size: 0.875rem;
	color: var(--text-light);
	text-align: center;
	margin-top: 24px;
}

/* Affiliate Section */
.affiliate-section {
	margin: 32px 0;
	padding: 24px;
	background: var(--secondary);
	border-radius: 16px;
	position: relative;
	border: 1px solid var(--border);
}

.affiliate-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.affiliate-header h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
	letter-spacing: -0.01em;
}

.affiliate-section.coming-soon {
	opacity: 0.7;
}

.affiliate-section.coming-soon::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	pointer-events: none;
	z-index: 1;
}

.affiliate-section.coming-soon > * {
	position: relative;
	z-index: 2;
}

.affiliate-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.affiliate-link {
	text-decoration: none;
	color: var(--text);
	transition: all 0.3s ease;
	cursor: pointer;
}

.affiliate-section.coming-soon .affiliate-link {
	cursor: not-allowed;
	opacity: 0.6;
}

.affiliate-item {
	background: white;
	padding: 16px 20px;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.affiliate-item:hover {
	transform: translateX(5px);
	box-shadow: 0 4px 12px var(--shadow);
	border-color: var(--primary-light);
}

.affiliate-item span:first-child {
	font-weight: 500;
	color: var(--text);
}

.affiliate-arrow {
	color: var(--primary);
	font-size: 1.25rem;
	font-weight: 600;
}

.affiliate-disclosure {
	font-size: 0.75rem;
	color: var(--text-light);
	text-align: center;
	margin: 0;
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.container {
		padding: 24px;
	}

	.main-content {
		gap: 20px;
	}

	.timers-container {
		max-height: 500px;
	}

	.timer-card-time {
		font-size: 2.25rem;
	}

	.timer-card-time.finished {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	body {
		padding: 8px;
	}

	.container {
		padding: 16px;
		border-radius: 16px;
	}

	header {
		margin-bottom: 20px;
	}

	.header-content {
		gap: 10px;
	}

	header h1 {
		font-size: 1.375rem;
	}

	.logo {
		width: 40px;
		height: 40px;
	}

	.main-content {
		grid-template-columns: 1fr;
		gap: 16px;
		/* Reorder: timers first on mobile */
		display: flex;
		flex-direction: column;
	}

	/* Reorder columns on mobile - timers first */
	.left-column {
		order: 2;
	}

	.right-column {
		order: 1;
	}

	/* Make sections more compact */
	section {
		padding: 16px;
		margin-bottom: 0;
	}

	section h3 {
		font-size: 1.0625rem;
		margin-bottom: 14px;
	}

	.time-circle {
		width: 180px;
		height: 180px;
	}

	.time-text {
		font-size: 2.5rem;
	}

	.timer-controls {
		flex-direction: row;
		justify-content: center;
	}

	.timers-section {
		/* Ensure timers are visible first */
		min-height: auto;
	}

	.timers-container {
		max-height: 500px;
		overflow-y: auto;
	}

	.timer-card {
		padding: 12px;
		margin-bottom: 8px;
	}

	.timer-card-header {
		margin-bottom: 8px;
	}

	.timer-card-time {
		font-size: 1.75rem;
		margin-bottom: 8px;
	}

	.timer-card-time.finished {
		font-size: 2rem;
	}

	.timer-card-body {
		margin-bottom: 8px;
	}

	.timer-card-temperature,
	.timer-card-tips {
		font-size: 0.75rem;
		padding: 6px 8px;
		margin-bottom: 4px;
	}

	/* Make food selector collapsible on mobile */
	.food-selector {
		padding: 12px;
		position: relative;
	}

	.food-selector h3 {
		cursor: pointer;
		user-select: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 0;
		padding: 6px 0;
	}

	.food-selector h3::after {
		content: "▼";
		font-size: 0.75rem;
		color: var(--text-light);
		transition: transform 0.3s ease;
		margin-left: 8px;
		flex-shrink: 0;
	}

	.food-selector.collapsed h3::after {
		transform: rotate(-90deg);
	}

	.food-selector.collapsed .food-selector-content {
		display: none;
	}

	.food-selector-content {
		margin-top: 12px;
		animation: slideDown 0.3s ease;
	}

	@keyframes slideDown {
		from {
			opacity: 0;
			transform: translateY(-10px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.food-selector label {
		font-size: 0.875rem;
		margin-bottom: 6px;
		margin-top: 10px;
	}

	.food-selector select {
		padding: 10px 14px;
		font-size: 0.9375rem;
	}

	/* Compact manual timer */
	.manual-timer-section {
		padding: 14px;
		margin-top: 16px;
	}

	.manual-timer-section label {
		font-size: 0.875rem;
		margin-bottom: 6px;
		margin-top: 10px;
	}

	.manual-timer-section input {
		padding: 10px 14px;
		font-size: 0.9375rem;
	}

	.manual-timer-section .btn {
		margin-top: 12px;
		padding: 12px 20px;
		font-size: 0.9375rem;
	}

	/* Show AI section but make it compact */
	.ai-search-section {
		padding: 14px;
		margin-top: 16px;
	}

	.timer-card-controls {
		gap: 6px;
	}

	.btn-sm {
		padding: 6px 12px;
		font-size: 0.8125rem;
		min-width: 70px;
	}

	.btn {
		flex: 1;
		min-width: 100px;
	}

	.support-header {
		justify-content: center;
		text-align: center;
	}

	.affiliate-header {
		justify-content: center;
		text-align: center;
	}

	.support-buttons {
		width: 100%;
		justify-content: center;
	}

	.btn-support,
	.btn-premium {
		flex: 1;
		min-width: 140px;
	}

	.premium-pricing {
		grid-template-columns: 1fr;
	}

	.modal-content {
		padding: 24px;
	}
}

@media (max-width: 480px) {
	body {
		padding: 4px;
	}

	.container {
		padding: 10px;
		border-radius: 12px;
	}

	header {
		margin-bottom: 12px;
	}

	.logo {
		width: 32px;
		height: 32px;
	}

	header h1 {
		font-size: 1.125rem;
	}

	.header-content {
		justify-content: flex-start;
		align-items: center;
		flex-wrap: wrap;
	}

	.header-buttons {
		width: 100%;
		justify-content: center;
		margin-top: 8px;
		order: 3;
		flex-wrap: wrap;
		gap: 8px;
		display: flex;
		align-items: center;
	}

	/* Make footer more compact on mobile */
	.monetization-footer {
		margin-top: 12px;
		padding-top: 12px;
	}

	.ad-container {
		margin: 8px 0;
	}

	.support-btn,
	.install-btn {
		flex: 1;
		min-width: 130px;
		max-width: 200px;
	}

	#install-button-container {
		width: auto;
		flex: 1;
		min-width: 130px;
		max-width: 200px;
		display: flex;
	}

	#install-button-container .install-btn {
		width: 100%;
	}

	.logo {
		width: 40px;
		height: 40px;
		align-self: center;
	}

	.timers-container {
		max-height: 400px;
		overflow-y: auto;
	}

	.timer-card {
		padding: 12px;
		margin-bottom: 8px;
	}

	.timer-card-header {
		margin-bottom: 8px;
	}

	.timer-food-name {
		font-size: 1rem;
	}

	.timer-method {
		font-size: 0.8125rem;
	}

	.timer-card-time {
		font-size: 1.75rem;
		margin-bottom: 8px;
	}

	.timer-card-time.finished {
		font-size: 2rem;
	}

	.timer-card-temperature {
		font-size: 0.75rem;
		padding: 6px 10px;
		margin-bottom: 6px;
	}

	.timer-card-tips {
		font-size: 0.75rem;
		padding: 8px 10px;
		margin-top: 6px;
	}

	.timer-card-controls {
		gap: 4px;
	}

	.btn-sm {
		padding: 6px 10px;
		font-size: 0.75rem;
		min-width: 60px;
	}

	header h1 {
		font-size: 1.25rem;
		line-height: 1.2;
	}

	section {
		padding: 12px;
	}

	section h3 {
		font-size: 0.9375rem;
		margin-bottom: 10px;
	}

	/* Even more compact food selector */
	.food-selector {
		padding: 8px;
	}

	.food-selector h3 {
		font-size: 0.875rem;
		padding: 2px 0;
	}

	.food-selector-content {
		margin-top: 8px;
	}

	.food-selector label {
		font-size: 0.75rem;
		margin-bottom: 3px;
		margin-top: 6px;
	}

	.food-selector select {
		padding: 7px 10px;
		font-size: 0.8125rem;
	}

	.manual-timer-section {
		padding: 10px;
		margin-top: 10px;
	}

	.manual-timer-section label {
		font-size: 0.75rem;
		margin-bottom: 3px;
		margin-top: 6px;
	}

	.manual-timer-section input {
		padding: 7px 10px;
		font-size: 0.8125rem;
	}

	.time-circle {
		width: 160px;
		height: 160px;
	}

	.time-text {
		font-size: 2.25rem;
	}

	.timer-controls {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.custom-inputs {
		flex-wrap: wrap;
	}

	.custom-inputs input {
		width: 60px;
	}

	.ai-input-group {
		flex-direction: column;
	}

	.ai-input-group .btn {
		width: 100%;
	}

	.support-buttons {
		flex-direction: column;
	}

	.btn-support,
	.btn-premium {
		width: 100%;
	}

	.message-toast {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
	}
}

/* Pulse animation for upgrade button */
@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}
