/*
 * CXDE Main Styles
 * Brutalist + Grunge Aesthetic
 * Raw, Bold, Textured
 */

/* Prevent horizontal overflow */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.social-bar {
  background: #a3e635;
  color: #0a0a0f;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  padding: 12px var(--space-md);
  border-bottom: 3px solid var(--border-primary);
  z-index: 50;
}

.social-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-bar-label {
  font-weight: 700;
}

.social-bar-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-bar-links a {
  color: #0a0a0f;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid rgba(10, 10, 15, 0.4);
  padding-bottom: 2px;
}

.social-bar-links a:hover {
  border-color: #0a0a0f;
}

.social-bar .divider {
  opacity: 0.6;
}

.social-bar--footer {
  border-top: 3px solid var(--border-primary);
  border-bottom: none;
  margin-top: var(--space-4xl);
}

body.is-editor-page .social-bar--global {
  display: none !important;
}

/* Prevent all major containers from overflowing */
main, section, article, div, header, footer {
  max-width: 100vw;
}

/* Specifically for dashboard and editor containers */
.dashboard-container,
.editor-container,
.admin-container,
.status-container,
.docs-container,
.investor-container,
.builder-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  background-repeat: repeat;
}

/* ==================== LANDING PAGE ==================== */
.hero {
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(163, 230, 53, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Animated Background */
.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 0.15;
}

.hero-bg-animation::before,
.hero-bg-animation::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation: hero-bg-pulse 20s ease-in-out infinite;
  opacity: 0.3;
}

.hero-bg-animation::before {
  top: -50%;
  left: -50%;
  animation-delay: 0s;
}

.hero-bg-animation::after {
  bottom: -50%;
  right: -50%;
  animation-delay: 10s;
  background: radial-gradient(circle, var(--accent-blue-light) 0%, transparent 70%);
}

@keyframes hero-bg-pulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.2;
  }
  25% {
    transform: scale(1.2) translate(10%, 10%);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1) translate(-5%, -5%);
    opacity: 0.25;
  }
  75% {
    transform: scale(1.3) translate(-10%, 10%);
    opacity: 0.35;
  }
}

/* Cloud Animation - Adapted from CodePen */
#Clouds {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: 50%;
  overflow: hidden;
  animation: FadeIn 3.1s ease-out;
  user-select: none;
  z-index: 1;
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 768px) {
  #Clouds {
    height: 40%;
    opacity: 0.15;
  }
}

@keyframes FadeIn {
  from { opacity: 0; }
  to { opacity: 0.25; }
}

.Cloud {
  position: absolute;
  width: 100%;
  background-repeat: no-repeat;
  background-size: auto 100%;
  height: 70px;
  animation-duration: 120s;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  animation-name: Float, FadeFloat;
  z-index: 1;
}

.Cloud.Foreground {
  height: 10%;
  min-height: 20px;
  z-index: 3;
  opacity: 0.3;
}

.Cloud.Background {
  height: 9.09%;
  min-height: 8px;
  animation-duration: 210s;
  opacity: 0.2;
}

@keyframes Float {
  from { transform: translateX(100%) translateZ(0); }
  to { transform: translateX(-15%) translateZ(0); }
}

@keyframes FadeFloat {
  0%, 100% { opacity: 0; }
  5%, 90% { opacity: 1; }
}

/* Cloud positioning and delays - Generated from Less loop */
.Cloud:nth-child(1) {
  animation-delay: -18.46s;
  top: 6%;
}

.Cloud.Foreground:nth-child(1) {
  animation-duration: 116s;
  height: 10%;
}

.Cloud.Background:nth-child(1) {
  animation-duration: 206s;
  height: 9.09%;
}

.Cloud:nth-child(2) {
  animation-delay: -36.92s;
  top: 12%;
}

.Cloud.Foreground:nth-child(2) {
  animation-duration: 112s;
  height: 12.5%;
}

.Cloud.Background:nth-child(2) {
  animation-duration: 202s;
  height: 7.84%;
}

.Cloud:nth-child(3) {
  animation-delay: -55.38s;
  top: 18%;
}

.Cloud.Foreground:nth-child(3) {
  animation-duration: 108s;
  height: 15%;
}

.Cloud.Background:nth-child(3) {
  animation-duration: 198s;
  height: 6.59%;
}

.Cloud:nth-child(4) {
  animation-delay: -73.85s;
  top: 24%;
}

.Cloud.Foreground:nth-child(4) {
  animation-duration: 104s;
  height: 17.5%;
}

.Cloud.Background:nth-child(4) {
  animation-duration: 194s;
  height: 5.34%;
}

.Cloud:nth-child(5) {
  animation-delay: -92.31s;
  top: 30%;
}

.Cloud.Foreground:nth-child(5) {
  animation-duration: 100s;
  height: 20%;
}

.Cloud.Background:nth-child(5) {
  animation-duration: 190s;
  height: 4.09%;
}

.Cloud:nth-child(6) {
  animation-delay: -110.77s;
  top: 36%;
}

.Cloud.Foreground:nth-child(6) {
  animation-duration: 96s;
  height: 22.5%;
}

.Cloud.Background:nth-child(6) {
  animation-duration: 186s;
  height: 2.84%;
}

.Cloud:nth-child(7) {
  animation-delay: -129.23s;
  top: 42%;
}

.Cloud.Foreground:nth-child(7) {
  animation-duration: 92s;
  height: 25%;
}

.Cloud.Background:nth-child(7) {
  animation-duration: 182s;
  height: 1.59%;
}

.Cloud:nth-child(8) {
  animation-delay: -147.69s;
  top: 48%;
}

.Cloud.Foreground:nth-child(8) {
  animation-duration: 88s;
  height: 27.5%;
}

.Cloud.Background:nth-child(8) {
  animation-duration: 178s;
  height: 0.34%;
}

.Cloud:nth-child(9) {
  animation-delay: -166.15s;
  top: 54%;
}

.Cloud.Foreground:nth-child(9) {
  animation-duration: 84s;
  height: 30%;
}

.Cloud.Background:nth-child(9) {
  animation-duration: 174s;
  height: 0.91%;
}

.Cloud:nth-child(10) {
  animation-delay: -184.62s;
  top: 60%;
}

.Cloud.Foreground:nth-child(10) {
  animation-duration: 80s;
  height: 32.5%;
}

.Cloud.Background:nth-child(10) {
  animation-duration: 170s;
  height: 2.16%;
}

/* Cloud SVG Backgrounds in Brand Colors */
.Cloud {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath fill='%23a3e635' d='M33.85,14.388c-0.176,0-0.343,0.034-0.513,0.054c0.184-0.587,0.279-1.208,0.279-1.853c0-3.463-2.809-6.271-6.272-6.271c-0.38,0-0.752,0.039-1.113,0.104C24.874,2.677,21.293,0,17.083,0c-5.379,0-9.739,4.361-9.739,9.738c0,0.418,0.035,0.826,0.084,1.229c-0.375-0.069-0.761-0.11-1.155-0.11C2.811,10.856,0,13.665,0,17.126c0,3.467,2.811,6.275,6.272,6.275c0.214,0,27.156,0.109,27.577,0.109c2.519,0,4.56-2.043,4.56-4.562C38.409,16.43,36.368,14.388,33.85,14.388z'/%3E%3C/svg%3E");
}

.Cloud.Background {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath fill='%2384cc16' d='M33.85,14.388c-0.176,0-0.343,0.034-0.513,0.054c0.184-0.587,0.279-1.208,0.279-1.853c0-3.463-2.809-6.271-6.272-6.271c-0.38,0-0.752,0.039-1.113,0.104C24.874,2.677,21.293,0,17.083,0c-5.379,0-9.739,4.361-9.739,9.738c0,0.418,0.035,0.826,0.084,1.229c-0.375-0.069-0.761-0.11-1.155-0.11C2.811,10.856,0,13.665,0,17.126c0,3.467,2.811,6.275,6.272,6.275c0.214,0,27.156,0.109,27.577,0.109c2.519,0,4.56-2.043,4.56-4.562C38.409,16.43,36.368,14.388,33.85,14.388z'/%3E%3C/svg%3E");
}

.Cloud.Foreground {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath fill='%23bef264' d='M33.85,14.388c-0.176,0-0.343,0.034-0.513,0.054c0.184-0.587,0.279-1.208,0.279-1.853c0-3.463-2.809-6.271-6.272-6.271c-0.38,0-0.752,0.039-1.113,0.104C24.874,2.677,21.293,0,17.083,0c-5.379,0-9.739,4.361-9.739,9.738c0,0.418,0.035,0.826,0.084,1.229c-0.375-0.069-0.761-0.11-1.155-0.11C2.811,10.856,0,13.665,0,17.126c0,3.467,2.811,6.275,6.272,6.275c0.214,0,27.156,0.109,27.577,0.109c2.519,0,4.56-2.043,4.56-4.562C38.409,16.43,36.368,14.388,33.85,14.388z'/%3E%3C/svg%3E");
}


/* Ensure hero content is above animation */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-primary);
  flex-wrap: wrap;
  gap: var(--space-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .navbar {
    padding: var(--space-md) var(--space-xl);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(163, 230, 53, 0.2);
  position: relative;
}

.logo h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
}

.beta {
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.logo-partner {
  height: 26px;
  width: auto;
  filter: brightness(1.2);
  opacity: 0.9;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: var(--space-sm);
  margin-left: var(--space-xs);
}

@media (min-width: 768px) {
  .logo-partner {
    height: 32px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Removed - conflicts with mobile burger menu */

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(163, 230, 53, 0.1);
}

.nav-links a.active {
  color: var(--accent-green);
  font-weight: 700;
  background: rgba(163, 230, 53, 0.15);
  border-bottom: 2px solid var(--accent-green);
}

/* Navbar Divider */
.navbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-primary);
  margin: 0 var(--space-xs);
}

/* Show/Hide based on auth state */
.user-only {
  display: none !important;
}

.guest-only {
  display: inline-flex !important;
}

body.user-logged-in .user-only {
  display: inline-flex !important;
}

body.user-logged-in .guest-only {
  display: none !important;
}

/* Hero Content - Split Layout */
.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    padding: 80px var(--space-xl) var(--space-2xl);
    gap: 60px;
  }
}

.hero-left {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-left {
    text-align: left;
  }
}

.hero-right {
  display: none;
}

@media (min-width: 1024px) {
  .hero-right {
    display: block;
    position: relative;
  }
}

.hero-mockup-mobile {
  display: block;
  padding: var(--space-xl) var(--space-md);
}

@media (min-width: 1024px) {
  .hero-mockup-mobile {
    display: none;
  }
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 64px;
  }
}

.subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: none;
  padding-left: 0;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: var(--font-size-lg);
  }
}

.tagline {
  font-size: 14px;
  color: var(--accent-blue);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.price-tag {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

/* Hero Stats - Social Proof */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-primary);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-stat {
    align-items: flex-start;
    text-align: left;
  }
}

.hero-stat-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mockup Monitor */
.mockup-monitor {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.monitor-frame {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg);
  padding: 20px 20px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.monitor-screen {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.8);
  position: relative;
  aspect-ratio: 16 / 9;
}

.mockup-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.mockup-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mockup-slide.active {
  opacity: 1;
}

.mockup-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mockup-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.mockup-dot.active {
  background: var(--accent-blue);
  width: 24px;
  border-radius: 4px;
}

.monitor-stand {
  width: 60%;
  height: 8px;
  background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
  margin: 12px auto 0;
  border-radius: var(--radius-sm);
  position: relative;
}

.monitor-stand::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 4px;
  background: linear-gradient(to right, transparent, #1a1a1a 20%, #1a1a1a 80%, transparent);
  border-radius: var(--radius-sm);
}

/* Features Section */
.features {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
  .features {
    padding: 80px var(--space-xl);
  }
}

.features h2 {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .features h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 64px;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  min-height: 200px;
  border: 3px solid var(--border-primary);
  transition: all 0.3s ease;
}

.feature-card .card-bg {
  position: absolute;
  background-image: linear-gradient(
    transparent 15%,
    var(--accent-blue) 40%,
    rgba(163, 230, 53, 0.3),
    var(--accent-blue) 60%,
    transparent 85%
  );
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--radius-lg);
  height: 100%;
  width: 100%;
  transition: transform 500ms ease;
  z-index: 0;
  opacity: 0.6;
}

.feature-card:hover .card-bg {
  transform: rotate(180deg);
  opacity: 0.8;
}

.feature-card .inner {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  height: calc(100% - 6px);
  width: calc(100% - 6px);
  padding: var(--space-lg);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.feature-card:hover .inner {
  background: rgba(10, 10, 15, 0.95);
  transform: scale(1.02);
}

.feature-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.3);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
  display: block;
  transition: transform 0.3s ease;
  z-index: 2;
  position: relative;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--accent-blue);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.feature-card:hover p {
  color: var(--text-primary);
}

/* Pricing Section */
/* ==================== PRICING ==================== */
.pricing {
  padding: var(--space-2xl) var(--space-md);
  padding-bottom: calc(var(--space-2xl) * 2);
  background: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
  .pricing {
    padding: 80px var(--space-xl);
    padding-bottom: 240px; /* Increased from 160px for more space after pricing table */
  }
}

.pricing-header {
  margin-bottom: var(--space-xl);
  text-align: center;
  padding: 0 var(--space-md);
}

.pricing-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.pricing-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  padding: 0 var(--space-md);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
  }
}

/* Pricing Tier */
.pricing-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .pricing-tier {
    padding: 28px 20px;
  }
}

.pricing-tier:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.15);
}

/* Basic Tier (De-emphasized) */
.pricing-tier-basic {
  opacity: 0.85;
  filter: grayscale(0.3);
}

.pricing-tier-basic:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3);
}

.pricing-tier-basic .tier-description {
  color: var(--text-tertiary);
}

/* Featured Tier - Enhanced for Pro */
.pricing-tier-featured {
  border-color: var(--accent-blue);
  border-width: 5px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(163, 230, 53, 0.08) 100%);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.3), 10px 10px 0 rgba(163, 230, 53, 0.2);
}

@media (max-width: 767px) {
  .pricing-tier-featured {
    transform: scale(1);
  }
}

.pricing-tier-featured:hover {
  transform: scale(1.08) translate(-3px, -3px);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.5), 13px 13px 0 rgba(163, 230, 53, 0.3);
}

@media (max-width: 767px) {
  .pricing-tier-featured:hover {
    transform: translateY(-4px);
  }
}

.tier-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  background: var(--accent-blue);
  color: var(--bg-primary);
  padding: 8px 20px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  border: 3px solid var(--bg-primary);
  font-family: var(--font-mono);
}

@media (max-width: 480px) {
  .tier-badge {
    top: -20px;
  }
}

.price-value {
  font-size: var(--font-size-xs);
  color: var(--accent-blue);
  font-weight: 600;
  margin-top: var(--space-xs);
  text-align: center;
}

.tier-guarantee {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--accent-blue);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(163, 230, 53, 0.2);
  font-weight: 600;
}

/* Pulse effect for Pro CTA */
.tier-cta-pulse {
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(163, 230, 53, 0.2);
  }
}

.text-muted {
  opacity: 0.5;
}

.tier-header {
  margin-bottom: 24px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tier-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.tier-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  justify-content: center;
  min-height: 88px;
}

.price-amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.price-period {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.tier-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  padding: 0;
}

.tier-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-features li:hover {
  background: rgba(163, 230, 53, 0.03);
  padding-left: 8px;
  margin-left: -8px;
  border-radius: var(--radius-sm);
}

.tier-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.feature-icon {
  color: var(--accent-blue);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.tier-cta {
  width: 100%;
  margin-top: auto;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Pricing Footer */
/* Pricing Insights - BRUTALIST */
.pricing-insight {
  max-width: 1200px;
  margin: var(--space-4xl) auto;
  padding: var(--space-2xl);
  background: var(--bg-elevated);
  border: 5px solid var(--border-primary);
  border-left: 8px solid var(--accent-blue);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
  position: relative;
}

.pricing-insight::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--accent-blue);
  opacity: 0.2;
  pointer-events: none;
}

.pricing-insight h4 {
  font-family: var(--font-mono);
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--accent-blue);
  margin-bottom: var(--space-xl);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 0 rgba(163, 230, 53, 0.2);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .insight-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
}

.insight-item {
  background: var(--bg-secondary);
  border: 3px solid var(--border-primary);
  padding: var(--space-lg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.insight-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(163, 230, 53, 0.3);
  border-color: var(--accent-blue);
}

.insight-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  color: var(--accent-blue);
  margin-bottom: var(--space-md);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-item p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

.pricing-footer {
  text-align: center;
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 4px solid var(--border-primary);
}

.pricing-footer p {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin: var(--space-md) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-note {
  color: var(--accent-blue);
  font-weight: 700;
}

/* ==================== POWERED BY - BRUTALIST ==================== */
.powered-by {
  padding: var(--space-4xl) var(--space-md);
  background: var(--bg-primary);
  border-top: 5px solid var(--border-primary);
  border-bottom: 5px solid var(--border-primary);
  position: relative;
}

.powered-by::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-blue);
}

@media (min-width: 768px) {
  .powered-by {
    padding: var(--space-5xl) var(--space-xl);
  }
}

.powered-by-container {
  max-width: 1400px;
  margin: 0 auto;
}

.powered-by-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-3xl);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 3px 3px 0 rgba(163, 230, 53, 0.2);
}

.powered-by-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 640px) {
  .powered-by-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .powered-by-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.powered-by-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 4px solid var(--border-primary);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  position: relative;
  min-height: 180px;
}

.powered-by-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-blue);
}

.powered-by-item:hover {
  border-color: var(--accent-blue);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(163, 230, 53, 0.3);
}

/* Logo Box - Only show logos in a box - Always active with green background */
.powered-logo-box {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue);
  border: 3px solid var(--accent-blue);
  padding: var(--space-lg);
  transition: all 0.2s ease;
}

.powered-by-item:hover .powered-logo-box {
  background: var(--accent-blue-dark);
  border-color: var(--accent-blue-dark);
  transform: scale(1.05);
}

.powered-logo-box svg {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
}

.powered-logo-box img {
  width: 100%;
  height: auto;
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Legacy .powered-logo for backwards compatibility */
.powered-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: var(--bg-secondary);
  border: 3px solid var(--border-primary);
  padding: var(--space-md);
  transition: all 0.2s ease;
}

.powered-by-item:hover .powered-logo {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: scale(1.05);
}

.powered-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.powered-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Hide powered-info (text) - only show logos */
.powered-info {
  display: none;
}

.powered-by-disclaimer {
  margin-top: var(--space-3xl);
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== CUSTOM DEVELOPMENT SERVICES ==================== */
.custom-dev-section {
  padding: var(--space-4xl) var(--space-md);
  background: var(--bg-secondary);
  border-top: 5px solid var(--border-primary);
  border-bottom: 5px solid var(--border-primary);
  position: relative;
  overflow: hidden;
}

.custom-dev-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-blue);
}

.custom-dev-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-blue);
}

@media (min-width: 768px) {
  .custom-dev-section {
    padding: 100px var(--space-xl);
  }
}

.custom-dev-container {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-dev-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.custom-dev-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  display: inline-block;
  animation: custom-dev-bounce 2s ease-in-out infinite;
}

@keyframes custom-dev-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.custom-dev-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .custom-dev-section h2 {
    font-size: 48px;
  }
}

.custom-dev-section h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .custom-dev-section h3 {
    font-size: 32px;
  }
}

.custom-dev-content > p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.custom-dev-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .custom-dev-services {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.custom-dev-service-item {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  min-height: 150px;
  border: 3px solid var(--border-primary);
  transition: all 0.3s ease;
  text-align: left;
}

.custom-dev-service-item .card-bg {
  position: absolute;
  background-image: linear-gradient(
    transparent 15%,
    var(--accent-blue) 40%,
    rgba(163, 230, 53, 0.3),
    var(--accent-blue) 60%,
    transparent 85%
  );
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--radius-lg);
  height: 100%;
  width: 100%;
  transition: transform 500ms ease;
  z-index: 0;
  opacity: 0.6;
}

.custom-dev-service-item:hover .card-bg {
  transform: rotate(180deg);
  opacity: 0.8;
}

.custom-dev-service-item .inner {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  height: calc(100% - 6px);
  width: calc(100% - 6px);
  padding: var(--space-lg);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: all 0.3s ease;
}

.custom-dev-service-item:hover .inner {
  background: rgba(10, 10, 15, 0.95);
  transform: scale(1.02);
}

.custom-dev-service-item:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.3);
}

.service-icon {
  font-size: 32px;
  display: block;
  margin-bottom: var(--space-xs);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.custom-dev-service-item:hover .service-icon {
  transform: scale(1.1);
}

.custom-dev-service-item h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs) 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.custom-dev-service-item:hover h4 {
  color: var(--accent-blue);
}

.custom-dev-service-item p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.custom-dev-service-item:hover p {
  color: var(--text-primary);
}

.custom-dev-cta {
  margin-top: var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.custom-dev-note {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== FOOTER - BRUTALIST EPIC ==================== */
.footer {
  background: var(--bg-primary);
  padding: var(--space-4xl) var(--space-md);
  border-top: 8px solid var(--accent-blue);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(163, 230, 53, 0.03) 100%);
  pointer-events: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-3xl);
  border-bottom: 2px solid var(--border-primary);
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 300px 1fr;
    gap: var(--space-4xl);
  }
}

/* Footer Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo h3 {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Footer Links Grid */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  width: 100%;
  justify-items: stretch;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .footer-links {
    gap: var(--space-2xl);
  }
}

@media (min-width: 1200px) {
  .footer-links {
    gap: clamp(32px, 4vw, 80px);
  }
}

.footer-column {
  min-width: 0;
}

.footer-column h4 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  white-space: nowrap;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-list li {
  margin: 0;
  padding: 0;
}

.footer-column a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-column a:hover {
  color: var(--accent-blue);
}

/* Footer Copyright */
.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* Footer Badges */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-badges {
    justify-content: flex-end;
  }
}

.footer-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-blue);
  border: 3px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

[data-theme="dark"] .scroll-to-top {
  color: #ffffff;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent-blue-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(163, 230, 53, 0.4);
}

.scroll-to-top:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
  width: 100%;
}

.footer-bottom p {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  margin: var(--space-md) auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center !important;
  display: block;
  width: 100%;
}

.footer-bottom p:first-child {
  color: var(--text-primary);
  font-weight: 900;
  font-size: var(--font-size-base);
  text-shadow: 2px 2px 0 rgba(163, 230, 53, 0.1);
}

/* ==================== NEW FOOTER STYLES ==================== */
.footer-new {
  background: var(--bg-primary);
  border-top: 4px solid var(--accent-blue);
  position: relative;
  margin-top: var(--space-6xl);
}

.footer-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0.3;
}

.footer-new-container {
  max-width: var(--content-width-2xl);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-md);
}

/* Top Section */
.footer-new-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 2px solid var(--border-primary);
}

@media (min-width: 768px) {
  .footer-new-top {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-5xl);
  }
}

/* Brand Section */
.footer-new-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-new-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-new-logo h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(163, 230, 53, 0.2);
  position: relative;
}

.footer-new-logo h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
}

.footer-new-logo .logo-partner {
  height: 26px;
  width: auto;
  filter: brightness(1.2);
  opacity: 0.9;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: var(--space-sm);
  margin-left: var(--space-xs);
  transition: filter 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 768px) {
  .footer-new-logo .logo-partner {
    height: 32px;
  }
}

[data-theme="light"] .footer-new-logo .logo-partner {
  filter: brightness(0);
}

.footer-new-tagline {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  max-width: 320px;
}

.footer-new-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer-new-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-new-social-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

/* Links Grid */
.footer-new-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3xl) var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-new-links {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4xl);
  }
}

.footer-new-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-new-column-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-primary);
}

.footer-new-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-new-link-list li {
  margin: 0;
  padding: 0;
}

.footer-new-link-list a {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-new-link-list a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: var(--accent-blue);
  text-underline-offset: 4px;
}

/* Bottom Section */
.footer-new-bottom {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-primary);
}

.footer-new-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-new-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-new-copyright {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.footer-new-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-new-badges {
    justify-content: flex-end;
  }
}

.footer-new-badge {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  white-space: nowrap;
}

/* Dark mode adjustments */
[data-theme="light"] .footer-new {
  background: var(--bg-primary);
  border-top-color: var(--accent-blue);
}

[data-theme="light"] .footer-new-social-link {
  border-color: var(--border-primary);
  background: var(--bg-secondary);
}

[data-theme="light"] .footer-new-badge {
  border-color: var(--border-primary);
  background: var(--bg-secondary);
}

/* ==================== DASHBOARD ==================== */
.dashboard-container {
  background: var(--bg-primary);
  min-height: 100vh;
}

.dashboard-welcome {
  padding: var(--space-lg) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .dashboard-welcome {
    padding: var(--space-xl);
  }
}

.dashboard-welcome p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

.dashboard-projects-card {
  grid-column: 1 / -1;
  margin-top: var(--space-xl);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.projects-table-wrapper {
  margin-top: var(--space-md);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: visible;
  background: rgba(0, 0, 0, 0.15);
  position: relative;
  max-height: 600px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

.projects-table-wrapper:focus-within {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.projects-table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.projects-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.projects-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-secondary);
}

.projects-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--border-highlight);
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  table-layout: auto;
}

.projects-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--border-primary);
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.projects-table th.actions-header {
  text-align: center;
  width: 280px;
  min-width: 250px;
  position: sticky;
  right: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 11;
}

.projects-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.projects-table tr {
  transition: all 0.2s ease;
}

.projects-table tr:hover {
  background: rgba(163, 230, 53, 0.05);
  transform: translateX(2px);
}

.projects-table tr:hover td {
  border-bottom-color: rgba(163, 230, 53, 0.2);
}

.projects-table .project-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.projects-table .project-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.projects-table .project-files-count {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.projects-table .project-files-count::before {
  content: '📄';
  font-size: 0.85rem;
  opacity: 0.7;
}

.projects-table .project-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.projects-table .project-actions-cell {
  padding: var(--space-sm) var(--space-md) !important;
  text-align: center;
  width: 280px;
  min-width: 250px;
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-primary);
}

.projects-table .project-actions {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  min-width: 240px;
}

.projects-table .btn-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border-primary);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-width: 70px;
  visibility: visible !important;
  opacity: 1 !important;
}

.projects-table .btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.projects-table .btn-action:active {
  transform: translateY(0);
}

.projects-table .btn-action-edit {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.projects-table .btn-action-edit:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
}

.projects-table .btn-action-download {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.projects-table .btn-action-download:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.projects-table .btn-action-delete {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.projects-table .btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.projects-table .action-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.projects-table .action-text {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* Tablet Optimizations für Projects Table */
@media (min-width: 768px) and (max-width: 1024px) {
  .projects-table {
    min-width: 700px;
  }

  .projects-table .project-actions-cell {
    width: 220px;
    min-width: 200px;
  }

  .projects-table .btn-action {
    min-width: 60px;
    padding: 8px 12px;
    font-size: 0.75rem;
    min-height: 44px; /* Touch-Target */
  }

  .projects-table .action-text {
    display: inline;
    font-size: 0.7rem;
  }

  .projects-table .action-icon {
    font-size: 0.9rem;
  }

  .projects-table-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 767px) {
  .projects-table {
    min-width: 800px;
  }

  .projects-table .project-actions-cell {
    width: 200px;
    min-width: 180px;
  }

  .projects-table .btn-action {
    min-width: 50px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .projects-table .action-text {
    display: none;
  }

  .projects-table .action-icon {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .projects-table {
    min-width: 750px;
  }

  .projects-table th.actions-header {
    width: 200px;
    min-width: 180px;
  }

  .projects-table .project-actions-cell {
    width: 200px;
    min-width: 180px;
  }

  .projects-table .project-actions {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .projects-table .btn-action {
    min-width: 45px;
    padding: 6px 8px;
    font-size: 0.65rem;
  }
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-primary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.project-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.project-badge-mainnet {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.project-badge-mainnet:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.project-badge-testnet {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.project-badge-testnet:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  transform: scale(1.05);
}

.projects-loading,
.projects-empty {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
  flex-direction: column;
  gap: var(--space-md);
}

.projects-empty {
  padding: var(--space-3xl) var(--space-xl);
}

.projects-empty p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.projects-empty .btn-modern {
  margin-top: var(--space-md);
}

.projects-loading {
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}

.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: loader-pulse 0.8s infinite alternate;
}

@keyframes loader-pulse {
  from {
    transform: scale(0.85);
    opacity: 0.5;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}


.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

@media (max-width: 767px) {
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  word-break: break-all;
}

/* ==================== ADMIN ==================== */
.admin-container {
  background: var(--bg-primary);
  min-height: 100vh;
}

.admin-tabs {
  display: flex;
  gap: 0;
  padding: 0 var(--space-md);
  border-bottom: 1px solid var(--border-primary);
  overflow-x: auto;
}

@media (min-width: 768px) {
  .admin-tabs {
    padding: 0 var(--space-xl);
  }
}

.admin-tab {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.admin-tab-content {
  display: none;
  padding: var(--space-lg) var(--space-md);
}

@media (min-width: 768px) {
  .admin-tab-content {
    padding: var(--space-xl);
  }
}

.admin-tab-content.active {
  display: block;
}

.data-table {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  overflow-x: auto;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 450px;
  width: 100%;
  text-align: center;
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

.payment-instruction {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin: var(--space-md) 0;
}

/* Manage Subscription Modal */
.sub-info-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  text-align: left;
}

.sub-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-primary);
}

.sub-info-row:last-child {
  border-bottom: none;
}

.sub-info-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 600;
}

.sub-info-value {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.sub-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* Projects Modal */
.modal-content-large {
  max-width: 900px;
  text-align: left;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-primary);
}

.modal-header h2 {
  margin: 0;
}

.modal-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-primary);
  display: flex;
  justify-content: flex-end;
}

.projects-list {
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
}

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-secondary);
}

.projects-empty p {
  margin: var(--space-xs) 0;
}

.projects-empty .text-muted {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: var(--border-highlight);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.project-card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs) 0;
}

.project-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.project-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.project-card-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Form Groups */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-group .input-modern {
  width: 100%;
}

.form-group textarea.input-modern {
  resize: vertical;
  font-family: var(--font-sans);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
  .how-it-works {
    padding: 80px var(--space-xl);
  }
}

.how-it-works h2 {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .how-it-works h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 64px;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.step-card h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ==================== NO-CODE BUILDER SECTION ==================== */
.no-code-builder-section {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .no-code-builder-section {
    padding: 80px var(--space-xl);
  }
}

.no-code-builder-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-blue);
}

.no-code-builder-container {
  max-width: 1400px;
  margin: 0 auto;
}

.no-code-builder-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .no-code-builder-content {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.no-code-builder-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .no-code-builder-text {
    text-align: left;
  }
}

.no-code-builder-text h2 {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .no-code-builder-text h2 {
    font-size: 48px;
  }
}

.no-code-builder-text h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .no-code-builder-text h3 {
    font-size: 28px;
  }
}

.no-code-builder-text > p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .no-code-builder-text > p {
    margin-left: 0;
    margin-right: 0;
  }
}

.no-code-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
  display: grid;
  gap: var(--space-sm);
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .no-code-features {
    margin-left: 0;
    margin-right: 0;
  }
}

.no-code-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}

.feature-check {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(163, 230, 53, 0.1);
  border-radius: 50%;
}

.no-code-builder-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.builder-mockup {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.builder-mockup-frame {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg);
  padding: 20px 20px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--border-primary);
  position: relative;
}

.builder-mockup-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-blue);
}

.builder-mockup-screen {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.8);
  position: relative;
  aspect-ratio: 16 / 10;
}

.builder-preview {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}

.builder-preview-header {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.builder-preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-primary);
}

.builder-preview-dot:nth-child(1) {
  background: #ef4444;
}

.builder-preview-dot:nth-child(2) {
  background: #f59e0b;
}

.builder-preview-dot:nth-child(3) {
  background: #22c55e;
}

.builder-preview-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.builder-preview-component {
  background: var(--bg-secondary);
  border: 3px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 rgba(163, 230, 53, 0.2);
  width: 80%;
  text-align: center;
  transition: all 0.3s ease;
  animation: builder-pulse 2s ease-in-out infinite;
}

.builder-preview-component:nth-child(2) {
  animation-delay: 0.3s;
}

.builder-preview-component:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes builder-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 4px 4px 0 rgba(163, 230, 53, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 6px 6px 0 rgba(163, 230, 53, 0.3);
  }
}

@media (max-width: 1023px) {
  .no-code-builder-image {
    order: -1;
  }
}

/* ==================== USE CASES ==================== */
.use-cases {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
  .use-cases {
    padding: 80px var(--space-xl);
  }
}

.use-cases-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.use-cases h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .use-cases h2 {
    font-size: var(--font-size-2xl);
  }
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  margin-bottom: 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

@media (min-width: 640px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.use-case-card {
  position: relative;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  min-height: 250px;
  border: 3px solid var(--border-primary);
  transition: all 0.3s ease;
}

.use-case-card .card-bg {
  position: absolute;
  background-image: linear-gradient(
    transparent 15%,
    var(--accent-blue) 40%,
    rgba(163, 230, 53, 0.3),
    var(--accent-blue) 60%,
    transparent 85%
  );
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--radius-lg);
  height: 100%;
  width: 100%;
  transition: transform 500ms ease;
  z-index: 0;
  opacity: 0.6;
}

.use-case-card:hover .card-bg {
  transform: rotate(180deg);
  opacity: 0.8;
}

.use-case-card .inner {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  height: calc(100% - 6px);
  width: calc(100% - 6px);
  padding: var(--space-lg);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.use-case-card:hover .inner {
  background: rgba(10, 10, 15, 0.95);
  transform: scale(1.02);
}

.use-case-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.3);
}

.use-case-icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.use-case-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.use-case-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  flex: 1;
}

.use-case-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-primary);
}

.use-case-time,
.use-case-tokens {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.meta-icon {
  font-size: 14px;
}

.use-case-example {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  background: rgba(163, 230, 53, 0.05);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-blue);
}

.use-case-example strong {
  color: var(--accent-blue);
}

/* Token Calculator */
.token-calculator {
  max-width: 1000px;
  margin: var(--space-2xl) auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calculator-content {
  padding: var(--space-xl);
}

.calculator-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.calculator-content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.calculator-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .calculator-comparison {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-tier {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  position: relative;
}

.calc-tier h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.calc-tier-starter {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.calc-tier-pro {
  background: rgba(163, 230, 53, 0.05);
  border: 2px solid var(--accent-blue);
}

.calc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calc-limit,
.calc-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.calc-limit {
  color: var(--text-tertiary);
}

.calc-benefit {
  color: var(--text-secondary);
}

.limit-icon,
.benefit-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}

.limit-icon {
  color: #f59e0b;
}

.benefit-icon {
  color: var(--accent-blue);
  font-weight: 700;
}

.calc-footer {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-primary);
}

.calc-footer p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.calc-footer strong {
  color: var(--accent-blue);
}

/* ==================== FAQ - REFACTORED ==================== */
.faq-section {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
  .faq-section {
    padding: 80px var(--space-xl);
  }
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .faq-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 64px;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-details {
  background: var(--bg-elevated);
  border: 3px solid var(--border-primary);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(163, 230, 53, 0.1);
  transition: all 0.2s ease;
}

.faq-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-blue);
}

.faq-details:hover {
  border-color: var(--accent-blue);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(163, 230, 53, 0.2);
}

.faq-details[open] {
  border-color: var(--accent-blue);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition: color 0.2s ease;
  text-align: left;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--accent-blue);
}

.faq-summary-text {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: var(--space-md);
  color: var(--accent-blue);
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}

.faq-details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: var(--space-md) var(--space-lg) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-primary);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-sm);
  text-align: left;
}

/* ==================== FOOTER ENHANCED ==================== */
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.footer-section a:hover {
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-lg);
  text-align: center;
}

/* ==================== DOCS PAGE ==================== */
.docs-container {
  background: var(--bg-primary);
  min-height: 100vh;
}

.docs-content {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .docs-content {
    grid-template-columns: 250px 1fr;
  }
}

.docs-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-primary);
  padding: var(--space-lg);
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-primary);
  }
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.docs-nav-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.docs-nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.docs-nav-item.active {
  background: var(--bg-elevated);
  color: var(--accent-blue);
  border-left: 3px solid var(--accent-blue);
}

.docs-main {
  padding: var(--space-xl) var(--space-md);
  max-width: 800px;
}

@media (min-width: 768px) {
  .docs-main {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.doc-section {
  margin-bottom: var(--space-2xl);
}

.doc-section h1 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: var(--space-md);
}

.doc-section h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md);
}

.doc-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-sm);
}

.doc-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
}

.doc-section ul,
.doc-section ol {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.doc-section li {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
}

.doc-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc-section a {
  color: var(--accent-blue);
  text-decoration: none;
}

.doc-section a:hover {
  text-decoration: underline;
}

.doc-section code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-blue);
}

.doc-section kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-primary);
}

.code-example {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.code-example p {
  margin-bottom: var(--space-sm);
}

.code-example code {
  display: block;
  padding: var(--space-xs) 0;
  background: transparent;
  color: var(--text-secondary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.step-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== ADMIN NOTICE MANAGEMENT ==================== */

#admin-notices-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.notice-item {
  background: var(--bg-elevated);
  border: 4px solid var(--border-primary);
  padding: var(--space-lg);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  position: relative;
}

.notice-item.active-notice {
  border-left: 6px solid var(--accent-blue);
}

.notice-item.resolved-notice {
  border-left: 6px solid #22c55e;
  opacity: 0.7;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.notice-header h4 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
}

.severity-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
}

.severity-badge.severity-info {
  background: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.severity-badge.severity-warning {
  background: #f59e0b;
  color: white;
  border-color: #d97706;
}

.severity-badge.severity-critical {
  background: #ef4444;
  color: white;
  border-color: #dc2626;
}

.severity-badge.severity-resolved {
  background: #22c55e;
  color: white;
  border-color: #16a34a;
}

.notice-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
}

.notice-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 2px solid var(--border-primary);
}

.notice-meta span {
  white-space: nowrap;
}

.notice-meta strong {
  color: var(--text-secondary);
}

.notice-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 2px solid var(--border-primary);
}

.resolved-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #22c55e;
  text-transform: uppercase;
}

.empty-state {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--bg-elevated);
  border: 3px solid var(--border-primary);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.empty-state p {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-sm) 0;
  text-transform: uppercase;
}

.empty-state .sub {
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  color: var(--accent-blue) !important;
}

/* ============================================
   MOBILE NAVIGATION & BURGER MENU - CLEAN
   ============================================ */

/* Burger Menu Button */
.burger-menu {
  display: none;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 12px;
  transition: all 0.3s ease;
}

.burger-menu span:nth-child(1) { top: 16px; }
.burger-menu span:nth-child(2) { top: 23px; }
.burger-menu span:nth-child(3) { top: 30px; }

/* Burger Active (X) */
.burger-menu.active span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
  background: var(--accent-blue);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
  background: var(--accent-blue);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  /* Ensure navbar doesn't interfere */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--bg-primary);
    flex-wrap: nowrap;
    overflow: visible;
  }

  /* Show burger button */
  .burger-menu {
    display: block;
    margin-left: auto;
  }

  .burger-menu.active {
    position: fixed;
    top: 18px;
    right: 18px;
    margin: 0;
    z-index: 10000;
  }

  /* Hide desktop nav-links, prepare for mobile menu */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: var(--bg-primary);
    z-index: 9998;
    padding: 100px 28px 32px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    box-shadow: 40px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(-110%);
    will-change: transform;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Mobile Menu Items */
  .nav-links a {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
    display: block;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(8px);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--bg-elevated);
  }

  /* Mobile Menu Buttons */
  .nav-links button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
    border-radius: var(--radius-md);
    margin-top: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
  }

  .nav-links #nav-connect {
    width: 100%;
    align-self: stretch;
    padding: 16px 24px;
    border-radius: 0;
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
  }

  .nav-links #nav-connect::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .nav-links #nav-connect:hover::after {
    opacity: 1;
  }

  /* Editor elements in mobile */
  .nav-links .select-modern,
  .nav-links .badge-modern {
    width: 100%;
    margin: 8px 0;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active a:nth-of-type(1) { transition-delay: 0.05s; }
  .nav-links.active a:nth-of-type(2) { transition-delay: 0.08s; }
  .nav-links.active a:nth-of-type(3) { transition-delay: 0.11s; }
  .nav-links.active a:nth-of-type(4) { transition-delay: 0.14s; }
  .nav-links.active a:nth-of-type(5) { transition-delay: 0.17s; }
  .nav-links.active a:nth-of-type(6) { transition-delay: 0.20s; }
  .nav-links.active a:nth-of-type(7) { transition-delay: 0.23s; }

  .nav-links .select-modern select {
    width: 100%;
  }

  .navbar-divider {
    width: 100%;
    height: 1px;
    background: var(--border-primary);
    margin: 16px 0;
  }

  /* Theme toggle in mobile menu */
  .nav-links .theme-toggle {
    width: 44px;
    height: 22px;
    margin: 20px 0 12px 0;
  }
}

/* ==================== TABLET OPTIMIZATIONS (768px - 1024px) ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Navigation für Tablets */
  .navbar {
    padding: var(--space-md) var(--space-lg);
    flex-wrap: wrap;
  }

  .logo h1 {
    font-size: 24px;
  }

  .nav-links {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    transform: none;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    gap: var(--space-sm);
  }

  .nav-links a {
    font-size: 14px;
    padding: var(--space-xs) var(--space-sm);
    min-height: 44px; /* Touch-Target Größe */
    display: flex;
    align-items: center;
  }

  .burger-menu {
    display: none;
  }

  /* Hero Content für Tablets */
  .hero-content {
    padding: var(--space-2xl) var(--space-lg);
    gap: var(--space-xl);
  }

  .hero-content h1 {
    font-size: 48px;
  }

  /* Feature Grid - 2 Spalten auf Tablets */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Pricing Grid - 2 Spalten auf Tablets */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .pricing-tier-featured {
    transform: scale(1.02);
  }

  /* Powered By Grid - 2 Spalten auf Tablets */
  .powered-by-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* Footer Links - 2 Spalten auf Tablets */
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .footer-new-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* Steps Grid - 2 Spalten auf Tablets */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Use Cases Grid - 2 Spalten auf Tablets */
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Insight Grid - 2 Spalten auf Tablets */
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Custom Dev Services - 2 Spalten auf Tablets */
  .custom-dev-services {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Dashboard Grid - 2 Spalten auf Tablets */
  .dashboard-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Projects Table - Optimierungen für Tablets */
  .projects-table-wrapper {
    max-height: 500px;
  }

  .projects-table {
    min-width: 700px;
  }

  .projects-table .btn-action {
    min-width: 60px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  /* Touch-Targets für Tablets */
  .btn-modern,
  .btn-brutal,
  button {
    min-height: 44px;
    min-width: 44px;
    padding: var(--space-sm) var(--space-md);
  }

  /* Cards - bessere Abstände auf Tablets */
  .card-modern {
    padding: var(--space-lg);
  }

  /* Modal - bessere Größe auf Tablets */
  .modal-content {
    max-width: 600px;
    padding: var(--space-xl);
  }

  .modal-content-large {
    max-width: 800px;
  }

  /* Hero Stats - 3 Spalten auf Tablets */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* No Code Builder - Stack auf Tablets */
  .no-code-builder-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .no-code-builder-image {
    order: -1;
  }
}

/* Tablet responsive adjustments - Mobile */
@media (max-width: 767px) {
  .navbar {
    padding: var(--space-sm) var(--space-md);
  }

  .logo h1 {
    font-size: 20px;
  }

  .nav-links {
    padding: 100px 20px 24px;
  }

  .nav-links a {
    font-size: 16px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .navbar {
    padding: var(--space-sm);
  }

  .logo h1 {
    font-size: 18px;
  }

  .logo .beta {
    font-size: 8px;
    padding: 2px 6px;
  }

  .nav-links {
    padding: 80px 16px 20px;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 15px;
  }

  .nav-links button {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ==================== XRP LOGO THEME HANDLING ==================== */
.logo-partner,
.footer-logo-icon {
  transition: filter 0.2s ease, opacity 0.2s ease;
  filter: none;
}

[data-theme="light"] .logo-partner,
[data-theme="light"] .footer-logo-icon {
  filter: brightness(0);
}

/* ==================== ASCII GLITCH TEXT ==================== */
.ascii-glitch {
  position: relative;
  display: inline-block;
  font-variant-ligatures: none;
}

.ascii-glitch::selection {
  background: transparent;
}

.ascii-glitch.ascii-glitch-block {
  display: block;
}

/* ==================== ASCII GLITCH EFFECT ==================== */
/* Active ascii anim on element */
.as {
  cursor: pointer;
  user-select: none;
}

/* Disable text selection during ASCII animation */
.as::selection {
  background: transparent;
}

/* hover state for elements with ASCII animation */
.as:hover {
  position: relative;
  cursor: pointer;
}

/* ==================== FILE SELECTION DIALOG ==================== */
.file-list-brutal {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  overflow-y: auto;
}

.file-select-btn {
  width: 100%;
  padding: var(--space-md);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.2s ease;
}

.file-select-btn:hover {
  transform: translateX(4px);
  border-left: 4px solid var(--accent-blue);
}

/* ==================== EDITOR PAGE NAVIGATION OPTIMIZATION ==================== */
/* Kompaktere Navigation im Editor - verhindert Zeilenumbruch */
/* Wichtig: Diese Styles müssen nach den Media Queries kommen und spezifischer sein */

/* Desktop: Editor Navigation kompakt halten */
/* Unterstützt sowohl is-editor-page als auch editor-page Klasse */
@media (min-width: 1025px) {
  body.is-editor-page .navbar,
  body.editor-page .navbar {
    flex-wrap: nowrap !important;
    padding: var(--space-sm) var(--space-md) !important;
    gap: var(--space-xs) !important;
  }

  body.is-editor-page .logo h1,
  body.editor-page .logo h1 {
    font-size: 20px !important;
  }

  body.is-editor-page .logo-partner,
  body.editor-page .logo-partner {
    height: 20px !important;
  }

  body.is-editor-page .nav-links,
  body.editor-page .nav-links {
    flex-wrap: nowrap !important;
    gap: var(--space-xs) !important;
    overflow: visible;
    position: relative;
    z-index: 1;
    align-items: center;
  }

  /* Verstecke weniger wichtige Links im Editor - aggressiver */
  body.is-editor-page .nav-links a[href="/#features"],
  body.is-editor-page .nav-links a[href="/#pricing"],
  body.is-editor-page .nav-links a[href="/university.html"],
  body.is-editor-page .nav-links a[href="/investor.html"],
  body.is-editor-page .nav-links a[href="/about.html"],
  body.is-editor-page .nav-links a[href="/status.html"],
  body.editor-page .nav-links a[href="/#features"],
  body.editor-page .nav-links a[href="/#pricing"],
  body.editor-page .nav-links a[href="/university.html"],
  body.editor-page .nav-links a[href="/investor.html"],
  body.editor-page .nav-links a[href="/about.html"],
  body.editor-page .nav-links a[href="/status.html"] {
    display: none !important;
  }

  /* Kompaktere Nav-Links im Editor */
  body.is-editor-page .nav-links a,
  body.editor-page .nav-links a {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    white-space: nowrap;
  }

  /* Kompaktere Editor-Elemente */
  body.is-editor-page .nav-links .select-modern,
  body.editor-page .nav-links .select-modern {
    min-width: 140px !important;
    max-width: 160px !important;
    margin: 0 !important;
    margin-right: var(--space-xs) !important;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    overflow: visible;
  }

  body.is-editor-page .nav-links .select-modern select,
  body.editor-page .nav-links .select-modern select {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
  }

  body.is-editor-page .nav-links #new-project-btn,
  body.editor-page .nav-links #new-project-btn {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }

  body.is-editor-page .nav-links #wallet-display,
  body.editor-page .nav-links #wallet-display {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    white-space: nowrap;
  }

  body.is-editor-page .nav-links button,
  body.editor-page .nav-links button {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }

  body.is-editor-page .navbar-divider,
  body.editor-page .navbar-divider {
    margin: 0 4px !important;
    height: 18px !important;
    flex-shrink: 0;
  }

  /* Theme Toggle und andere Elemente rechts vom Select - sicherstellen, dass sie nicht überlappen */
  body.is-editor-page .nav-links .theme-toggle,
  body.editor-page .nav-links .theme-toggle {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: var(--space-xs) !important;
    margin-right: 0 !important;
  }

  /* Alle Buttons und Badges nach dem Select */
  body.is-editor-page .nav-links #new-project-btn,
  body.editor-page .nav-links #new-project-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: var(--space-xs) !important;
    margin-right: 0 !important;
  }

  body.is-editor-page .nav-links #wallet-display,
  body.editor-page .nav-links #wallet-display {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: var(--space-xs) !important;
    margin-right: 0 !important;
  }

  body.is-editor-page .nav-links button:not(#new-project-btn),
  body.editor-page .nav-links button:not(#new-project-btn) {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: var(--space-xs) !important;
    margin-right: 0 !important;
  }

  /* Sicherstellen, dass Select-Modern nicht von anderen Elementen überlappt wird */
  body.is-editor-page .nav-links .select-modern select,
  body.editor-page .nav-links .select-modern select {
    position: relative;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
  }

  /* Select-Dropdown sollte über anderen Elementen liegen */
  body.is-editor-page .nav-links .select-modern select:focus,
  body.editor-page .nav-links .select-modern select:focus {
    z-index: 10;
  }

  /* Sicherstellen, dass die nav-links Container keine Overflow-Probleme hat */
  body.is-editor-page .nav-links > *,
  body.editor-page .nav-links > * {
    position: relative;
  }

  /* Sicherstellen, dass Elemente nach dem Select genug Abstand haben */
  body.is-editor-page .nav-links .navbar-divider + *,
  body.editor-page .nav-links .navbar-divider + * {
    margin-left: var(--space-xs) !important;
  }
}

/* Bei mittleren Bildschirmen: noch mehr Links verstecken */
@media (min-width: 1025px) and (max-width: 1400px) {
  body.is-editor-page .nav-links a[href="/about.html"],
  body.is-editor-page .nav-links a[href="/status.html"],
  body.editor-page .nav-links a[href="/about.html"],
  body.editor-page .nav-links a[href="/status.html"] {
    display: none !important;
  }
}

/* Bei kleineren Desktop-Bildschirmen: noch kompakter */
@media (min-width: 1025px) and (max-width: 1200px) {
  body.is-editor-page .nav-links a[href="/docs.html"],
  body.editor-page .nav-links a[href="/docs.html"] {
    display: none !important;
  }
  
  body.is-editor-page .nav-links .select-modern,
  body.editor-page .nav-links .select-modern {
    min-width: 120px !important;
    max-width: 140px !important;
  }
}
