/* =============================================
   LABSPARKEL — Additional Animations CSS
   (Toasts, Spinners, Extra effects)
   ============================================= */

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(15, 22, 40, 0.96);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info .toast-icon { color: var(--gold); }

/* ---- Spinner ---- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Hero Specific ---- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#diamondCanvas {
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(10,14,26,0.2) 0%, rgba(10,14,26,0.85) 70%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 30px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  background: rgba(201,168,76,0.05);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 3;
}
.hero-stats-inner {
  display: flex;
  gap: 60px;
  align-items: flex-end;
}
.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
  animation: scrollAnim 1.5s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5) translateY(20px); opacity: 0.3; }
}

/* ---- Diamond SVG Logo ---- */
.diamond-logo-svg {
  animation: gemSpin 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.5));
}

/* ---- Product Detail Page Styles ---- */
.product-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb {
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }
.gallery-main {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-light);
  aspect-ratio: 1;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(10,14,26,0.8);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.gallery-zoom-btn:hover { background: rgba(201,168,76,0.1); }

.cert-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--gold-pale);
}
.cert-icon { color: var(--gold); font-size: 1rem; }

.option-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.option-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  background: transparent;
  transition: all 0.3s;
}
.option-btn:hover, .option-btn.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ---- Shop Filter Sidebar ---- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px;
  padding: 28px;
}
.filter-section { margin-bottom: 28px; }
.filter-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.price-range { width: 100%; accent-color: var(--gold); }
.filter-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.filter-checkbox input { accent-color: var(--gold); width: 16px; height: 16px; }
.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.sort-select {
  padding: 10px 36px 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a84c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
}

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.page-btn {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ---- Cart / Checkout ---- */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-item-img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-btn-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: all 0.3s;
}
.qty-btn-circle:hover { background: rgba(201,168,76,0.1); }
.cart-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--white); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }
.summary-row .value { color: var(--gold-light); }

/* ---- Account / Login ---- */
.auth-tabs { display: flex; gap: 0; border: 1px solid rgba(201,168,76,0.15); border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.auth-tab { flex: 1; padding: 13px; text-align: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; border: none; background: none; }
.auth-tab.active { background: var(--gold); color: var(--navy); }

/* ---- Order Status ---- */
.order-status-bar { display: flex; gap: 0; margin: 30px 0; }
.order-step { flex: 1; text-align: center; position: relative; }
.order-step::before { content: ''; position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; }
.order-step:last-child::before { display: none; }
.order-step-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 0.8rem; position: relative; z-index: 1; background: var(--navy); }
.order-step.done .order-step-dot { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.order-step-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.order-step.done .order-step-label { color: var(--gold); }

/* ---- Admin ---- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--navy); }
.admin-sidebar { background: var(--navy-mid); border-right: 1px solid rgba(201,168,76,0.1); padding: 24px 0; }
.admin-sidebar-logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(201,168,76,0.1); margin-bottom: 16px; }
.admin-nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 24px; font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: all 0.3s; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(201,168,76,0.08); color: var(--gold); border-left: 2px solid var(--gold); }
.admin-main { padding: 40px; }
.stat-card { padding: 28px; border-radius: 16px; }
.stat-value { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 6px; }
.stat-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.stat-change { font-size: 0.8rem; margin-top: 8px; }

/* ---- Education page ---- */
.edu-hero { padding: 180px 0 80px; background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.15) 0%, transparent 60%), var(--grad-navy); text-align: center; }
.comparison-table th { padding: 16px 20px; }
.comparison-table td { padding: 14px 20px; }
.lab-col { color: var(--gold-light); }
.mined-col { color: rgba(255,255,255,0.5); }
.process-card { padding: 32px; border-radius: 16px; border: 1px solid rgba(201,168,76,0.15); background: rgba(255,255,255,0.03); }
.process-step { display: grid; grid-template-columns: 60px 1fr; gap: 20px; margin-bottom: 24px; }
.process-num { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-gold); color: var(--navy); font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.four-c-card { padding: 32px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(201,168,76,0.15); text-align: center; transition: all 0.4s; }
.four-c-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.four-c-icon { font-size: 3rem; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-size: 1.05rem; font-family: var(--font-serif); }
.faq-answer { padding: 0 0 20px; color: rgba(255,255,255,0.65); line-height: 1.8; font-size: 0.95rem; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform 0.3s; color: var(--gold); }

/* ---- Order Confirmation ---- */
.success-checkmark { width: 80px; height: 80px; border-radius: 50%; background: rgba(16,185,129,0.15); border: 2px solid rgba(16,185,129,0.4); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 24px; animation: goldPulse 2s ease-in-out 3; }

@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; }
  .gallery-thumb { width: 60px; height: 60px; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .hero-stats-inner { gap: 30px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 1.8rem; }
}
