/* ================================================================
   SHARED STYLES -- Future Gold, Diamonds & Coins
   One stylesheet for every secondary page (about/gold/diamonds/
   silver/platinum/contact) so the header, nav drawer, chat widget,
   sparkle background, buttons, and dropdowns never drift between
   pages. index.html and collection.html keep their own page-specific
   video/hero styles inline (those are genuinely unique per page) but
   now also pull this file in for the chrome they share with everyone
   else.
   ================================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; min-height: 100%;
  background: #050403;
  color: #f2efe9;
  font-family: 'Cinzel', serif;
  overflow-x: hidden;
}
body { position: relative; }
a { color: inherit; }

#sparkleCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ================= HEADER ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}
.site-header::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 150px;
  background: linear-gradient(180deg, rgba(5,4,3,0.8) 0%, rgba(5,4,3,0.4) 55%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.logo-mark { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-gem { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; object-fit: cover; display: block; filter: drop-shadow(0 0 6px rgba(232, 196, 104, 0.75)); }
.logo-text {
  display: flex; flex-direction: column; line-height: 1.18;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.05em; white-space: nowrap;
  background: linear-gradient(135deg, #fff6d8 0%, #f0cf7a 30%, #b8860b 65%, #f4dd9a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 10px rgba(232, 196, 104, 0.35);
}
.logo-sub {
  font-weight: 400; font-size: 0.42em; letter-spacing: 0.16em; text-transform: uppercase;
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: rgba(243, 228, 184, 0.68); text-shadow: none;
}
.menu-btn {
  position: relative; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(255, 245, 214, 0.35);
  background: rgba(5, 4, 3, 0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.menu-glow {
  position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 104, 0.5) 0%, transparent 70%);
  animation: menuGlowPulse 2.6s ease-in-out infinite;
  z-index: -1; pointer-events: none;
}
.menu-lines { display: flex; flex-direction: column; gap: 4px; pointer-events: none; transition: opacity .2s ease; }
.menu-lines span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #fdeec0, #e8c468, #b8860b);
  box-shadow: 0 0 4px rgba(232, 196, 104, 0.6);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-btn.open .menu-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open .menu-lines span:nth-child(2) { opacity: 0; }
.menu-btn.open .menu-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sparkle-icon {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #fff9e8; box-shadow: 0 0 6px 1.5px rgba(255, 246, 216, 0.95);
  animation: sparkleTwinkle 2.6s ease-in-out infinite; pointer-events: none;
}
.sparkle-icon.s1 { top: -3px; right: 2px; animation-delay: 0s; }
.sparkle-icon.s2 { bottom: 0px; left: -5px; animation-delay: 0.9s; }
.sparkle-icon.s3 { top: 14px; right: -6px; animation-delay: 1.7s; }
@keyframes menuGlowPulse { 0%,100% { opacity:.45; transform:scale(.88);} 50% { opacity:1; transform:scale(1.18);} }
@keyframes sparkleTwinkle { 0%,100% { opacity:0; transform:scale(.3) rotate(0deg);} 50% { opacity:1; transform:scale(1) rotate(90deg);} }
@media (min-width: 900px) {
  .site-header { padding: 24px 40px; }
  .logo-gem { width: 34px; height: 34px; }
  .logo-text { font-size: 1.1rem; }
  .menu-btn { width: 46px; height: 46px; }
}

/* ================= NAV DRAWER ================= */
.nav-drawer {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,4,3,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(232,196,104,.08), transparent 70%);
  pointer-events: none;
}
.nav-drawer ul { list-style: none; text-align: center; position: relative; z-index: 1; }
.nav-drawer li { margin: 16px 0; opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.nav-drawer.open li { opacity: 1; transform: translateY(0); }
.nav-drawer.open li:nth-child(1) { transition-delay: .05s; }
.nav-drawer.open li:nth-child(2) { transition-delay: .1s; }
.nav-drawer.open li:nth-child(3) { transition-delay: .15s; }
.nav-drawer.open li:nth-child(4) { transition-delay: .2s; }
.nav-drawer.open li:nth-child(5) { transition-delay: .25s; }
.nav-drawer.open li:nth-child(6) { transition-delay: .3s; }
.nav-drawer.open li:nth-child(7) { transition-delay: .35s; }
.nav-drawer a {
  display: inline-block;
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 600; letter-spacing: .03em;
  color: #e9dcb5;
  text-decoration: none;
  transition: color .25s ease;
  position: relative;
}
.nav-drawer a:hover, .nav-drawer a.active {
  background: linear-gradient(135deg, #fff6d8 0%, #f0cf7a 30%, #b8860b 65%, #f4dd9a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-close {
  position: absolute; top: 22px; right: 20px;
  top: calc(22px + env(safe-area-inset-top, 0px));
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(255,245,214,.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}

/* ================= REVEAL (scroll entrance) ================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.19,1,.22,1), transform .9s cubic-bezier(.19,1,.22,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .9s cubic-bezier(.19,1,.22,1), transform .9s cubic-bezier(.19,1,.22,1); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .9s cubic-bezier(.19,1,.22,1), transform .9s cubic-bezier(.19,1,.22,1); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.85); transition: opacity .9s cubic-bezier(.19,1,.22,1), transform .9s cubic-bezier(.19,1,.22,1); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* ================= PAGE HERO (secondary pages) ================= */
.page-hero { position: relative; z-index: 1; text-align: center; padding: 130px 6vw 20px; }
.page-eyebrow {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: #e8c468; opacity: 0;
  animation: introUp 1s cubic-bezier(.19,1,.22,1) .15s forwards;
}
.page-title {
  margin-top: 10px;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 600; letter-spacing: .04em;
  background: linear-gradient(135deg, #fff6d8 0%, #f0cf7a 25%, #c9972e 50%, #f4dd9a 75%, #b8860b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(232,196,104,.5);
  opacity: 0;
  animation: introUp 1.1s cubic-bezier(.19,1,.22,1) .3s forwards;
}
.page-sub {
  margin: 12px auto 0; max-width: 520px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: .88rem; color: rgba(242,239,233,.65); line-height: 1.6;
  opacity: 0;
  animation: introUp 1.1s cubic-bezier(.19,1,.22,1) .5s forwards;
}
@keyframes introUp { 0% { opacity:0; transform:translateY(18px); } 100% { opacity:1; transform:translateY(0); } }

/* ================= GOLD BUTTON ================= */
.gold-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: auto; text-decoration: none; cursor: pointer;
  font-family: 'Cinzel', serif; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: #1c1405;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(155deg, #fdeec0 0%, #e8c468 22%, #b8860b 48%, #f4dd9a 68%, #dba635 85%, #fff3cf 100%);
  background-size: 220% 220%;
  box-shadow: 0 0 18px 2px rgba(232,196,104,.55), 0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  animation: btnFloat 4.5s ease-in-out infinite, btnSheenPos 6s ease-in-out infinite;
}
.gold-btn::after {
  content: "";
  position: absolute; top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.75) 50%, transparent 100%);
  transform: rotate(20deg);
  animation: btnShine 3.6s ease-in-out infinite;
}
@keyframes btnFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes btnSheenPos { 0%,100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
@keyframes btnShine { 0% { left: -60%; } 45% { left: 130%; } 100% { left: 130%; } }

/* ================= DROPDOWN / ACCORDION (theme-matched) ================= */
.drop { background: #0a0806; border: 1px solid rgba(232,196,104,.25); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.drop-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: #f3e4b8;
}
.drop-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.drop-plus::before, .drop-plus::after {
  content: ""; position: absolute; background: #e8c468; border-radius: 2px;
  transition: transform .3s ease;
}
.drop-plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.drop-plus::after { top: 0; left: 7px; width: 2px; height: 16px; }
.drop.open .drop-plus::after { transform: rotate(90deg); }
.drop-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.drop-a-inner { padding: 0 18px 18px; font-size: .84rem; line-height: 1.65; color: rgba(242,239,233,.72); font-family: 'Segoe UI', system-ui, sans-serif; }

/* ================= FOOTER ================= */
.site-footer { position: relative; z-index: 1; padding: 40px 6vw 110px; text-align: center; }
.site-footer .footer-rule { width: 70px; height: 1px; margin: 0 auto 20px; background: linear-gradient(90deg, transparent, #e8c468, transparent); }
.site-footer p { font-size: .76rem; color: rgba(242,239,233,.45); font-family: 'Segoe UI', system-ui, sans-serif; }

/* ================= LIVE SUPPORT WIDGET (every page) ================= */
.chat-widget {
  position: fixed;
  right: clamp(14px, 4vw, 32px);
  bottom: clamp(14px, 4vw, 32px);
  z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
@media (max-width: 899px) {
  .chat-widget { right: 4px; bottom: 4px; gap: 3px; }
}
.chat-ring {
  width: clamp(58px, 15vw, 88px); height: clamp(58px, 15vw, 88px);
  border-radius: 50%; overflow: hidden;
  border: 3px solid #e8c468;
  box-shadow: 0 0 20px 3px rgba(232,196,104,.55), 0 8px 22px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,246,216,.4);
  animation: chatRingFloat 3.6s ease-in-out infinite;
  background: #050403;
}
.chat-ring video { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-label {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: clamp(.42rem, 2vw, .6rem); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(5,4,3,.6); border: 1px solid rgba(255,245,214,.35); border-radius: 999px;
  padding: 4px 11px; color: #f3e4b8; text-shadow: 0 0 8px rgba(232,196,104,.55);
  white-space: nowrap; text-align: center;
}
@keyframes chatRingFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ================= LIVE SUPPORT CHAT PANEL (Anthropic-backed) ================= */
.chat-panel {
  position: fixed; right: clamp(14px, 4vw, 32px);
  bottom: calc(clamp(58px, 15vw, 88px) + clamp(14px, 4vw, 32px) + 16px);
  z-index: 45;
  width: min(320px, calc(100vw - 32px));
  height: min(440px, calc(100vh - 170px));
  background: #0a0806; border: 1px solid rgba(232,196,104,.3); border-radius: 18px 18px 6px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 30px -6px rgba(232,196,104,.3);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(232,196,104,.2); flex-shrink: 0; }
.chat-panel-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(232,196,104,.5); }
.chat-panel-avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-panel-head-text { flex: 1; min-width: 0; }
.chat-panel-head-text .name { font-size: .85rem; font-weight: 600; color: #f3e4b8; }
.chat-panel-head-text .status { font-size: .66rem; color: #8fe3a8; display: flex; align-items: center; gap: 5px; margin-top: 1px; font-family: 'Segoe UI', system-ui, sans-serif; }
.chat-panel-head-text .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fe3a8; display: inline-block; flex-shrink: 0; }
.chat-panel-close { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(232,196,104,.25); flex-shrink: 0; transition: border-color .2s ease; }
.chat-panel-close:hover { border-color: rgba(232,196,104,.55); }
.chat-panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; font-size: .82rem; line-height: 1.5; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; font-family: 'Segoe UI', system-ui, sans-serif; }
.chat-msg.bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(232,196,104,.2); border-bottom-left-radius: 4px; color: #f2efe9; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, #fdeec0, #e8c468 45%, #b8860b); border-bottom-right-radius: 4px; color: #1c1405; font-weight: 600; }
.chat-msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: rgba(242,239,233,.5); animation: chatTyping 1.2s ease-in-out infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-panel-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(232,196,104,.2); flex-shrink: 0; }
.chat-panel-input-row input {
  flex: 1; padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03); color: #f2efe9; font-size: .82rem; font-family: 'Segoe UI', system-ui, sans-serif;
}
.chat-panel-input-row input:focus { outline: none; border-color: rgba(232,196,104,.5); }
.chat-panel-input-row input:disabled { opacity: .6; }
.chat-panel-send {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; border: none; cursor: pointer;
  background: linear-gradient(135deg, #fdeec0, #e8c468 45%, #b8860b); display: flex; align-items: center; justify-content: center;
  transition: opacity .2s ease;
}
.chat-panel-send:disabled { opacity: .5; cursor: default; }
.chat-panel-send svg { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .chat-panel { width: calc(100vw - 16px); right: 8px; }
}
