/*
What: Base styles (glass windows, animations, shared UI).
Connected to: all pages; extended by index.css, shop.css, about.css, user.css
Amrei pls make me work: None; styling only.
*/
/* Base styles (migrated from main.css). Page-specific overrides live in index.css, shop.css, about.css, user.css */
/* ===== Shop page load animation ===== */
@import url('https://fonts.googleapis.com/css2?family=Combo&display=swap');

.shop-ready .glass-window {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: fadeUpMagic 680ms cubic-bezier(.2,.7,.2,1) forwards;
}
.shop-ready .window-right { animation-delay: 120ms; }
.shop-ready .products-grid { opacity: 0; animation: fadeUpMagic 720ms cubic-bezier(.2,.7,.2,1) 160ms forwards; }

/* Sparkle overlay */
.shop-ready .shop-layout::before {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(6px 6px at 10% 20%, rgba(255,255,255,0.9), rgba(255,255,255,0) 60%),
    radial-gradient(4px 4px at 22% 68%, rgba(236,72,153,0.85), rgba(236,72,153,0) 60%),
    radial-gradient(5px 5px at 44% 34%, rgba(167,139,250,0.9), rgba(167,139,250,0) 60%),
    radial-gradient(3px 3px at 58% 76%, rgba(255,255,255,0.85), rgba(255,255,255,0) 60%),
    radial-gradient(5px 5px at 72% 28%, rgba(236,72,153,0.8), rgba(236,72,153,0) 60%),
    radial-gradient(4px 4px at 86% 62%, rgba(167,139,250,0.85), rgba(167,139,250,0) 60%);
  animation: sparkleBurst 900ms ease-out 80ms forwards;
}

@keyframes fadeUpMagic {
  0%   { opacity: 0; transform: translateY(18px) scale(0.985); filter: drop-shadow(0 0 0 rgba(167,139,250,0)); }
  60%  { opacity: 1; transform: translateY(0) scale(1.01); filter: drop-shadow(0 0 18px rgba(167,139,250,0.35)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(167,139,250,0)); }
}

@keyframes sparkleBurst {
  0%   { opacity: 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  20%  { opacity: 1; filter: drop-shadow(0 0 10px rgba(236,72,153,0.55)) drop-shadow(0 0 14px rgba(167,139,250,0.45)); }
  60%  { opacity: 0.85; background-position: 1% 3%, -2% 1%, 2% -2%, -3% 2%, 1% -1%, -2% -1%; }
  100% { opacity: 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}
/* ===== Custom Scrollbars ===== */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,0.65) transparent;
}

/* WebKit-based (Chrome, Edge, Safari, etc.) */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(236,72,153,0.55), rgba(167,139,250,0.55));
  border: 3px solid transparent; /* creates inner padding ring */
  background-clip: padding-box;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(167,139,250,0.45), 0 0 18px rgba(236,72,153,0.35);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(236,72,153,0.75), rgba(167,139,250,0.75));
  box-shadow: 0 0 12px rgba(167,139,250,0.65), 0 0 24px rgba(236,72,153,0.55);
}
*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(236,72,153,0.9), rgba(167,139,250,0.9));
  box-shadow: 0 0 16px rgba(167,139,250,0.85), 0 0 28px rgba(236,72,153,0.75) inset;
}
*::-webkit-scrollbar-corner { background: transparent; }

/* Give scrolling panels a subtle track hint */
.glass-window .window-body {
  scrollbar-gutter: stable;
  background-image: linear-gradient(to right, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  background-clip: padding-box;
}

:root {
  --bg: #070225;
  --text: #ffffff;
}

/* Custom display font */
@font-face {
  font-family: 'Melkia Starlight';
  src: url('../fonts/melkiastarlightregular-eazvw.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Ghostburn font for product names/titles */
@font-face {
  font-family: 'Ghostburn';
  src: url('../fonts/Ghostbum.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Witches Note Free';
  src: url('../fonts/Witches Note Free.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #040114;
  --text: #ffffff;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Ensure UI controls also use Combo */
button, input, select, textarea { font-family: 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; }

/* Utility: apply Combo font explicitly */
.combo-regular {
  font-family: 'Combo', system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Site-wide custom cursor (local skullbunny) */
html, body {
  cursor: url('../images/cursors/skullbunny/normal-select.cur'), auto;
}

/* Interactive elements: force our custom cursor even on hover */
a, a:hover, a:focus, a *,
button, button:hover, button:focus, button *,
.icon-btn, .icon-btn:hover, .icon-btn *,
.product-card, .product-card:hover, .product-card *,
.btn, .btn:hover, .btn * {
  cursor: url('../images/cursors/skullbunny/normal-select.cur'), auto !important;
}

/* Text editing states */
input, textarea, [contenteditable="true"], .text-cursor {
  cursor: url('../images/cursors/skullbunny/text-select.cur'), text !important;
}

/* Help context */
.help, [aria-label*="help" i] {
  cursor: url('../images/cursors/skullbunny/help-select.cur'), help !important;
}

/* Precision (e.g., canvas crosshair) */
.crosshair, canvas, .precision {
  cursor: url('../images/cursors/skullbunny/precision-select.cur'), crosshair !important;
}

/* Disabled / unavailable */
button:disabled, [aria-disabled="true"], .disabled {
  cursor: url('../images/cursors/skullbunny/unavailable.cur'), not-allowed !important;
}

/* Handwriting */
.handwriting {
  cursor: url('../images/cursors/skullbunny/handwriting.cur'), text !important;
}

#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Maximized product modal */
.product-modal.maximized {
  width: min(92vmin, 1000px);
}
.product-modal.maximized img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.product-modal.maximized .body {
  display: none;
}

/* Minimized dock */
.minimized-dock {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 3;
}
.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}
.dock-btn:hover { background: rgba(0,0,0,0.72); }
.dock-btn .dot.yellow { box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset, 0 2px 6px rgba(0,0,0,0.3); }
.dock-btn .label { opacity: 0.9; font-size: 14px; }

/* Force custom cursor on scrollbars (WebKit browsers) */
*::-webkit-scrollbar,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  cursor: url('../images/cursors/skullbunny/normal-select.cur'), auto !important;
}

.shop-layout {
  position: fixed;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 12px;
  align-items: stretch;
  z-index: 1;
}

/* ===== Music Player (right window) ===== */
.music-player { margin-top: 0; display: grid; gap: 8px; }
.mp-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 8px 10px; backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); display: grid; gap: 10px; }
.music-player .mp-card { position: relative; }
/* Soft animated edge glow tracing outside the bubble */
.music-player .mp-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: conic-gradient(
    from 0deg,
    #ec8bd0 0deg,
    #b49afc 120deg,
    #8ed3ff 240deg,
    #ec8bd0 360deg
  );
  /* Stationary glow with shifting hues */
  animation: mpHueShift 3s linear infinite;
  filter: blur(14px) saturate(150%) hue-rotate(0deg);
  opacity: 1;
  pointer-events: none;
  /* Hollow ring effect so glow is only at the edges */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1.5px; /* thinner stroke */
}

@keyframes mpHueShift {
  0% { filter: blur(14px) saturate(150%) hue-rotate(0deg); }
  100% { filter: blur(14px) saturate(150%) hue-rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .music-player .mp-card::before { animation: none; }
}

/* (secondary glow layer removed as requested) */
.mp-title-row { display:flex; align-items:center; justify-content:center; margin-bottom: 8px; }
.mp-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mp-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:32px; border-radius:8px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); }
.mp-btn:hover { background: rgba(255,255,255,0.14); }
.mp-btn img { width: 20px; height: 20px; display:block; }
.mp-title { color: rgba(255,255,255,0.9); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%; }
.mp-muted-indicator { color: rgba(255,255,255,0.75); font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.10); border:1px solid rgba(255,255,255,0.16); }
.mp-progress { display: grid; gap: 6px; margin-top: 8px; }
.mp-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); overflow: hidden; cursor: pointer; }
.mp-fill { position:absolute; left:0; top:0; bottom:0; width:0; background: linear-gradient(90deg, #a78bfa, #ec4899); box-shadow: 0 0 10px rgba(167,139,250,0.6); }
.mp-time { color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; font-size: 12px; text-align: right; }
.mp-hidden-player { width:0; height:0; overflow:hidden; }

.shop-layout .glass-window { height: 100%; max-height: none; }
.shop-layout .window-left { flex: 1 1 auto; min-width: 520px; }
.shop-layout .window-right { width: min(28vw, 380px); }

/* let the content area fill remaining height and scroll */
.shop-layout .glass-window .window-body { flex: 1 1 auto; }

/* Ensure GIF fills the right window */
.shop-layout .window-right .window-body { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.shop-layout .window-right .window-body .tenor-gif-embed { flex: 1 1 auto; width: 100%; min-height: 120px; max-height: calc(100% - 170px); overflow: hidden; }
.shop-layout .window-right .window-body .tenor-gif-embed iframe { width: 100% !important; height: 100% !important; }

@media (max-width: 980px) {
  .shop-layout { flex-direction: column; }
  .shop-layout .window-left, .shop-layout .window-right { width: 100%; min-width: 0; }
}

.landing {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  justify-items: start;
  z-index: 1;
  padding: 24px;
}

.center {
  text-align: left;
}

.headline {
  font-size: clamp(24px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 400;
  font-family: 'Melkia Starlight', 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  color: var(--text);
  letter-spacing: 0.4px;
}

.inline {
  display: inline-block;
}

.colored-word {
  font-weight: 800;
  /* default subtle white glow; will be combined with aurora gradient */
  text-shadow:
    0 0 3px rgba(255,255,255,0.25),
    0 0 8px rgba(255,255,255,0.18);
}

.landing .headline .colored-word {
  font-family: 'Witches Note Free', 'Melkia Starlight', 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Apply same font to the prefix text on the index headline */
.landing .headline .inline {
  font-family: 'Witches Note Free', 'Melkia Starlight', 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Aurora animated gradient for the carousel text */
.aurora {
  background: linear-gradient(120deg,
    #7dd3fc 0%,
    #a78bfa 20%,
    #f9a8d4 40%,
    #fde68a 60%,
    #86efac 80%,
    #7dd3fc 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: auroraShift 12s ease-in-out infinite;
}

@keyframes auroraShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  border-right: 2px solid currentColor;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Slide-up animation for the carousel effect */
.slide-up {
  display: inline-block;
  will-change: transform, opacity;
  animation: slideUp 600ms ease both;
}

@keyframes slideUp {
  0%   { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0%); opacity: 1; }
}

.cta {
  margin-top: clamp(16px, 4vh, 36px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 700;
  color: #121212;
  background: #fef47a;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(254, 244, 122, 0.35), 0 0 20px rgba(254, 244, 122, 0.35) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(254, 244, 122, 0.5), 0 0 24px rgba(254, 244, 122, 0.55) inset;
}

.cta .arrow {
  font-size: 1.2em;
}

/* ===== macOS-style glass window ===== */
.glass-window {
  width: min(100%, 1200px);
  max-height: min(84vh, 900px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
}

/* Utility: when windows have an external glow ring, avoid clipping it */
.glass-window.allow-glow { overflow: visible; }

/* Cart window responsive sizing states */
.cart-empty {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(95vw, 560px);
  max-width: 560px;
  max-height: 80vh;
}

.cart-filled {
  position: fixed;
  top: 8px;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 95vw);
}

@media (max-width: 640px) {
  .cart-empty { width: 96vw; max-height: 86vh; }
}

/* Let the window size to content width on the landing page */
.window-auto {
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 32px); /* keep small margins from edges */
}

.window-wide {
  width: 100%;
}

.window-fixed {
  width: 760px;
  height: 440px;
  max-height: none;
}

.window-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-lights .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset, 0 2px 6px rgba(0,0,0,0.3);
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
  margin-left: 0;
  margin-right: 0;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.75);
  font-family: 'Witches Note Free', 'Melkia Starlight', 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.window-body {
  padding: clamp(16px, 3vw, 28px);
  overflow: auto;
}

.window-actions { display:flex; align-items:center; gap:12px; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:28px; border-radius:8px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); cursor:pointer; text-decoration:none; }
.icon-btn:hover { background: rgba(255,255,255,0.14); }
.icon-btn img { width:18px; height:18px; display:block; filter: drop-shadow(0 0 6px rgba(255,255,255,0.25)); }
/* disabled state for current page */
.icon-btn.disabled { pointer-events: none; opacity: 0.6; }

/* Allow labels next to icons in window headers */
.window-header .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 28px;
  padding: 0 10px;
  gap: 8px;
}
.window-header .icon-btn .label {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  line-height: 1;
}

/* ===== Products grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: visible; /* allow outside smoke */
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  position: relative; /* for smoke placement */
  z-index: 0; /* create stacking context */
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

/* Purple-pink smoke effect behind each card on hover */
.product-card::before {
  content: '';
  position: absolute;
  left: -28px;
  right: -28px;
  bottom: -28px;
  top: -28px;
  z-index: -1; /* behind the card */
  pointer-events: none;
  opacity: 0;
  filter: blur(16px) saturate(120%);
  background:
    radial-gradient(200px 160px at 50% 110%, rgba(236, 72, 153, 0.28), rgba(236, 72, 153, 0.0) 70%),
    radial-gradient(220px 180px at -10% 60%, rgba(167, 139, 250, 0.24), rgba(167, 139, 250, 0.0) 70%),
    radial-gradient(200px 160px at 110% 40%, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.0) 70%);
  transform: translateY(6px) scale(0.98);
  transition: opacity 220ms ease-out;
  will-change: transform, opacity;
}

.product-card:hover::before {
  opacity: 1;
  animation: smokePlume 1400ms ease-out forwards;
}

@keyframes smokePlume {
  0%   { transform: translateY(6px) scale(0.98); opacity: 0.0; }
  25%  { opacity: 0.85; }
  60%  { transform: translateY(-6px) scale(1.02); opacity: 0.9; }
  100% { transform: translateY(-18px) scale(1.06); opacity: 0.0; }
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; /* keep full 1:1 image */
  object-fit: contain; /* show the whole image */
  background: rgba(255,255,255,0.04);
}

.product-info {
  padding: 14px 16px 16px 16px;
}

.product-name { color: #dbdbdb; font-weight: 400; font-size: 25px; margin: 0 0 8px 0; font-family: 'Ghostburn', 'Melkia Starlight', 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; }
.product-price { color: #fef47a; font-weight: 700; margin: 0 0 8px 0; }

.product-meta { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,0.8); font-size: 13px; }
.sold { opacity: 0.9; }

.stars { display: inline-flex; gap: 2px; }
.star { color: #7774d6; filter: drop-shadow(0 0 6px rgba(124,117,255,0.35)); }
.star.full { color: #c9c6ff; }

/* ===== Modal overlay and product detail card ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  z-index: 10000;
}

.product-modal {
  width: min(92vw, 420px);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  overflow: hidden;
  transform-origin: 50% 10%;
  will-change: auto;
}
.product-modal .window-header { padding: 8px 12px; }
.product-modal img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display:block; background: rgba(255,255,255,0.04); }
.product-modal .body { padding: 16px; color: rgba(255,255,255,0.9); }
.product-modal .title { color: #fff; font-weight: 400; font-size: 20px; margin: 0 0 8px 0; font-family: 'Ghostburn', 'Melkia Starlight', 'Combo', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; }
.product-modal .desc { color: rgba(255,255,255,0.9); line-height: 1.5; margin: 0 0 16px 0; }
.product-modal .actions { display: flex; gap: 10px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:10px; font-weight:700; cursor:pointer; text-decoration:none; border:none; }
.btn.secondary { background: rgba(255,255,255,0.12); color:#fff; }
.btn.secondary:hover { background: rgba(255,255,255,0.18); }

/* Aurora purple animated button */
.btn-aurora {
  background: linear-gradient(120deg, #7c3aed, #a78bfa, #7c3aed);
  background-size: 200% 200%;
  color: #0b021b;
  box-shadow: 0 10px 26px rgba(124,58,237,0.35), 0 0 18px rgba(167,139,250,0.35) inset;
  animation: auroraBtn 6s ease-in-out infinite;
}
.btn-aurora:hover { transform: translateY(-1px); }

@keyframes auroraBtn {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Modal animations removed: modal appears instantly */

/* ===== Products header with search ===== */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px 0;
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.search img { width: 16px; height: 16px; opacity: 0.85; filter: drop-shadow(0 0 4px rgba(255,255,255,0.25)); }
.search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: min(44vw, 280px);
  font-family: inherit;
  font-size: 14px;
}
.search input::placeholder { color: rgba(255,255,255,0.75); }

/* ===== About page: flip cards ===== */
.window-about {
  position: relative;
}

/* Center the About page header title */
.window-about .window-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.window-about .window-header .traffic-lights { grid-column: 1; }
.window-about .window-header .window-title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.window-about .window-header .window-actions { grid-column: 3; justify-self: end; }

.window-about {
  width: min(100%, 1400px);
  max-height: 90vh;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: start;
}

.flip-card {
  position: relative;
  width: clamp(260px, 28vw, 360px);
  height: clamp(360px, 44vw, 540px);
  perspective: 1200px;
  cursor: pointer;
}

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 680ms cubic-bezier(.2,.7,.2,1);
  /* Use CSS variables so hover doesn't override flipped state */
  transform: translateY(var(--lift, 0)) rotateY(var(--ry, 0deg));
}

.flip-card.flipped .flip-inner { --ry: 180deg; animation: floatyBob 3.2s ease-in-out 300ms infinite; }

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Hover lift and glow */
.flip-card:hover { --lift: -2px; }
.flip-card:hover .flip-face {
  box-shadow: 0 16px 42px rgba(0,0,0,0.55), 0 0 24px rgba(167,139,250,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* Gentle float when flipped */
@keyframes floatyBob {
  0%   { transform: translateY(-2px) rotateY(180deg); }
  50%  { transform: translateY(-10px) rotateY(180deg); }
  100% { transform: translateY(-2px) rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card.flipped .flip-inner { animation: none; }
}

/* Animated edge glow ring on hover */
.flip-card::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: conic-gradient(
    from 0deg,
    #ec8bd0 0deg,
    #b49afc 120deg,
    #8ed3ff 240deg,
    #ec8bd0 360deg
  );
  animation: mpHueShift 4s linear infinite;
  filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 0;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 2px;
}
.flip-card:hover::before { opacity: 1; }

.flip-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,0.04);
}

.flip-face.back {
  transform: rotateY(180deg);
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
}
