/* =========================================
   PREVIEW / LAYOUT OVERRIDE FIX
   Add at VERY BOTTOM of global.css
   ========================================= */

html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  display: block !important;
}

/* Main wrappers */
main,
.page,
.site,
.site-wrap,
.site-shell,
.wrapper,
.content,
.content-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}

/* Generic sections */
section,
header,
footer,
.hero,
.hero-section,
.section,
.section-alt,
.section-cta {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}

/* Hero layout */
.hero-inner,
.hero-left,
.hero-right,
.hero-card,
.hero-preview-hero,
.hero-preview-grid,
.hero-preview-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}

/* Images / media */
img,
picture,
video,
iframe {
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* Remove any accidental scaling */
main,
.page,
.site,
.site-wrap,
.site-shell,
.wrapper,
.hero,
.hero-inner {
  transform: none !important;
  zoom: 1 !important;
}

/* Let content expand naturally */
.container,
.nav-inner,
.hero-inner,
.footer-inner,
.section-header {
  max-width: 1400px !important;
}

/* Extra safety for portal / auth / buy layouts if reused */
.portal-section,
.auth-container,
.buy-section,
.buy-layout,
.buy-main,
.order-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
/* ========================================================= 
   GLOBAL THEME – XWebStudio
   Dark SaaS style: deep navy background, bright blue accents
   ========================================================= */

:root {
  /* Base colors */
  --bg: #020617;
  --bg-elevated: #020617;
  --card: #020617;
  --card-soft: #020617;
  --border-subtle: rgba(148, 163, 184, 0.35);

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --accent-strong: #1d4ed8;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #f97373;

  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.74);

  --transition-fast: 0.16s ease-out;
  --transition-med: 0.24s ease-out;

  /* aliases used by other sections */
  --bg-card: var(--card);
  --bg-card-soft: rgba(15, 23, 42, 0.95);
}

/* Reset-ish ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a 0, #020617 46%, #000 100%);
  color: var(--text-main);
}

/* Support both body-dark and page-dark classes */
body.body-dark,
body.page-dark {
  background: radial-gradient(circle at top, #0f172a 0, #020617 46%, #000 100%);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(2, 6, 23, 0.5);
}

.section-cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent);
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f9fafb;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.55);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #f9fafb;
  background: rgba(37, 99, 235, 0.09);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.btn-lg {
  padding: 0.85rem 1.9rem;
  font-size: 0.98rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* Navbar --------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.86));
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

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

/* Brand / logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #38bdf8, #2563eb 40%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #eef2ff;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.8);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.nav-brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.8);
}

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

/* Hero ------------------------------------------------------ */
.hero {
  padding-top: 4.75rem;
  padding-bottom: 3.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-left {
  max-width: 640px;
}

.hero-right {
  max-width: 460px;
  justify-self: flex-end;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.hero-meta-value {
  font-size: 0.86rem;
}

.hero-meta-sep {
  width: 1px;
  background: rgba(75, 85, 99, 0.9);
}

/* Hero Card */
.hero-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.65);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  color: var(--text-main);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.hero-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-preview-topbar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.hero-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.hero-preview-hero {
  padding: 0.6rem 0.3rem 0.8rem;
}

.hero-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
  font-size: 0.7rem;
  margin-bottom: 0.45rem;
}

.hero-preview-hero h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #e5edf5;
}

.hero-preview-hero p {
  font-size: 0.86rem;
  color: #cbd5f5;
  max-width: 320px;
  margin: 0 0 0.5rem 0;
}

.hero-preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.hero-preview-button {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-preview-link {
  font-size: 0.8rem;
  color: #93c5fd;
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.hero-preview-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.55rem 0.55rem 0.5rem;
  font-size: 0.8rem;
  color: #e5edf5;
}

.hero-preview-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-card-footer {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(51, 65, 85, 0.85);
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
}

.hero-card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-card-stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.hero-card-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5edf5;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.step-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem;
  background: var(--bg-card-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.pricing-card-highlight {
  border: 2px solid var(--accent);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 50%),
              var(--bg-card-soft);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-tag {
  font-size: 1rem;
  color: var(--text-soft);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-list li {
  padding: 0.5rem 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-list li:before {
  content: "✓";
  color: #22c55e;
  font-weight: bold;
}

.pricing-footnote {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 1rem;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* CTA Section */
.cta-inner {
  text-align: center;
}

.cta-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Footer --------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  padding: 1.3rem 0 1.7rem;
  margin-top: 1.5rem;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 60%),
              rgba(2, 6, 23, 0.98);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-brand {
  font-weight: 600;
}

.footer-text {
  color: var(--text-muted);
}

/* Public landing page color refresh */
body.landing-home {
  --text-main: #102033;
  --text-muted: #4d647c;
  --text-soft: #66788d;
  --accent: #1677ff;
  --accent-strong: #0f5ed8;
  --accent-soft: rgba(22, 119, 255, 0.11);
  --bg-card-soft: #ffffff;
  --border-subtle: rgba(71, 112, 153, 0.18);
  --shadow-soft: 0 24px 70px rgba(36, 74, 112, 0.16);
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef7ff 42%, #ffffff 100%);
  color: var(--text-main);
}

body.landing-home .page-gradient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(22, 119, 255, 0.08), transparent 35%),
    linear-gradient(300deg, rgba(20, 184, 166, 0.08), transparent 38%);
}

body.landing-home .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(71, 112, 153, 0.14);
  box-shadow: 0 10px 35px rgba(36, 74, 112, 0.08);
}

body.landing-home .nav-brand-title,
body.landing-home .hero-title,
body.landing-home .step-card h3,
body.landing-home .feature-card h3,
body.landing-home .pricing-card h3,
body.landing-home .faq-item h3,
body.landing-home .cta-text h2,
body.landing-home .footer-brand {
  color: #102033;
}

body.landing-home .nav-brand-mark {
  background: linear-gradient(135deg, #0f5ed8, #14b8a6);
  box-shadow: 0 12px 28px rgba(20, 126, 195, 0.28);
}

body.landing-home .nav-links a {
  color: #536b84;
}

body.landing-home .nav-links a:hover {
  color: #0f5ed8;
  border-color: rgba(15, 94, 216, 0.45);
}

body.landing-home .btn-primary {
  background: linear-gradient(135deg, #0f5ed8, #14b8a6);
  box-shadow: 0 16px 36px rgba(15, 94, 216, 0.22);
}

body.landing-home .btn-primary:hover {
  box-shadow: 0 20px 48px rgba(15, 94, 216, 0.32);
}

body.landing-home .btn-outline,
body.landing-home .btn-ghost {
  background: #ffffff;
  color: #23405f;
  border-color: rgba(71, 112, 153, 0.2);
}

body.landing-home .btn-outline:hover,
body.landing-home .btn-ghost:hover {
  background: #eef7ff;
  color: #0f5ed8;
  border-color: rgba(15, 94, 216, 0.35);
}

body.landing-home .hero {
  position: relative;
  padding-top: 5.25rem;
  padding-bottom: 4.25rem;
}

body.landing-home .hero-pill {
  background: #ffffff;
  border-color: rgba(20, 184, 166, 0.24);
  color: #315a72;
  box-shadow: 0 10px 28px rgba(36, 74, 112, 0.08);
}

body.landing-home .hero-pill-dot {
  background: #14b8a6;
}

body.landing-home .hero-title-gradient,
body.landing-home .section-header h2,
body.landing-home .pricing-price {
  background: linear-gradient(135deg, #0f5ed8, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.landing-home .hero-card,
body.landing-home .step-card,
body.landing-home .feature-card,
body.landing-home .pricing-card,
body.landing-home .faq-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(71, 112, 153, 0.16);
  box-shadow: 0 18px 50px rgba(36, 74, 112, 0.12);
  color: #102033;
}

body.landing-home .hero-card {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.94));
}

body.landing-home .hero-card-label,
body.landing-home .hero-card-stat-label,
body.landing-home .hero-preview-label,
body.landing-home .footer-text {
  color: #66788d;
}

body.landing-home .hero-preview-badge {
  background: #e9f7ff;
  border-color: rgba(20, 184, 166, 0.24);
  color: #0f5ed8;
}

body.landing-home .hero-preview-hero h3,
body.landing-home .hero-card-stat-value,
body.landing-home .hero-preview-card {
  color: #102033;
}

body.landing-home .hero-preview-hero p,
body.landing-home .step-card p,
body.landing-home .feature-card p,
body.landing-home .pricing-subtitle,
body.landing-home .pricing-tag,
body.landing-home .pricing-footnote,
body.landing-home .faq-item p,
body.landing-home .cta-text p {
  color: #66788d;
}

body.landing-home .hero-preview-card {
  background: #ffffff;
  border-color: rgba(71, 112, 153, 0.14);
}

body.landing-home .hero-preview-button,
body.landing-home .pricing-badge,
body.landing-home .step-badge {
  background: linear-gradient(135deg, #0f5ed8, #14b8a6);
}

body.landing-home .hero-preview-link {
  color: #0f5ed8;
}

body.landing-home .hero-card-footer {
  border-top-color: rgba(71, 112, 153, 0.16);
}

body.landing-home .section-alt {
  background: #f3f9ff;
}

body.landing-home .section-cta {
  background: linear-gradient(135deg, #e9f7ff, #f7fbff);
}

body.landing-home .pricing-card-highlight {
  border-color: rgba(20, 184, 166, 0.55);
  background:
    linear-gradient(180deg, #ffffff, #f0fbff);
}

body.landing-home .pricing-grid {
  max-width: 1120px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.landing-home .pricing-card {
  padding: 1.5rem;
}

@media (max-width: 980px) {
  body.landing-home .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.landing-home .pricing-grid {
    grid-template-columns: 1fr;
  }
}

body.landing-home .pricing-list li:before {
  content: "+";
  color: #14b8a6;
}

body.landing-home .footer {
  background: #ffffff;
  border-top-color: rgba(71, 112, 153, 0.16);
}

/* =========================================
   PORTAL DASHBOARD
   ========================================= */
.portal-section {
  padding: 2rem 0;
  min-height: calc(100vh - 64px);
}

/* Portal Header */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.portal-header-left h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.portal-header-left p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-email {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.action-card {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.action-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.action-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Websites Grid */
.websites-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  font-size: 1.3rem;
}

.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.website-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.website-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.website-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.website-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-live {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-draft {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-pending {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.website-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  color: var(--text-soft);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.meta-value {
  color: var(--text-main);
  font-weight: 500;
}

.website-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.website-url {
  display: block;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
  word-break: break-all;
}

.website-url:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0 0 1.5rem 0;
  color: var(--text-soft);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   AUTH PAGES (Login, Portal Request, Forgot Password)
   ========================================= */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle at top, #0f172a 0, #020617 46%, #000 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.auth-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.auth-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.auth-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.auth-body {
  padding: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

.form-input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-actions {
  margin-top: 1.5rem;
}

.auth-submit {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.auth-link {
  color: var(--accent);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: 1.5rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.flash-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.flash-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--border-subtle);
  color: var(--text-soft);
}

.step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step.completed .step-number {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.step.active .step-label {
  color: var(--text-main);
  font-weight: 500;
}

/* Feature List */
.feature-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-icon {
  color: #22c55e;
  font-size: 1rem;
  margin-top: 0.1rem;
}

/* =========================================
   BUY / ORDER PAGE
   ========================================= */
.buy-section {
  padding: 2rem 0;
}

.buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.buy-main {
  max-width: 640px;
}

.buy-title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.buy-subtitle {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.buy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.buy-pill {
  font-size: 0.78rem;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-muted);
}

.buy-benefits h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.buy-benefits ul {
  margin: 0 0 0.9rem 1.1rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.buy-benefits li {
  margin-bottom: 0.3rem;
}

.buy-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.buy-price-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.buy-price-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.buy-price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.buy-small-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Order form card */
.order-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem 1.3rem;
}

.order-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.order-subtitle {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.req {
  color: #fb7185;
}

.order-form input,
.order-form textarea,
.input,
.textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.86rem;
  padding: 0.55rem 0.7rem;
  outline: none;
  transition: all 0.2s ease;
}

.order-form input::placeholder,
.order-form textarea::placeholder,
.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.order-form input:focus,
.order-form textarea:focus,
.input:focus,
.textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
  background: rgba(15, 23, 42, 0.98);
}

.order-form textarea,
.textarea {
  resize: vertical;
  min-height: 120px;
}

.field-hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.order-submit {
  margin-top: 0.35rem;
}

.checkout-note {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* =========================================
   CHECKOUT STEPPER
   ========================================= */
.checkout-steps {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2.25rem;
  flex-wrap: wrap;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
              rgba(148, 163, 184, 0.12),
              rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.45);
  min-width: 0;
}

.checkout-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.checkout-step-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.checkout-step-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}

.checkout-step-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* states */
.checkout-step.done {
  background: radial-gradient(circle at top left,
              rgba(34, 197, 94, 0.25),
              rgba(15, 23, 42, 0.85));
  border-color: rgba(34, 197, 94, 0.7);
}

.checkout-step.done .checkout-step-badge {
  background: #22c55e;
  border-color: rgba(21, 128, 61, 0.9);
  color: #022c22;
}

.checkout-step.active {
  background: radial-gradient(circle at top left,
              rgba(59, 130, 246, 0.3),
              rgba(15, 23, 42, 0.9));
  border-color: rgba(59, 130, 246, 0.9);
}

.checkout-step.active .checkout-step-badge {
  background: #3b82f6;
  border-color: rgba(30, 64, 175, 0.95);
}

.checkout-step.cancelled {
  background: radial-gradient(circle at top left,
              rgba(239, 68, 68, 0.28),
              rgba(15, 23, 42, 0.9));
  border-color: rgba(239, 68, 68, 0.85);
}

.checkout-step.cancelled .checkout-step-badge {
  background: #ef4444;
  border-color: rgba(185, 28, 28, 0.95);
}

/* =========================================
   RESPONSIVE – GLOBAL
   ========================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .buy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    gap: 0.8rem;
  }

  .nav-cta {
    margin-left: auto;
  }

  .section {
    padding: 3rem 0;
  }
  
  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .features-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .portal-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .websites-grid {
    grid-template-columns: 1fr;
  }
  
  .action-card {
    min-width: 100%;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .website-meta {
    grid-template-columns: 1fr;
  }
  
  .website-actions {
    flex-direction: column;
  }
  
  .website-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .nav-cta {
    gap: 0.5rem;
  }

  .nav-portal-link {
    display: none;
  }
  
  .auth-card {
    max-width: 100%;
  }
  
  .auth-header,
  .auth-body,
  .auth-footer {
    padding: 1.5rem;
  }
  
  .step-indicator {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .step-indicator::before {
    display: none;
  }
  
  .auth-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hidden {
  display: none;
}

.contact-lead-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.contact-lead-form input,
.contact-lead-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.contact-lead-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* =========================================
   FLASH MESSAGES
   ========================================= */
.flash-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.flash-message {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

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