/* ==========================================================================
   KOMPACT AI — WHITEPAPERS PAGE STYLESHEET (src/css/whitepapers.css)
   ==========================================================================
   TOKENS & DESIGN SYSTEM CONSTANTS EXTRACTED FROM SITEWIDE SPECIFICATIONS:
   - Page Background: #120F0F (dark brown site-wide standard)
   - Primary Accent Yellow: #FFCE1B
   - Secondary / Red Dot Accent: #FB1650
   - Text Colors: 
       • Primary: #FFFFFF
       • Muted Grey Text: rgba(255, 255, 255, 0.65)
       • Subdued / Navigation Text: rgba(255, 255, 255, 0.45)
   - Border / Line Color: rgba(255, 255, 255, 0.10)
   - Font Families:
       • Heading: 'Sora', sans-serif
       • Body: 'DM Sans', sans-serif
       • Mono / Buttons / Tags: 'JetBrains Mono', monospace
   - Font Weights for Headings: 300 (LIGHT / Regular, never bold site-wide)
   - Layout & Breakpoints:
       • Max Width Container: 1376px
       • Desktop Side Margins: 64px
       • Tablet Breakpoint: 1024px
       • Mobile Breakpoint: 768px / 480px
   ========================================================================== */

:root {
  --bg-dark: #120F0F;
  --primary-yellow: #FFCE1B;
  --accent-red: #FB1650;
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-card: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(255, 255, 255, 0.02);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1376px;
  --px-desktop: 64px;
  --px-tablet: 32px;
  --px-mobile: 20px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Page Outer Frame Margins (Sitewide A4 Vertical Border Overlay) */
.page-margins {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - calc(var(--px-desktop) * 2));
  max-width: var(--max-w);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  pointer-events: none;
  z-index: 10;
}

/* Main Container Wrapper */
.main-wrapper {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 105px var(--px-desktop) 0 var(--px-desktop);
  position: relative;
  z-index: 2;
}

/* Utility Accent Text */
.text-yellow {
  color: var(--primary-yellow);
}

/* Full Width Divider Horizontal Line */
.full-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.whitepapers-hero {
  padding: 30px 0 50px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.hero-left {
  flex: 1.1;
  max-width: 680px;
}

.hero-right {
  flex: 0.9;
  max-width: 540px;
  padding-top: 40px;
}

/* Tag Chip Box */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
}

/* Main Hero Heading H1 */
.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 300; /* LIGHT weight */
  line-height: 1.18;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-h1 span.line {
  display: block;
}

/* Hero Right Paragraphs */
.hero-p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.hero-p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   2. BANNER IMAGE SECTION
   ========================================================================== */
.banner-section {
  width: 100%;
  overflow: hidden;
  margin-bottom: 80px;
}

.banner-img-wrap {
  width: 100%;
  aspect-ratio: 4.9 / 1;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  background: #191212;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==========================================================================
   3. SECTION HEADING & AMBIENT GLOW
   ========================================================================== */
.section-heading-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 48px;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 300; /* LIGHT weight */
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-subtext {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Ambient Radial Warm Glow behind section top */
.ambient-glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 380px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(167, 60, 38, 0.28) 0%, rgba(73, 28, 19, 0.12) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.ambient-glow-img {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  max-width: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   4. WHITEPAPER CARDS
   ========================================================================== */
.cards-container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto 100px auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.whitepaper-card {
  width: 100%;
  border: 1px solid var(--border-card);
  background: transparent !important;
  border-radius: 4px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.whitepaper-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.02) !important;
}

.card-text-col {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300; /* LIGHT weight */
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 16px;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Link Button */
.read-wp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.read-wp-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.read-wp-link:hover {
  color: var(--primary-yellow);
}

.read-wp-link:hover .arrow {
  transform: translateX(5px);
  color: var(--primary-yellow);
}

.card-img-col {
  flex: 0.9;
  max-width: 440px;
  width: 100%;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   5. FOOTER STYLES (MATCHING SITEWIDE SPECIFICATIONS)
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--px-desktop);
}

.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.60);
  transition: color 0.18s;
}

.footer-nav-link:hover {
  color: var(--text-main);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  transition: border-color 0.18s, background 0.18s;
}

.social-icon:hover {
  border-color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-big-logo {
  flex-shrink: 0;
}

.big-k-square {
  width: 110px;
  height: 110px;
  border-radius: 4px;
  display: block;
}

.footer-addresses {
  display: flex;
  gap: 60px;
  flex: 1;
  padding: 0 60px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-city {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.footer-addr-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-ziroh {
  flex-shrink: 0;
}

.ziroh-logo {
  height: 32px;
  width: auto;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 32px;
}

.footer-legal-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  transition: color 0.18s;
}

.footer-legal-links a:hover {
  color: var(--text-main);
}

/* Hide mobile footer on desktop by default */
footer#footer-mobile, .mobile-footer {
  display: none !important;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */

/* TABLET BREAKPOINT (<= 1024px) */
@media (max-width: 1024px) {
  .page-margins {
    width: calc(100% - calc(var(--px-tablet) * 2));
  }

  .main-wrapper {
    padding: 100px var(--px-tablet) 0 var(--px-tablet);
  }

  .whitepapers-hero {
    flex-direction: column;
    gap: 24px;
    padding: 30px 0 36px 0;
  }

  .hero-left, .hero-right {
    max-width: 100%;
    flex: none;
    width: 100%;
    padding-top: 0;
  }

  .hero-h1 {
    font-size: 38px;
  }

  .banner-section {
    margin-bottom: 60px;
  }

  .banner-img-wrap {
    aspect-ratio: 3.5 / 1;
    min-height: 140px;
  }

  .section-h2 {
    font-size: 34px;
  }

  .cards-container {
    max-width: 100%;
    gap: 32px;
    margin-bottom: 70px;
  }

  .whitepaper-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    gap: 28px;
  }

  .card-text-col {
    flex: 1;
  }

  .card-img-col {
    width: 38%;
    max-width: 320px;
    flex-shrink: 0;
  }

  .card-title {
    font-size: 22px;
  }

  /* Footer Tablet View (Exact Sitewide Standard) */
  .footer-inner {
    padding: 36px var(--px-tablet);
  }

  .footer-nav-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    margin-bottom: 36px;
  }

  .footer-nav-links {
    gap: 28px;
  }

  .footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-addresses {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
    gap: 24px;
  }

  .footer-address {
    margin-left: 0 !important;
    flex: 1;
  }

  .footer-ziroh {
    order: 2;
    align-self: flex-end;
    margin-top: -48px;
  }

  .footer-big-logo {
    order: 3;
    margin-top: 8px;
  }

  .footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    margin-top: 32px;
  }
}

/* MOBILE BREAKPOINT (<= 768px) */
@media (max-width: 768px) {
  .page-margins {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    pointer-events: none !important;
    z-index: 99 !important;
  }

  .main-wrapper {
    padding: 88px 24px 0 24px !important;
  }

  .whitepapers-hero {
    padding: 24px 0 20px 0;
    gap: 18px;
  }

  .tag-chip {
    margin-bottom: 14px;
  }

  .hero-h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-p {
    font-size: 15px;
  }

  .banner-section {
    margin-bottom: 40px;
  }

  .banner-img-wrap {
    aspect-ratio: 2.5 / 1;
    min-height: 120px;
  }

  .section-heading-wrap {
    margin-bottom: 32px;
  }

  .section-h2 {
    font-size: 26px;
  }

  .section-subtext {
    font-size: 14px;
  }

  .cards-container {
    gap: 24px;
    margin-bottom: 60px;
  }

  .whitepaper-card {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .card-text-col, .card-img-col {
    width: 100%;
    max-width: 100%;
  }

  .card-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .card-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Exact Sitewide Mobile Footer (Matching technical-report.html, mathlab.html, events.html & usecase.html) */
  .footer {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #120F0F !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .footer-inner {
    width: calc(100% - 32px) !important;
    max-width: var(--max-w, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: block !important;
    position: relative !important;
  }

  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-nav-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
  }

  .footer-nav-link:first-child,
  .footer-nav-link.active,
  .footer-nav-link--active {
    color: #FFCE1B !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
  }

  .footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .social-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .social-icon svg path,
  .social-icon svg circle {
    stroke: #000000 !important;
    fill: #000000 !important;
  }

  .social-icon svg path[fill="none"] {
    fill: none !important;
  }

  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-addresses {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  .footer-address:first-child,
  .footer-address:last-child,
  .footer-address:nth-child(2) {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .footer-city {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  .footer-addr-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  body .footer .footer-ziroh,
  body footer#footer-mobile .footer-ziroh,
  .footer-ziroh {
    order: 2 !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    text-align: left !important;
  }

  body .footer .ziroh-logo,
  body footer#footer-mobile .ziroh-logo,
  .ziroh-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body .footer .footer-big-logo,
  body footer#footer-mobile .footer-big-logo,
  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  body .footer .big-k-square,
  body footer#footer-mobile .big-k-square,
  .big-k-square {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
    display: block !important;
  }

  .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
  }

  .footer-legal-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    order: 1 !important;
    width: 100% !important;
  }

  .footer-legal-links a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
  }

  .footer-copyright {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    order: 2 !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   WHITEPAPER ACCESS MODAL & FORM STYLES
───────────────────────────────────────────────────────────── */
/* Hide navbar when Whitepaper modal is open */
body.wp-modal-open .navbar,
body.wp-modal-open #navbar {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: translateY(-100%) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.wp-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  z-index: 10000005 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 30px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.wp-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wp-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 60px);
  margin: auto !important;
  background: #150F0F;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.wp-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 15, 15, 0.98);
  flex-shrink: 0;
}

.wp-modal-title {
  font-family: var(--font-head, 'Sora', sans-serif);
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.wp-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.wp-modal-close:hover {
  color: #ffffff;
}

.wp-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.wp-modal-body::-webkit-scrollbar {
  width: 6px;
}

.wp-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.wp-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.wp-form-wrapper {
  position: relative;
  width: 100%;
}

.wp-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wp-access-badge .chip-dot {
  background: #FB1650;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.wp-access-badge.success-badge {
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.wp-access-badge .green-dot {
  background: #4ade80 !important;
}

.wp-access-title {
  font-family: var(--font-head, 'Sora', sans-serif);
  font-size: 22px;
  font-weight: 300;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.wp-access-subtitle {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.wp-access-subtitle.success-text {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 12px 0 20px 0;
}

.wp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  align-items: flex-start;
}

.wp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-form-full {
  grid-column: 1 / -1;
}

.wp-form-label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.wp-form-label .req {
  color: #FB1650;
  font-weight: 600;
}

.wp-form-input,
.wp-form-select {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 12px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13.5px;
  color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.wp-form-select option {
  background-color: #16181a;
  color: #ffffff;
}

.wp-form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.wp-form-input:focus,
.wp-form-select:focus {
  outline: none;
  border-color: #FFCE1B;
  background: rgba(255, 255, 255, 0.07);
}

.wp-submit-wrap {
  margin-top: 8px;
}

.wp-access-submit-btn {
  width: 100%;
  height: 44px;
  background: #FFCE1B;
  color: #000000;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
}

.wp-access-submit-btn:hover {
  background: #ffd633;
  transform: translateY(-1px);
}

.wp-access-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wp-access-msg {
  margin-top: 14px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.wp-access-msg.error {
  color: #ff5252;
}

.wp-access-success-card {
  padding: 8px 0;
}

.wp-success-footer-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .wp-modal {
    padding: 70px 12px 12px 12px;
  }

  .wp-modal-container {
    max-height: calc(100vh - 90px);
  }

  .wp-modal-body {
    padding: 18px 16px;
  }

  .wp-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wp-access-title {
    font-size: 19px;
  }
}

