/* ===================================================
   ALDO SUNTIK — DARK NEUMORPHISM DESIGN SYSTEM
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-main: #1a1a2e;
  --bg-card: #1e1e35;
  --bg-surface: #16213e;
  --bg-input: #13132a;
  
  --purple-main: #7c3aed;
  --purple-light: #a855f7;
  --purple-dark: #4c1d95;
  --purple-glow: rgba(124, 58, 237, 0.45);
  --purple-glow-soft: rgba(168, 85, 247, 0.25);
  
  --gray-dark: #2d2d44;
  --white-main: #f8f8ff;
  --white-dim: #c4c4d4;
  --gray-dim: #6b6b8a;
  
  --status-success: #10b981;
  --status-error: #ef4444;
  --status-warning: #f59e0b;
  --status-info: #3b82f6;

  /* Neumorphism Shadow Formula */
  --shadow-raised: 6px 6px 14px #0d0d1a, -6px -6px 14px #252540;
  --shadow-raised-sm: 4px 4px 8px #0d0d1a, -4px -4px 8px #252540;
  --shadow-raised-lg: 8px 8px 18px #0c0c17, -8px -8px 18px #282846;
  
  --shadow-inset: inset 4px 4px 8px #0d0d1a, inset -4px -4px 8px #252540;
  --shadow-inset-sm: inset 2px 2px 5px #0d0d1a, inset -2px -2px 5px #252540;
  
  --shadow-glow: 0 0 16px var(--purple-glow), 6px 6px 14px #0d0d1a, -6px -6px 14px #252540;
  --shadow-glow-inset: inset 0 0 10px rgba(124, 58, 237, 0.3), inset 4px 4px 8px #0d0d1a, inset -4px -4px 8px #252540;
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--white-dim);
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-dark);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-main);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Neumorphic Containers & Cards */
.neu-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-raised);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.neu-card-surface {
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-raised);
}

.neu-inset {
  background: var(--bg-input);
  border-radius: 12px;
  box-shadow: var(--shadow-inset);
}

/* Raised Buttons */
.neu-btn-primary {
  background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-light) 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: var(--shadow-raised);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  user-select: none;
}
.neu-btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.neu-btn-primary:active:not(:disabled) {
  box-shadow: var(--shadow-inset);
  transform: translateY(1px);
}
.neu-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  box-shadow: none;
}

.neu-btn-secondary {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--purple-main);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-raised-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.neu-btn-secondary:hover {
  background: rgba(124, 58, 237, 0.15);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}
.neu-btn-secondary:active {
  box-shadow: var(--shadow-inset-sm);
}

.neu-btn-ghost {
  background: transparent;
  color: var(--gray-dim);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.neu-btn-ghost:hover {
  color: var(--white-main);
  background: rgba(255, 255, 255, 0.05);
}

.neu-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: var(--shadow-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--white-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.neu-btn-icon:hover {
  box-shadow: var(--shadow-glow);
  color: var(--purple-light);
  transform: translateY(-1px);
}
.neu-btn-icon:active {
  box-shadow: var(--shadow-inset-sm);
  transform: translateY(1px);
}

/* Inputs & Form Elements */
.neu-input {
  background: var(--bg-input);
  color: var(--white-main);
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-inset);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}
.neu-input::placeholder {
  color: var(--gray-dim);
}
.neu-input:focus {
  box-shadow: var(--shadow-glow-inset);
}

/* Pills & Badges */
.neu-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}
.neu-badge-purple {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.4);
}
.neu-badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.neu-badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.neu-badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.neu-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--status-info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Platform Cards */
.platform-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-raised);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.platform-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.platform-card:active {
  box-shadow: var(--shadow-inset);
  transform: translateY(0);
}
.platform-card.active {
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--purple-main);
}

/* Product Cards */
.product-neu-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-raised);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}
.product-neu-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Category Pill Tabs */
.subcat-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-card);
  box-shadow: var(--shadow-raised-sm);
  color: var(--white-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: all 0.2s ease;
}
.subcat-pill:hover {
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}
.subcat-pill.active {
  background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-light) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Step Wizard Navigation */
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
}
.step-item.active {
  opacity: 1;
}
.step-item.active .step-bubble {
  background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-light) 100%);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}
.step-item.completed {
  opacity: 0.9;
}
.step-item.completed .step-bubble {
  background: var(--status-success);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-raised-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-dim);
}

/* Bottom Navigation (Mobile) */
.bottom-nav-neu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 16px rgba(13, 13, 26, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px;
  height: 64px;
}
.bnav-neu-btn {
  background: transparent;
  border: none;
  color: var(--gray-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border-radius: 12px;
}
.bnav-neu-btn:hover {
  color: var(--white-dim);
}
.bnav-neu-btn.active {
  color: var(--purple-light);
}
.bnav-neu-btn.active .bnav-icon-wrap {
  box-shadow: var(--shadow-glow);
  background: rgba(124, 58, 237, 0.2);
  color: #ffffff;
}
.bnav-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Modal Overlay */
.neu-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.neu-modal-card {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-raised-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
