/* ==========================================================================
   AI ToolHub - Design System & Modern Responsive SaaS Stylesheet
   ========================================================================== */

:root {
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

	/* Light Palette */
	--bg-primary: #f8fafc;
	--bg-secondary: #ffffff;
	--bg-tertiary: #f1f5f9;
	--bg-card: rgba(255, 255, 255, 0.9);
	--bg-card-hover: #ffffff;
	--bg-glass: rgba(255, 255, 255, 0.75);
	--bg-glass-border: rgba(226, 232, 240, 0.8);
	
	--fg-primary: #0f172a;
	--fg-secondary: #334155;
	--fg-muted: #64748b;
	--fg-faint: #94a3b8;

	--border: #e2e8f0;
	--border-subtle: #f1f5f9;
	--border-hover: #cbd5e1;

	--accent: #6366f1;
	--accent-hover: #4f46e5;
	--accent-light: #e0e7ff;
	--accent-glow: rgba(99, 102, 241, 0.25);

	--accent-emerald: #10b981;
	--accent-emerald-light: #d1fae5;
	--accent-amber: #f59e0b;
	--accent-amber-light: #fef3c7;
	--accent-rose: #f43f5e;
	--accent-rose-light: #ffe4e6;
	--accent-cyan: #06b6d4;

	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
	--shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-full: 9999px;
}

[data-theme="dark"] {
	--bg-primary: #090d16;
	--bg-secondary: #0f172a;
	--bg-tertiary: #1e293b;
	--bg-card: rgba(15, 23, 42, 0.75);
	--bg-card-hover: rgba(30, 41, 59, 0.85);
	--bg-glass: rgba(15, 23, 42, 0.65);
	--bg-glass-border: rgba(255, 255, 255, 0.08);

	--fg-primary: #f8fafc;
	--fg-secondary: #cbd5e1;
	--fg-muted: #94a3b8;
	--fg-faint: #64748b;

	--border: #1e293b;
	--border-subtle: #141c2e;
	--border-hover: #334155;

	--accent: #6366f1;
	--accent-hover: #818cf8;
	--accent-light: rgba(99, 102, 241, 0.15);
	--accent-glow: rgba(99, 102, 241, 0.35);

	--accent-emerald: #10b981;
	--accent-emerald-light: rgba(16, 185, 129, 0.15);
	--accent-amber: #f59e0b;
	--accent-amber-light: rgba(245, 158, 11, 0.15);
	--accent-rose: #f43f5e;
	--accent-rose-light: rgba(244, 63, 94, 0.15);
	--accent-cyan: #38bdf8;

	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
	--shadow-glow: 0 0 35px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	font-family: var(--font);
	background-color: var(--bg-primary);
	color: var(--fg-primary);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

input, button, select, textarea {
	font: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

/* Background Atmospheric Gradients */
.app-bg-glow {
	position: fixed;
	top: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 1000px;
	height: 600px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
}

.app-container {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

/* ==========================================================================
   Top Announcement Banner
   ========================================================================== */
.announcement-bar {
	background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
	color: #ffffff;
	font-size: 0.84rem;
	font-weight: 600;
	padding: 0.45rem 1rem;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	position: relative;
	z-index: 100;
}

.announcement-bar span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.announcement-badge {
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(4px);
	padding: 0.15rem 0.5rem;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg-glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	transition: all 0.2s ease;
}

.nav-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	cursor: pointer;
	color: var(--fg-primary);
}

.logo-icon-wrap {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 1.1rem;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.brand-text {
	background: linear-gradient(135deg, var(--fg-primary) 30%, var(--accent) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.brand-badge {
	font-size: 0.68rem;
	padding: 0.15rem 0.45rem;
	background: var(--accent-light);
	color: var(--accent);
	border-radius: var(--radius-full);
	font-weight: 700;
	margin-left: 0.35rem;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
}

.nav-item-btn {
	background: transparent;
	border: 1px solid transparent;
	padding: 0.45rem 0.85rem;
	border-radius: var(--radius-md);
	color: var(--fg-secondary);
	font-weight: 500;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.nav-item-btn:hover {
	color: var(--fg-primary);
	background: var(--bg-tertiary);
}

.nav-item-btn.active {
	color: var(--accent);
	background: var(--accent-light);
	font-weight: 600;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.credit-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	background: var(--accent-emerald-light);
	color: var(--accent-emerald);
	border: 1px solid rgba(16, 185, 129, 0.25);
	border-radius: var(--radius-full);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.credit-pill:hover {
	transform: scale(1.03);
}

.theme-toggle-btn {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	color: var(--fg-secondary);
	width: 36px;
	height: 36px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
	background: var(--bg-tertiary);
	color: var(--fg-primary);
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1.15rem;
	border-radius: var(--radius-md);
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease;
	user-select: none;
	white-space: nowrap;
}

.btn-primary {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
	background: var(--bg-secondary);
	color: var(--fg-primary);
	border-color: var(--border);
}

.btn-secondary:hover {
	background: var(--bg-tertiary);
	border-color: var(--border-hover);
}

.btn-accent {
	background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}

.btn-accent:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

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

.btn-outline:hover {
	background: var(--bg-tertiary);
}

.btn-sm {
	padding: 0.35rem 0.75rem;
	font-size: 0.82rem;
	border-radius: var(--radius-sm);
}

.btn-lg {
	padding: 0.85rem 1.75rem;
	font-size: 1.05rem;
	border-radius: var(--radius-lg);
}

.btn-full {
	width: 100%;
}

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

/* ==========================================================================
   Landing Page Hero Section
   ========================================================================== */
.hero-section {
	padding: 3.5rem 1.25rem 2.5rem;
	text-align: center;
	position: relative;
	max-width: 1050px;
	margin: 0 auto;
}

.hero-pill-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 1rem;
	border-radius: var(--radius-full);
	background: var(--accent-light);
	border: 1px solid rgba(99, 102, 241, 0.3);
	color: var(--accent);
	font-size: 0.84rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
	animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
	50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.hero-title {
	font-size: clamp(2.25rem, 5.5vw, 3.85rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.12;
	margin-bottom: 1.25rem;
	color: var(--fg-primary);
}

.gradient-text {
	background: linear-gradient(135deg, #6366f1 10%, #a855f7 50%, #ec4899 90%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--fg-muted);
	max-width: 680px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

.hero-cta-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

/* ==========================================================================
   Live Countdown Timer Box
   ========================================================================== */
.countdown-box {
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	backdrop-filter: blur(12px);
	padding: 0.85rem 1.5rem;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg), var(--shadow-glow);
	margin-bottom: 3rem;
}

.countdown-label {
	display: flex;
	flex-direction: column;
	text-align: left;
	border-right: 1px solid var(--border);
	padding-right: 1.25rem;
}

.countdown-label-title {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--accent-rose);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.countdown-label-sub {
	font-size: 0.76rem;
	color: var(--fg-muted);
}

.countdown-digits-wrap {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.digit-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 48px;
}

.digit-val {
	font-family: var(--font-mono);
	font-size: 1.4rem;
	font-weight: 800;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	color: var(--fg-primary);
	padding: 0.2rem 0.5rem;
	border-radius: var(--radius-sm);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.digit-unit {
	font-size: 0.68rem;
	color: var(--fg-muted);
	text-transform: uppercase;
	margin-top: 0.2rem;
	font-weight: 600;
}

.digit-sep {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--fg-faint);
}

/* ==========================================================================
   Tool Cards & Grid Layouts
   ========================================================================== */
.section-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 3.5rem 1.25rem;
}

.section-header {
	text-align: center;
	max-width: 650px;
	margin: 0 auto 2.5rem;
}

.section-tag {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

.section-title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	margin-bottom: 0.75rem;
}

.section-desc {
	font-size: 1rem;
	color: var(--fg-muted);
	line-height: 1.6;
}

.filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
	background: var(--bg-card);
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.category-pills {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.category-pill {
	background: transparent;
	border: 1px solid transparent;
	padding: 0.4rem 0.85rem;
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fg-muted);
	cursor: pointer;
	transition: all 0.15s ease;
}

.category-pill:hover {
	color: var(--fg-primary);
	background: var(--bg-tertiary);
}

.category-pill.active {
	background: var(--accent);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.search-input-wrap {
	position: relative;
	min-width: 260px;
}

.search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--fg-faint);
	pointer-events: none;
}

.search-input {
	width: 100%;
	padding: 0.45rem 0.75rem 0.45rem 2.25rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--fg-primary);
	font-size: 0.88rem;
}

.search-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(18.5rem, 100%), 1fr));
	gap: 1.5rem;
}

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

.tool-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-hover);
	box-shadow: var(--shadow-xl), var(--shadow-glow);
	background: var(--bg-card-hover);
}

.tool-card-top {
	margin-bottom: 1.25rem;
}

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

.tool-icon-box {
	width: 46px;
	height: 46px;
	border-radius: var(--radius-md);
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.badge-tag {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
	border-radius: var(--radius-full);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.badge-popular {
	background: var(--accent-rose-light);
	color: var(--accent-rose);
	border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-featured {
	background: var(--accent-light);
	color: var(--accent);
	border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-new {
	background: var(--accent-emerald-light);
	color: var(--accent-emerald);
	border: 1px solid rgba(16, 185, 129, 0.25);
}

.tool-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
	color: var(--fg-primary);
}

.tool-card-desc {
	font-size: 0.88rem;
	color: var(--fg-muted);
	line-height: 1.5;
	margin-bottom: 1rem;
}

.tool-capabilities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
}

.capability-pill {
	font-size: 0.72rem;
	padding: 0.15rem 0.45rem;
	background: var(--bg-tertiary);
	color: var(--fg-secondary);
	border-radius: var(--radius-sm);
	font-weight: 500;
}

.tool-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.credit-cost-label {
	font-size: 0.78rem;
	color: var(--fg-muted);
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
}

/* ==========================================================================
   Tool Detail & Interactive Runner View
   ========================================================================== */
.tool-runner-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
}

.runner-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--border);
}

.runner-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.runner-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-lg);
	background: var(--accent-light);
	border: 1px solid rgba(99, 102, 241, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
}

.runner-title {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.runner-desc {
	font-size: 0.88rem;
	color: var(--fg-muted);
}

.runner-workspace-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 1.5rem;
}

@media (max-width: 860px) {
	.runner-workspace-grid {
		grid-template-columns: 1fr;
	}
}

.pane-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-shadow: var(--shadow-md);
}

.pane-title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.pane-heading {
	font-size: 1.05rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

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

.form-label {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--fg-secondary);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.form-textarea {
	width: 100%;
	min-height: 160px;
	padding: 0.85rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--fg-primary);
	font-size: 0.92rem;
	line-height: 1.5;
	resize: vertical;
}

.form-textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.options-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
}

.form-select, .form-input {
	width: 100%;
	padding: 0.55rem 0.75rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--fg-primary);
	font-size: 0.88rem;
}

.sample-prompts-bar {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sample-pill {
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-sm);
	font-size: 0.78rem;
	color: var(--fg-muted);
	cursor: pointer;
	text-align: left;
	transition: all 0.15s ease;
}

.sample-pill:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--accent-light);
}

/* Output Display Area */
.output-display-box {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	min-height: 280px;
	max-height: 520px;
	overflow-y: auto;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--fg-primary);
	position: relative;
}

.output-code-block {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	background: #0b0f19;
	color: #e2e8f0;
	padding: 1rem;
	border-radius: var(--radius-md);
	overflow-x: auto;
	white-space: pre-wrap;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.output-image-preview {
	width: 100%;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
}

.output-meta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.6rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.78rem;
	color: var(--fg-secondary);
}

/* ==========================================================================
   Pricing Table Section
   ========================================================================== */
.pricing-toggle-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.billing-toggle {
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	padding: 0.25rem;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
}

.toggle-btn {
	padding: 0.45rem 1.15rem;
	border-radius: var(--radius-full);
	font-size: 0.88rem;
	font-weight: 600;
	border: none;
	background: transparent;
	color: var(--fg-muted);
	cursor: pointer;
	transition: all 0.15s ease;
}

.toggle-btn.active {
	background: var(--bg-secondary);
	color: var(--fg-primary);
	box-shadow: var(--shadow-sm);
}

.save-badge {
	background: var(--accent-emerald-light);
	color: var(--accent-emerald);
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.2rem 0.55rem;
	border-radius: var(--radius-full);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
	gap: 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

.pricing-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	box-shadow: var(--shadow-md);
	transition: all 0.2s ease;
}

.pricing-card.featured-plan {
	border-color: var(--accent);
	background: linear-gradient(180deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
	box-shadow: var(--shadow-xl), var(--shadow-glow);
	transform: scale(1.02);
}

.popular-ribbon {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.85rem;
	border-radius: var(--radius-full);
	box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.plan-name {
	font-size: 1.25rem;
	font-weight: 800;
	margin-bottom: 0.35rem;
}

.plan-desc {
	font-size: 0.86rem;
	color: var(--fg-muted);
	margin-bottom: 1.5rem;
	min-height: 40px;
}

.plan-price-wrap {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--border);
}

.plan-price {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.plan-cycle {
	font-size: 0.88rem;
	color: var(--fg-muted);
}

.plan-features-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.88rem;
	color: var(--fg-secondary);
}

.feature-check {
	color: var(--accent-emerald);
	font-weight: 800;
	flex-shrink: 0;
}

/* ==========================================================================
   Auth Modal & Paywall Modal
   ========================================================================== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	animation: modal-fade 0.2s ease-out;
}

@keyframes modal-fade {
	from { opacity: 0; transform: scale(0.97); }
	to { opacity: 1; transform: scale(1); }
}

.modal-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 2rem;
	width: 100%;
	max-width: 460px;
	box-shadow: var(--shadow-xl), var(--shadow-glow);
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.modal-close-btn {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border);
	color: var(--fg-muted);
	width: 32px;
	height: 32px;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.modal-close-btn:hover {
	color: var(--fg-primary);
	background: var(--bg-card-hover);
}

/* ==========================================================================
   User Dashboard & Admin UI
   ========================================================================== */
.dashboard-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

.dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.stat-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.stat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--fg-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.stat-value {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--fg-primary);
	letter-spacing: -0.02em;
}

.stat-footer {
	font-size: 0.78rem;
	color: var(--fg-faint);
}

/* Admin Table Styles */
.data-table-wrap {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow-x: auto;
	box-shadow: var(--shadow-sm);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.data-table th {
	background: var(--bg-tertiary);
	color: var(--fg-muted);
	font-weight: 700;
	text-align: left;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--border);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.data-table td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--border);
	color: var(--fg-secondary);
}

.data-table tr:hover td {
	background: var(--bg-tertiary);
}

/* ==========================================================================
   Testimonials, FAQ & Footer
   ========================================================================== */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
	gap: 1.5rem;
}

.testimonial-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.25rem;
}

.testimonial-quote {
	font-size: 0.92rem;
	color: var(--fg-secondary);
	line-height: 1.6;
	font-style: italic;
}

.author-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.author-avatar {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	background: var(--accent-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--accent);
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-item {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.faq-question {
	font-size: 1.05rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--fg-primary);
}

.faq-answer {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: var(--fg-muted);
	line-height: 1.6;
}

.site-footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border);
	padding: 4rem 1.25rem 2rem;
	margin-top: auto;
}

.footer-shell {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr);
	gap: 2.5rem;
	margin-bottom: 3rem;
}

@media (max-width: 768px) {
	.footer-shell {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.footer-shell {
		grid-template-columns: 1fr;
	}
}

.footer-col-title {
	font-size: 0.88rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fg-primary);
	margin-bottom: 1rem;
}

.footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.footer-link {
	font-size: 0.88rem;
	color: var(--fg-muted);
	transition: color 0.15s ease;
	cursor: pointer;
}

.footer-link:hover {
	color: var(--accent);
}

.footer-bottom {
	max-width: 1240px;
	margin: 0 auto;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	color: var(--fg-faint);
	flex-wrap: wrap;
	gap: 1rem;
}

/* ==========================================================================
   Responsive Utilities & Animations
   ========================================================================== */
@media (max-width: 640px) {
	.nav-links {
		display: none;
	}
	.hero-title {
		font-size: 2.15rem;
	}
	.countdown-box {
		flex-direction: column;
		gap: 0.75rem;
		padding: 1rem;
	}
	.countdown-label {
		border-right: none;
		border-bottom: 1px solid var(--border);
		padding-right: 0;
		padding-bottom: 0.5rem;
		text-align: center;
	}
}
