/* Emberlash — KosmosAim-style minimal layout, smooth animations */

:root {
  --bg: #050508;
  --bg-alt: #0a0a10;
  --surface: rgba(20, 20, 30, 0.6);
  --surface-hover: rgba(30, 30, 45, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.3);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.5);
  --accent-hover: #818cf8;
  --green: #22c55e;
  --yellow: #eab308;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Smooth rendering */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Simplified background - static gradient for performance */
  background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Removed heavy animations on body::before and body */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease-out);
}

button:active {
  transform: scale(0.95);
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 1s infinite alternate;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.95); /* Increased opacity to reduce blur cost */
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: relative;
}

.nav a:hover {
  color: #fff;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  color: #fff;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: 0.3s var(--ease-out);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px -5px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px var(--accent-glow), 0 0 15px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.03);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 1s var(--ease-out) backwards;
}

.hero-desc {
  margin: 0 auto 2.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  animation: fadeIn 1s var(--ease-out) 0.2s backwards;
}

/* ===== Sections ===== */
.block {
  padding: 6rem 1.5rem;
}

.block-alt {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02) 50%, transparent);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.block-title {
  margin: 0 0 3rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.block-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Categories */
.categories-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cat-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.cat-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.cat-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.4s var(--spring), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2);
  background: var(--surface-hover);
  z-index: 10;
}

/* Products */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
}

.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-card-img-placeholder::after {
  content: 'Emberlash';
  opacity: 0.3;
  font-weight: 600;
  letter-spacing: 1px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.card-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* Reviews */
.reviews-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1rem;
}

.reviews-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  padding: 1rem 0 2rem;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.card-review {
  flex: 0 0 300px; /* Fixed width for slider items */
  scroll-snap-align: start;
  background: linear-gradient(145deg, var(--surface), rgba(255,255,255,0.02));
  min-width: 300px;
}

.review-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}

.review-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.review-prev { left: 0; }
.review-next { right: 0; }

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  font-style: normal;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
}

/* Removed .review-author::after content to prevent duplicate "Verified" */
.review-author::after {
  content: none;
}

/* FAQ */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--surface);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(255,255,255,0.15);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: transform 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s;
}

.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after { width: 2px; height: 10px; }

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out), padding 0.4s var(--ease-in-out);
  padding: 0 1.25rem;
}

.faq-item.is-open .faq-a {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-a p {
  margin: 0;
  color: var(--text-muted);
}

/* Status Box */
.status-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.status-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green); /* Default to green if class is applied */
  box-shadow: 0 0 8px currentColor;
}

.status-ok { color: var(--green); }
.status-warn { color: var(--yellow); }

.status-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status-list li:last-child {
  border-bottom: none;
}

.status-list li span:last-child {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-list li span:last-child::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin: 0;
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 4rem 1.5rem;
  background: #020203;
  border-top: 1px solid var(--border);
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--spring);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0a0a10;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
  }
  
  .header.nav-open .nav {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  .header-actions {
    display: none; /* Simplify for mobile */
  }
  
  .nav-burger {
    display: flex;
  }
}

/* ===== Forms ===== */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Redeem Form */
.redeem-box {
  max-width: 500px;
  margin: 0 auto;
}

.redeem-row {
  display: flex;
  gap: 1rem;
}

.redeem-row input {
  flex: 1;
}

.redeem-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}
.redeem-msg.success { color: var(--green); }
.redeem-msg.error { color: #ef4444; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #0a0a10;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s var(--spring), opacity 0.3s var(--ease-out);
}

.modal.is-open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.5rem;
}

.modal-close:hover {
  color: #fff;
}

.modal-note {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Footer Details ===== */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-payments {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-methods {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.footer-legal a:hover {
  color: var(--accent);
}



