/* Praeviso Marketing — Design System */

:root {
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --primary: #3B82F6;
  --primary-dk: #1D4ED8;
  --primary-bg: #EFF6FF;
  --green: #16A34A;
  --green-bg: #F0FDF4;
  --green-border: #BBF7D0;
  --red: #DC2626;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 0px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: var(--text);
}

/* Logo */
.praeviso-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.praeviso-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 2px solid #0F172A;
  transform: rotate(-6deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.praeviso-p {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  color: #0F172A;
  transform: rotate(6deg);
  line-height: 1;
}
.praeviso-wordmark {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #0F172A;
  line-height: 1;
}
.praeviso-logo.logo-light .praeviso-mark { border-color: #60A5FA; }
.praeviso-logo.logo-light .praeviso-p { color: #60A5FA; }
.praeviso-logo.logo-light .praeviso-wordmark { color: #E2E8F0; }

/* Nav */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-white);
  box-shadow: 0 1px 0 var(--border);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}
.nav-bar.nav-scrolled {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.9);
}
.nav-bar .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-bar .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.nav-bar .nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--primary-dk);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 16px;
  flex-direction: column;
  gap: 12px;
}
.nav-dropdown.open {
  display: flex;
}

/* Language switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-switcher-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
}
.lang-switcher-btn:hover {
  color: var(--text);
}
.lang-switcher-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 0;
  min-width: 80px;
  z-index: 101;
}
.lang-switcher.open .lang-switcher-dropdown {
  display: block;
}
.lang-switcher-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: left;
  color: var(--text);
}
.lang-switcher-option:hover {
  background: var(--bg);
}
.lang-switcher-option.active {
  font-weight: 600;
  color: var(--primary);
}
@media (max-width: 768px) {
  .lang-switcher-desktop {
    display: none;
  }
  .lang-switcher-mobile {
    display: flex;
  }
}
@media (min-width: 769px) {
  .lang-switcher-mobile {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 80px 24px 72px;
  background: var(--bg-white);
  text-align: center;
}
.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.15;
}
.hero .hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 580px;
  margin: 20px auto 36px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.hero-cta .btn-primary:hover {
  background: var(--primary-dk);
}
.hero-cta .btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 20px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.hero-cta .btn-ghost:hover {
  background: var(--bg);
}
.hero-trust {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-trust span:not(:last-child)::after {
  content: ' · ';
  margin-left: 8px;
}
.hero-visual {
  max-width: 720px;
  margin: 48px auto 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f8f9fa;
}
.hero-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.hero-carousel .carousel-slide {
  flex-shrink: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}
@media (min-width: 768px) {
  .hero-carousel {
    height: 360px;
  }
}
@media (min-width: 1024px) {
  .hero-carousel {
    height: 560px;
  }
}
.carousel-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.carousel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  animation: lightbox-fade-in 150ms ease-out;
}
.carousel-lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.carousel-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-lightbox-close:hover {
  opacity: 0.8;
}
@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hero-carousel .carousel-prev,
.hero-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel .carousel-prev:hover,
.hero-carousel .carousel-next:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
}
.hero-carousel .carousel-prev {
  left: 12px;
}
.hero-carousel .carousel-next {
  right: 12px;
}
.hero-carousel .carousel-prev::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid currentColor;
}
.hero-carousel .carousel-next::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}
.hero-carousel .carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  padding: 0;
}
.hero-carousel .carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Section label */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

/* Features */
#features {
  padding: 80px 24px;
  background: var(--bg);
}
#features .section-header {
  text-align: center;
  margin-bottom: 48px;
}
#features .section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
#features .section-header p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-white);
  padding: 28px 24px;
}
.feature-card:hover {
  background: var(--primary-bg);
}
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-bg);
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
}
.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* How It Works */
.how-it-works {
  padding: 80px 24px;
  background: var(--bg-white);
}
.how-it-works .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.how-it-works .section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.step-row {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}
.step {
  flex: 1;
  min-width: 0;
}
.step-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  font-family: var(--font-brand);
  line-height: 1;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 8px;
}
.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.step-connector {
  flex: 1;
  border-top: 1px dashed var(--border);
  margin-top: 20px;
  min-width: 24px;
}

/* Pricing */
#pricing {
  padding: 80px 24px;
  background: var(--bg);
}
.pricing-section-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
.pricing-section-header .section-header {
  grid-column: 2;
  text-align: center;
}
.pricing-toggles {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.calendar-toggle {
  grid-column: 3;
}
.billing-toggle {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.billing-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  cursor: pointer;
}
.billing-btn:first-child {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}
.billing-btn:last-child {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}
.billing-btn:not(:first-child) {
  margin-left: -1px;
}
.billing-btn:hover {
  color: var(--text);
}
.billing-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.currency-toggle {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.currency-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  cursor: pointer;
}
.currency-btn:first-child {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}
.currency-btn:last-child {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}
.currency-btn:not(:first-child) {
  margin-left: -1px;
}
.currency-btn:hover {
  color: var(--text);
}
.currency-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
#pricing .section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
#pricing .section-header p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
.pricing-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-white);
  padding: 28px 24px 32px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.pricing-card.pricing-highlight {
  border: 2px solid var(--primary);
  position: relative;
}
.pricing-tier {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pricing-tier img {
  max-height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}
.pricing-price-wrap {
  margin: 12px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-brand);
}
.pricing-save-badge {
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
}
.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.pricing-feature {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-feature::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  flex-shrink: 0;
}
.pricing-card .nav-cta {
  width: 100%;
  min-height: 44px;
  text-align: center;
  margin-top: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Contact */
#contact {
  padding: 80px 24px;
  background: var(--bg-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.contact-copy p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--font-sans);
  margin-bottom: 16px;
}
.contact-form textarea {
  rows: 4;
  min-height: 100px;
  resize: vertical;
}
.contact-form button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.contact-form button[type="submit"]:hover {
  background: var(--primary-dk);
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
#contact-error {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--red);
  font-size: 13px;
}
.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: -12px;
  margin-bottom: 12px;
}
.contact-success {
  font-size: 14px;
  color: var(--green);
  padding: 16px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}

/* Footer */
footer {
  background: var(--bg-dark);
  padding: 48px 24px 32px;
  color: var(--text-light);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-row .nav-links {
  display: flex;
  gap: 24px;
}
.footer-row .nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
}
.footer-row .nav-links a:hover {
  color: #E2E8F0;
}
.footer-copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: #475569;
  text-align: left;
}

/* Page wrapper for pricing/contact */
.page-main {
  min-height: 60vh;
}

/* Legal pages */
.legal-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-header {
  margin-bottom: 32px;
}
.legal-header h1 {
  font-family: var(--font-brand);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.legal-toc {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-toc-list li {
  margin: 6px 0;
}
.legal-toc-list a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}
.legal-toc-list a:hover {
  text-decoration: underline;
}
.legal-toc-list .toc-h3 {
  padding-left: 16px;
  font-size: 13px;
}
.legal-content h2 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.legal-content ul {
  margin: 0 0 12px;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.legal-content a {
  color: var(--primary);
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-bar .nav-links {
    display: none;
  }
  .nav-bar .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }
  .nav-bar {
    position: relative;
  }
  .nav-dropdown {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-row {
    flex-direction: column;
    gap: 32px;
  }
  .step-connector {
    display: none;
  }
  .pricing-section-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .pricing-section-header .section-header {
    grid-column: 1;
    grid-row: 1;
  }
  .pricing-toggles {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }
  .pricing-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-row {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pricing-row {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Subdomain modal for pricing checkout */
.subdomain-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  animation: lightbox-fade-in 150ms ease-out;
}
.subdomain-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.subdomain-modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.subdomain-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.subdomain-modal-close:hover {
  color: var(--text);
}
.subdomain-modal-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.subdomain-modal-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.subdomain-modal-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 8px;
  background: var(--bg);
}
.subdomain-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  outline: none;
}
.subdomain-input::placeholder {
  color: var(--text-light);
}
.subdomain-suffix {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.subdomain-modal-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-bg);
}
.subdomain-feedback {
  font-size: 13px;
  margin: 0 0 20px;
  min-height: 20px;
}
.subdomain-feedback.subdomain-valid {
  color: var(--green);
}
.subdomain-feedback.subdomain-invalid {
  color: var(--red);
}
.subdomain-feedback.subdomain-checking {
  color: var(--text-muted);
}
.subdomain-modal-actions {
  display: flex;
  justify-content: flex-end;
}
.subdomain-continue-btn {
  min-width: 180px;
}
