/* ============================================================
   MECHASH — Components
   ============================================================ */

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  background: var(--bg-nav);
  /* rgba(0, 10, 20, 0.7) */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(0, 10, 20, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo span {
  color: var(--accent-teal);
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta-mint);
  box-shadow: 0 0 8px var(--cta-mint);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

.nav-links-wrapper {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  transition: gap var(--transition-base);
}

@media (max-width: 1024px) {
  .nav-links {
    gap: var(--space-md);
  }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-teal);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: var(--text-sm) !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--cta-mint) !important;
  color: #001B2E !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
  white-space: nowrap;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--cta-mint-dark) !important;
  box-shadow: var(--shadow-mint) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links-wrapper {
    display: block !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    overflow: hidden;
    pointer-events: none;
    z-index: 999;
  }

  .nav-links {
    position: absolute;
    top: 10px;
    right: var(--space-xl);
    left: auto;
    width: 200px;
    background: rgba(0, 10, 20, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    gap: 0;
    padding: var(--space-sm) 0;
    transform: translateY(calc(-100% - 20px));
    transition: transform var(--transition-base);
    backdrop-filter: blur(20px);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: var(--space-md) var(--space-lg);
    width: 100%;
    font-size: var(--text-sm);
    text-align: center;
    display: block;
    transition: all var(--transition-fast);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--cta-mint);
    background: rgba(0, 255, 200, 0.05);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.02);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ── Floating Contact Button ────────────────────────────── */
.floating-contact {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 1001;
  width: 56px;
  height: 56px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  transition: all var(--transition-base);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-contact:hover {
  transform: translateY(-5px) scale(1.05);
  background: var(--accent-teal);
  color: var(--bg-base);
}

.floating-contact svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    right: var(--space-lg);
    width: 48px;
    height: 48px;
  }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--accent-cyan);
  color: var(--text-heading);
}

.btn--primary:hover {
  background: var(--accent-teal);
  color: var(--bg-base);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.btn--outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-teal);
  background: var(--glass-bg);
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--glass-bg);
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.btn--teal:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
  color: var(--text-heading);
}

.btn svg,
.btn .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.35;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.hero-radial {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(8, 126, 139, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(50, 103, 113, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-label .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-mint);
  box-shadow: 0 0 10px var(--cta-mint);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-heading);
  margin-bottom: var(--space-xl);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-teal), var(--cta-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.stat-item {}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-value span {
  color: var(--accent-teal);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.hero-visual {
  position: relative;
}

.hero-slider {
  display: grid;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: rgba(4, 12, 20, 0.95);
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  display: none;
}

.slide-info {
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}

.slide-info h4 {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.2;
}

.slide-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.slide-dot.active {
  background: var(--cta-mint);
  box-shadow: 0 0 8px var(--cta-mint);
  width: 24px;
  border-radius: 4px;
}


/* -- Feeds Slider -------------------------------- */
#featured-builds-grid,
#recent-logs-grid,
#creator-feed-grid,
#repo-feed-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: var(--space-md);
  padding-top: 20px;
  margin-top: -20px;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#featured-builds-grid::-webkit-scrollbar,
#recent-logs-grid::-webkit-scrollbar,
#creator-feed-grid::-webkit-scrollbar,
#repo-feed-grid::-webkit-scrollbar { display: none; }

#featured-builds-grid > .store-grid-card,
#recent-logs-grid > .project-card,
#creator-feed-grid > .project-card,
#repo-feed-grid > .project-card {
  flex: 0 0 calc((100% - var(--space-md) * 2) / 3);
  scroll-snap-align: start;
  min-width: 280px;
}

.slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.slider-arrow:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #000;
}

.slider-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.slider-arrow--left  { left:  -60px; }
.slider-arrow--right { right: -60px; }

@media (max-width: 1360px) {
  .slider-arrow--left  { left:  12px; }
  .slider-arrow--right { right: 12px; }
}

@media (max-width: 900px) {
  .slider-arrow { display: none !important; }
}

.hero-border-frame {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid var(--accent-teal);
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero {
    padding: 100px 0 var(--space-3xl);
    min-height: auto;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }

  .hero-text {
    display: contents;
  }

  .hero-label {
    order: 1;
    margin-bottom: var(--space-sm);
  }

  .hero-title {
    order: 2;
    margin-bottom: var(--space-md);
  }

  .hero-visual {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 0 0 var(--space-lg) 0;
  }

  .hero-description {
    order: 4;
    margin-bottom: var(--space-lg);
  }

  .hero-actions {
    order: 5;
  }

  .hero-stats {
    order: 6;
  }

  .hero-title {
    font-size: clamp(2.8rem, 9vw, 4rem);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .slide-info {
    padding: 10px 14px;
  }

  .slide-info h4 {
    font-size: var(--text-sm);
    margin-top: 0;
    margin-bottom: 2px;
  }

  .slide-info p {
    font-size: 11px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 11px;
  }

  .hero-label {
    font-size: 10px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  #featured-builds-grid,
  #recent-logs-grid,
  #creator-feed-grid,
  #repo-feed-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-top: 20px;
    margin-top: -20px;
    padding-bottom: var(--space-lg);
    margin-right: calc(var(--space-lg) * -1);
    margin-left: calc(var(--space-lg) * -1);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #featured-builds-grid::-webkit-scrollbar,
  #recent-logs-grid::-webkit-scrollbar,
  #creator-feed-grid::-webkit-scrollbar,
  #repo-feed-grid::-webkit-scrollbar {
    display: none;
  }

  #featured-builds-grid>.product-card,
  #featured-builds-grid>.store-grid-card,
  #recent-logs-grid>.project-card,
  #creator-feed-grid>.project-card,
  #repo-feed-grid>.project-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .product-card .product-img {
    aspect-ratio: 16/9;
  }

  .product-card .product-body {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .product-card .product-title {
    font-size: var(--text-lg);
  }

  .product-card .product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
  }

  .mobile-only-indicator {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    order: 4;
  }
}
.mobile-only-indicator { display: none; }

/* ── Product Card ───────────────────────────────────────── */
.product-card {
  --card-hover: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  --card-hover: 1;
  border-color: var(--accent-teal);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-card-alt);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.badge--client {
  color: var(--accent-teal);
  background: rgba(8, 126, 139, 0.1);
  border: 1px solid rgba(8, 126, 139, 0.3);
}

.badge--independent {
  color: var(--cta-mint);
  background: rgba(182, 249, 201, 0.08);
  border: 1px solid rgba(182, 249, 201, 0.2);
}

.product-body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Dynamically truncate descriptions on cards with massive disclaimer boxes (Desktop only) */
@media (min-width: 769px) {
  .has-disclaimer .product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.product-specs {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
}

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

.spec-key,
.spec-value {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.spec-key {
  color: var(--text-muted);
  border-right: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.spec-value {
  color: var(--text-body);
}

.product-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-teal);
  background: var(--glass-bg);
}

/* ── Glass Utilities ────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

/* ── Project Card ───────────────────────────────────────── */
.project-card {
  --card-hover: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  isolation: isolate;
  contain: layout;
}

.project-card:hover {
  --card-hover: 1;
  transform: translateY(-6px);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-hover);
}

.project-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card-alt);
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  transform: scale(calc(1 + (var(--card-hover) * 0.08)));
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.view-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--cta-mint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-base) !important;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.15em;
  box-shadow: var(--shadow-mint);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
}

.project-card:hover .view-icon {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1 !important;
  visibility: visible !important;
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 46, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 90;
  pointer-events: none;
}

.project-card:hover .project-img-overlay {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Badge Styles */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-teal);
  color: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 6;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-right: 3px solid var(--cta-mint);
}

.record-badge {
  background: var(--accent-teal);
}

.project-badge {
  background: var(--cta-mint);
}

.project-body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Blog Card ───────────────────────────────────────────── */
.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-hover);
}

.blog-img {
  overflow: hidden;
  background: var(--bg-card-alt);
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.blog-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.blog-read-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-teal);
}

.blog-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--cta-mint);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.blog-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-card:hover .blog-link {
  gap: 10px;
  color: var(--cta-mint);
}

@media (max-width: 768px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-img {
    height: 200px;
  }
}

/* ── Code Block ──────────────────────────────────────────── */
.code-block {
  background: rgba(0, 8, 16, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(8, 126, 139, 0.08);
  border-bottom: 1px solid var(--border-color);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}

.code-dots span:nth-child(2) {
  background: #febc2e;
}

.code-dots span:nth-child(3) {
  background: #28c840;
}

.code-block pre {
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}

.code-block .kw {
  color: var(--accent-teal);
}

/* keywords */
.code-block .fn {
  color: var(--cta-mint);
}

/* functions */
.code-block .tp {
  color: #4ec9b0;
}

/* types */
.code-block .cm {
  color: var(--text-muted);
}

/* comments */
.code-block .st {
  color: #ce9178;
}

/* strings */
.code-block .nm {
  color: var(--cta-mint);
}

/* numbers */

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-teal), rgba(8, 126, 139, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px var(--accent-teal-glow), 0 0 12px var(--accent-teal);
  border: 2px solid var(--bg-base);
}

.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-teal);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.timeline-role {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: var(--text-base);
  color: var(--cta-mint);
  font-weight: 500;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.timeline-company::before {
  content: '@';
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.timeline-desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.timeline-mobile-details {
  display: none;
}

/* ── Skills Grid ─────────────────────────────────────────── */
.skills-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.skill-group {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: var(--space-xl);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.skill-group-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-teal-glow);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.skill-group h4 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
}

.skill-item {
  margin-bottom: var(--space-lg);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: var(--text-sm);
  color: var(--text-heading);
  font-weight: 500;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.skill-bar-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 900px) {
  .skills-section {
    grid-template-columns: 1fr;
  }
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
}

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

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

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

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-body);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  outline: none;
  font-family: var(--font-main);
  backdrop-filter: blur(4px);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-glow);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: var(--space-xl);
  }
}

/* ── Education Card ──────────────────────────────────────── */
.edu-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--glass-shadow);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: all var(--transition-base);
}

.edu-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow);
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(8, 126, 139, 0.15);
  border: 1px solid rgba(8, 126, 139, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.edu-body {}

.edu-degree {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.edu-school {
  font-size: var(--text-base);
  color: var(--cta-mint);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── Summary Banner ─────────────────────────────────────── */
.summary-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.summary-stat {}

.summary-stat .value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.summary-stat .value span {
  color: var(--accent-teal);
}

.summary-stat .label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .summary-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .summary-banner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.modal {
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-hover);
  max-width: 520px;
  width: 100%;
  transform: translateY(20px);
  transition: transform var(--transition-base);
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  font-size: 18px;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--accent-teal);
  color: var(--cta-mint);
}

.modal h3 {
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.modal p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
}

/* ── Section Split ─────────────────────────────────────────*/
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse>* {
  direction: ltr;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .timeline-mobile-details {
    display: block;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--border-color);
  }

  #experience-details-panel {
    display: none !important;
  }
}

/* ── Terminal Chip ──────────────────────────────────────── */
.terminal-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cta-mint);
}

.terminal-chip::before {
  content: '>';
  color: var(--accent-teal);
}

/* ── Scroll to top ──────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: calc(var(--space-xl) + 70px);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 100;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#scrollTop:hover {
  background: var(--cta-mint);
  color: #001B2E;
  box-shadow: var(--shadow-mint);
}

@media (max-width: 768px) {
  #scrollTop {
    bottom: calc(var(--space-lg) + 48px + 12px + env(safe-area-inset-bottom, 0px));
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
}

/* ── Vertical HUD Tape ──────────────────────────────────── */
.scroll-hud {
  position: fixed;
  left: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.scroll-hud:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .scroll-hud {
    display: none !important;
  }
}

.hud-tape-container {
  width: 80px;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
}

.hud-tape-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hud-center-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  height: 28px;
  border: 1px solid var(--accent-teal);
  background: rgba(11, 26, 36, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(84, 172, 191, 0.2);
}

.hud-center-indicator::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--cta-mint);
}

.hud-readout {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cta-mint);
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .scroll-hud {
    display: none;
  }
}
/* ── Store List View ────────────────────────────────────── */
.store-list-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
}

.store-list-item {
  display: flex;
  gap: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.store-list-item:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-cyan);
}

.store-list-image {
  width: 250px;
  height: 250px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.store-list-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-list-title {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.store-list-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.store-list-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
}

.store-list-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--cta-mint);
  font-weight: bold;
}

.store-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-qty-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-heading);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.2s;
}

.store-qty-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-base);
  border-color: var(--accent-cyan);
}

.store-qty-display {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-heading);
  min-width: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .store-list-item {
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .store-list-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  .store-list-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* ── Store Grid View (Amazon Inspired) ──────────────────── */
.store-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
  width: 100%;
}

.store-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.store-grid-card:hover {
  --card-hover: 1;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-teal);
}

.store-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0, 10, 20, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.store-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.store-add-btn-circle {
  position: absolute;
  bottom: -15px;
  right: -5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cta-mint);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: 2px solid var(--bg-base);
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, background 0.2s;
  z-index: 10;
}

.store-add-btn-circle:hover {
  transform: scale(1.1);
  background: var(--accent-cyan);
}

.store-qty-pill {
  position: absolute;
  bottom: -15px;
  right: -5px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.store-qty-pill button {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.store-qty-pill button:hover {
  background: rgba(84, 172, 191, 0.2);
}

.store-qty-pill span {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-heading);
}

.store-card-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-heading);
  font-weight: bold;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 5px;
}

.store-card-title {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.store-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

@media (max-width: 480px) {
  .store-grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .store-card-title {
    font-size: 0.95rem;
  }
  .store-card-price {
    font-size: 1.1rem;
  }
  .store-card-image-wrap {
    margin-bottom: var(--space-sm);
  }
  .store-qty-pill {
    right: -2px;
    bottom: -10px;
    height: 30px;
    gap: 5px;
  }
  .store-add-btn-circle {
    right: -2px;
    bottom: -10px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

/* ── Store Filter Dropdown ──────────────────────────────── */
.store-filter-dropdown {
  background: var(--glass-bg);
  color: var(--text-heading);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23087E8B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
  min-width: 200px;
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition-fast);
}

.store-filter-dropdown:focus {
  border-color: var(--accent-cyan);
}

.store-filter-dropdown option {
  background: var(--bg-card);
  color: var(--text-heading);
}

/* ── Store Header Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .store-header-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .store-header-left .section-label {
    order: 1;
  }
  .store-header-left h1 {
    order: 2;
  }
  .store-header-left p {
    order: 3;
  }
  .store-header-right {
    width: 100%;
    justify-content: flex-start !important;
    margin-top: var(--space-md) !important;
  }
  .store-header-right > div {
    width: 100%;
    justify-content: space-between !important;
  }
}
