/* ===========================
   CSS Variables & Theme
   =========================== */
:root {
	/* Primary Brand Colors - Cyan (Keep as main identity) */
	--primary-color: #00bcd4;
	--primary-light: #4dd0e1;
	--primary-dark: #0097a7;

	/* Secondary Accent - Deep Purple for contrast */
	--secondary-color: #7c4dff;
	--secondary-light: #b47cff;
	--secondary-dark: #651fff;

	/* Accent Colors - Carefully selected for harmony */
	--accent-coral: #ff7675;
	--accent-orange: #fdcb6e;
	--accent-pink: #fd79a8;
	--accent-green: #00b894;

	/* Status Colors */
	--success: #00b894;
	--warning: #fdcb6e;
	--error: #ff7675;
	--info: #74b9ff;

	/* Neutral Colors */
	--dark-color: #263238;
	--gray-color: #78909c;
	--light-gray: #eceff1;
	--white: #ffffff;

	/* Background Gradients */
	--gradient-primary: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
	--gradient-purple: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
	--gradient-warm: linear-gradient(135deg, #ff7675 0%, #fdcb6e 100%);

	/* Soft Backgrounds */
	--bg-primary-soft: rgba(0, 188, 212, 0.08);
	--bg-purple-soft: rgba(124, 77, 255, 0.08);
	--bg-coral-soft: rgba(255, 118, 117, 0.08);

	/* Spacing */
	--spacing-xs: 0.25rem;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-2xl: 3rem;
	--spacing-3xl: 4rem;

	/* Border Radius */
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);

	/* Typography */
	--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
		'Ubuntu', 'Cantarell', sans-serif;
	--font-mono: 'Courier New', Courier, monospace;

	/* Transitions */
	--transition-fast: 150ms ease-in-out;
	--transition-normal: 300ms ease-in-out;
	--transition-slow: 500ms ease-in-out;
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	color: var(--dark-color);
	background-color: var(--white);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

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

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

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

ul {
	list-style: none;
}

/* ===========================
   Typography
   =========================== */
h1 {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--spacing-lg);
}

h2 {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: var(--spacing-md);
}

h3 {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: var(--spacing-sm);
}

h4 {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: var(--spacing-sm);
}

p {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: var(--spacing-md);
}

/* ===========================
   Layout & Containers
   =========================== */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.main-content {
	flex: 1;
}

/* ===========================
   Buttons
   =========================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	padding: 0.625rem 1.25rem;
	font-size: 1rem;
	font-weight: 500;
	border-radius: var(--radius-md);
	transition: all var(--transition-fast);
	white-space: nowrap;
}

.btn-sm {
	padding: 0.45rem 0.75rem;
	font-size: 0.95rem;
	border-radius: 10px;
}

/* Password toggle button inside input */
.password-toggle-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 4px;
	color: #78909c;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.password-toggle-btn:hover {
	color: var(--primary-color);
}
.password-toggle-btn:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
	border-radius: 6px;
}

.btn-primary {
	background-color: var(--primary-color);
	color: var(--white);
}

.btn-primary:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-secondary {
	background-color: var(--secondary-color);
	color: var(--dark-color);
}

.btn-secondary:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-outline {
	border: 1.5px solid var(--primary-color);
	color: var(--primary-color);
	background-color: #f6fbfd;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

.btn-ghost {
	color: var(--dark-color);
	background-color: transparent;
}

.btn-ghost:hover {
	background-color: var(--light-gray);
}

.btn-lg {
	padding: 0.875rem 1.75rem;
	font-size: 1.125rem;
}

.btn-full {
	width: 100%;
	margin-bottom: var(--spacing-md);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--white);
	border-bottom: 1px solid var(--light-gray);
}

.navbar-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	color: var(--primary-color);
}

.brand-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--dark-color);
}

.brand-accent {
	color: var(--primary-color);
}

.navbar-menu {
	display: none;
	align-items: center;
	gap: var(--spacing-xl);
}

.navbar-link {
	color: var(--dark-color);
	font-weight: 500;
	transition: color var(--transition-normal),
		background-color var(--transition-normal);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-md);
}

.navbar-link:hover {
	color: var(--primary-color);
	background-color: rgba(0, 188, 212, 0.08);
}

.navbar-actions {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
}

/* User Dropdown */
.user-dropdown {
	position: relative;
}

.user-dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: white;
	border: 2px solid var(--light-gray);
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s;
	font-family: inherit;
}

.user-dropdown-toggle:hover {
	border-color: var(--primary-color);
	background: var(--bg-primary-soft);
}

.user-avatar {
	width: 32px;
	height: 32px;
	background: var(--primary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.user-avatar svg {
	width: 18px;
	height: 18px;
	stroke: white;
}

.user-name {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 0.95rem;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dropdown-arrow {
	width: 16px;
	height: 16px;
	stroke: var(--gray-color);
	transition: transform 0.3s;
}

.user-dropdown.active .dropdown-arrow {
	transform: rotate(180deg);
}

.user-dropdown-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 240px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 0.5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s;
	z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-header {
	padding: 0.75rem;
}

.dropdown-user-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.dropdown-user-name {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 0.95rem;
}

.dropdown-user-email {
	font-size: 0.85rem;
	color: var(--gray-color);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dropdown-divider {
	height: 1px;
	background: var(--light-gray);
	margin: 0.5rem 0;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 8px;
	color: var(--dark-color);
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	width: 100%;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 0.95rem;
	text-align: left;
}

.dropdown-item:hover {
	background: var(--bg-primary-soft);
	color: var(--primary-color);
}

.dropdown-item svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	flex-shrink: 0;
}

.dropdown-item span {
	flex: 1;
}

.navbar-logged-in {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
}

.navbar-user-type {
	color: var(--gray-color);
	font-weight: 500;
}

.mobile-menu-toggle {
	background: none;
	border: none;
	color: var(--dark-color);
	cursor: pointer;
	padding: 0.5rem;
	display: none;
}

.mobile-menu-toggle:hover {
	color: var(--primary-color);
}

@media (max-width: 767px) {
	.mobile-menu-toggle {
		display: block !important;
	}

	.navbar-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		flex-direction: column;
		padding: 1rem;
		border-bottom: 1px solid var(--light-gray);
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		gap: 0.5rem;
		display: none;
	}

	.navbar-menu.active {
		display: flex !important;
	}

	.navbar-link {
		width: 100%;
		text-align: left;
	}

	.navbar-actions {
		gap: 0.5rem;
	}

	.navbar-actions .btn {
		padding: 0.5rem 1rem;
		font-size: 0.875rem;
	}
}

@media (min-width: 768px) {
	.navbar-menu {
		display: flex;
	}
}

/* ===========================
   Footer
   =========================== */
.footer {
	background-color: var(--dark-color);
	color: var(--white);
	margin-top: var(--spacing-3xl);
	padding: var(--spacing-2xl) 0;
}

.footer-content {
	padding: var(--spacing-xl) var(--spacing-md);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--spacing-xl);
	margin-bottom: var(--spacing-xl);
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-md);
}

.footer-brand .icon {
	stroke: var(--primary-color);
}

.footer-brand .brand-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--white);
}

.footer-brand .brand-accent {
	color: var(--primary-color);
}

.footer-description {
	color: var(--gray-color);
	font-size: 0.875rem;
}

.footer-heading {
	color: var(--white);
	margin-bottom: var(--spacing-md);
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.footer-link {
	color: var(--gray-color);
	font-size: 0.875rem;
	transition: opacity var(--transition-fast);
}

.footer-link:hover {
	opacity: 0.8;
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-md);
	padding-top: var(--spacing-xl);
	border-top: 1px solid var(--gray-color);
}

.footer-copyright {
	color: var(--gray-color);
	font-size: 0.875rem;
}

.footer-social {
	display: flex;
	gap: var(--spacing-md);
}

.social-link {
	color: var(--gray-color);
	transition: opacity var(--transition-fast);
}

.social-link:hover {
	opacity: 0.8;
}

@media (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* ===========================
   Icons
   =========================== */
.icon {
	width: 1.25rem;
	height: 1.25rem;
	stroke-width: 2;
}

.icon-lg {
	width: 1.5rem;
	height: 1.5rem;
}

.icon-xl {
	width: 2rem;
	height: 2rem;
}

/* ===========================
   Cards
   =========================== */
.card {
	background-color: var(--white);
	border: 1px solid var(--light-gray);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-fast);
}

.card:hover {
	box-shadow: var(--shadow-md);
}

.card-header {
	margin-bottom: var(--spacing-md);
}

.card-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--dark-color);
}

.card-content {
	color: var(--gray-color);
}

/* ===========================
   Profile Page
   =========================== */
.page-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 1.25rem;
}
@media (max-width: 1024px) {
	.page-grid {
		grid-template-columns: 1fr;
	}
}
.page-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.page-header h2 {
	margin: 0 0 0.25rem 0;
	color: #263238;
	font-weight: 800;
}
.page-header .subtitle {
	display: flex;
	gap: 1rem;
	color: #607d8b;
	flex-wrap: wrap;
	font-size: 0.95rem;
}
.avatar-lg {
	position: relative;
	width: 92px;
	height: 92px;
}
.avatar-lg img {
	width: 92px;
	height: 92px;
	border-radius: 999px;
	object-fit: cover;
	border: 2px solid #eceff1;
}
.avatar-lg .avatar-action {
	position: absolute;
	right: -6px;
	bottom: -6px;
	background: #fff;
	border: 1px solid #e0e6ea;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
}
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.muted {
	color: #607d8b;
}
.chip {
	background: #fff3cd;
	color: #856404;
	padding: 2px 8px;
	border-radius: 6px;
	border: 1px solid #ffeeba;
}
.profile-sidebar .profile-nav-link {
	color: #546e7a;
	padding: 6px 8px;
	border-radius: 8px;
	display: inline-block;
}
.profile-sidebar .profile-nav-link:hover {
	background: #f4f8fb;
	color: #263238;
}
.profile-sidebar .profile-nav-link.active {
	color: var(--primary-color);
	background: rgba(0, 188, 212, 0.12);
	border-left: 3px solid var(--primary-color);
	padding-left: 12px;
}
.profile-section h3 {
	color: #263238;
}

/* ===========================
  Profile Setup: Editable lists
  =========================== */
.list-rows {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.list-rows .row {
	display: grid;
	gap: 0.6rem;
	align-items: center;
}
.list-rows .grid-2 {
	grid-template-columns: 1fr 1fr;
}
.list-rows .grid-3 {
	grid-template-columns: 1fr 1fr 1fr;
}
.list-rows .grid-cert {
	grid-template-columns: 2fr 1fr 200px auto;
}
.list-rows .grid-award {
	grid-template-columns: 2fr 200px auto;
}
.list-rows .grid-skill {
	grid-template-columns: 2fr 1fr auto;
}
.btn-icon {
	padding: 0.55rem 0.75rem;
}
@media (max-width: 768px) {
	.list-rows .grid-2,
	.list-rows .grid-3,
	.list-rows .grid-cert,
	.list-rows .grid-award,
	.list-rows .grid-skill {
		grid-template-columns: 1fr;
	}
}

/* ===========================
   Modals
   =========================== */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-md);
}

.modal.active {
	display: flex;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.modal-content {
	position: relative;
	background-color: var(--white);
	border-radius: var(--radius-xl);
	max-width: 480px;
	width: 100%;
	padding: var(--spacing-xl);
	box-shadow: var(--shadow-xl);
	max-height: 90vh;
	overflow-y: auto;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-sm);
}

.modal-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--dark-color);
}

.btn-dark {
	background: #0f0f10;
	color: #fff;
}
.btn-dark:hover {
	filter: brightness(1.05);
	box-shadow: var(--shadow-md);
}

.social-inline .btn {
	padding: 0;
}

.modal-close {
	font-size: 2rem;
	color: var(--gray-color);
	cursor: pointer;
	transition: color var(--transition-fast);
	line-height: 1;
	padding: 0;
	background: none;
	border: none;
}

.modal-close:hover {
	color: var(--dark-color);
}

.modal-description {
	color: var(--gray-color);
	margin-bottom: var(--spacing-lg);
}

.modal-body {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

/* Signup specific helpers */
.password-field .password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: #90a4ae;
	cursor: pointer;
	padding: 4px;
}

.password-strength {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
}

.divider {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	color: #90a4ae;
	margin: 8px 0 12px 0;
}
.divider::before,
.divider::after {
	content: '';
	height: 1px;
	background: #e0e6ea;
	display: block;
}
.divider span {
	font-size: 0.9rem;
}

.btn-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid #e0e6ea;
	background: #fff;
}
.btn-social .social-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.btn-social.facebook .social-icon {
	background: #1877f2;
	color: #fff;
}
.btn-social.google .social-icon {
	background: #fff;
	color: #ea4335;
	border: 1px solid #e0e6ea;
}

/* ===========================
   Form Inputs
   =========================== */
.form-input {
	width: 100%;
	padding: 0.9rem 0.95rem;
	border: 1px solid #d5e3ea;
	border-radius: 12px;
	background-color: #fbfdff;
	font-size: 1rem;
	font-family: var(--font-sans);
	transition: all var(--transition-fast);
	outline: none;
}

.form-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.12);
	background-color: #ffffff;
}

.form-input::placeholder {
	color: #b0bec5;
}

.form-input:invalid:not(:placeholder-shown) {
	border-color: var(--error);
}

/* Inputs with icons */
.input-with-icon {
	position: relative;
}
.input-with-icon .form-input {
	padding-left: 46px;
	line-height: 1.3;
}
.input-icon {
	position: absolute;
	left: 14px;
	top: 0;
	bottom: 0;
	margin: auto 0;
	width: 19px;
	height: 19px;
	color: #90a4ae;
	pointer-events: none;
}
.input-with-icon:focus-within .input-icon {
	color: var(--primary-color);
}

/* Helper text below inputs */
.input-help {
	font-size: 0.82rem;
	color: #78909c;
	margin-top: 6px;
}

/* Brand accent for checkbox in modal */
.modal input[type='checkbox'] {
	accent-color: var(--primary-color);
}

/* Spacing between form fields */
.form-group {
	margin-bottom: 1rem;
}

/* Slightly more breathing room on larger screens */
@media (min-width: 640px) {
	.form-group {
		margin-bottom: 1.1rem;
	}
}

/* ===========================
   Enhanced Signup Modal
   =========================== */
.modal-signup-enhanced {
	max-width: 520px;
	max-height: 95vh;
	padding: var(--spacing-xl);
}

.modal-signup-enhanced .modal-header {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	margin-bottom: var(--spacing-lg);
	position: relative;
}

.modal-signup-enhanced .modal-close {
	position: absolute;
	top: 0;
	right: 0;
}

.modal-subtitle {
	font-size: 0.9rem;
	color: var(--gray-color);
	font-weight: 400;
}

/* Social Signup Buttons */
.social-signup-section {
	display: flex;
	gap: 0.75rem;
	margin-top: var(--spacing-md);
}

.btn-social-signup {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex: 1;
	padding: 0.7rem 0.75rem;
	border: 2px solid var(--light-gray);
	border-radius: var(--radius-lg);
	background: var(--white);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--dark-color);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.btn-social-signup:hover {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.btn-social-signup .social-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Account Type Pills */
.account-type-pills {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.pill-option {
	position: relative;
	cursor: pointer;
}

.pill-option input[type='radio'] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pill-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem;
	border: 2px solid var(--light-gray);
	border-radius: var(--radius-lg);
	background: var(--white);
	transition: all var(--transition-fast);
	font-weight: 500;
	color: var(--dark-color);
}

.pill-option input[type='radio']:checked + .pill-label {
	border-color: var(--primary-color);
	background: var(--bg-primary-soft);
	color: var(--primary-color);
}

.pill-option:hover .pill-label {
	border-color: var(--primary-light);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.pill-icon {
	width: 28px;
	height: 28px;
}

/* Form Section Title */
.form-section-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--dark-color);
	margin: 1rem 0 0.75rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--light-gray);
}

/* Required Asterisk */
.required {
	color: var(--error);
	margin-left: 2px;
}

/* Enhanced Input Help Text */
.input-help.success {
	color: var(--success);
	font-weight: 500;
}

.input-help.error {
	color: var(--error);
	font-weight: 500;
}

/* Password Strength Indicator */
.password-strength-container {
	margin-top: 0.5rem;
}

.password-strength-bar {
	width: 100%;
	height: 4px;
	background: var(--light-gray);
	border-radius: var(--radius-full);
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.password-strength-fill {
	height: 100%;
	width: 0;
	transition: all var(--transition-normal);
	border-radius: var(--radius-full);
}

.password-strength-fill.weak {
	background: var(--error);
}

.password-strength-fill.medium {
	background: var(--warning);
}

.password-strength-fill.strong {
	background: var(--success);
}

.password-strength-text {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.password-strength-text.weak {
	color: var(--error);
}

.password-strength-text.medium {
	color: var(--warning);
}

.password-strength-text.strong {
	color: var(--success);
}

/* Enhanced Checkbox */
.checkbox-enhanced {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	margin: 0.75rem 0;
}

.checkbox-enhanced input[type='checkbox'] {
	margin-top: 0.2rem;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--primary-color);
}

.checkbox-text {
	font-size: 0.9rem;
	color: var(--dark-color);
	line-height: 1.4;
}

.link-inline {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--transition-fast);
}

.link-inline:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

/* Enhanced Submit Button */
.btn-signup-submit {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 600;
	position: relative;
	overflow: hidden;
}

.btn-signup-submit .btn-icon {
	width: 20px;
	height: 20px;
	transition: transform var(--transition-fast);
}

.btn-signup-submit:hover .btn-icon {
	transform: translateX(4px);
}

.btn-signup-submit::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	transition: left var(--transition-slow);
}

.btn-signup-submit:hover::before {
	left: 100%;
}

/* Form Footer */
.form-footer-text {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--light-gray);
	font-size: 0.9rem;
	color: var(--gray-color);
}

.form-footer-text .link-signup {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--transition-fast);
}

.form-footer-text .link-signup:hover {
	color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.modal-signup-enhanced {
		padding: var(--spacing-lg);
		max-height: 98vh;
	}

	.account-type-pills {
		grid-template-columns: 1fr;
	}

	.social-signup-section {
		flex-direction: column;
		gap: 0.5rem;
	}

	.btn-social-signup {
		padding: 0.65rem 0.85rem;
		font-size: 0.9rem;
	}
}

/* ===========================
   Account Type Cards
   =========================== */
.account-type-card {
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-md);
	padding: var(--spacing-lg);
	border: 2px solid var(--light-gray);
	border-radius: var(--radius-lg);
	background-color: var(--white);
	text-align: left;
	width: 100%;
	transition: all var(--transition-fast);
	cursor: pointer;
}

.account-type-card:hover {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.account-type-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-md);
	border-radius: var(--radius-lg);
	flex-shrink: 0;
}

.account-type-icon.primary {
	background-color: var(--primary-color);
	color: var(--white);
}

.account-type-icon.secondary {
	background-color: var(--secondary-color);
	color: var(--dark-color);
}

.account-type-content {
	flex: 1;
}

.account-type-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--dark-color);
	margin-bottom: var(--spacing-xs);
}

.account-type-desc {
	font-size: 0.875rem;
	color: var(--gray-color);
	margin: 0;
}

/* ===========================
   Badge
   =========================== */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: 0.875rem;
	font-weight: 500;
}

.badge-primary {
	background-color: var(--primary-color);
	color: var(--white);
}

.badge-secondary {
	background-color: var(--light-gray);
	color: var(--primary-color);
}

.badge-success {
	background-color: var(--success);
	color: var(--white);
}

.badge-warning {
	background-color: var(--warning);
	color: var(--white);
}

/* ===========================
   Grid System
   =========================== */
.grid {
	display: grid;
	gap: var(--spacing-lg);
}

.grid-cols-1 {
	grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 768px) {
	.md-grid-cols-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.md-grid-cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.md-grid-cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.lg-grid-cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
	text-align: center;
}

.text-primary {
	color: var(--primary-color);
}

.text-gray {
	color: var(--gray-color);
}

.text-dark {
	color: var(--dark-color);
}

.bg-primary {
	background-color: var(--primary-color);
}

.bg-light {
	background-color: var(--light-gray);
}

.bg-white {
	background-color: var(--white);
}

.mt-lg {
	margin-top: var(--spacing-lg);
}

.mb-lg {
	margin-bottom: var(--spacing-lg);
}

.py-xl {
	padding-top: var(--spacing-xl);
	padding-bottom: var(--spacing-xl);
}

.px-md {
	padding-left: var(--spacing-md);
	padding-right: var(--spacing-md);
}

.rounded {
	border-radius: var(--radius-md);
}

.rounded-lg {
	border-radius: var(--radius-lg);
}

.shadow-md {
	box-shadow: var(--shadow-md);
}

.shadow-lg {
	box-shadow: var(--shadow-lg);
}

.hidden {
	display: none;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.gap-sm {
	gap: var(--spacing-sm);
}

.gap-md {
	gap: var(--spacing-md);
}

.gap-lg {
	gap: var(--spacing-lg);
}

/* ===========================
   Progress Bar
   =========================== */
.progress {
	width: 100%;
	height: 0.5rem;
	background-color: var(--light-gray);
	border-radius: var(--radius-full);
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background-color: var(--primary-color);
	transition: width var(--transition-normal);
}

/* ===========================
   Responsive Utilities
   =========================== */
@media (max-width: 767px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	.navbar-menu {
		display: none;
	}
}

/* ===========================
   Animation Classes
   =========================== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn var(--transition-normal) ease-out;
}

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

.slide-in {
	animation: slideIn var(--transition-normal) ease-out;
}

/* ===========================
   How It Works Section Responsive
   =========================== */
@media (max-width: 1024px) {
	#how-it-works .container > div:nth-child(2) {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}
}

@media (max-width: 768px) {
	#how-it-works {
		padding: 3rem 1rem !important;
	}

	#how-it-works h2 {
		font-size: 2rem !important;
	}

	#how-it-works .container > div:first-child {
		margin-bottom: 2.5rem !important;
	}

	#how-it-works .container > div:nth-child(2) {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}

	#how-it-works .container > div:nth-child(2) > div {
		padding: 2rem !important;
	}

	#how-it-works h3 {
		font-size: 1.5rem !important;
	}

	#how-it-works .container > div:last-child {
		margin-top: 2.5rem !important;
		padding: 2rem !important;
	}

	#how-it-works .container > div:last-child h3 {
		font-size: 1.25rem !important;
	}

	#how-it-works .container > div:last-child > div {
		flex-direction: column !important;
		gap: 0.75rem !important;
	}

	#how-it-works .container > div:last-child button {
		width: 100%;
	}
}

/* ===========================
   Story Modal Specific Styles
   =========================== */
#story-modal .modal-content {
	animation: fadeIn 0.3s ease-out;
}

#story-modal-content p {
	margin-bottom: 1.5rem;
}

#story-modal-content strong {
	color: #263238;
	font-weight: 600;
}

/* Responsive adjustments for story modal */
@media (max-width: 768px) {
	#story-modal .modal-content {
		max-width: 95%;
		margin: 1rem;
	}

	#story-modal-image-container {
		height: 200px !important;
	}

	#story-modal-content {
		padding: 0 1rem 1rem 1rem !important;
		font-size: 1rem !important;
	}

	#story-modal .modal-body > div:first-child {
		padding: 0 1rem !important;
	}
}

/* ===========================
   Account Type Selection (Login)
   =========================== */
.account-type-selection {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 1rem;
}

.account-type-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 2rem 1.5rem;
	border: 2px solid #e0e6ea;
	border-radius: 16px;
	background-color: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	color: var(--dark-color);
}

.account-type-btn:hover {
	border-color: var(--primary-color);
	background-color: rgba(0, 188, 212, 0.05);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 188, 212, 0.15);
}

.account-type-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
}

.btn-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	margin-bottom: 1rem;
	background: none;
	border: none;
	color: var(--gray-color);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease;
}

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

.btn-back svg {
	width: 18px;
	height: 18px;
}

.login-demo-notice {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	background-color: #e1f5fe;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
	color: #01579b;
}

.login-demo-notice svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--primary-color);
}

.btn-login-submit {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.btn-back-link {
	width: 100%;
	padding: 0.75rem;
	background: none;
	border: none;
	color: var(--primary-color);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease;
	margin-bottom: 1rem;
}

.btn-back-link:hover {
	color: #00acc1;
}

.login-footer-text {
	text-align: center;
	font-size: 0.9rem;
	color: var(--gray-color);
	padding-top: 0.5rem;
}

.link-signup {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.link-signup:hover {
	color: #00acc1;
	text-decoration: underline;
}

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

.link-forgot-password {
	color: var(--primary-color);
	font-size: 0.9rem;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.link-forgot-password:hover {
	color: #00acc1;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.account-type-selection {
		grid-template-columns: 1fr;
	}

	.form-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}
