/**
 * AtlasCRM — Main Stylesheet
 *
 * Global styles, CSS variables, typography, navigation, buttons,
 * layout utilities, section styles, and footer.
 *
 * @package AtlasCRM
 * @version 1.0.0
 */

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

:root {
	/* Colors — overridden by Customizer via inline <style> */
	--bg-deep: #050816;
	--bg-dark: #0A0E1A;
	--bg-card: rgba(15, 22, 41, 0.6);
	--bg-glass: rgba(255, 255, 255, 0.03);
	--bg-input: rgba(255, 255, 255, 0.04);
	--border-glass: rgba(255, 255, 255, 0.06);
	--border-glow: rgba(37, 99, 235, 0.3);
	--primary: #2563EB;
	--primary-light: #3B82F6;
	--primary-glow: rgba(37, 99, 235, 0.15);
	--accent: #10B981;
	--accent-glow: rgba(16, 185, 129, 0.15);
	--warn: #F59E0B;
	--danger: #EF4444;
	--text-primary: #E2E8F0;
	--text-secondary: #94A3B8;
	--text-muted: #64748B;

	/* Spacing & Radius */
	--radius: 12px;
	--radius-lg: 20px;

	/* Typography */
	--font-display: 'Outfit', sans-serif;
	--font-body: 'Plus Jakarta Sans', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px; /* offset for fixed nav on anchor links */
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	background: var(--bg-deep);
	color: var(--text-primary);
	overflow-x: hidden;
	line-height: 1.6;
	-webkit-tap-highlight-color: transparent;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Auth page needs flex column body so the card centers vertically. */
body.page-template-page-auth {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   Particle Canvas
   ========================================================================== */

#particles-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: 0.4;
}

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Glow Orbs (decorative)
   ========================================================================== */

.glow-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: 0;
}
.glow-orb.blue   { background: rgba(37, 99, 235, 0.12); }
.glow-orb.green  { background: rgba(16, 185, 129, 0.08); }
.glow-orb.purple { background: rgba(139, 92, 246, 0.06); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 16px 40px;
	padding-left: max(40px, env(safe-area-inset-left));
	padding-right: max(40px, env(safe-area-inset-right));
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	background: rgba(5, 8, 22, 0.7);
	border-bottom: 1px solid var(--border-glass);
	transition: all 0.3s ease;
}
.site-nav.scrolled {
	background: rgba(5, 8, 22, 0.92);
}

.nav-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo */
.logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -0.5px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 3px;
}
.logo-atlas { color: #fff; }
.logo-crm {
	background: linear-gradient(135deg, var(--primary-light), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.logo-dot {
	width: 6px;
	height: 6px;
	background: var(--accent);
	border-radius: 50%;
	display: inline-block;
	margin-left: 2px;
	box-shadow: 0 0 8px var(--accent);
}

/* Nav Links */
.nav-links {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
}
.nav-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
	position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-light);
	transition: width 0.3s ease;
	border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }
.btn-nav-cta {
	padding: 10px 22px;
}
.btn-nav-cta::after {
	display: none; /* Buttons must not show the link-hover underline */
}

/* Mobile toggle */
.mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 4px;
}
.mobile-toggle span {
	width: 22px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: all 0.3s;
}

/* Mobile nav open state */
.nav-links.mobile-open {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(5, 8, 22, 0.96);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-glass);
	gap: 0;
	z-index: 99;
}
.nav-links.mobile-open a {
	display: block;
	padding: 14px 0;
	font-size: 16px;
	border-bottom: 1px solid var(--border-glass);
}
.nav-links.mobile-open li:last-child a {
	border-bottom: none;
}
.nav-links.mobile-open .btn {
	display: inline-flex;
	width: 100%;
	margin-top: 12px;
	padding: 14px 24px;
	justify-content: center;
	border-bottom: none;
	font-size: 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	border-radius: 10px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
}
.btn-primary {
	background: linear-gradient(135deg, var(--primary), #1d4ed8);
	color: #fff;
	box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.btn-ghost {
	background: transparent;
	color: var(--text-primary);
	border: 1px solid var(--border-glass);
}
.btn-ghost:hover {
	border-color: var(--primary-light);
	background: var(--primary-glow);
}
.btn-lg {
	padding: 14px 32px;
	font-size: 16px;
	border-radius: 12px;
}
.btn-accent {
	background: linear-gradient(135deg, var(--accent), #059669);
	color: #fff;
	box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-accent:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Layout
   ========================================================================== */

section { position: relative; z-index: 1; }
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	padding-left: max(24px, env(safe-area-inset-left));
	padding-right: max(24px, env(safe-area-inset-right));
}

/* ==========================================================================
   Section Labels & Titles
   ========================================================================== */

.section-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: var(--primary-light);
	font-weight: 600;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.section-label::before {
	content: '';
	width: 24px;
	height: 2px;
	background: var(--primary-light);
	border-radius: 2px;
}
.section-title {
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.15;
	margin-bottom: 16px;
}
.section-subtitle {
	font-size: 17px;
	color: var(--text-secondary);
	max-width: min(560px, 100%);
	line-height: 1.7;
	margin-bottom: 64px;
}
.gradient-text {
	background: linear-gradient(135deg, var(--primary-light) 0%, #818cf8 40%, var(--accent) 80%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-size: 200% auto;
	animation: shimmer 4s ease infinite;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 140px 24px 100px;
	position: relative;
	overflow: hidden;
}
.hero .glow-orb.g1 { width: 600px; height: 600px; top: -200px; left: -100px; }
.hero .glow-orb.g2 { width: 500px; height: 500px; bottom: -100px; right: -100px; }
.hero .glow-orb.g3 { width: 300px; height: 300px; top: 30%; left: 60%; }

.hero-grid {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1000px;
	height: 100%;
	background-image:
		linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
	pointer-events: none;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 100px;
	border: 1px solid var(--border-glow);
	background: var(--primary-glow);
	font-size: 13px;
	font-weight: 500;
	color: var(--primary-light);
	margin-bottom: 32px;
	animation: fadeInDown 0.8s ease;
}
.hero-badge .pulse-dot {
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
	animation: pulse 2s ease infinite;
}

.hero h1 {
	font-family: var(--font-display);
	font-size: clamp(42px, 6vw, 80px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -2px;
	margin-bottom: 24px;
	animation: fadeInUp 0.8s ease 0.1s both;
}
.hero p {
	font-size: clamp(16px, 2vw, 20px);
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 48px;
	line-height: 1.7;
	animation: fadeInUp 0.8s ease 0.2s both;
}

/* Waitlist form */
.waitlist-form {
	display: flex;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto;
	animation: fadeInUp 0.8s ease 0.3s both;
}
.waitlist-form input {
	flex: 1;
	padding: 14px 20px;
	border-radius: 12px;
	border: 1px solid var(--border-glass);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	outline: none;
	transition: all 0.3s;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-form input:focus {
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px var(--primary-glow);
}
.waitlist-count {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
	color: var(--text-muted);
	animation: fadeInUp 0.8s ease 0.4s both;
}
.waitlist-count span { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding: 60px 0 40px;
	border-top: 1px solid var(--border-glass);
	position: relative;
	z-index: 1;
}
.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	padding-left: max(24px, env(safe-area-inset-left));
	padding-right: max(24px, env(safe-area-inset-right));
	padding-bottom: env(safe-area-inset-bottom, 0);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.footer-logo { font-size: 20px; }
.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	list-style: none;
}
.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
	font-size: 13px;
	color: var(--text-muted);
}

/* ==========================================================================
   Contact Modal
   ========================================================================== */

.contact-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(2, 4, 12, 0.80);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 24px;
}
.contact-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
.contact-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: linear-gradient(145deg, rgba(15, 22, 41, 0.95), rgba(10, 15, 30, 0.98));
	border: 1px solid var(--border-glass);
	border-radius: 16px;
	padding: 40px 36px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(37, 99, 235, 0.06);
	transform: translateY(20px) scale(0.97);
	transition: transform 0.3s ease;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.contact-modal-overlay.is-open .contact-modal {
	transform: translateY(0) scale(1);
}
.contact-modal-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.2s;
}
.contact-modal-close:hover {
	color: var(--text-primary);
}
.contact-modal h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 8px;
}
.contact-modal-subtitle {
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 28px;
	line-height: 1.6;
}
.contact-modal-form .form-group {
	margin-bottom: 18px;
}
.contact-modal-form .form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}
.contact-modal-form .form-input {
	width: 100%;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-glass);
	border-radius: 8px;
	color: var(--text-primary);
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.contact-modal-form .form-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.contact-modal-form .form-input::placeholder {
	color: var(--text-muted);
}
.contact-textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
}
.contact-modal-form .btn-submit {
	width: 100%;
	margin-top: 6px;
}
.btn-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 13px 20px;
	margin-top: 12px;
	background: #25D366;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover {
	background: #1EBE5A;
	transform: translateY(-1px);
}
.btn-whatsapp svg {
	flex-shrink: 0;
}
.contact-modal-success {
	text-align: center;
	padding: 20px 0;
}
.contact-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: var(--accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #fff;
	font-weight: 700;
}
.contact-modal-success h3 {
	font-size: 20px;
	color: var(--text-primary);
	margin-bottom: 8px;
}
.contact-modal-success p {
	font-size: 14px;
	color: var(--text-muted);
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
	0%, 100% { background-position: 0% center; }
	50%      { background-position: 100% center; }
}
@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ==========================================================================
   Mobile Carousel — activated by JS below 768 px
   ========================================================================== */

/*
 * When JS adds .carousel-active, the grid switches from CSS Grid to a
 * horizontal scroll-snap container. Each child becomes a slide.
 */

.carousel-active {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	gap: 16px;
	padding: 16px 8px 8px;

	/* Hide scrollbar across browsers */
	scrollbar-width: none;          /* Firefox  */
	-ms-overflow-style: none;       /* IE / Edge */
}
.carousel-active::-webkit-scrollbar {
	display: none;                   /* Chrome / Safari */
}

/* Each card becomes a slide: 85 % width with peek */
.carousel-active > * {
	flex: 0 0 85%;
	min-width: 0;
	scroll-snap-align: center;
}

/* For pricing: slightly wider cards (fewer cards) */
.pricing-grid.carousel-active > * {
	flex: 0 0 88%;
}

/* Override grid-specific layout when carousel is active.
   Compound selectors (0,2,0) beat base grid rules (0,1,0)
   regardless of source order — this is essential because the
   base .tools-grid / .roadmap-grid / .pricing-grid definitions
   appear later in the file. */
.carousel-active.tools-grid,
.carousel-active.roadmap-grid,
.carousel-active.pricing-grid {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	grid-template-columns: none;
	max-width: none;
}

/* ── Dot indicators ────────────────────────────────────── */

.carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	padding: 12px 0 0;
}

.carousel-dot {
	/* FIX #7: 44px touch target, visual dot rendered via ::after */
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.carousel-dot::after {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	transition: all 0.3s ease;
}
.carousel-dot:hover::after {
	background: rgba(255, 255, 255, 0.3);
}
.carousel-dot.active::after {
	width: 24px;
	border-radius: 4px;
	background: var(--primary-light);
}

/* ==========================================================================
   Responsive — ordered largest → smallest
   ==========================================================================
   Breakpoints:
     1024px  Large tablet / small laptop
      768px  Tablet portrait / large phone landscape
      600px  Large phones (iPhone Plus, Pixel, Galaxy S)
      480px  Standard phones (iPhone, iPhone SE, Galaxy)
      360px  Compact phones (Galaxy S narrow, iPhone SE old)
   ========================================================================== */

/* ---------- 1024px — Large Tablet ---------- */
@media (max-width: 1024px) {
	.site-nav { padding: 14px 24px; }
	.nav-links { gap: 24px; }
	.hero { padding: 120px 24px 80px; }
	.cta-inner { padding: 64px 32px; }
}

/* ---------- 900px — Grid Collapse + Tablet Adjustments ---------- */
@media (max-width: 900px) {
	/* Section spacing: 120→100 */
	.tools,
	.vision,
	.pricing,
	.faq,
	.cta { padding: 100px 0; }
	.logos-bar { padding: 48px 0; }

	/* Hero: no longer full-viewport */
	.hero { min-height: auto; padding: 120px 24px 80px; }

	/* Tools → 1 column */
	.tools-grid { grid-template-columns: 1fr; }

	/* Roadmap → 2 columns */
	.roadmap-grid { grid-template-columns: repeat(2, 1fr); }

	/* Pricing → 1 column, centered for readability */
	.pricing-grid {
		grid-template-columns: 1fr;
		max-width: 440px;
	}

	/* Hero title tighter */
	.hero h1 { letter-spacing: -1px; }

	/* Waitlist stacks */
	.waitlist-form { flex-direction: column; }
	.waitlist-form .btn { width: 100%; justify-content: center; }

	/* Footer stacks (don't wait until 768) */
	.footer-inner {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}

	/* Logos wrap */
	.logos-row { gap: 28px; flex-wrap: wrap; justify-content: center; }

	/* CTA tighter */
	.cta-inner { padding: 60px 32px; }
	.cta p { margin-bottom: 32px; }
}

/* ---------- 768px — Tablet Portrait ---------- */
@media (max-width: 768px) {
	/* Nav → mobile hamburger */
	.site-nav { padding: 14px 20px; }
	.nav-links { display: none; }
	.mobile-toggle { display: flex; }

	/* Section spacing: 120→80 */
	.tools,
	.vision,
	.pricing,
	.faq,
	.cta { padding: 80px 0; }
	.logos-bar { padding: 48px 0; }

	/* Section headers: tighten gap */
	.vision-header,
	.pricing-header,
	.faq-header { margin-bottom: 48px; }
	.section-subtitle { margin-bottom: 48px; }

	/* Hero */
	.hero { min-height: auto; padding: 120px 20px 80px; }
	.hero p { margin-bottom: 36px; }

	/* Cards: tighter padding */
	.tool-card { padding: 32px 24px; }
	.tool-card h3 { font-size: 20px; }
	.roadmap-card { padding: 24px 20px; }
	.price-card { padding: 32px 24px; }
	.pricing-grid { max-width: 420px; }

	/* CTA */
	.cta-inner { padding: 48px 24px; }
	.cta p { font-size: 15px; margin-bottom: 32px; }

	/* Footer stacks */
	.footer-inner {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}
	.footer-links { justify-content: center; gap: 20px; }

	/* Logos */
	.logos-row { gap: 24px; flex-wrap: wrap; justify-content: center; }
	.logos-row span { font-size: 16px; }

	/* FAQ touch targets */
	.faq-question { padding: 18px 20px; font-size: 14px; }
	.faq-answer-inner { padding: 0 20px 18px; font-size: 13px; }

	/* Disable hover transforms on touch devices */
	.tool-card:hover,
	.price-card:hover,
	.roadmap-card:hover { transform: none; }

	/* Fix #3: Reduce glow orbs for performance */
	.hero .glow-orb { opacity: 0.3; }
	.hero .glow-orb.g1 { width: 300px; height: 300px; }
	.hero .glow-orb.g2 { width: 250px; height: 250px; }
	.hero .glow-orb.g3 { width: 150px; height: 150px; }
}

/* ---------- 600px — Large Phones ---------- */
@media (max-width: 600px) {
	/* Container: less side padding — FIX #3: longhand preserves safe-area */
	.container {
		padding-top: 0;
		padding-bottom: 0;
		padding-left: max(16px, env(safe-area-inset-left));
		padding-right: max(16px, env(safe-area-inset-right));
	}

	/* Section spacing: 80→60 */
	.tools,
	.vision,
	.pricing,
	.faq,
	.cta { padding: 60px 0; }
	.logos-bar { padding: 40px 0; }

	/* Hero tighten */
	.hero {
		padding: 100px 16px 60px;
		min-height: auto;
	}
	.hero h1 { letter-spacing: -1px; }
	.hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 24px; text-align: center; line-height: 1.5; }

	/* Roadmap → 1 column */
	.roadmap-grid { grid-template-columns: 1fr; }
	.roadmap-card { padding: 24px; }
	.roadmap-icon { font-size: 26px; margin-bottom: 12px; }
	.roadmap-card h4 { font-size: 16px; }

	/* Pricing fine-tune */
	.price-amount .value { font-size: 40px; letter-spacing: -1px; }
	.price-amount .currency { font-size: 18px; }

	/* Toggle: larger touch targets */
	.toggle-switch { width: 52px; height: 28px; }
	.toggle-knob { width: 20px; height: 20px; }
	.toggle-switch[aria-checked="true"] .toggle-knob { transform: translateX(24px); }

	/* Fix #4: Pricing toggle wrapping */
	.pricing-toggle { flex-wrap: wrap; gap: 10px; }
	.toggle-badge { font-size: 10px; }

	/* Section headers */
	.vision-header,
	.pricing-header,
	.faq-header { margin-bottom: 36px; }
	.section-subtitle { font-size: 15px; margin-bottom: 36px; }

	/* Footer */
	.footer-links { gap: 16px; }
	.footer-copy { font-size: 12px; }
	.site-footer { padding: 48px 0 32px; }

	/* Contact modal */
	.contact-modal {
		padding: 28px 20px;
		border-radius: 12px;
		max-height: 85vh;
	}
	.contact-modal h2 { font-size: 20px; }

	/* Logos */
	.logos-bar p { font-size: 11px; letter-spacing: 2px; margin-bottom: 24px; }
	.logos-row span { font-size: 14px; }

	/* FAQ */
	.faq-grid { gap: 8px; }
	.faq-question { padding: 16px; font-size: 14px; gap: 12px; }
	.faq-answer-inner { padding: 0 16px 16px; }
}

/* ---------- 480px — Standard Phones ---------- */
@media (max-width: 480px) {
	/* Section spacing: 60→48 */
	.tools,
	.vision,
	.pricing,
	.faq,
	.cta { padding: 48px 0; }

	/* Hero */
	.hero { padding: 90px 16px 48px; }
	.hero p { font-size: 15px; line-height: 1.6; }
	.hero-badge { font-size: 11px; gap: 6px; }
	.hero-badge .pulse-dot { flex-shrink: 0; }
	.hero .glow-orb { display: none; }
	.hero-grid { opacity: 0.3; }

	/* Tools */
	.tool-card { padding: 24px 20px; }
	.tool-card h3 { font-size: 18px; }
	.tool-card p { font-size: 14px; margin-bottom: 24px; }
	.tool-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 20px; }
	.tool-features li { font-size: 13px; }

	/* Pricing */
	.pricing-grid { max-width: 100%; }
	.price-card { padding: 28px 20px; }
	.price-card h3 { font-size: 18px; }
	.price-amount .value { font-size: 36px; }
	.price-features li { font-size: 13px; gap: 8px; }
	.price-features { gap: 10px; }
	.price-card .btn { margin-bottom: 24px; }
	.price-card .price-per { margin-bottom: 24px; }

	/* CTA */
	.cta-inner { padding: 40px 20px; }

	/* Contact modal */
	.contact-modal-overlay { padding: 16px; }
	.contact-modal { max-height: 88vh; }

	/* Buttons: full-width on phone */
	.hero .btn,
	.cta .btn { width: 100%; justify-content: center; }
	.btn-lg { padding: 14px 24px; font-size: 15px; }

	/* Section titles */
	.section-title { letter-spacing: -0.5px; }
	.section-label { font-size: 11px; letter-spacing: 2px; }

	/* Auth page */
	.auth-card { padding: 36px 24px; }
	.auth-nav { padding: 16px 20px; }
	.auth-wrapper { padding: 24px 16px; }
	.auth-glow { width: 250px; height: 250px; }

	/* Legal page */
	body.page-template-page-legal .auth-nav { padding: 12px 20px; }
	.legal-tabs { flex-direction: column; }
	.legal-wrapper { padding: 40px 16px 80px; }
	.legal-header h1 { font-size: 28px; }
	.legal-content h2 { font-size: 18px; margin-top: 32px; }
	.legal-content p { font-size: 14px; }
}

/* ---------- 360px — Compact Phones ---------- */
@media (max-width: 360px) {
	/* FIX #3: longhand preserves safe-area */
	.container {
		padding-top: 0;
		padding-bottom: 0;
		padding-left: max(12px, env(safe-area-inset-left));
		padding-right: max(12px, env(safe-area-inset-right));
	}

	.hero { padding: 84px 12px 40px; }
	.hero h1 { letter-spacing: -0.5px; }

	/* Fix #5: badge on compact screens */
	.hero-badge { font-size: 10px; padding: 4px 10px; border-radius: 12px; }

	.price-amount .value { font-size: 32px; }
	.price-card { padding: 24px 16px; }

	.tool-card { padding: 20px 16px; }
	.roadmap-card { padding: 20px 16px; }

	.faq-question { padding: 14px 12px; font-size: 13px; }
	.faq-answer-inner { padding: 0 12px 14px; font-size: 12px; }

	.auth-card { padding: 28px 16px; }

	/* Fix #6: modal overlay and modal tighter on compact phones */
	.contact-modal-overlay { padding: 12px; }
	.contact-modal { padding: 24px 16px; }

	.site-nav { padding: 12px 12px; }
	.logo { font-size: 20px; }

	.btn { padding: 10px 16px; font-size: 13px; }
	.btn-lg { padding: 12px 20px; font-size: 14px; }
}

/* ---------- Landscape Phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
	.hero {
		min-height: auto;
		padding: 80px 24px 40px;
	}
	.hero .glow-orb { display: none; }
	.hero-grid { display: none; }
}

/* ---------- Touch Device Optimizations ---------- */
@media (hover: none) and (pointer: coarse) {
	/* Ensure all interactive elements meet 44px min touch target */
	.faq-question { min-height: 48px; }
	.toggle-switch { min-width: 48px; min-height: 28px; }
	.nav-links a { padding: 8px 0; }
	.footer-links a { padding: 8px 0; display: inline-block; }

	/* Remove hover-only effects on touch */
	.tool-card:hover,
	.price-card:hover,
	.roadmap-card:hover {
		transform: none;
		box-shadow: none;
	}
	.tool-card::before { display: none; }
	.roadmap-card::before { display: none; }
	.nav-links a::after { display: none; }
}

/* ==========================================================================
   Logos Bar
   ========================================================================== */

.logos-bar {
	padding: 60px 0;
	text-align: center;
	border-top: 1px solid var(--border-glass);
	border-bottom: 1px solid var(--border-glass);
}
.logos-bar p {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: var(--text-muted);
	margin-bottom: 32px;
	font-weight: 600;
}
.logos-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 48px;
	flex-wrap: wrap;
	opacity: 0.3;
}
.logos-row span {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--text-secondary);
}

/* ==========================================================================
   Tools Section
   ========================================================================== */

.tools {
	padding: 120px 0;
	position: relative;
}
.tools-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.tool-card {
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-glass);
	background: var(--bg-glass);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding: 48px;
	position: relative;
	overflow: hidden;
	transition: all 0.4s ease;
}
.tool-card:hover {
	border-color: var(--border-glow);
	transform: translateY(-4px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--primary-glow);
}
.tool-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
	opacity: 0;
	transition: opacity 0.4s;
}
.tool-card:hover::before {
	opacity: 1;
}
.tool-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	font-size: 24px;
}
.tool-icon.harvester {
	background: linear-gradient(135deg, var(--primary-glow), rgba(37, 99, 235, 0.05));
	border: 1px solid rgba(37, 99, 235, 0.2);
}
.tool-icon.autopilot {
	background: linear-gradient(135deg, var(--accent-glow), rgba(16, 185, 129, 0.05));
	border: 1px solid rgba(16, 185, 129, 0.2);
}
.tool-card h3 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 12px;
}
.tool-card p {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 32px;
}
.tool-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tool-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--text-secondary);
}
.tool-features li .check {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--primary-glow);
	border: 1px solid rgba(37, 99, 235, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--primary-light);
	flex-shrink: 0;
}
.tool-card:nth-child(2) .tool-features li .check {
	background: var(--accent-glow);
	border-color: rgba(16, 185, 129, 0.2);
	color: var(--accent);
}

/* ==========================================================================
   Vision Section
   ========================================================================== */

.vision {
	padding: 120px 0;
	position: relative;
}
.vision-header {
	text-align: center;
	margin-bottom: 64px;
}
.vision-header .section-label {
	justify-content: center;
}
.vision-header .section-title {
	margin: 0 auto 16px;
}
.vision-header .section-subtitle {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
.roadmap-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.roadmap-card {
	padding: 32px 28px;
	border-radius: var(--radius);
	background: linear-gradient(145deg, rgba(15, 22, 41, 0.6), rgba(10, 15, 30, 0.8));
	border: 1px solid var(--border-glass);
	transition: all 0.35s ease;
	position: relative;
	overflow: hidden;
}
.roadmap-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	opacity: 0;
	transition: opacity 0.35s;
}
.roadmap-card:hover {
	border-color: var(--border-glow);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08);
}
.roadmap-card:hover::before {
	opacity: 1;
}
.roadmap-icon {
	font-size: 30px;
	margin-bottom: 16px;
}
.roadmap-card h4 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	margin-bottom: 10px;
	color: var(--text-primary);
}
.roadmap-card p {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.7;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
	padding: 120px 0;
	position: relative;
}
.pricing-header {
	text-align: center;
	margin-bottom: 64px;
}
.pricing-header .section-label {
	justify-content: center;
}
.pricing-header .section-title {
	text-align: center;
}
.pricing-header .section-subtitle {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1000px;
	margin: 0 auto;
}
.price-card {
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-glass);
	background: var(--bg-glass);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding: 40px;
	position: relative;
	transition: all 0.4s;
}
.price-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-glow);
}
.price-card.featured {
	border-color: var(--primary-light);
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
	box-shadow: 0 0 40px var(--primary-glow);
}
.price-badge {
	position: absolute;
	top: -12px;
	right: 24px;
	padding: 4px 12px;
	border-radius: 100px;
	background: linear-gradient(135deg, var(--primary-light), var(--accent));
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #fff;
}
.price-card h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
	margin-bottom: 8px;
}
.price-card .price-desc {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 24px;
}
.price-amount {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 8px;
}
.price-amount .currency {
	font-size: 20px;
	color: var(--text-secondary);
	font-weight: 600;
}
.price-amount .value {
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -2px;
}
.price-amount .period {
	font-size: 14px;
	color: var(--text-muted);
}
.price-card .price-per {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 32px;
}
.price-card .btn {
	width: 100%;
	justify-content: center;
	margin-bottom: 32px;
}
.price-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.price-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--text-secondary);
}
.price-features li .check {
	color: var(--accent);
	font-size: 14px;
	flex-shrink: 0;
}
.price-features li.disabled {
	color: var(--text-muted);
	opacity: 0.5;
}

/* Pricing Toggle */
.pricing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 28px;
}
.toggle-label {
	font-size: 14px;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
}
.toggle-label.toggle-active {
	color: var(--text-primary);
	font-weight: 600;
}
.toggle-badge {
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	padding: 2px 8px;
	border-radius: 10px;
	letter-spacing: 0.02em;
}
.toggle-switch {
	position: relative;
	width: 48px;
	height: 26px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border-glass);
	border-radius: 13px;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s;
}
.toggle-switch[aria-checked="true"] {
	background: var(--primary);
	border-color: var(--primary);
}
.toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.25s;
	pointer-events: none;
}
.toggle-switch[aria-checked="true"] .toggle-knob {
	transform: translateX(22px);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
	padding: 120px 0;
}
.faq-header {
	text-align: center;
	margin-bottom: 64px;
}
.faq-header .section-label {
	justify-content: center;
}
.faq-header .section-title {
	text-align: center;
}
.faq-grid {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.faq-item {
	border-radius: var(--radius);
	border: 1px solid var(--border-glass);
	background: var(--bg-glass);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	overflow: hidden;
	transition: all 0.3s;
}
.faq-item:hover {
	border-color: rgba(255, 255, 255, 0.08);
}
.faq-item.active {
	border-color: var(--border-glow);
}
.faq-question {
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	transition: color 0.2s;
	user-select: none;
	/* Button reset (element is now <button>) */
	background: none;
	border: none;
	text-align: left;
	width: 100%;
	font-family: inherit;
	color: inherit;
	outline: none;
}
.faq-question:focus-visible {
	box-shadow: 0 0 0 3px var(--primary-glow);
	border-radius: var(--radius);
}
.faq-question:hover {
	color: var(--primary-light);
}
.faq-icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--text-muted);
	transition: all 0.3s;
	flex-shrink: 0;
}
.faq-item.active .faq-icon {
	transform: rotate(45deg);
	color: var(--primary-light);
}
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
	max-height: 600px;
}
.faq-answer-inner {
	padding: 0 24px 20px;
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
	padding: 120px 0;
	text-align: center;
	position: relative;
}
.cta-inner {
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-glass);
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.04));
	padding: 80px 40px;
	position: relative;
	overflow: hidden;
}
.cta-inner::before {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 10%;
	right: 10%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), transparent);
}
.cta h2 {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	margin-bottom: 16px;
	letter-spacing: -1px;
}
.cta p {
	color: var(--text-secondary);
	font-size: 17px;
	margin-bottom: 40px;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}
.cta .waitlist-form {
	animation: none;
}

/* ===================================================================
   AUTH PAGE
   =================================================================== */

/* Nav — minimal auth/legal variant */
.auth-nav {
	position: relative;
	z-index: 10;
	padding: 20px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.back-link {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s;
}
.back-link:hover {
	color: var(--text-primary);
}

/* Auth wrapper */
.auth-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	position: relative;
	z-index: 1;
}

/* Auth page body flex */
.auth-page {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Glow behind card */
.auth-glow {
	position: absolute;
	z-index: 0;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	filter: blur(140px);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(37, 99, 235, 0.08);
	pointer-events: none;
}

/* Auth card */
.auth-card {
	width: 100%;
	max-width: 440px;
	border-radius: 20px;
	border: 1px solid var(--border-glass);
	background: rgba(10, 14, 26, 0.8);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	padding: 48px 40px;
	position: relative;
	overflow: hidden;
	animation: fadeInUp 0.6s ease;
	z-index: 1;
}
.auth-card::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 20%;
	right: 20%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

/* Auth heading */
.auth-heading {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 6px;
}
.auth-subheading {
	text-align: center;
	color: var(--text-secondary);
	font-size: 14px;
	margin-bottom: 28px;
}

/* Auth tabs */
.auth-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 36px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
	padding: 4px;
	border: 1px solid var(--border-glass);
}
.auth-tab {
	flex: 1;
	padding: 10px;
	text-align: center;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--text-muted);
	transition: all 0.3s;
	background: transparent;
	border: none;
	font-family: var(--font-body);
}
.auth-tab.active {
	background: var(--primary-glow);
	color: var(--primary-light);
	border: 1px solid rgba(37, 99, 235, 0.2);
}
.auth-tab:not(.active):hover {
	color: var(--text-secondary);
}

/* Auth forms */
.auth-form {
	display: none;
}
.auth-form.active {
	display: block;
}
.form-group {
	margin-bottom: 20px;
}
.form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
}
.form-input {
	width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid var(--border-glass);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	outline: none;
	transition: all 0.3s;
}
.form-input::placeholder {
	color: var(--text-muted);
}
.form-input:focus {
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}
.form-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-muted);
	cursor: pointer;
}
.form-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--primary);
	border-radius: 4px;
	cursor: pointer;
}
.form-link {
	color: var(--primary-light);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s;
}
.form-link:hover {
	color: #60a5fa;
}

/* Submit button */
.btn-submit {
	width: 100%;
	padding: 14px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 15px;
	background: linear-gradient(135deg, var(--primary), #1d4ed8);
	color: #fff;
	box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: all 0.3s;
}
.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Auth error message */
.auth-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #fca5a5;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 20px;
}

/* Password strength */
.pw-strength {
	margin-top: 8px;
	display: flex;
	gap: 4px;
}
.pw-bar {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.3s;
}
.pw-bar.strength-1 { background: #EF4444; }
.pw-bar.strength-2 { background: #F59E0B; }
.pw-bar.strength-3 { background: #10B981; }
.pw-bar.strength-4 { background: #10B981; }

/* Auth footer link */
.auth-footer {
	text-align: center;
	margin-top: 24px;
	font-size: 13px;
	color: var(--text-muted);
}
.auth-footer a {
	color: var(--primary-light);
	text-decoration: none;
	font-weight: 600;
}

/* ===================================================================
   LEGAL PAGE
   =================================================================== */

/* Legal page uses the same .auth-nav / .back-link classes above */

body.page-template-page-legal .auth-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 16px 40px;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	background: rgba(5, 8, 22, 0.85);
	border-bottom: 1px solid var(--border-glass);
}

/* Layout */
.legal-wrapper {
	max-width: 820px;
	margin: 0 auto;
	padding: 60px 24px 100px;
	position: relative;
	z-index: 1;
}
.legal-wrapper::before {
	content: '';
	position: absolute;
	top: 120px;
	left: 50%;
	transform: translateX(-50%);
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.06);
	filter: blur(140px);
	pointer-events: none;
	z-index: -1;
}
.legal-header {
	text-align: center;
	margin-bottom: 48px;
	animation: fadeIn 0.6s ease;
}
.legal-header h1 {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -1px;
	margin-bottom: 12px;
}
.legal-header p {
	color: var(--text-muted);
	font-size: 14px;
}

/* Legal tabs */
.legal-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 48px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
	padding: 4px;
	border: 1px solid var(--border-glass);
}
.legal-tab {
	flex: 1;
	padding: 12px;
	text-align: center;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--text-muted);
	transition: all 0.3s;
	background: transparent;
	border: none;
	font-family: var(--font-body);
}
.legal-tab.active {
	background: var(--primary-glow);
	color: var(--primary-light);
	border: 1px solid rgba(37, 99, 235, 0.2);
}
.legal-tab:not(.active):hover {
	color: var(--text-secondary);
}

/* Legal content */
.legal-content {
	display: none;
	animation: fadeIn 0.4s ease;
}
.legal-content.active {
	display: block;
}
.legal-content h2 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	margin: 48px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--border-glass);
	color: var(--text-primary);
}
.legal-content h2:first-of-type {
	margin-top: 0;
	border-top: none;
	padding-top: 0;
}
.legal-content p {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.8;
	margin-bottom: 16px;
}
.legal-content strong {
	color: var(--text-primary);
	font-weight: 600;
}
.legal-content a {
	color: var(--primary-light);
	text-decoration: none;
}
.legal-content a:hover {
	text-decoration: underline;
}
.legal-content ul {
	list-style: none;
	margin: 16px 0;
	padding: 0;
}
.legal-content ul li {
	position: relative;
	padding-left: 20px;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.8;
	margin-bottom: 8px;
}
.legal-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary-light);
	opacity: 0.5;
}

/* Last-updated badge */
.last-updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 100px;
	border: 1px solid var(--border-glass);
	background: rgba(255, 255, 255, 0.02);
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 40px;
}
.last-updated span {
	color: var(--primary-light);
	font-weight: 600;
}

/* ===================================================================
   AUTH / LEGAL RESPONSIVE
   =================================================================== */

/* Auth/Legal responsive — see main Responsive section above */


/* ===================================================================
   PMPRO v3 — AtlasCRM Dark Glass Override
   ===================================================================
   Parent selector: .pmpro-page-wrap (from page.php — always present)
   Uses !important throughout to beat PMPro's frontend.css
   =================================================================== */

/* 0. Global color/font reset */
.pmpro-page-wrap .pmpro_form,
.pmpro-page-wrap .pmpro_form *:not(svg):not(path) {
	box-sizing: border-box;
}
.pmpro-page-wrap p,
.pmpro-page-wrap span,
.pmpro-page-wrap div,
.pmpro-page-wrap label,
.pmpro-page-wrap legend,
.pmpro-page-wrap li,
.pmpro-page-wrap td,
.pmpro-page-wrap th {
	color: var(--text-primary) !important;
	font-family: var(--font-body) !important;
}
.pmpro-page-wrap strong,
.pmpro-page-wrap b {
	color: #fff !important;
}

/* 1. Inner card panels — kill white bg */
.pmpro-page-wrap .pmpro_card,
.pmpro-page-wrap fieldset.pmpro_form_fieldset {
	background: rgba(255, 255, 255, 0.025) !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	border-radius: var(--radius) !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 20px 0 !important;
	overflow: hidden;
}
.pmpro-page-wrap fieldset.pmpro_form_fieldset > .pmpro_card {
	border: none !important;
	margin: 0 !important;
	background: transparent !important;
}
.pmpro-page-wrap legend.pmpro_form_legend {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
}

/* 2. Section titles */
.pmpro-page-wrap .pmpro_card_title,
.pmpro-page-wrap h2.pmpro_card_title,
.pmpro-page-wrap .pmpro_form_heading,
.pmpro-page-wrap h2.pmpro_form_heading {
	color: #fff !important;
	font-family: var(--font-display) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	margin: 0 !important;
	padding: 18px 24px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	background: rgba(255, 255, 255, 0.02) !important;
	line-height: 1.4 !important;
}

/* 3. Card content */
.pmpro-page-wrap .pmpro_card_content {
	padding: 24px !important;
	background: transparent !important;
}

/* 4. Card actions footer */
.pmpro-page-wrap .pmpro_card_actions {
	padding: 14px 24px !important;
	background: rgba(255, 255, 255, 0.015) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
	font-size: 13px !important;
}
.pmpro-page-wrap .pmpro_card_actions,
.pmpro-page-wrap .pmpro_card_actions span {
	color: var(--text-muted) !important;
}
.pmpro-page-wrap .pmpro_card_actions a {
	color: var(--primary-light) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
}
.pmpro-page-wrap .pmpro_card_actions a:hover {
	color: #60a5fa !important;
}

/* 5. Form fields wrapper */
.pmpro-page-wrap .pmpro_form_fields {
	padding: 24px !important;
}

/* 6. Field wrapper */
.pmpro-page-wrap .pmpro_form_field {
	margin-bottom: 18px !important;
}

/* 7. Labels */
.pmpro-page-wrap .pmpro_form_label,
.pmpro-page-wrap label.pmpro_form_label {
	display: block !important;
	color: var(--text-secondary) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	margin-bottom: 8px !important;
}
.pmpro-page-wrap .pmpro_asterisk,
.pmpro-page-wrap .pmpro_asterisk abbr {
	color: var(--danger) !important;
	text-decoration: none !important;
}

/* 8. INPUT FIELDS — the core override */
.pmpro-page-wrap .pmpro_form_input,
.pmpro-page-wrap input.pmpro_form_input,
.pmpro-page-wrap select.pmpro_form_input,
.pmpro-page-wrap textarea.pmpro_form_input {
	width: 100% !important;
	max-width: 100% !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-family: var(--font-body) !important;
	font-size: 15px !important;
	padding: 12px 16px !important;
	outline: none !important;
	transition: border-color 0.3s, box-shadow 0.3s !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	line-height: 1.5 !important;
}
/* Type-specific overrides — kill PMPro width restrictions */
.pmpro-page-wrap .pmpro_form_input-password,
.pmpro-page-wrap .pmpro_form_input-email,
.pmpro-page-wrap .pmpro_form_input-text,
.pmpro-page-wrap input.pmpro_form_input-password,
.pmpro-page-wrap input.pmpro_form_input-email,
.pmpro-page-wrap input.pmpro_form_input-text,
.pmpro-page-wrap input.pmpro_form_input-required {
	width: 100% !important;
	max-width: 100% !important;
}
.pmpro-page-wrap .pmpro_form_input:focus,
.pmpro-page-wrap input.pmpro_form_input:focus,
.pmpro-page-wrap select.pmpro_form_input:focus,
.pmpro-page-wrap textarea.pmpro_form_input:focus {
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 3px var(--primary-glow) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}
.pmpro-page-wrap .pmpro_form_input::placeholder {
	color: var(--text-muted) !important;
}
/* Select dropdown arrow */
.pmpro-page-wrap select.pmpro_form_input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-right: 40px !important;
	cursor: pointer;
}
.pmpro-page-wrap select.pmpro_form_input option {
	background: #0A0E1A !important;
	color: var(--text-primary) !important;
}

/* 9. Two-column grid */
.pmpro-page-wrap .pmpro_cols-2 {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
	margin-bottom: 18px !important;
}
.pmpro-page-wrap .pmpro_cols-2 > .pmpro_form_field {
	margin-bottom: 0 !important;
	min-width: 0 !important; /* prevent grid blowout */
	width: 100% !important;
}
/* Force inputs inside grid cells to fill their parent */
.pmpro-page-wrap .pmpro_cols-2 .pmpro_form_input,
.pmpro-page-wrap .pmpro_cols-2 input.pmpro_form_input,
.pmpro-page-wrap .pmpro_cols-2 input[type="password"],
.pmpro-page-wrap .pmpro_cols-2 input[type="email"],
.pmpro-page-wrap .pmpro_cols-2 input[type="text"] {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

/* 10. Password toggle */
.pmpro-page-wrap .pmpro_form_field-password {
	position: relative !important;
}
.pmpro-page-wrap .pmpro_form_field-password-toggle {
	margin-top: 8px !important;
	position: static !important;
	float: none !important;
	display: block !important;
	clear: both !important;
}
.pmpro-page-wrap .pmpro_btn.pmpro_btn-plain,
.pmpro-page-wrap .pmpro_btn-password-toggle {
	background: none !important;
	border: none !important;
	padding: 4px 0 !important;
	color: var(--primary-light) !important;
	font-size: 13px !important;
	font-family: var(--font-body) !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	box-shadow: none !important;
	width: auto !important;
	float: none !important;
	position: static !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}
.pmpro-page-wrap .pmpro_btn-password-toggle:hover {
	color: #60a5fa !important;
}
.pmpro-page-wrap .pmpro_btn-password-toggle .pmpro_icon svg {
	stroke: var(--primary-light) !important;
	width: 16px !important;
	height: 16px !important;
}
.pmpro-page-wrap .pmpro_form_field-password-toggle-state {
	color: var(--primary-light) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

/* 11. Checkboxes & radios */
.pmpro-page-wrap input[type="checkbox"],
.pmpro-page-wrap input[type="radio"] {
	width: 18px !important;
	height: 18px !important;
	accent-color: var(--primary) !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
}

/* 12. Membership info text */
.pmpro-page-wrap .pmpro_level_name_text {
	color: var(--text-secondary) !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	margin: 0 0 8px 0 !important;
}
.pmpro-page-wrap .pmpro_level_name_text strong {
	color: #fff !important;
}
.pmpro-page-wrap .pmpro_level_cost_text,
.pmpro-page-wrap .pmpro_level_cost_text p,
.pmpro-page-wrap .pmpro_level_expiration_text,
.pmpro-page-wrap .pmpro_level_expiration_text p {
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	margin: 0 0 4px 0 !important;
}
.pmpro-page-wrap .pmpro_level_cost_text strong,
.pmpro-page-wrap #pmpro_level_cost strong {
	color: var(--accent) !important;
	font-weight: 700 !important;
}

/* 13. Discount code */
.pmpro-page-wrap #other_discount_code_p {
	color: var(--text-muted) !important;
	font-size: 13px !important;
}
.pmpro-page-wrap #other_discount_code_toggle {
	background: none !important;
	border: none !important;
	color: var(--primary-light) !important;
	font-family: var(--font-body) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	padding: 0 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
	box-shadow: none !important;
}
.pmpro-page-wrap #other_discount_code_toggle:hover {
	color: #60a5fa !important;
}
.pmpro-page-wrap #other_discount_code_fields {
	margin-top: 12px !important;
}
.pmpro-page-wrap .pmpro_form_fields-inline {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}
.pmpro-page-wrap .pmpro_form_fields-inline .pmpro_form_input {
	flex: 1 !important;
}
.pmpro-page-wrap .pmpro_btn-submit-discount-code,
.pmpro-page-wrap #other_discount_code_button {
	background: rgba(37, 99, 235, 0.15) !important;
	border: 1px solid rgba(37, 99, 235, 0.3) !important;
	color: var(--primary-light) !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.2s !important;
	white-space: nowrap;
	width: auto !important;
	box-shadow: none !important;
}
.pmpro-page-wrap .pmpro_btn-submit-discount-code:hover,
.pmpro-page-wrap #other_discount_code_button:hover {
	background: rgba(37, 99, 235, 0.25) !important;
	border-color: var(--primary) !important;
}

/* 14. Submit button */
.pmpro-page-wrap .pmpro_form_submit {
	padding: 0 !important;
	margin-top: 8px !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	text-align: center !important;
}
.pmpro-page-wrap .pmpro_btn-submit-checkout,
.pmpro-page-wrap input.pmpro_btn-submit-checkout,
.pmpro-page-wrap .pmpro_form input[type="submit"],
.pmpro-page-wrap .pmpro_form button[type="submit"] {
	width: 100% !important;
	display: block !important;
	background: linear-gradient(135deg, var(--primary), #1d4ed8) !important;
	border: none !important;
	border-radius: 12px !important;
	box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
	color: #fff !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	padding: 16px 32px !important;
	cursor: pointer;
	transition: all 0.3s !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 auto !important;
	line-height: 1.4 !important;
}
.pmpro-page-wrap .pmpro_btn-submit-checkout:hover,
.pmpro-page-wrap .pmpro_form input[type="submit"]:hover,
.pmpro-page-wrap .pmpro_form button[type="submit"]:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* 15. Cancel button — red CTA */
.pmpro-page-wrap .pmpro_btn-submit-cancel,
.pmpro-page-wrap input.pmpro_btn-submit-cancel {
	background: linear-gradient(135deg, var(--danger), #b91c1c) !important;
	box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
.pmpro-page-wrap .pmpro_btn-submit-cancel:hover {
	box-shadow: 0 0 30px rgba(239, 68, 68, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* 16. Secondary .pmpro_btn */
.pmpro-page-wrap a.pmpro_btn,
.pmpro-page-wrap .pmpro_btn:not(.pmpro_btn-submit-checkout):not(.pmpro_btn-submit-cancel):not(.pmpro_btn-plain):not(.pmpro_btn-submit-discount-code):not([type="submit"]) {
	display: inline-block !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid var(--border-glass) !important;
	border-radius: 10px !important;
	color: var(--text-secondary) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	padding: 10px 20px !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	width: auto !important;
}
.pmpro-page-wrap a.pmpro_btn:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

/* 17. Messages */
.pmpro-page-wrap .pmpro_message,
.pmpro-page-wrap #pmpro_message {
	padding: 14px 18px !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	margin-bottom: 20px !important;
	line-height: 1.5 !important;
	background-image: none !important;
}
.pmpro-page-wrap .pmpro_message.pmpro_success {
	background: rgba(16, 185, 129, 0.1) !important;
	border: 1px solid rgba(16, 185, 129, 0.25) !important;
	color: #6ee7b7 !important;
}
.pmpro-page-wrap .pmpro_message.pmpro_alert {
	background: rgba(245, 158, 11, 0.1) !important;
	border: 1px solid rgba(245, 158, 11, 0.25) !important;
	color: #fcd34d !important;
}
.pmpro-page-wrap .pmpro_message.pmpro_error {
	background: rgba(239, 68, 68, 0.1) !important;
	border: 1px solid rgba(239, 68, 68, 0.25) !important;
	color: #fca5a5 !important;
}

/* 18. Links */
.pmpro-page-wrap a:not(.pmpro_btn) {
	color: var(--primary-light) !important;
	text-decoration: none !important;
	transition: color 0.2s;
}
.pmpro-page-wrap a:not(.pmpro_btn):hover {
	color: #60a5fa !important;
}

/* 19. Stripe Elements */
.pmpro-page-wrap #pmpro_stripe_payment_element,
.pmpro-page-wrap .StripeElement {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 10px !important;
	padding: 14px 16px !important;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.pmpro-page-wrap .StripeElement--focus,
.pmpro-page-wrap #pmpro_stripe_payment_element:focus-within {
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.pmpro-page-wrap .StripeElement--invalid {
	border-color: var(--danger) !important;
}

/* 20. Logged-in notice */
.pmpro-page-wrap #pmpro_account_loggedin,
.pmpro-page-wrap .pmpro_checkout_loggedin,
.pmpro-page-wrap .pmpro_form > p {
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

/* 21. Confirmation page */
.pmpro-page-wrap .pmpro_confirmation_message p,
.pmpro-page-wrap #pmpro_confirmation_message p {
	color: var(--text-primary) !important;
	margin-bottom: 12px !important;
	line-height: 1.7 !important;
}

/* 22. Invoice & tables */
.pmpro-page-wrap table,
.pmpro-page-wrap table.pmpro_table,
.pmpro-page-wrap .pmpro_table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: 1px solid var(--border-glass) !important;
	border-radius: var(--radius) !important;
	overflow: hidden !important;
	background: rgba(255, 255, 255, 0.025) !important;
}
.pmpro-page-wrap table th,
.pmpro-page-wrap .pmpro_table th {
	background: rgba(255, 255, 255, 0.03) !important;
	color: var(--text-secondary) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	padding: 12px 16px !important;
	text-align: left !important;
	border-bottom: 1px solid var(--border-glass) !important;
}
.pmpro-page-wrap table td,
.pmpro-page-wrap .pmpro_table td {
	padding: 12px 16px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
	font-size: 14px !important;
	background: transparent !important;
}
.pmpro-page-wrap table tr:last-child td,
.pmpro-page-wrap .pmpro_table tr:last-child td {
	border-bottom: none !important;
}
.pmpro-page-wrap table tbody th,
.pmpro-page-wrap .pmpro_table tbody th {
	background: transparent !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

/* 23. TOS */
.pmpro-page-wrap #pmpro_license {
	max-height: 200px !important;
	overflow-y: auto !important;
	padding: 16px !important;
	background: rgba(0, 0, 0, 0.3) !important;
	border: 1px solid rgba(255, 255, 255, 0.04) !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	color: var(--text-muted) !important;
	line-height: 1.7 !important;
}
.pmpro-page-wrap #pmpro_license::-webkit-scrollbar { width: 6px; }
.pmpro-page-wrap #pmpro_license::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 3px;
}

/* 24. Hidden honeypot */
.pmpro-page-wrap .pmpro_hidden {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* 25. HR */
.pmpro-page-wrap hr {
	border: none !important;
	border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
	margin: 20px 0 !important;
}

/* 26. Field error states */
.pmpro-page-wrap .pmpro_error .pmpro_form_input,
.pmpro-page-wrap .pmpro_form_field.pmpro_error .pmpro_form_input {
	border-color: var(--danger) !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* 27. Small/helper text */
.pmpro-page-wrap .pmpro_small,
.pmpro-page-wrap small {
	color: var(--text-muted) !important;
	font-size: 12px !important;
}

/* 28. PMPro icon SVGs */
.pmpro-page-wrap .pmpro_icon svg {
	stroke: var(--text-secondary) !important;
}

/* 29. Cancel page lists */
.pmpro-page-wrap ul.pmpro_list,
.pmpro-page-wrap .pmpro_cancel_info ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 12px 0 !important;
}
.pmpro-page-wrap ul.pmpro_list li,
.pmpro-page-wrap .pmpro_cancel_info li {
	padding: 12px 16px !important;
	background: rgba(255, 255, 255, 0.02) !important;
	border: 1px solid var(--border-glass) !important;
	border-radius: 8px !important;
	margin-bottom: 8px !important;
	font-size: 14px !important;
}

/* 30. Account sections */
.pmpro-page-wrap #pmpro_account .pmpro_card {
	background: rgba(255, 255, 255, 0.025) !important;
	border: 1px solid var(--border-glass) !important;
	border-radius: var(--radius) !important;
	margin-bottom: 16px !important;
}

/* 31. Billing name fields side-by-side */
.pmpro-page-wrap .pmpro_form_field-bfirstname {
	display: inline-block !important;
	width: calc(50% - 8px) !important;
	margin-right: 16px !important;
	vertical-align: top !important;
}
.pmpro-page-wrap .pmpro_form_field-blastname {
	display: inline-block !important;
	width: calc(50% - 8px) !important;
	vertical-align: top !important;
}

/* 32. Payment method radios */
.pmpro-page-wrap #pmpro_payment_method label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px 16px !important;
	border: 1px solid var(--border-glass) !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, 0.02) !important;
	cursor: pointer;
	transition: all 0.2s;
}
.pmpro-page-wrap #pmpro_payment_method label:hover {
	border-color: rgba(255, 255, 255, 0.1) !important;
	background: rgba(255, 255, 255, 0.04) !important;
}

/* 33. Responsive */
@media (max-width: 600px) {
	.pmpro-page-wrap {
		padding: 100px 16px 60px !important;
	}
	.pmpro-page-wrap .pmpro_card_content,
	.pmpro-page-wrap .pmpro_form_fields {
		padding: 16px !important;
	}
	.pmpro-page-wrap .pmpro_card_title,
	.pmpro-page-wrap .pmpro_form_heading {
		padding: 14px 16px !important;
		font-size: 15px !important;
	}
	.pmpro-page-wrap .pmpro_card_actions {
		padding: 12px 16px !important;
	}
	.pmpro-page-wrap .pmpro_cols-2 {
		grid-template-columns: 1fr !important;
	}
	.pmpro-page-wrap .pmpro_form_field-bfirstname,
	.pmpro-page-wrap .pmpro_form_field-blastname {
		display: block !important;
		width: 100% !important;
		margin-right: 0 !important;
	}
	.pmpro-page-wrap .pmpro_btn-submit-checkout {
		padding: 14px 24px !important;
		font-size: 15px !important;
	}
}
@media (max-width: 400px) {
	.pmpro-page-wrap {
		padding: 90px 12px 40px !important;
	}
}

/* ===================================================================
   NUCLEAR SPECIFICITY — #pmpro_form ID-based overrides
   PMPro's frontend.css uses #pmpro_form selectors which beat our
   class-based .pmpro-page-wrap rules. ID+class+!important wins all.
   =================================================================== */

/* All inputs: full width, dark glass, no max-width */
#pmpro_form .pmpro_form_input,
#pmpro_form input.pmpro_form_input,
#pmpro_form select.pmpro_form_input,
#pmpro_form textarea.pmpro_form_input,
#pmpro_form .pmpro_form_input-text,
#pmpro_form .pmpro_form_input-password,
#pmpro_form .pmpro_form_input-email,
#pmpro_form .pmpro_form_input-required,
#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"],
#pmpro_form input[type="tel"],
#pmpro_form input[type="number"],
#pmpro_form input[type="url"] {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-family: var(--font-body) !important;
	font-size: 15px !important;
	padding: 12px 16px !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	line-height: 1.5 !important;
	transition: border-color 0.3s, box-shadow 0.3s !important;
}
#pmpro_form .pmpro_form_input:focus,
#pmpro_form input.pmpro_form_input:focus {
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 3px var(--primary-glow) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}

/* Payment inline fields — expiration selects should NOT be 100% wide */
#pmpro_form #ExpirationMonth,
#pmpro_form #ExpirationYear {
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
}

/* Cols-2 grid children: fill column */
#pmpro_form .pmpro_cols-2 {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
}
#pmpro_form .pmpro_cols-2 > .pmpro_form_field {
	min-width: 0 !important;
	width: 100% !important;
}
#pmpro_form .pmpro_cols-2 input,
#pmpro_form .pmpro_cols-2 select,
#pmpro_form .pmpro_cols-2 textarea {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

/* === AFTER cols-2 rule: targeted overrides that MUST win === */
/* CVC — exactly 4-digit wide */
#pmpro_form .pmpro_cols-2 #CVV,
#pmpro_form .pmpro_cols-2 input[name="CVV"],
#pmpro_form .pmpro_payment-cvv #CVV {
	width: 5em !important;
	max-width: 5em !important;
}
/* Discount code — fill its row */
#pmpro_form .pmpro_cols-2 #pmpro_discount_code,
#pmpro_form .pmpro_cols-2 input[name="pmpro_discount_code"],
#pmpro_form .pmpro_payment-discount-code #pmpro_discount_code {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 140px !important;
	flex: 1 1 auto !important;
}

/* Password toggle: below input, not floated beside label */
#pmpro_form .pmpro_form_field-password {
	position: relative !important;
}
#pmpro_form .pmpro_form_field-password-toggle {
	float: none !important;
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	display: block !important;
	clear: none !important;
	margin: 0 !important;
	width: auto !important;
	text-align: right !important;
	z-index: 2;
}
#pmpro_form .pmpro_btn-password-toggle,
#pmpro_form .pmpro_btn.pmpro_btn-plain.pmpro_btn-password-toggle {
	float: none !important;
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background: none !important;
	border: none !important;
	padding: 2px 0 !important;
	margin: 0 !important;
	color: var(--primary-light) !important;
	font-family: var(--font-body) !important;
	font-size: 11px !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	width: auto !important;
	box-shadow: none !important;
	cursor: pointer;
}
#pmpro_form .pmpro_btn-password-toggle .pmpro_icon,
#pmpro_form .pmpro_btn-password-toggle .pmpro_icon-eye {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 13px !important;
	line-height: 0 !important;
}
#pmpro_form .pmpro_btn-password-toggle .pmpro_icon svg {
	stroke: var(--primary-light) !important;
	width: 13px !important;
	height: 13px !important;
	display: block !important;
}
#pmpro_form .pmpro_form_field-password-toggle-state {
	color: var(--primary-light) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	white-space: nowrap !important;
	line-height: 13px !important;
}

/* Labels */
#pmpro_form .pmpro_form_label,
#pmpro_form label.pmpro_form_label {
	display: block !important;
	color: var(--text-secondary) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	margin-bottom: 8px !important;
	font-family: var(--font-body) !important;
}

/* Cards: dark glass */
#pmpro_form .pmpro_card,
#pmpro_form > .pmpro_card,
#pmpro_form > fieldset.pmpro_form_fieldset {
	background: rgba(255, 255, 255, 0.025) !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	border-radius: var(--radius) !important;
	box-shadow: none !important;
}

/* Submit button */
#pmpro_form .pmpro_form_submit {
	padding: 0 !important;
	margin-top: 8px !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}
#pmpro_form .pmpro_btn-submit-checkout,
#pmpro_form input.pmpro_btn-submit-checkout,
#pmpro_form #pmpro_btn-submit {
	width: 100% !important;
	display: block !important;
	background: linear-gradient(135deg, var(--primary), #1d4ed8) !important;
	border: none !important;
	border-radius: 12px !important;
	box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
	color: #fff !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	padding: 16px 32px !important;
	cursor: pointer;
	transition: all 0.3s !important;
}

/* Discount code input — ensure full width inside inline row */
#pmpro_form #discount_code,
#pmpro_form #pmpro_other_discount_code,
#pmpro_form input.pmpro_alter_price {
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 140px !important;
	max-width: 100% !important;
}
#pmpro_form .pmpro_form_fields-inline {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-wrap: nowrap !important;
}
/* Expiration selects inside inline row — stay compact */
#pmpro_form .pmpro_payment-expiration .pmpro_form_fields-inline .pmpro_form_input,
#pmpro_form .pmpro_payment-expiration .pmpro_form_fields-inline select {
	width: auto !important;
	max-width: none !important;
	flex: 0 0 auto !important;
}

/* Responsive for nuclear selectors */
@media (max-width: 520px) {
	#pmpro_form .pmpro_cols-2 {
		grid-template-columns: 1fr !important;
	}
}
