/* ==========================================================================
   CoreAudit AI - Design System & Modern Aesthetics
   Theme: Deep Tech / Geological Precision / Dark Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #0a0e17;
  --bg-secondary: #111726;
  --bg-card: rgba(18, 25, 41, 0.75);
  --bg-card-hover: rgba(26, 37, 61, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 181, 0.3);
  --border-focus: #00f0b5;

  /* Accent Colors */
  --accent-cyan: #00f0b5;
  --accent-cyan-glow: rgba(0, 240, 181, 0.25);
  --accent-blue: #2563eb;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 240, 181, 0.2);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.1);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 240, 181, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--trans-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e17;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.brand-logo .logo-ai {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(0, 240, 181, 0.12);
  border: 1px solid rgba(0, 240, 181, 0.3);
  border-radius: 6px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  list-style: none;
}

.nav-back-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.25);
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-decoration: none;
  transition: var(--trans-fast);
  flex-shrink: 0;
}

.nav-back-badge:hover {
  background: rgba(0, 240, 181, 0.16);
  border-color: rgba(0, 240, 181, 0.5);
  color: #fff;
  transform: translateX(-2px);
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--trans-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--trans-base);
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.btn-nowrap {
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0b5, #00b894);
  color: #071311;
  box-shadow: 0 4px 15px rgba(0, 240, 181, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 181, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 181, 0.4);
}

.btn-outline-cyan:hover {
  background: rgba(0, 240, 181, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.825rem;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 90px;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.25);
  border-radius: var(--radius-pill);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 181, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 240, 181, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 181, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #00f0b5 85%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Key Metrics Counter Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--trans-base);
}

.stat-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Interactive Split Showcase Section */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* The Interactive Image Slider */
.showcase-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  margin-bottom: 40px;
}

.comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  background: #000;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Slider Handle Bar */
.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  cursor: ew-resize;
  z-index: 10;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #0a0e17;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 181, 0.4);
}

.slider-badge {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.badge-raw {
  left: 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.badge-ai {
  right: 20px;
  background: rgba(239, 68, 68, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Detection Layers Grid */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.layer-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--trans-base);
}

.layer-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.layer-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}

.layer-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.layer-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Advantages Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--trans-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--trans-base);
}

.feature-card:hover {
  border-color: rgba(0, 240, 181, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 240, 181, 0.1);
  border: 1px solid rgba(0, 240, 181, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Interactive ROI Calculator */
.calc-card {
  background: linear-gradient(145deg, rgba(18, 25, 41, 0.9), rgba(11, 16, 28, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .calc-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.calc-value-display {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results {
  background: rgba(0, 240, 181, 0.04);
  border: 1px solid rgba(0, 240, 181, 0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.calc-result-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.calc-savings-total {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.calc-explanation {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--trans-base);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(20, 32, 54, 0.9), rgba(13, 20, 36, 0.95));
  border-color: rgba(0, 240, 181, 0.4);
  box-shadow: 0 0 30px rgba(0, 240, 181, 0.15);
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .pricing-card.featured {
    transform: none;
  }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #071311;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

.pricing-tier-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.pricing-tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 48px;
  margin-bottom: 24px;
}

.pricing-price-box {
  margin-bottom: 28px;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.pricing-card.featured .pricing-price {
  color: var(--accent-cyan);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.925rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Roadmap Grid */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.roadmap-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}

.roadmap-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.status-active {
  background: rgba(0, 240, 181, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 181, 0.3);
}

.status-next {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.status-planned {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.roadmap-item h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

.roadmap-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #070a12;
  padding: 70px 0 35px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

/* ==========================================================================
   CABINET & AUTH STYLES
   ========================================================================== */

.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--trans-fast);
}

.auth-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* User Cabinet */
.cabinet-section {
  padding: 120px 0 80px;
}

.cabinet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.cabinet-user-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #071311;
  font-weight: 800;
  font-size: 1.3rem;
}

/* License Card in Cabinet */
.license-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--trans-base);
}

.license-card:hover {
  border-color: rgba(0, 240, 181, 0.3);
}

.license-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-text {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.badge-status {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(0, 240, 181, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 181, 0.3);
}

.badge-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.license-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.meta-item .meta-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-item .meta-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.license-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: #111726;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-close-btn:hover {
  color: #fff;
}

.field-error { color: #ff9b9b; font-size: .85rem; line-height: 1.5; margin: 7px 0 0; }
.form-control[aria-invalid="true"] { border-color: #ff7979; box-shadow: 0 0 0 1px #ff7979; }
.form-status { margin: 16px 0; line-height: 1.5; color: #cbd5e1; }
.consent-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; margin: 12px 0; }
.consent-label input { flex-shrink: 0; margin-top: 4px; accent-color: var(--accent-cyan); }
.consent-label a { color: var(--accent-cyan); text-decoration: underline; }
.invoice-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) {
  .invoice-form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-box { padding: 24px 18px; }
}

/* Alert Notification Banner */
.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #111726;
  border: 1px solid var(--accent-cyan);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   CASE SWITCHER TABS
   ========================================================================== */
.case-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-base);
}

.case-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.case-tab.active {
  background: rgba(0, 240, 181, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--trans-base);
}

.faq-item:hover {
  border-color: rgba(0, 240, 181, 0.3);
}

.faq-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-chevron {
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 22px;
  transition: max-height 0.35s ease-in, padding 0.3s ease;
}

/* ==========================================================================
   MOBILE NAVIGATION & RESPONSIVENESS
   ========================================================================== */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--trans-base);
}

.menu-toggle-btn.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mobile-menu-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 0;
}

.mobile-nav-link:hover {
  color: var(--accent-cyan);
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
  .menu-toggle-btn {
    display: flex;
  }
}

@media (max-width: 680px) {
  .nav-container {
    height: 66px;
    padding: 0 16px;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
  }
  .brand-logo .logo-icon {
    width: 32px;
    height: 32px;
  }
  .nav-actions {
    gap: 8px;
  }
  /* On small mobile screens hide long header buttons because they are already present inside mobile-menu drawer */
  .nav-actions .btn-desktop-only {
    display: none !important;
  }
  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-back-badge {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Real Case Showcase Styles
   ========================================================================== */
.case-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.case-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-base);
  backdrop-filter: blur(8px);
}

.case-tab svg {
  color: var(--text-dim);
  transition: var(--trans-fast);
}

.case-tab:hover {
  background: rgba(0, 240, 181, 0.05);
  border-color: rgba(0, 240, 181, 0.3);
  color: var(--text-main);
  transform: translateY(-2px);
}

.case-tab:hover svg {
  color: var(--accent-cyan);
}

.case-tab.active {
  background: rgba(0, 240, 181, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 181, 0.2);
}

.case-tab.active svg {
  color: var(--accent-cyan);
}

.case-image-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #05080f;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.case-photo-badge {
  position: static;
  padding: 6px 14px;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(0, 240, 181, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.image-preview-link { display: block; color: var(--accent-cyan); cursor: zoom-in; }
.admin-mail-section { margin: 0 0 32px; }
.admin-mail-section h3 { font-size: 1.1rem; color: var(--accent-cyan); margin-bottom: 14px; }
.admin-mail-section p { font-size: .85rem; color: var(--text-muted); margin: 12px 0; }
.admin-mail-table-wrap { overflow-x: auto; }
.admin-mail-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .85rem; color: #cbd5e1; }
.admin-mail-table-wrap:focus-visible { outline: 2px solid var(--accent-cyan); }
.admin-mail-table th, .admin-mail-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.admin-mail-table small { display: block; max-width: 300px; color: #fbbf24; margin-top: 6px; }
.window-screen-body > .image-preview-link { width: 100%; min-width: 0; }
.case-info-metrics { max-width: 100%; overflow-wrap: anywhere; }
.case-info-metrics .case-inliers-val { white-space: normal; }
.image-preview-link:focus-visible { outline: 3px solid var(--accent-cyan); outline-offset: -3px; }
.image-preview-hint { display: block; padding: 10px 14px; text-align: right; font-size: .85rem; background: #101725; }
.case-photo-badge { border-radius: 0; border: 0; border-top: 1px solid var(--border-subtle); box-shadow: none; letter-spacing: normal; }
.image-viewer { width: 96vw; max-width: 1600px; height: 92vh; height: 92dvh; max-height: 96dvh; padding: 0; border: 1px solid #405064; border-radius: 12px; background: #0b111b; color: #fff; margin: auto; overflow: hidden; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer::backdrop { background: rgba(0,0,0,.88); }
.image-viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; flex-shrink: 0; }
.image-viewer-toolbar h2 { flex: 1 1 240px; font-size: 1rem; margin: 0; }
.image-viewer-toolbar button { background: #182536; color: #fff; border: 1px solid #556579; border-radius: 6px; padding: 9px 14px; min-height: 44px; cursor: pointer; }
.image-viewer-toolbar button:focus-visible { outline: 3px solid var(--accent-cyan); }
.image-viewer-viewport { flex: 1; min-height: 0; overflow: auto; background: #05080f; }
.image-viewer-viewport img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-viewer-viewport.original-size img { width: auto; height: auto; max-width: none; max-height: none; margin: 0 auto; }
.image-viewer-status { margin: 0; padding: 0 14px; font-size: .85rem; }
.image-viewer-status:not(:empty) { padding: 10px 14px; }
@media (max-width: 600px) { .image-viewer { width: 98vw; } .image-viewer-toolbar h2 { flex-basis: 100%; } }

.case-real-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease;
  background: #070b14;
}

.case-info-bar {
  background: rgba(0, 240, 181, 0.04);
  border: 1px solid rgba(0, 240, 181, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.case-info-text {
  flex: 1 1 540px;
}

.badge-evidence-type {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  color: #00f0b5;
  background: rgba(0, 240, 181, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-title-text {
  color: #fff;
  font-size: 1.1rem;
}

.case-desc-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

.case-info-metrics {
  text-align: right;
  flex: 0 0 auto;
}

.case-score-val {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
}

.case-inliers-val {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-top: 4px;
}

.case-highlights-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.case-highlight-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.case-highlight-pill svg {
  flex-shrink: 0;
}

.case-accuracy-notice {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.case-accuracy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-pill);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-accuracy-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1 1 450px;
  margin: 0;
}

.case-accuracy-text strong {
  color: #fff;
}

/* ==========================================================================
   Desktop Software UI Showcase
   ========================================================================== */
.ui-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ui-showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-base);
  backdrop-filter: blur(8px);
}

.ui-showcase-tab svg {
  color: var(--text-dim);
  transition: var(--trans-fast);
}

.ui-showcase-tab:hover {
  background: rgba(0, 240, 181, 0.05);
  border-color: rgba(0, 240, 181, 0.3);
  color: var(--text-main);
  transform: translateY(-2px);
}

.ui-showcase-tab:hover svg {
  color: var(--accent-cyan);
}

.ui-showcase-tab.active {
  background: rgba(0, 240, 181, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 181, 0.2);
}

.ui-showcase-tab.active svg {
  color: var(--accent-cyan);
}

.ui-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.window-mockup-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111827;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
}

.window-titlebar {
  background: #1a2234;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.win-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.win-close { background: #ef4444; }
.win-min { background: #f59e0b; }
.win-max { background: #10b981; }

.window-title-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.window-title-text svg {
  color: var(--accent-cyan);
}

.window-screen-body {
  background: #0f1523;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ui-screen-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 4px;
  display: block;
  transition: opacity 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ui-info-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.ui-feature-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.spec-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--trans-base);
}

.spec-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-card h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.spec-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   BUTTON RESPONSIVENESS & OVERFLOW GUARDS
   ========================================================================== */
@media (max-width: 768px) {
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .stats-strip {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  .stat-item {
    padding: 16px 12px;
  }
  .stat-num {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .author-card {
    padding: 24px 20px;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

.table-responsive table {
  width: 100%;
  min-width: 600px;
}

/* ==========================================================================
   CATALOG SYSTEM: MAIN PAGE THEME CARDS & DEDICATED CATALOG PAGE
   ========================================================================== */
.catalog-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Clickable Main Page Theme Card */
.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.theme-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 181, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 181, 0.12);
  background: linear-gradient(180deg, rgba(20, 29, 48, 0.95) 0%, rgba(12, 17, 28, 0.98) 100%);
}

.theme-card.featured {
  border-color: rgba(0, 240, 181, 0.4);
  background: linear-gradient(180deg, rgba(17, 24, 40, 0.9) 0%, rgba(10, 14, 24, 0.95) 100%);
}

.theme-card.featured::before {
  background: linear-gradient(90deg, var(--accent-cyan), #38bdf8);
}

.theme-card.theme-kameral::before {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.theme-card.theme-lab::before {
  background: linear-gradient(90deg, #c084fc, #f472b6);
}

.theme-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 240, 181, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 181, 0.25);
}

.theme-arrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theme-card:hover .theme-arrow-icon {
  background: var(--accent-cyan);
  color: #071311;
  border-color: var(--accent-cyan);
  transform: translateX(4px);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.theme-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.theme-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.theme-program-list {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.theme-program-list-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-program-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-program-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.theme-program-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.theme-program-item strong {
  color: #fff;
}

.theme-card-footer {
  margin-top: auto;
  padding-top: 14px;
}

/* ==========================================================================
   DEDICATED CATALOG PAGE STYLES (/catalog)
   ========================================================================== */
.catalog-hero {
  padding: 140px 0 50px;
  text-align: center;
  position: relative;
}

.catalog-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 50px;
}

.catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.catalog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.catalog-filter-btn.active {
  background: rgba(0, 240, 181, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 181, 0.2);
}

.catalog-filter-btn .filter-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  color: inherit;
}

.catalog-category-section {
  margin-bottom: 70px;
  scroll-margin-top: 100px;
}

.category-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.category-icon-cyan {
  background: rgba(0, 240, 181, 0.12);
  border: 1px solid rgba(0, 240, 181, 0.3);
  color: var(--accent-cyan);
}

.category-icon-blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.category-icon-purple {
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: #c084fc;
}

.category-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.category-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   PRODUCT CARDS GRID (Main Landing Page)
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 30px;
  margin-top: 36px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.product-card:hover {
  border-color: rgba(0, 240, 181, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 181, 0.1);
}

.product-card.featured {
  border-color: rgba(0, 240, 181, 0.45);
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%);
  box-shadow: 0 10px 32px rgba(0, 240, 181, 0.08);
}

.product-card.featured::before {
  background: linear-gradient(90deg, var(--accent-cyan), #38bdf8);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 240, 181, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 181, 0.25);
  margin-bottom: 20px;
  width: fit-content;
}

.product-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

/* ==========================================================================
   APPLICATION CATALOG (2 IN A ROW RECTANGULAR APP CARDS)
   ========================================================================== */
.apps-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 60px;
}

@media (max-width: 960px) {
  .apps-catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Rectangular Application Card */
.app-card-rect {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 14, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-card-rect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.app-card-rect:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 181, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 240, 181, 0.1);
  background: linear-gradient(180deg, rgba(22, 32, 52, 0.9) 0%, rgba(12, 17, 28, 0.98) 100%);
}

.app-card-rect.featured-app {
  border-color: rgba(0, 240, 181, 0.35);
}

.app-card-rect.featured-app::before {
  background: linear-gradient(90deg, var(--accent-cyan), #38bdf8);
}

/* Card Header: Icon + Title Group */
.app-card-top-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

/* Glowing Squircle App Icon */
.app-icon-squircle {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.app-card-rect:hover .app-icon-squircle {
  transform: scale(1.06);
}

.icon-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 181, 0.16) 0%, rgba(14, 165, 233, 0.22) 100%);
  border: 1px solid rgba(0, 240, 181, 0.4);
  box-shadow: 0 8px 20px rgba(0, 240, 181, 0.18);
  color: var(--accent-cyan);
}

.icon-blue {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(99, 102, 241, 0.22) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.icon-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.icon-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(236, 72, 153, 0.22) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.app-title-group {
  flex-grow: 1;
}

.app-badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.app-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.status-active {
  background: rgba(0, 240, 181, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 181, 0.25);
}

.status-enterprise {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-soon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-custom {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.app-platform-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.app-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.25;
}

.app-tagline {
  font-size: 0.825rem;
  color: var(--accent-cyan);
  font-weight: 600;
  line-height: 1.35;
}

/* Card Body */
.app-desc-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.app-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.app-chip {
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-family: var(--font-mono);
}

/* Card Action Strip */
.app-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  flex-wrap: wrap;
}

.app-action-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: transform 0.25s ease;
}

.app-card-rect:hover .app-action-arrow {
  transform: translateX(4px);
}

/* Modal details */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #0f1627;
  border: 1px solid rgba(0, 240, 181, 0.35);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  max-width: 620px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 240, 181, 0.1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
}





/* Shared document and navigation styles */

    .legal-container {
      max-width: 920px;
      margin: 40px auto 80px;
      padding: 40px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      color: #cbd5e1;
      line-height: 1.7;
      font-size: 0.95rem;
    }
    .legal-container h1 {
      font-size: 1.85rem;
      color: #fff;
      margin-bottom: 8px;
    }
    .legal-meta {
      font-size: 0.85rem;
      color: var(--accent-cyan);
      margin-bottom: 28px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-subtle);
    }
    .legal-container h2 {
      font-size: 1.25rem;
      color: #fff;
      margin: 28px 0 12px;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .legal-container p {
      margin-bottom: 14px;
    }
    .legal-container ul, .legal-container ol {
      padding-left: 24px;
      margin-bottom: 14px;
    }
    .legal-container li {
      margin-bottom: 6px;
    }
    .requisites-box {
      background: rgba(0, 240, 181, 0.04);
      border: 1px solid rgba(0, 240, 181, 0.2);
      border-radius: var(--radius-md);
      padding: 20px 24px;
      margin-top: 30px;
      font-size: 0.9rem;
    }
  
.nav-account-email { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.85rem; color:var(--text-muted); }
.footer-description { margin-top:16px; font-size:.875rem; color:var(--text-dim); max-width:320px; }
.hero-title, .legal-container h1, .stat-label { overflow-wrap: anywhere; }
@media (max-width: 480px) { .hero-title { font-size: 1.65rem; } }
@media(max-width:680px) { .nav-account-email { display:none; } }

/* Home page */

/* Descriptions should read as paragraphs, with room below their headings. */
.product-hero .hero-title { font-size: clamp(2rem, 4.1vw, 3.25rem); line-height: 1.2; font-weight: 750; }
.product-hero .hero-subtitle { max-width: 760px; }
.product-hero .hero-badge { text-transform: none; }
.ui-info-panel h3 { margin-bottom: 12px; line-height: 1.35; }
.ui-info-panel p { color: var(--text-muted); line-height: 1.7; }
.case-info-text { max-width: 820px; }
.case-title-text { display: block; margin-bottom: 12px; }
.case-desc-text { line-height: 1.7; }

    .responsive-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }
    @media (max-width: 680px) {
      .responsive-form-grid {
        grid-template-columns: 1fr !important;
      }
    }
    .author-card {
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 14, 23, 0.9) 100%);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 40px;
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 36px;
      align-items: center;
    }
    @media (max-width: 768px) {
      .author-card {
        grid-template-columns: 1fr;
        text-align: center;
      }
    }
    .author-avatar {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-cyan), #00b894);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.8rem;
      font-weight: 800;
      color: #071311;
      box-shadow: 0 10px 25px rgba(0, 240, 181, 0.25);
      margin: 0 auto;
    }
  
