/* ==========================================
   DESIGN SYSTEM - KIT PROIECTARE LOGICA (UPB ACS)
   Modern Dark Theme, Glassmorphism & Cyberpunk Neon
   ========================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121722;
  --bg-card: rgba(18, 23, 34, 0.75);
  --bg-card-hover: rgba(28, 36, 52, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-neon-green: #00ff88;
  --accent-coral: #ff4e50;
  --accent-amber: #ffb300;

  --text-main: #f0f4fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(127, 0, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Typography & General */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: linear-gradient(135deg, var(--accent-neon-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-purple {
  background: rgba(127, 0, 255, 0.15);
  color: #b57cff;
  border: 1px solid rgba(127, 0, 255, 0.35);
}

.badge-green {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-amber {
  background: rgba(255, 179, 0, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-accent-green {
  background: linear-gradient(135deg, var(--accent-neon-green), #00c853);
  color: #051a0e;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.35);
}

.btn-accent-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
  color: #051a0e;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-icon {
  transform: scale(1.08) rotate(-3deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
}

.cart-button {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.cart-button:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.cart-badge {
  background: var(--accent-coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-counter-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--accent-neon-green);
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-neon-green);
  font-weight: bold;
  white-space: nowrap;
}

/* Welcome Story Banner (First Thing Visible) */
.welcome-story-wrapper {
  padding-top: 6.5rem;
  padding-bottom: 1.5rem;
}

.welcome-story-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.75rem 2.25rem;
  background: linear-gradient(135deg, rgba(18, 23, 34, 0.92), rgba(127, 0, 255, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.15);
  border-radius: var(--border-radius-md);
  position: relative;
}

.welcome-story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

.story-avatar {
  font-size: 2.4rem;
  background: rgba(0, 242, 254, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-cyan);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-avatar:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Continuous Slow Bell Swinging Animation */
.bell-icon,
.story-avatar svg {
  display: inline-block;
  transform-origin: top center !important;
  animation: bellSwingSlow 3.2s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.45));
}

.bell-icon:hover,
.bell-icon:active,
.bell-icon.ringing,
.story-avatar:hover svg,
.story-avatar:active svg,
.story-avatar.ringing svg,
.story-avatar:hover .bell-icon,
.story-avatar:active .bell-icon,
.story-avatar.ringing .bell-icon {
  animation: bellSwingFast 0.8s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(0, 242, 254, 0.95));
}

@keyframes bellSwingSlow {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}

@keyframes bellSwingFast {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(22deg); }
  75% { transform: rotate(-22deg); }
}

.story-quote {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.65;
}

/* Hero Section */
.hero {
  padding-top: 1rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.floating-badge-box {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(18, 23, 34, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  padding: 1rem 1.4rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* About Author Section */
.author-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 3rem;
  align-items: center;
}

/* Video Placeholder Custom Player Styling */
.video-container-relative {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container-relative .video-placeholder-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.video-placeholder-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder-box:hover {
  border-color: var(--accent-neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
}

.video-placeholder-box:hover .video-play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 35px var(--accent-cyan);
}

.video-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 2;
}

.video-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  animation: pulse-glow 2.2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.video-badge-tag {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.video-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.video-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 500px;
}

.author-avatar-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
}

.author-avatar-wrapper img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.author-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.author-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-icon {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-top: 2px;
}

/* Store Section */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.6rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.kit-product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding: 3.5rem;
}

.kit-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kit-main-image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.kit-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Premium Kit Slideshow */
.kit-slideshow {
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0b0f19;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at center, #141c2e 0%, #080b13 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-wrapper .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.slideshow-wrapper .slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slideshow-wrapper .slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  z-index: 5;
  user-select: none;
}

.slide-prev:hover,
.slide-next:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.slide-prev { left: 0.75rem; }
.slide-next { right: 0.75rem; }

/* Interactive Thumbnail Tabs Bar */
.slideshow-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem;
  background: rgba(5, 8, 15, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.thumb-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.thumb-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
  font-weight: 600;
}

/* K-Map Results Box & Legend */
.kmap-results-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kmap-legend-box {
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  margin: 1.75rem auto 0 auto;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
  text-align: center;
}

.kit-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kit-specs-box {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.kit-badge-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0.5rem auto;
  text-align: center;
}

.kit-price-notice-box {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.promo-green-alert {
  margin-top: 2rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.12);
}

.promo-header-info h4 {
  color: var(--accent-neon-green);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.promo-counter-hero-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed var(--accent-neon-green);
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.counter-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 700;
}

.counter-number {
  font-size: 2.2rem;
  color: var(--accent-neon-green);
  font-family: var(--font-mono);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  margin: 0.2rem 0;
}

.counter-sub {
  font-size: 0.75rem;
  color: var(--text-main);
}

.personal-delivery-alert {
  margin-top: 1.25rem;
  background: rgba(255, 78, 80, 0.1);
  border: 1px solid rgba(255, 78, 80, 0.4);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(255, 78, 80, 0.1);
}

.delivery-icon-box {
  color: #ff4e50;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-info h4 {
  color: #ff4e50;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.kit-action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.price-current {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-neon-green);
}

.price-old {
  font-size: 1.5rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.component-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.component-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.checklist-icon {
  color: var(--accent-neon-green);
  font-weight: 800;
}

.coupon-box {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px dashed var(--accent-cyan);
}

.coupon-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  flex: 1;
}

/* Project Gallery Section */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-card:hover .gallery-img-wrapper img {
  transform: scale(1.06);
}

.gallery-img-wrapper::after {
  content: '🔍 Apasă pentru mărire';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item-card:hover .gallery-img-wrapper::after {
  opacity: 1;
}

.gallery-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.gallery-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.gallery-card-content h4 {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}

.gallery-card-content p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Image Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 20px 60px rgba(0, 242, 254, 0.25);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  color: #fff;
  transform: scale(1.1);
}
.tutorial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.step-card {
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Pinout Viewer */
.pinout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ic-chip-card {
  background: #141a29;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
}

.ic-chip-card h4 {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.ic-diagram {
  margin: 1rem 0;
  background: #090c12;
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.ic-notch {
  width: 30px;
  height: 12px;
  background: #2a3447;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 0 auto 0.75rem auto;
}

.pin-row {
  display: flex;
  justify-content: space-between;
  margin: 0.3rem 0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.pin-vcc { color: var(--accent-coral); font-weight: bold; }
.pin-gnd { color: var(--accent-amber); font-weight: bold; }
.pin-in { color: var(--accent-cyan); }
.pin-out { color: var(--accent-neon-green); }

/* Simulator Section */
.simulator-container {
  padding: 2.5rem;
  background: #0e131f;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.sim-controls {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 2rem;
}

.toggle-switch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.toggle-switch-wrapper label {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #2c384e;
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

input:checked + .slider:before {
  transform: translateX(28px);
  background-color: #000;
}

.breadboard-graphic {
  background: #e8ecef;
  color: #111;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 260px;
}

.breadboard-title {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 2px;
  color: #334155;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadboard-chip-visual {
  width: 240px;
  background: #1e293b;
  color: #fff;
  border-radius: 6px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.chip-label {
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.led-output-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.led-bulb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #475569;
  border: 3px solid #334155;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.led-bulb.active-red {
  background: #ff3366;
  box-shadow: 0 0 25px #ff3366, inset 0 0 10px #fff;
}

.led-bulb.active-green {
  background: #00ff88;
  box-shadow: 0 0 25px #00ff88, inset 0 0 10px #fff;
}

/* K-Map Tool */
.kmap-calculator-card {
  padding: 2.5rem;
}

.kmap-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.kmap-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.kmap-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.kmap-input-group .btn {
  width: auto;
  white-space: nowrap;
}

.kmap-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.kmap-grid {
  display: grid;
  grid-template-columns: 0.9fr repeat(4, 1fr);
  grid-template-rows: 0.9fr repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 1rem auto;
  background: rgba(10, 15, 26, 0.9);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.kmap-header-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  user-select: none;
}

.kmap-header-cell.corner {
  background: rgba(0, 242, 254, 0.15);
  font-size: 0.72rem;
  color: var(--accent-neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.kmap-header-cell.corner .slash {
  color: var(--text-muted);
}

.kmap-cell {
  position: relative;
  background: #131a29;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kmap-cell:hover {
  background: #1c273d;
  border-color: rgba(0, 242, 254, 0.5);
  transform: scale(1.03);
}

.kmap-cell .m-tag {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  line-height: 1;
}

.kmap-cell .m-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
  pointer-events: none;
}

.kmap-cell.val-1 {
  background: rgba(0, 255, 136, 0.2);
  border: 1.5px solid var(--accent-neon-green);
  box-shadow: inset 0 0 12px rgba(0, 255, 136, 0.25);
}

.kmap-cell.val-1 .m-val {
  color: var(--accent-neon-green);
}

.kmap-cell.val-1 .m-tag {
  color: rgba(0, 255, 136, 0.85);
}

/* FAQ & Troubleshooting */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.8rem;
}

.faq-item h4 {
  color: var(--accent-cyan);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #06080d;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #121826;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--border-radius-lg);
  max-width: 580px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--font-family);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

/* =========================================
   Kit Contents Visual Showcase
   ========================================= */
.kit-contents-showcase {
  margin-top: 3rem;
  padding: 0 1rem;
}

.showcase-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.showcase-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.content-item-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.content-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.content-img-icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.content-details h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  color: #fff;
}

.content-details p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .kit-product-card, .author-card, .kmap-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .kmap-input-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.25rem !important;
    box-sizing: border-box !important;
  }
  .kmap-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .kmap-input-group .btn,
  #btn-calc-kmap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  .author-avatar-wrapper img {
    height: 240px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   AI TUTOR FLOATING WIDGET STYLES
   ========================================== */
.ai-tutor-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #7928ca 100%);
  color: #fff;
  border: 1px solid rgba(0, 242, 254, 0.6);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-tutor-trigger:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.65);
}

/* Floating AI Notification Teaser Bubble */

.ai-notif-bubble {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 998;
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  max-width: 260px;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25);
  animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-notif-bubble:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 35px rgba(0, 242, 254, 0.4);
}

.ai-notif-bubble .bubble-close {
  position: absolute;
  top: 4px;
  right: 8px;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
}

.ai-notif-bubble .bubble-close:hover {
  color: var(--accent-coral);
}

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-neon-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-neon-green);
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes bubblePop {
  0% { opacity: 0; transform: translateY(20px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-tutor-box {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 30px);
  height: 520px;
  max-height: calc(100vh - 110px);
  z-index: 10000 !important;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-tutor-box.active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: all !important;
  display: flex !important;
}

.ai-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.ai-chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-msg {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.5rem;
  height: 24px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  display: block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ai-quick-prompts {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

.ai-chip-prompt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chip-prompt:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}

.ai-input-area {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
}

.ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-size: 0.85rem;
}

.ai-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.ai-send-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.ai-send-btn:hover {
  transform: scale(1.1);
}

/* ==========================================
   MOBILE-SPECIFIC ENHANCEMENTS (@media max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
  /* Strict Zero-Overflow Safeguards */
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  /* Global Container Padding & Centering */
  .container {
    padding: 0 0.85rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .section-padding {
    padding: 1.5rem 0 !important;
  }

  .section-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 1.25rem !important;
    padding: 0 0.5rem !important;
  }

  .section-header .badge {
    display: inline-flex !important;
    margin: 0 auto 0.4rem auto !important;
    align-self: center !important;
  }

  .section-header h2 {
    font-size: 1.35rem !important;
    text-align: center !important;
    word-break: break-word !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
  }

  .section-header p {
    font-size: 0.85rem !important;
    text-align: center !important;
    word-break: break-word !important;
    margin: 0 auto !important;
  }

  /* Universal Glass Card Containment */
  .glass-card, 
  .welcome-story-card, 
  .author-card, 
  .kit-product-card, 
  .gallery-card, 
  .promo-green-alert, 
  .personal-delivery-alert {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word !important;
    padding: 1rem 0.85rem !important;
    border-radius: 14px !important;
  }

  /* Flex Badge Group Wrap Protection */
  div:has(> .badge),
  .hero-content > div,
  .kit-details > div {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .badge {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.6rem !important;
    line-height: 1.3 !important;
    display: inline-block !important;
  }

  /* Header & Logo Mobile Fixes */
  .header {
    width: 100%;
    overflow: hidden;
  }

  .nav-container {
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 0.4rem !important;
  }

  .logo {
    font-size: 0.9rem !important;
    gap: 0.35rem !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .logo-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .cart-button {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    gap: 0.35rem !important;
  }

  /* Hero Floating Badge Container Fix */
  .floating-badge-box {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 0.75rem auto 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Welcome Story Card & Author Card Centering */
  .welcome-story-card, .author-card {
    text-align: center !important;
  }

  .welcome-story-card > div, .author-content {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .author-avatar-wrapper {
    margin: 0 auto 1rem auto !important;
    width: 220px !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .author-avatar-wrapper img {
    height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 16px !important;
  }

  /* Centered Highlights Grid ("Pe baza proiectului meu real..." & "Livrare super rapidă") */
  .highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .highlight-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.75rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .highlight-icon {
    margin-bottom: 0.25rem !important;
  }

  /* Top Welcome Story Section Mobile Fix (First Thing Visible) */
  .welcome-story-wrapper {
    padding-top: 5.5rem !important;
    padding-bottom: 1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .welcome-story-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.85rem !important;
    padding: 1.25rem 1rem !important;
    background: linear-gradient(135deg, rgba(18, 23, 34, 0.95), rgba(127, 0, 255, 0.2)) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    border-radius: 16px !important;
  }

  .story-avatar {
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 2.2rem !important;
    margin-bottom: 0.1rem !important;
    padding: 0 !important;
  }

  .story-quote {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  /* Video Card Wrapper & Placeholder Mobile Scaling */
  .video-card-wrapper {
    padding: 0.5rem !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .video-placeholder-box {
    border-radius: 10px !important;
  }

  .video-overlay-content {
    padding: 1rem 0.5rem !important;
  }

  .video-play-btn {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 0.65rem !important;
  }

  .video-play-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  .video-title {
    font-size: 1.05rem !important;
    text-align: center !important;
    word-break: break-word !important;
    margin-bottom: 0.25rem !important;
  }

  .video-subtitle {
    font-size: 0.78rem !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .video-badge-tag {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.6rem !important;
    margin-bottom: 0.4rem !important;
  }

  /* Green Promo Alert & Red Personal Delivery Mobile Centering */
  .promo-green-alert, .personal-delivery-alert {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.25rem 1rem !important;
    gap: 1.1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .promo-header-info, .delivery-info {
    text-align: center !important;
    width: 100% !important;
  }

  .promo-header-info h4, .delivery-info h4 {
    font-size: 1.05rem !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .promo-header-info p, .delivery-info p {
    font-size: 0.85rem !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .promo-counter-hero-box {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1rem !important;
    margin: 0 auto !important;
    align-items: center !important;
    text-align: center !important;
  }

  .counter-number {
    font-size: 2.5rem !important;
  }

  .delivery-icon-box {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Product Showcase Card (#magazin-kit) Mobile Strict Containment */
  .kit-product-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 0.75rem !important;
    gap: 1.25rem !important;
    text-align: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  .kit-gallery, .kit-details {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .kit-main-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 1px solid var(--glass-border) !important;
    margin: 0 auto !important;
  }

  .kit-main-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .kit-specs-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    text-align: center !important;
    align-items: center !important;
    padding: 0.75rem !important;
    margin: 0 auto !important;
  }

  /* Step Header & Step Number Mobile Perfect Circle Fix (1, 2, 3) */
  .step-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    text-align: left !important;
  }

  .step-number {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 1.2rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  /* Breadboard Rules Mobile Single Column Fix */
  .rules-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .rules-grid > div {
    padding: 1rem 0.85rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .rules-grid h4 {
    font-size: 0.95rem !important;
    text-align: center !important;
    word-break: break-word !important;
    margin-bottom: 0.4rem !important;
  }

  .rules-grid p {
    font-size: 0.82rem !important;
    text-align: center !important;
    word-break: break-word !important;
    line-height: 1.45 !important;
  }

  .kit-specs-box > div {
    width: 100% !important;
    text-align: center !important;
  }

  .kit-badge-group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .kit-details h3 {
    font-size: 1.35rem !important;
    text-align: center !important;
    word-break: break-word !important;
    margin: 0 auto !important;
  }

  .kit-details p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .kit-price-notice-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0.75rem 0.85rem !important;
    text-align: center !important;
    margin: 0.75rem auto !important;
  }

  .kit-price-notice-box p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .price-tag {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .price-current {
    font-size: 2.2rem !important;
  }

  .price-old {
    font-size: 1.2rem !important;
  }

  .coupon-box {
    flex-direction: row !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .coupon-input {
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
  }

  .coupon-box .btn {
    width: auto !important;
    padding: 0.8rem 1.35rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  .kit-action-buttons {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
    margin-top: 1.25rem !important;
  }

  .kit-action-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
  }

  /* Video Sections Mobile Centering */
  #video-tutorial .glass-card, #video-prezentare .glass-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.6rem !important;
  /* Floating Badge Box Mobile Fix (Text de sus pe imagine) */
  .floating-badge-box {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 0.85rem auto 0 auto !important;
    width: 100% !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: rgba(10, 13, 20, 0.9) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    z-index: 5 !important;
  }

  /* Gallery Grid Mobile */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
  }

  .gallery-card {
    border-radius: 12px !important;
    text-align: center !important;
  }

  .gallery-content {
    text-align: center !important;
    padding: 0.85rem !important;
  }

  .gallery-img-container img {
    height: 200px !important;
    object-fit: cover !important;
  }

  /* K-Map Calculator Grid & Layout Mobile */
  .kmap-calculator-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 16px !important;
  }

  .kmap-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  .kmap-matrix-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .kmap-results-box {
    width: 100% !important;
    margin-top: 0.5rem !important;
    padding: 1.25rem 0.9rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .kmap-legend-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .kmap-input-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .kmap-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .kmap-input-group .btn,
  #btn-calc-kmap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* K-Map Calculator Grid Mobile (Compact 240px Square Grid) */
  #kmap-grid-container {
    display: grid !important;
    grid-template-columns: 0.95fr repeat(4, 1fr) !important;
    grid-template-rows: 0.95fr repeat(4, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0.5rem auto 0.85rem auto !important;
    padding: 5px !important;
    background: rgba(10, 15, 26, 0.95) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 242, 254, 0.35) !important;
    box-sizing: border-box !important;
  }

  .kmap-header-cell {
    font-size: 0.75rem !important;
  }

  .kmap-header-cell.corner {
    font-size: 0.62rem !important;
  }

  .kmap-cell {
    width: 100% !important;
    height: 100% !important;
    border-radius: 6px !important;
  }

  .kmap-cell .m-tag {
    font-size: 0.55rem !important;
    top: 2px !important;
    left: 3px !important;
  }

  .kmap-cell .m-val {
    font-size: 1.1rem !important;
  }

  /* AI Floating Widget Mobile */
  .ai-tutor-trigger {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .ai-tutor-box {
    bottom: 72px !important;
    right: 10px !important;
    width: calc(100vw - 20px) !important;
    height: 460px !important;
    max-height: calc(100vh - 90px) !important;
    border-radius: 16px !important;
  }

  /* Modals Mobile */
  .modal-card {
    padding: 1.5rem 1.15rem !important;
    width: calc(100vw - 24px) !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
  }

  .modal-card .form-group {
    margin-bottom: 1.15rem !important;
  }

  .modal-card .form-input,
  .modal-card select {
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    min-height: 46px !important;
    border-radius: 10px !important;
  }

  .modal-card label {
    margin-bottom: 0.45rem !important;
    font-size: 0.9rem !important;
  }

  .modal-card button[type="submit"] {
    min-height: 50px !important;
    font-size: 1.05rem !important;
    margin-top: 1.25rem !important;
    border-radius: 12px !important;
  }

  /* Items List & Content Item Cards Spacing */
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .content-item-card {
    padding: 1rem !important;
    gap: 0.85rem !important;
  }

  /* Cart Toggle Floating Button Breathing Room */
  .cart-modal-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    margin-top: 1.25rem !important;
  }

  .cart-modal-footer .btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1rem !important;
  }
}

/* Interactive Breadboard Simulator & DIP Switch Styling */
.dip-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dip-toggle-btn.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--accent-neon-green);
  color: var(--accent-neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.sim-led-off {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2a3040;
  border: 2px solid #3a4255;
  box-shadow: none;
  transition: all 0.3s ease;
}

.sim-led-on {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-neon-green);
  border: 2px solid #fff;
  box-shadow: 0 0 18px var(--accent-neon-green), 0 0 30px var(--accent-neon-green);
  animation: pulse-led 1.5s infinite;
}

@keyframes pulse-led {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Visual Breadboard Graphic Component */
.bb-step-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bb-step-tab.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.bb-visual-board {
  background: #111622;
  border: 2px solid #232d42;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.bb-rail {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bb-rail-vcc {
  background: rgba(255, 78, 80, 0.12);
  border: 1px solid rgba(255, 78, 80, 0.5);
  color: #ff4e50;
}

.bb-rail-gnd {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.5);
  color: #00f2fe;
}

.bb-components-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-around;
  flex-wrap: wrap;
}

.bb-chip-box {
  background: #182030;
  border: 1px solid #2d3b56;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 140px;
  transition: all 0.3s ease;
}

.bb-chip-box.highlight {
  border-color: var(--accent-neon-green) !important;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.35) !important;
}

.bb-chip-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.bb-chip-notch {
  width: 16px;
  height: 8px;
  background: #0d121c;
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.bb-chip-pins-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

.bb-pins-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bb-pin {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-align: center;
}

.bb-pin.pin-vcc {
  color: #ff4e50;
  font-weight: 700;
  background: rgba(255, 78, 80, 0.15);
}

.bb-pin.pin-gnd {
  color: #00f2fe;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.15);
}

.bb-dip-pins {
  display: flex;
  gap: 0.4rem;
}

.bb-dip-pins .bb-pin {
  color: var(--accent-neon-green);
  font-weight: 700;
  background: rgba(0, 255, 136, 0.12);
  padding: 0.25rem 0.5rem;
}

.bb-led-head {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 183, 3, 0.2);
  border: 2px solid #ffb703;
  color: #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.bb-resistor-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* 3D Orbit Viewport Modal Styling */
.bb-3d-modal-card {
  max-width: 850px !important;
  width: 92vw !important;
  padding: 1.5rem !important;
  background: rgba(10, 15, 26, 0.98) !important;
  border: 1px solid var(--accent-neon-green) !important;
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.25) !important;
  border-radius: 20px !important;
}

.bb-3d-viewport {
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at center, #182238 0%, #090c15 100%);
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.bb-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

.bb-3d-viewport:active {
  cursor: grabbing;
}

.bb-3d-orbit-box {
  position: relative;
  width: 80%;
  max-width: 550px;
  height: 240px;
  transform-style: preserve-3d;
  transform: rotateX(25deg) rotateY(-15deg);
  transition: transform 0.05s ease-out;
}

.bb-3d-texture-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.3);
}

.bb-3d-texture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bb-3d-tag {
  position: absolute;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
  transform: translateZ(30px);
  pointer-events: none;
}

.bb-3d-tag.tag-vcc { top: 12px; left: 12px; border-color: #ff4e50; color: #ff4e50; }
.bb-3d-tag.tag-gnd { bottom: 12px; left: 12px; border-color: #00f2fe; color: #00f2fe; }
.bb-3d-tag.tag-ic { top: 45%; left: 30%; border-color: var(--accent-purple); color: var(--accent-purple); }
.bb-3d-tag.tag-led { top: 30%; right: 15%; border-color: #ffb703; color: #ffb703; }

/* =========================================
   Easter Egg: Falling Bells
   ========================================= */
.falling-bell {
  position: fixed;
  top: -50px;
  font-size: 24px;
  z-index: 9999;
  user-select: none;
  pointer-events: none;
  animation: fallDown 3s linear forwards;
}

.falling-bell-el {
  position: fixed;
  top: -80px;
  font-size: 24px;
  z-index: 999999;
  pointer-events: none;
  user-select: none;
  animation: fallDown 3s linear forwards;
}

  0% {
    top: -50px;
    transform: rotate(0deg);
    opacity: 1;
  }
  100% {
    top: 110vh;
    transform: rotate(360deg);
    opacity: 0;
  }
}

/* Desktop overflow fix */
@media (min-width: 1024px) {
  html, body {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
}

