/* ==========================================================================
   1. VARIABLES, RESET & GLOBAL
   ========================================================================== */
:root {
	/* Backgrounds */
	--bg-dark: #1C1917; /* Studio 900 */
	--bg-card: #292524; /* Studio 800 */
	--bg-border: #44403C; /* Studio 700 */
	--bg-muted: #57534E; /* Studio 600 */
	/* Accents */
	--accent-orange: #F97316;
	--accent-hover: #EA580C;
	--accent-yellow: #F59E0B;
	--accent-blue: #2563EB; /* Payment/Info */
	/* Text */
	--text-white: #FFFFFF;
	--text-main: #F5F5F4; /* Stone 200 */
	--text-muted: #A8A29E; /* Stone 400 */
	--text-placeholder: #78716C;
	/* States */
	--success: #16A34A;
	--danger: #EF4444;
	/* Gradients */
	--grad-primary: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
	--grad-dark: linear-gradient(180deg, #1C1917 0%, #292524 100%);
	/* Layout & Spacing */
	--radius-lg: 12px;
	--radius-md: 8px;
	--radius-sm: 4px;
	--container-width: 1200px;
}

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

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--bg-dark);
	color: var(--text-main);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
}

ul {
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

img {
	display: block;
	max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
	background: var(--bg-muted);
	border-radius: 4px;
}


/* ==========================================================================
   2. SHARED COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn-primary {
	background: var(--grad-primary);
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: transform 0.2s, box-shadow 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

	.btn-primary:hover {
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
	}

.btn-outline {
	background: transparent;
	border: 1px solid var(--bg-muted);
	color: var(--text-white);
	padding: 12px 24px;
	border-radius: var(--radius-md);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: border-color 0.2s;
}

	.btn-outline:hover {
		border-color: var(--text-white);
	}

.btn-text {
	color: var(--text-white);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: color 0.2s;
}

	.btn-text:hover {
		color: var(--accent-orange);
	}

.btn-sm {
	font-size: 0.8rem;
	padding: 6px 12px;
}

.btn-full {
	width: 100%;
	display: block;
	text-align: center;
	margin-top: 20px;
}

.btn-danger-outline {
	color: var(--danger);
	border-color: var(--danger);
}

	.btn-danger-outline:hover {
		background-color: rgba(239, 68, 68, 0.1);
	}

/* --- Text & Utilities --- */
.gradient-text {
	background: var(--grad-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.page-header {
	margin-bottom: 2rem;
}

	.page-header h2 {
		font-size: 1.8rem;
		color: var(--text-white);
		font-weight: 700;
	}

.highlight-orange {
	color: var(--accent-orange);
}

.highlight-blue {
	color: var(--accent-blue);
	font-weight: 600;
}

.float-right {
	margin-left: auto;
}

.link-accent-sm {
	font-size: 0.8rem;
	color: var(--accent-orange);
	font-weight: 500;
}

	.link-accent-sm:hover {
		text-decoration: underline;
	}

/* --- Forms (Global) --- */
.form-group {
	margin-bottom: 1.25rem;
}

.form-label {
	display: block;
	color: var(--text-main);
	font-size: 0.85rem;
	margin-bottom: 6px;
	font-weight: 500;
}

.form-input, .settings-form input {
	width: 100%;
	padding: 12px;
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-md);
	color: var(--text-white);
	font-size: 0.95rem;
	transition: border-color 0.2s;
	outline: none;
}

.settings-form input {
	background-color: var(--bg-dark);
}

	.form-input:focus, .settings-form input:focus {
		border-color: var(--accent-orange);
		box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
	}

.input-readonly {
	opacity: 0.7;
	cursor: not-allowed;
}

/* --- Alerts --- */
.alert {
	position: relative;
	padding: 12px 16px;
	margin-bottom: 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-size: 0.9rem;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	line-height: 1.5;
}

	.alert i {
		font-size: 1.1rem;
		margin-top: 1px;
	}

.alert-danger {
	background-color: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.2);
	color: #FCA5A5;
}

	.alert-danger i {
		color: var(--danger);
	}

.alert-warning {
	background-color: rgba(245, 158, 11, 0.1);
	border-color: rgba(245, 158, 11, 0.2);
	color: #FCD34D;
}

	.alert-warning i {
		color: var(--accent-yellow);
	}

.alert-info {
	background-color: rgba(37, 99, 235, 0.1);
	border-color: rgba(37, 99, 235, 0.2);
	color: #93C5FD;
}

	.alert-info i {
		color: var(--accent-blue);
	}

.alert-success {
	background-color: rgba(22, 163, 74, 0.1);
	border-color: rgba(22, 163, 74, 0.2);
	color: #86EFAC;
}

	.alert-success i {
		color: var(--success);
	}

.alert-dismissible {
	padding-right: 3rem;
}

.btn-close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: inherit;
	opacity: 0.5;
	font-size: 1rem;
	cursor: pointer;
	padding: 4px;
	transition: opacity 0.2s;
}

	.btn-close:hover {
		opacity: 1;
	}


/* ==========================================================================
   3. APP LAYOUT (Sidebar + Main Content)
   ========================================================================== */
body:not(.landing-page) {
	height: 100vh;
	display: flex;
	overflow: auto;
}

/* Sidebar */
.sidebar {
	width: 260px;
	background-color: var(--bg-dark);
	border-right: 1px solid var(--bg-border);
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	flex-shrink: 0;
	z-index: 50;
}

.logo-d {
	margin-bottom: 2rem;
}

.logo h1 {
	color: var(--accent-orange);
	font-size: 1.25rem;
	font-weight: 700;
	background: var(--grad-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.logo span {
	color: var(--text-muted);
	margin-top: 4px;
	font-size: 0.7rem;
}

/* Navigation */
.nav-links li {
	margin-bottom: 0.5rem;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.9rem;
}

	.nav-link:hover {
		color: var(--text-white);
		background-color: var(--bg-border);
	}

	.nav-link.active {
		color: var(--accent-orange);
		background-color: rgba(249, 115, 22, 0.1);
		border: 1px solid var(--bg-border);
	}

/* Sidebar Token Widget */
.token-widget {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-md);
	padding: 1rem;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.token-label {
	display: block;
	font-size: 0.7rem;
	color: var(--text-muted);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.token-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.token-widget strong {
	font-size: 1.2rem;
	color: var(--text-white);
	line-height: 1;
}

.btn-buy-nav {
	background-color: var(--bg-border);
	color: var(--text-white);
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 0.8rem;
	transition: background 0.2s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

	.btn-buy-nav:hover {
		background-color: var(--bg-muted);
	}

/* Sidebar Footer */
.sidebar-footer {
	margin-top: auto;
	border-top: 1px solid var(--bg-border);
	padding-top: 1rem;
}

.user-profile-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	margin: -8px 0px 0px 0px;
	margin-bottom: 0.5rem;
	border-radius: var(--radius-md);
	transition: background-color 0.2s;
	cursor: pointer;
	text-decoration: none;
}

	.user-profile-link:hover {
		background-color: var(--bg-card);
	}

	.user-profile-link h4 {
		color: var(--text-white);
		font-size: 0.9rem;
	}

	.user-profile-link p {
		color: var(--text-muted);
		font-size: 0.75rem;
	}

.avatar {
	width: 42px; /* Slightly larger for better look */
	height: 42px;
	min-width: 42px; /* Prevent shrinking */
	min-height: 42px;
	border-radius: 50%; /* Perfect Circle */
	object-fit: cover; /* CRITICAL: Crops image to fit circle without stretching */
	object-position: center;
	background-color: var(--accent-orange);
	color: white;
	/* Flex alignment for the Text Placeholder version */
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	font-size: 1.1rem;
	line-height: 1;
}

.d-none {
	display: none !important;
}

.sign-out {
	display: flex;
	align-items: center;
	justify-content: center; /* Centers content horizontally */
	width: 100%; /* Takes full width of sidebar */	
	color: var(--danger);
	font-size: 0.85rem;
	gap: 8px;
	padding: 8px 0; /* Adds vertical clickable area */
	text-decoration: none;
	transition: background-color 0.2s, opacity 0.2s;
	border-radius: var(--radius-md);
}

	/* Optional: Add a subtle hover background for better UX */
	.sign-out:hover {
		background-color: rgba(239, 68, 68, 0.1); /* 10% Opacity Red */
		opacity: 1;
	}

/* Main Content Area */
.main-content {
	flex: 1;
	padding: 2rem 3rem;
	overflow-y: auto;
	position: relative;
}


/* ==========================================================================
   4. PAGE: STUDIO (Wizard)
   ========================================================================== */
.stepper-container {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap; /* ALLOWS WRAPPING ON MOBILE */
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: 12px; /* Rounded corners like screenshot */
	padding: 12px 20px;
	margin-bottom: 2rem;
	gap: 8px 0; /* Vertical spacing for wrapped lines */
	max-width: 100%;
}

.step-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: default;
	white-space: nowrap; /* Keeps "1 Choose Style" together */
	transition: all 0.3s ease;
}

	.step-item .circle {
		width: 26px;
		height: 26px;
		border-radius: 50%;
		background: var(--bg-border); /* Inactive Grey */
		color: var(--text-muted);
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 0.8rem;
		font-weight: 700;
		transition: all 0.3s ease;
	}

	/* Active State */
	.step-item.active {
		color: var(--accent-orange);
	}

		.step-item.active .circle {
			background: var(--accent-orange);
			color: var(--text-white);
		}

/* Divider Arrow */
.step-divider {
	color: var(--bg-muted);
	margin: 0 12px;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
}

/* Wizard Elements */
.wizard-step {
	display: none;
	animation: fadeIn 0.4s ease;
}

	.wizard-step.active-step {
		display: block;
	}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.step-header-row {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 1.5rem;
}

.back-btn {
	color: var(--text-muted);
	font-size: 1.2rem;
	cursor: pointer;
	transition: color 0.2s;
}

	.back-btn:hover {
		color: var(--text-white);
	}

.step-title h3 {
	font-size: 1.4rem;
	color: var(--text-white);
	font-weight: 600;
	line-height: 1.2;
}

.step-subtitle {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-top: 2px;
}

/* Style Grid */
.style-grid {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 2rem;
	align-items: start;
}

.style-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	margin-bottom: 1rem;
	cursor: pointer;
	transition: all 0.2s;
}

	.style-card:hover {
		border-color: var(--bg-muted);
	}

	.style-card.selected {
		border-color: var(--accent-orange);
		box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
	}

.card-top {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.radio-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--bg-muted);
}

.style-card.selected .radio-dot {
	border-color: var(--accent-orange);
	background: var(--accent-orange);
	position: relative;
}

	.style-card.selected .radio-dot::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 6px;
		height: 6px;
		background: white;
		border-radius: 50%;
	}

/* Preview & Result */
.preview-box {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}

.compare-img {
	display: flex;
	gap: 1rem;
	margin: 1.5rem 0;
	position: relative;
	justify-content: center;
}

.img-container {
	position: relative;
	width: 45%;
	aspect-ratio: 3/4;
	border-radius: 8px;
	overflow: hidden;
}

	.img-container img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

.badge {
	/*position: absolute;*/
	bottom: 10px;
	left: 10px;
	padding: 4px 8px;
	font-size: 0.75rem;
	border-radius: 4px;
	color: white;
	font-weight: 600;
}

.bg-studio-900 {
	background-color: #1C1917;
}

.border-studio-700 {
	border-color: #44403C;
}

.text-sm {
	font-size: 0.85rem;
}

.fw-bold {
	font-weight: 600;
}

.b-before {
	background: rgba(0,0,0,0.6);
}

.b-after {
	background: var(--accent-orange);
}

.upload-zone {
	width: 100%;
	height: 500px;
	border: 2px dashed var(--accent-orange);
	background-color: var(--bg-dark);
	border-radius: var(--radius-lg);
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

	.upload-zone img {
		max-height: 90%;
		max-width: 90%;
		border-radius: 4px;
		box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	}

.review-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 3rem;
}

.review-image-col {
	background: #000;
	border-radius: var(--radius-lg);
	padding: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--bg-border);
}

	.review-image-col img, .result-frame img {
		max-height: 60vh;
		max-width: 100%;
		display: block;
	}

.review-controls {
	display: flex;
	flex-direction: column;
}

.review-info-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.info-label {
	font-size: 0.75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.info-value {
	font-size: 1.2rem;
	color: var(--text-white);
	font-weight: 700;
}

.cost-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
}

.cost-val {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-white);
	font-weight: 600;
	font-size: 1.1rem;
}

.cost-dot {
	width: 10px;
	height: 10px;
	background: var(--accent-orange);
	border-radius: 50%;
}

.result-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.result-frame {
	border: 4px solid #3F3025;
	box-shadow: 0 0 0 1px #59402D;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
}

	.result-frame::before {
		content: '';
		position: absolute;
		inset: 0;
		box-shadow: inset 0 0 40px rgba(249, 115, 22, 0.2);
		pointer-events: none;
		z-index: 2;
	}

.result-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}


/* ==========================================================================
   5. PAGE: PRICING (APP)
   ========================================================================== */
.pricing-header {
	text-align: center;
	margin-bottom: 2rem;
}

.payment-toggle {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	padding: 4px;
	border-radius: 8px;
	display: inline-flex;
	gap: 4px;
	margin-bottom: 3rem;
}

.toggle-btn {
	padding: 8px 16px;
	border-radius: 6px;
	color: var(--text-muted);
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
}

	.toggle-btn.active {
		background-color: var(--accent-blue);
		color: white;
		font-weight: 500;
	}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	width: 100%;
	max-width: 1000px;
}

.pricing-card {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
}

	.pricing-card.popular {
		border: 1px solid var(--accent-orange);
		box-shadow: 0 0 20px rgba(249, 115, 22, 0.05);
	}

.popular-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--grad-primary);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
}

.token-count {
	font-size: 4rem;
	font-weight: 800;
	color: var(--text-white);
	line-height: 1;
}

.feature-list {
	text-align: left;
	margin-bottom: 2rem;
	flex-grow: 1;
	padding-left: 1rem;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--text-main);
	font-size: 0.9rem;
}

	.feature-item i {
		color: var(--accent-orange);
	}

.btn-card {
	width: 100%;
	padding: 12px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	background-color: var(--bg-border);
	color: var(--text-white);
	border: 1px solid var(--bg-border);
	transition: 0.2s;
}

	.btn-card:hover {
		background-color: var(--bg-muted);
	}

	.btn-card.btn-popular {
		background: var(--grad-primary);
		border: none;
	}


/* ==========================================================================
   6. PAGE: HISTORY
   ========================================================================== */
.creations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	padding-bottom: 2rem;
}

.creation-card {
	position: relative;
	background-color: var(--bg-card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4/5;
	cursor: pointer;
	border: 1px solid transparent;
	transition: border-color 0.2s;
}

	.creation-card:hover {
		border-color: var(--bg-muted);
	}

.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.creation-card:hover .card-image {
	transform: scale(1.05);
}

.card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60%;
	background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.25rem;
	z-index: 2;
}

.creation-title {
	color: var(--text-white);
	font-size: 1.1rem;
	font-weight: 600;
}

.creation-date {
	color: var(--text-muted);
	font-size: 0.8rem;
	margin-bottom: 12px;
}

.btn-download {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-white);
	padding: 10px;
	border-radius: 6px;
	font-weight: 500;
	transition: all 0.2s;
}

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


/* ==========================================================================
   7. PAGE: PROFILE
   ========================================================================== */
.profile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.settings-card {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	margin-bottom: 2rem;
}

.settings-card-danger {
	border-color: rgba(239, 68, 68, 0.3);
}

.card-title {
	font-size: 1.1rem;
	color: var(--text-white);
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--bg-border);
}

.card-title-reset {
	margin: 0;
	border: none;
	padding: 0;
}

.card-title-danger {
	color: var(--danger);
	border-color: rgba(239, 68, 68, 0.2);
}

.card-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--bg-border);
	padding-bottom: 1rem;
}

/* Avatar */
.avatar-upload-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 2rem;
}

.avatar-large {
	width: 100px;
	height: 100px;
	background-color: var(--bg-muted);
	border-radius: 50%;
	position: relative;
	overflow: hidden;
	margin-bottom: 1rem;
	border: 2px solid var(--bg-border);
	cursor: pointer;
}

	.avatar-large img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

.avatar-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	opacity: 0;
	transition: opacity 0.2s;
}

.avatar-large:hover .avatar-overlay {
	opacity: 1;
}

.avatar-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--accent-orange);
	color: white;
	font-size: 2rem;
	font-weight: 700;
}

/* Tables */
.table-responsive {
	overflow-x: auto;
}

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

	.trans-table th {
		color: var(--text-muted);
		font-weight: 500;
		padding: 12px;
		border-bottom: 1px solid var(--bg-border);
	}

	.trans-table td {
		color: var(--text-main);
		padding: 12px;
		border-bottom: 1px solid var(--bg-border);
	}

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

/* Status Badges */
.status-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
}

.status-success {
	background: rgba(22, 163, 74, 0.1);
	color: var(--success);
}

.status-pending {
	background: rgba(245, 158, 11, 0.1);
	color: var(--accent-yellow);
}

.status-used {
	background: var(--bg-border);
	color: var(--text-muted);
}


/* ==========================================================================
   8. LAYOUT: LANDING PAGE
   ========================================================================== */
body.landing-page {
	display: block;
	height: auto;
	overflow-x: hidden;
}

.landing-page .container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(28, 25, 23, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--bg-border);
	z-index: 1000;
	padding: 1rem 0;
}

.nav-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.landing-page .nav-links {
	display: flex;
	gap: 2rem;
}

	.landing-page .nav-links a {
		color: var(--text-muted);
		font-size: 0.9rem;
		font-weight: 500;
	}

		.landing-page .nav-links a:hover {
			color: var(--text-white);
		}

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

.hero {
	padding: 160px 0 100px;
	text-align: center;
	background: radial-gradient(circle at top center, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
}

.hero-badge {
	display: inline-block;
	padding: 6px 16px;
	background: rgba(249, 115, 22, 0.1);
	border: 1px solid rgba(249, 115, 22, 0.2);
	color: var(--accent-orange);
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 800;
	color: var(--text-white);
	line-height: 1.1;
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
}

.hero-sub {
	font-size: 1.1rem;
	color: var(--text-muted);
	max-width: 600px;
	margin: 0 auto 3rem;
}

.section {
	padding: 80px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

	.section-header h2 {
		font-size: 2.5rem;
		color: var(--text-white);
		font-weight: 700;
		margin-bottom: 10px;
	}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	padding: 2rem;
	border-radius: var(--radius-lg);
	transition: 0.3s;
}

	.feature-card:hover {
		border-color: var(--accent-orange);
		transform: translateY(-5px);
	}

.icon-box {
	width: 50px;
	height: 50px;
	background: rgba(249, 115, 22, 0.1);
	color: var(--accent-orange);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
}

.comparison-wrapper {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 4px solid var(--bg-card);
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
	aspect-ratio: 16/9;
	cursor: ew-resize;
}

.img-overlay, .img-underlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

.img-overlay {
	background-image: url(https://images.unsplash.com/photo-1534528741775-53994a69daeb?q=80&w=1200&auto=format&fit=crop);
	filter: contrast(1.1) saturate(1.3) sepia(0.2);
	width: 50%;
	border-right: 2px solid var(--accent-orange);
	z-index: 2;
}

.img-underlay {
	background-image: url(https://images.unsplash.com/photo-1534528741775-53994a69daeb?q=80&w=1200&auto=format&fit=crop);
	filter: grayscale(0.3) brightness(0.9);
	z-index: 1;
}

.slider-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	background: var(--accent-orange);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	z-index: 10;
}

.comp-label {
	position: absolute;
	top: 20px;
	padding: 6px 12px;
	background: rgba(0,0,0,0.6);
	color: white;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 6px;
	z-index: 5;
}

.label-before {
	right: 20px;
}

.label-after {
	left: 20px;
}

.showcase-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.showcase-item {
	position: relative;
	aspect-ratio: 3/4;
	border-radius: 12px;
	overflow: hidden;
}

	.showcase-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: 0.4s;
	}

	.showcase-item:hover img {
		transform: scale(1.1);
	}

.style-badge {
	position: absolute;
	bottom: 15px;
	left: 15px;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(4px);
	color: white;
	padding: 6px 12px;
	font-size: 0.8rem;
	border-radius: 4px;
}

.pricing-section {
	background: var(--bg-card);
	padding: 80px 0;
	border-top: 1px solid var(--bg-border);
	border-bottom: 1px solid var(--bg-border);
}

.pricing-cards {
	display: flex;
	justify-content: center;
	gap: 2rem;
	align-items: center;
}

.price-card {
	background: var(--bg-dark);
	border: 1px solid var(--bg-border);
	padding: 2rem;
	border-radius: 16px;
	width: 300px;
	text-align: center;
}

	.price-card.popular {
		border: 1px solid var(--accent-orange);
		transform: scale(1.05);
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
		position: relative;
	}

.pop-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent-orange);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
}

.tokens {
	font-size: 3rem;
	font-weight: 800;
	color: var(--text-white);
	line-height: 1;
}

.price {
	font-size: 1.5rem;
	color: var(--text-muted);
	margin: 10px 0 20px;
}

	.price span {
		color: var(--text-white);
		font-weight: 700;
	}

.cta-box {
	background: var(--grad-primary);
	border-radius: 20px;
	padding: 4rem;
	text-align: center;
	margin: 4rem auto;
}

	.cta-box h2 {
		color: white;
		font-size: 2.5rem;
		margin-bottom: 1rem;
	}

	.cta-box p {
		color: rgba(255, 255, 255, 0.9);
		margin-bottom: 2rem;
		font-size: 1.1rem;
	}

.btn-white {
	background: white;
	color: var(--accent-orange);
	padding: 12px 30px;
	border-radius: 50px;
	font-weight: 700;
}

footer {
	border-top: 1px solid var(--bg-border);
	padding: 2rem 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-top: auto; /* Pushes footer to bottom if content is short */
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap; /* Allows stacking on mobile */
	gap: 1.5rem;
}

/* Left Section */
.footer-left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.copyright {
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Center Links */
.footer-links {
	display: flex;
	gap: 1.5rem;
}

	.footer-links a {
		color: var(--text-muted);
		text-decoration: none;
		font-size: 0.85rem;
		transition: color 0.2s;
	}

		.footer-links a:hover {
			color: var(--text-white);
			text-decoration: underline;
		}

/* Right Socials */
.socials {
	display: flex;
	align-items: center;
	gap: 1rem;
}

	.socials a {
		color: var(--text-muted);
		font-size: 1.1rem;
		transition: color 0.2s;
	}

		.socials a:hover {
			color: var(--accent-orange);
		}

.steps-container {
	display: flex;
	justify-content: space-between;
	position: relative;
	margin-top: 3rem;
}

	/* The connecting horizontal line */
	.steps-container::before {
		content: '';
		position: absolute;
		top: 40px; /* Aligns with center of the circle */
		left: 0;
		width: 100%;
		height: 2px;
		background: var(--bg-border);
		z-index: 0;
	}

.step {
	position: relative;
	z-index: 1;
	text-align: center;
	width: 30%;
	padding: 0 15px;
}

.step-num {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-white);
	/* This shadow matches the background color to create a "gap" in the line */
	box-shadow: 0 0 0 15px var(--bg-dark);
	transition: all 0.3s ease;
}

.step:hover .step-num {
	border-color: var(--accent-orange);
	color: var(--accent-orange);
	transform: scale(1.05);
}

.step h4 {
	color: var(--text-white);
	margin-bottom: 10px;
	font-size: 1.2rem;
	font-weight: 600;
}

.step p {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}


/* ==========================================================================
   9. PAGE: AUTH (Login/Signup)
   ========================================================================== */
body.auth-page {
	height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: auto;
}

.auth-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	background-color: var(--bg-dark);
	position: relative;
}

.auth-content {
	width: 100%;
	max-width: 400px;
}

.auth-logo {
	margin-bottom: 2rem;
}

	.auth-logo h1 {
		font-size: 1.5rem;
		font-weight: 800;
		color: var(--text-white);
	}

	.auth-logo span {
		color: var(--accent-orange);
	}

.auth-header {
	margin-bottom: 2rem;
}

	.auth-header h2 {
		font-size: 1.8rem;
		color: var(--text-white);
		margin-bottom: 8px;
	}

	.auth-header p {
		color: var(--text-muted);
		font-size: 0.9rem;
	}

.social-auth {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.btn-social {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	color: var(--text-white);
	padding: 10px;
	border-radius: var(--radius-md);
	font-size: 0.9rem;
	font-weight: 500;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	transition: all 0.2s;
}

	.btn-social:hover {
		background: var(--bg-border);
	}

.divider {
	display: flex;
	align-items: center;
	color: var(--text-muted);
	font-size: 0.8rem;
	margin-bottom: 1.5rem;
}

	.divider::before, .divider::after {
		content: '';
		flex: 1;
		height: 1px;
		background: var(--bg-border);
	}

	.divider span {
		padding: 0 10px;
	}

.form-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	cursor: pointer;
}

.forgot-pass {
	color: var(--accent-orange);
	font-weight: 500;
}

	.forgot-pass:hover {
		text-decoration: underline;
	}

.btn-login {
	width: 100%;
	padding: 14px;
	font-size: 1rem;
}

.signup-text {
	text-align: center;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--text-muted);
}

	.signup-text a {
		color: var(--text-white);
		font-weight: 600;
	}

		.signup-text a:hover {
			color: var(--accent-orange);
		}

.terms-text {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 1rem;
	text-align: center;
	line-height: 1.4;
}

	.terms-text a {
		text-decoration: underline;
		color: var(--text-main);
	}

.auth-visual {
	background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?q=80&w=1200&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 3rem;
}

	.auth-visual::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(to bottom, rgba(28, 25, 23, 0.2), rgba(28, 25, 23, 0.9));
	}

.visual-content {
	position: relative;
	z-index: 2;
	color: white;
	max-width: 500px;
}

.quote-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	margin-bottom: 1rem;
}

.quote-text {
	font-size: 1.1rem;
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 1rem;
	color: rgba(255,255,255,0.9);
}

.quote-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.quote-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}


/* ==========================================================================
   10. RTL SUPPORT (ARABIC)
   ========================================================================== */
html[dir="rtl"] body {
	font-family: 'Cairo', 'Inter', sans-serif;
	text-align: right;
}

/* Layout & Flex Flipping */
html[dir="rtl"] .sidebar {
	border-right: none;
	border-left: 1px solid var(--bg-border);
}

html[dir="rtl"] .float-right {
	margin-left: 0;
	margin-right: auto;
}

html[dir="rtl"] .nav-link, html[dir="rtl"] .btn-primary, html[dir="rtl"] .btn-outline,
html[dir="rtl"] .btn-buy-nav, html[dir="rtl"] .btn-social, html[dir="rtl"] .step-item {
	flex-direction: row;
}

	html[dir="rtl"] .nav-link i, html[dir="rtl"] .btn-primary i, html[dir="rtl"] .btn-outline i,
	html[dir="rtl"] .btn-buy-nav i, html[dir="rtl"] .btn-social i {
		margin-left: 8px;
		margin-right: 0;
	}

html[dir="rtl"] .sign-out {
	padding-left: 0;
	padding-right: 4px;
}

html[dir="rtl"] .form-input, html[dir="rtl"] .settings-form input {
	text-align: right;
}

/* Absolute Positioning Flips */
html[dir="rtl"] .alert-dismissible {
	padding-right: 16px;
	padding-left: 3rem;
}

html[dir="rtl"] .btn-close {
	right: auto;
	left: 12px;
}

html[dir="rtl"] .popular-badge {
	left: 50%;
	transform: translateX(50%);
}

html[dir="rtl"] .avatar-overlay {
	top: 0;
	right: 0;
	left: auto;
}

/* Comparison Slider Fix */
html[dir="rtl"] .comparison-wrapper {
	direction: ltr;
}

html[dir="rtl"] .comp-label.label-before {
	right: 20px;
	left: auto;
}

html[dir="rtl"] .comp-label.label-after {
	left: 20px;
	right: auto;
}

/* Icons */
html[dir="rtl"] .fa-arrow-right, html[dir="rtl"] .fa-chevron-right, html[dir="rtl"] .fa-arrow-right-to-bracket {
	transform: rotate(180deg);
}

html[dir="rtl"] .fa-arrow-left {
	transform: rotate(180deg);
}

/* Components */
html[dir="rtl"] .feature-list {
	text-align: right;
	padding-left: 0;
	padding-right: 1rem;
}

html[dir="rtl"] .pricing-card {
	text-align: right;
}

html[dir="rtl"] .trans-table {
	text-align: right;
}

html[dir="rtl"] .auth-container {
	align-items: center;
}

html[dir="rtl"] .auth-content {
	text-align: right;
}

html[dir="rtl"] .step-divider {
	transform: rotate(180deg);
}


/* ==========================================================================
   11. RESPONSIVE UTILITIES & MOBILE
   ========================================================================== */
/* Defaults: Hide mobile elements on Desktop */
.mobile-header, .sidebar-overlay, .close-sidebar-btn {
	display: none;
}

@media (max-width: 1024px) {
	.style-grid, .review-layout, .profile-grid {
		grid-template-columns: 1fr;
	}

	.pricing-grid {
		grid-template-columns: repeat(2, 1fr);
		max-width: 700px;
		margin: 0 auto;
	}

	.pricing-card:last-child {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	/* 1. Body & Layout */
	body:not(.landing-page) {
		display: block;
		height: auto;
		overflow-x: hidden;
		background-color: var(--bg-dark);
	}

	/* 2. Mobile Header */
	.mobile-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1rem 1.5rem;
		background-color: var(--bg-card);
		border-bottom: 1px solid var(--bg-border);
		position: sticky;
		top: 0;
		z-index: 900;
	}

	.logo-mobile h1 {
		font-size: 1.2rem;
		font-weight: 700;
		color: var(--text-white);
		margin: 0;
	}

	.logo-mobile span {
		color: var(--accent-orange);
	}

	.menu-toggle {
		font-size: 1.4rem;
		color: var(--text-white);
		padding: 5px;
	}

	/* 3. Sidebar (Drawer) */
	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 280px;
		z-index: 1000;
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		border-right: 1px solid var(--bg-border);
		background-color: var(--bg-dark);
		box-shadow: 4px 0 15px rgba(0,0,0,0.5);
		padding-top: 3.5rem;
	}

		.sidebar.active {
			transform: translateX(0);
		}

	/* RTL Sidebar Animation */
	html[dir="rtl"] .sidebar {
		left: auto;
		right: 0;
		transform: translateX(100%);
		border-right: none;
		border-left: 1px solid var(--bg-border);
	}

		html[dir="rtl"] .sidebar.active {
			transform: translateX(0);
		}

	/* 4. Restore Desktop Styling Inside Sidebar */
	.sidebar-footer {
		display: block !important;
	}

	.nav-link span {
		display: block !important;
	}

	.nav-links {
		display: block;
		overflow-x: visible;
	}

	.nav-link {
		justify-content: flex-start;
	}

	/* 5. Close Button */
	.close-sidebar-btn {
		display: block;
		position: absolute;
		top: 20px;
		right: 20px;
		color: var(--text-muted);
		font-size: 1.5rem;
		z-index: 1001;
		cursor: pointer;
		background: none;
		border: none;
	}

		.close-sidebar-btn:hover {
			color: var(--text-white);
		}

	html[dir="rtl"] .close-sidebar-btn {
		right: auto;
		left: 20px;
	}

	/* 6. Overlay */
	.sidebar-overlay {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.7);
		z-index: 950;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s;
		backdrop-filter: blur(2px);
	}

		.sidebar-overlay.active {
			opacity: 1;
			visibility: visible;
		}

	/* 7. General Mobile Adjustments */
	.main-content {
		padding: 1.5rem;
		width: 100%;
	}

	.style-grid, .review-layout, .pricing-grid, .profile-grid, .creations-grid {
		grid-template-columns: 1fr;
	}

	.pricing-card {
		width: 100%;
		margin-bottom: 1rem;
	}

		.pricing-card:last-child {
			grid-column: auto;
		}

	.stepper-container {
		width: 100%;
		row-gap: 15px;
		padding: 15px;
	}

	.step-item {
		flex-shrink: 0;
	}

	/* Landing Specific */
	body.landing-page .nav-links {
		display: none;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.comparison-wrapper {
		aspect-ratio: 4/5;
	}

	.steps-container {
		flex-direction: column;
		gap: 3rem;
	}

		.steps-container::before {
			/* Optional: Change to vertical line or hide on mobile. Here we hide it for cleanliness. */
			display: none;
		}

	.step {
		width: 100%;
	}

	.features-grid, .showcase-grid, .steps-container {
		grid-template-columns: 1fr;
		flex-direction: column;
	}

		.steps-container::before {
			display: none;
		}

	.step {
		width: 100%;
		margin-bottom: 2rem;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.footer-left {
		flex-direction: column;
		gap: 0.5rem;
	}

	.footer-links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.pricing-cards {
		flex-direction: column;
	}

	.price-card {
		width: 100%;
		margin-bottom: 2rem;
	}

		.price-card.popular {
			transform: scale(1);
		}

	/* Auth Specific */
	body.auth-page {
		grid-template-columns: 1fr;
		overflow-y: auto;
	}

	.auth-visual {
		display: none;
	}

	.auth-container {
		padding: 3rem 1.5rem;
		height: 100vh;
	}
}


/* ==========================================================================
   13. CUSTOM DETAILS GRID (Fix for Step 2)
   ========================================================================== */
#varsInputs {
	display: grid;
	grid-template-columns: 1fr 1fr; /* 2 Columns */
	gap: 1.5rem; /* Space between columns */
	width: 100%;
}

/* Review Summary Box */
.review-summary-box {
	background-color: var(--bg-dark);
	border: 1px solid var(--bg-border);
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1rem;
	font-size: 0.85rem;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
	border-bottom: 1px dashed var(--bg-border);
	padding-bottom: 0.25rem;
}

	.summary-row:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

/* Mobile: Stack them back to 1 column */
@media (max-width: 768px) {
	#varsInputs {
		grid-template-columns: 1fr;
	}
}



/* Specific Override for Center Card Layout */
body.auth-page.verification-mode {
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2000&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
}

	/* Dark overlay for readability */
	body.auth-page.verification-mode::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(28, 25, 23, 0.85); /* Studio Dark Opacity */
		z-index: 0;
	}

.verification-card {
	position: relative;
	z-index: 1;
	background-color: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 3rem 2rem;
	max-width: 450px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.verification-icon {
	font-size: 4rem;
	margin-bottom: 1.5rem;
}

.icon-success {
	color: var(--success);
}

.icon-error {
	color: var(--danger);
}

.verification-title {
	color: var(--text-white);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.verification-text {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 2rem;
}

.auth-visual-update {
	background-image: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=1200&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
}


/* ==========================================================================
   14. SWEETALERT LAYOUT FIX
   ========================================================================== */

/* Prevent SweetAlert from collapsing the body height */
body.swal2-height-auto {
	height: 100vh !important;
}

/* Ensure the sidebar stays pinned correctly even when modal is open */
body.swal2-shown .sidebar {
	height: 100vh;
}


/* Auth Success State */
.auth-success-container {
	display: none; /* Hidden by default, toggled via JS */
	text-align: center;
	padding: 1rem 0;
}

.auth-success-icon {
	font-size: 4rem;
	color: var(--success);
	margin-bottom: 1.5rem;
	animation: fadeInScale 0.5s ease-out;
}

.auth-success-title {
	color: var(--text-white);
	font-size: 1.8rem;
	margin-bottom: 1rem;
	font-weight: 700;
}

.auth-success-text {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

	.auth-success-text strong {
		color: var(--text-white);
	}

.btn-success-action {
	margin-top: 2rem;
	justify-content: center;
	width: 100%;
	display: flex;
}

/* Optional Animation */
@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}



/* ==========================================================================
   14. STATIC PAGES (Terms, Privacy, Contact)
   ========================================================================== */

/* Page Header (Simple) */
.page-header-simple {
	padding: 120px 0 60px;
	text-align: center;
	background: radial-gradient(circle at top center, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
}

	.page-header-simple h1 {
		font-size: 3rem;
		font-weight: 800;
		color: var(--text-white);
		margin-bottom: 1rem;
	}

	.page-header-simple p {
		color: var(--text-muted);
		font-size: 1.1rem;
		max-width: 600px;
		margin: 0 auto;
	}

/* Legal Content Box */
.legal-content {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 3rem;
	margin-bottom: 5rem;
	color: var(--text-main);
	font-size: 1rem;
	line-height: 1.8;
}

	.legal-content h2 {
		color: var(--text-white);
		font-size: 1.5rem;
		margin-top: 2.5rem;
		margin-bottom: 1rem;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid var(--bg-border);
	}

		.legal-content h2:first-child {
			margin-top: 0;
		}

	.legal-content p {
		margin-bottom: 1.5rem;
		color: #A8A29E;
	}

	.legal-content ul {
		margin-bottom: 1.5rem;
		padding-left: 1.5rem;
		color: #A8A29E;
	}

	.legal-content li {
		margin-bottom: 0.5rem;
	}

	.legal-content strong {
		color: var(--text-white);
	}

	.legal-content a {
		color: var(--accent-orange);
		text-decoration: underline;
	}

/* Contact Specific */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 3rem;
	margin-bottom: 5rem;
}

.contact-info-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
}

.contact-item {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
}

.contact-icon {
	width: 40px;
	height: 40px;
	background: rgba(249, 115, 22, 0.1);
	color: var(--accent-orange);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.contact-item h5 {
	color: var(--text-white);
	margin-bottom: 4px;
	font-size: 1rem;
}

.contact-item p {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0;
}

.contact-form {
	background: var(--bg-card);
	border: 1px solid var(--bg-border);
	border-radius: var(--radius-lg);
	padding: 3rem;
}

@media (max-width: 768px) {
	.legal-content {
		padding: 1.5rem;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.page-header-simple h1 {
		font-size: 2rem;
	}
}


.mb-20 {
	margin-bottom: 20px;
}

/* ==========================================================================
   15. MOBILE STYLE PREVIEW (Inside Card)
   ========================================================================== */

/* Default: Hide mobile preview container on desktop */
.mobile-preview-container {
	display: none;
}

/* Mobile Rules */
@media (max-width: 768px) {
	/* 1. Hide the Desktop Right-Side Preview Box */
	.preview-box {
		display: none !important;
	}

	/* 2. Show Mobile Preview ONLY inside the SELECTED card */
	.style-card.selected .mobile-preview-container {
		display: block;
		margin-top: 15px;
		padding-top: 15px;
		border-top: 1px dashed var(--bg-border);
		animation: fadeIn 0.3s ease-in-out;
	}

	/* 3. Layout for Side-by-Side Images */
	.mp-images {
		display: flex;
		gap: 10px;
		margin-bottom: 15px;
	}

	.mp-box {
		flex: 1;
		text-align: center;
	}

		.mp-box img {
			width: 100%;
			aspect-ratio: 3/4;
			object-fit: cover;
			border-radius: 8px;
			border: 1px solid var(--bg-border);
		}

	.mp-label {
		font-size: 0.75rem;
		color: var(--text-muted);
		display: block;
		margin-bottom: 5px;
		text-align: left;
	}

		.mp-label.active {
			color: var(--accent-orange);
			font-weight: 600;
		}
}


/* Update this existing class */
.style-list {
	/* 1. Fix Height to match typical Preview Box height */
	max-height: 530px;
	/* 2. Enable Scroll */
	overflow-y: auto;
	/* 3. Spacing for scrollbar */
	padding-right: 10px;
}

	/* --- SLEEK SCROLLBAR STYLING --- */

	/* Width */
	.style-list::-webkit-scrollbar {
		width: 6px;
	}

	/* Track (Background) */
	.style-list::-webkit-scrollbar-track {
		background: rgba(0, 0, 0, 0.1);
		border-radius: 4px;
	}

	/* Handle (The moving part) */
	.style-list::-webkit-scrollbar-thumb {
		background: var(--bg-muted);
		border-radius: 4px;
		transition: background 0.2s;
	}

		/* Handle on Hover */
		.style-list::-webkit-scrollbar-thumb:hover {
			background: var(--accent-orange);
		}

@media (max-width: 768px) {
	.style-list {
		max-height: none; /* Disable scroll box on mobile */
		overflow-y: visible;
		padding-right: 0;
	}
}


/* ==========================================================================
   STYLE SEARCH BAR
   ========================================================================== */
.style-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.style-search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

	.style-search-wrapper .search-icon {
		position: absolute;
		left: 15px;
		color: var(--text-muted);
		font-size: 0.9rem;
	}

	.style-search-wrapper .search-input {
		width: 100%;
		padding: 10px 15px 10px 40px; /* Padding left makes room for the icon */
		border-radius: 50px; /* Sleek pill shape */
		background-color: var(--bg-dark);
		border: 1px solid var(--bg-border);
		color: var(--text-white);
		font-size: 0.85rem;
		transition: all 0.2s ease;
	}

		.style-search-wrapper .search-input:focus {
			border-color: var(--accent-orange);
			box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
			outline: none;
		}

/* RTL Support for Search Bar */
html[dir="rtl"] .style-search-wrapper .search-icon {
	left: auto;
	right: 15px;
}

html[dir="rtl"] .style-search-wrapper .search-input {
	padding-left: 15px;
	padding-right: 40px;
}
