/* ===========================
   ???? ??????? ? Premium CSS
   =========================== */
:root {
  --bg: #0e0916;
  --p1: #c9b4f0; /* lavender */
  --p2: #f0b4d4; /* rose */
  --p3: #b4d4f0; /* sky */
  --p4: #b4f0d4; /* mint */
  --p5: #f0d4b4; /* peach */
  --glass: rgba(255,255,255,0.05);
  --glass-b: rgba(255,255,255,0.1);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.45);
  --ease: cubic-bezier(0.16,1,0.3,1);
}
.theme-gold { --p1:#e8c84a; --p2:#f0d97a; --p3:#c8a820; --bg:#0e0b00; }
.theme-rose  { --p1:#f0a0c0; --p2:#f0c0d0; --p3:#d06080; --bg:#12050a; }
.theme-ocean { --p1:#80b4f0; --p2:#a0d0f0; --p3:#4080c0; --bg:#00080e; }
.theme-forest{ --p1:#80f0b0; --p2:#a0e8c0; --p3:#40a060; --bg:#000e05; }

*{margin:0;padding:0;box-sizing:border-box;-webkit-font-smoothing:antialiased}
html,body{width:100%;height:100%;overflow:hidden;font-family:'Inter',sans-serif;color:var(--text);background:var(--bg)}
body {
  background: radial-gradient(ellipse at 20% 50%, rgba(201,180,240,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(240,180,212,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(180,212,240,0.06) 0%, transparent 60%),
              var(--bg);
  transition: background 1.5s var(--ease);
}
body.theme-onboard {
  --bg: #044669; /* Petrol Theme */
  --p1: #64b5f6;
  --p2: #81c784;
  --p3: #4fc3f7;
}

/* ?? WAVE BACKGROUND ?? */
.wave-bg {
  position:fixed;inset:0;z-index:0;overflow:hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,180,240,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(240,180,212,0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(180,212,240,0.10) 0%, transparent 60%),
              var(--bg);
}
.wave-svg { position:absolute;bottom:0;left:0;width:100%;height:auto;overflow:visible }
.wave-layer { animation: waveDrift linear infinite; transform-origin: center bottom }
.w1 { animation-duration:18s; opacity:.25 }
.w2 { animation-duration:24s; animation-direction:reverse; opacity:.18 }
.w3 { animation-duration:30s; opacity:.12 }
@keyframes waveDrift {
  0%   { transform:translateX(0) }
  100% { transform:translateX(-50%) }
}
/* Floating color blobs */
.blob {
  position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none;
  animation: blobFloat ease-in-out infinite alternate;
}
.blob-1 { width:500px;height:500px;top:-100px;left:-150px;background:rgba(201,180,240,0.12);animation-duration:12s }
.blob-2 { width:400px;height:400px;top:30%;right:-100px;background:rgba(240,180,212,0.10);animation-duration:15s;animation-delay:3s }
.blob-3 { width:350px;height:350px;bottom:-50px;left:30%;background:rgba(180,212,240,0.10);animation-duration:10s;animation-delay:6s }
@keyframes blobFloat { from{transform:translateY(0) scale(1)}to{transform:translateY(-40px) scale(1.08)} }

/* ?? GRAIN OVERLAY ?? */
.grain {
  position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ?? APP LAYER ?? */
#app { position:fixed;inset:0;z-index:10 }

/* ?? SCREENS ?? */
.screen {
  position:absolute;inset:0;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:2rem;
  opacity:0;visibility:hidden;
  transition:opacity 0.6s var(--ease),visibility 0.6s; /* Faster transitions */
  overflow: hidden;
  width: 100%;
}
.screen.active { opacity:1;visibility:visible }
/* Mobile: lift screens above the fixed legal footer */
@media (max-width: 600px) {
  .screen {
    bottom: 40px !important;  /* screen ends above the compact legal footer */
    overflow-y: auto !important;
  }
}

/* ?? SPLASH ?? */
#s-splash {
  position: relative;
  padding: 0;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  gap: 0;
}
#splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 150px; /* Moved up to 150px from top as requested */
  gap: 1.2rem;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.splash-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal; /* Removed italics */
  font-weight: 300;
  font-size: clamp(0.85rem, 1.4vw, 1rem); /* Increased size */
  color: rgba(201, 180, 240, 0.45);
  letter-spacing: 0.05em;
  line-height: 1.6;
  max-width: 600px;
  text-transform: none;
  animation: fadeUp 2.5s 0.4s var(--ease) both;
  margin-bottom: 0.5rem;
}
.splash-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 13vw, 7rem);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(160deg, 
    #fff 0%, 
    var(--p1) 40%, 
    var(--p2) 75%, 
    var(--p3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(200, 175, 255, 0.3));
  animation: fadeUp 1.8s 0.2s var(--ease) both;
  margin: 0.8rem 0;
}
.splash-sub {
  position: fixed;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 20;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(201, 180, 240, 0.25);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  animation: fadeUp 3s 1.5s var(--ease) both;
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ?? LUXURY MINIMAL BUTTON ?? */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 3.6rem;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(201, 180, 240, 0.15), rgba(150, 100, 200, 0.05));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: normal;
  letter-spacing: 0.12em;
  transition: all 0.5s var(--ease);
  animation: fadeUp 2.5s 1.2s var(--ease) both, glowPulse 3s infinite alternate;
  margin: 40px auto 0 auto;
  box-shadow: 
    0 0 25px rgba(201, 180, 240, 0.3),
    0 15px 35px rgba(0, 0, 0, 0.4), 
    inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(201, 180, 240, 0.2), 0 15px 35px rgba(0,0,0,0.4), inset 0 2px 10px rgba(255,255,255,0.1); }
  100% { box-shadow: 0 0 35px rgba(201, 180, 240, 0.6), 0 15px 35px rgba(0,0,0,0.4), inset 0 2px 10px rgba(255,255,255,0.1); }
}

.btn-glass:hover {
  background: linear-gradient(135deg, rgba(201, 180, 240, 0.25), rgba(150, 100, 200, 0.1));
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  letter-spacing: 0.15em;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 
    0 0 50px rgba(201, 180, 240, 0.8),
    0 20px 45px rgba(201, 180, 240, 0.3),
    inset 0 2px 15px rgba(255, 255, 255, 0.2);
}

.btn-glass:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.btn-glass-icon {
  font-size: 0.85rem;
  transition: transform 0.4s var(--ease);
  opacity: 0.5;
}

.btn-glass:hover .btn-glass-icon {
  transform: translateX(4px);
  opacity: 1;
}

/* ?? CONSENT CHECKBOX ?? */
.consent-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  max-width: 450px;
  margin: 10px auto 0;
  line-height: 1.5;
  transition: 0.3s;
}
.consent-wrap:hover { opacity: 1; color: var(--text); }
.consent-wrap input {
  appearance: none;
  width: 22px; height: 22px;
  border: 1px solid var(--p1);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.consent-wrap input:checked {
  background: var(--p1);
  box-shadow: 0 0 15px var(--p1);
  border-color: var(--p1);
}
.consent-wrap input:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}
.consent-link { color: var(--p1); text-decoration: underline; text-underline-offset: 3px; }

/* ?? ONBOARDING ?? */
#s-onboard { gap:2rem;padding:3rem 5vw 3rem;overflow-y:auto;justify-content:flex-start;align-items:center;bottom:36px !important }
.onb-step  { width:100%;max-width:900px;display:flex;flex-direction:column;align-items:center;gap:2rem }
.onb-q {
  font-family:'Cormorant Garamond',serif;font-weight:300;
  font-size:clamp(1.8rem,4vw,3rem);letter-spacing:.04em;text-align:center;
  background:linear-gradient(135deg,var(--p1),var(--p2));
  background-size:200%;
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  animation:gradFlow 6s ease infinite;
}
.onb-hint { font-size:0.85rem;letter-spacing:0.05em;color:var(--muted);line-height:1.6; }
.onb-progress { display:flex;gap:.5rem }
.prog-dot {
  width:6px;height:6px;border-radius:50%;
  background:var(--glass-b);transition:.4s;
}
.prog-dot.done { background:var(--p1);box-shadow:0 0 8px var(--p1) }

/* Persona Cards Grid */
.persona-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:1.2rem;width:100%;
}
.p-card {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1.2rem;padding:3.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.08); border-top:1px solid rgba(255,255,255,0.15);
  border-radius:24px;
  cursor:pointer;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  transition:all .6s var(--ease);text-align:center;
  position:relative; overflow:hidden;
}
.p-card::before {
  content:''; position:absolute; inset:0; z-index:-1;
  background: radial-gradient(circle at top, var(--card-accent, rgba(201,180,240,0.15)), transparent 70%);
  opacity: 0.4; transition: 0.6s var(--ease);
}
.p-card:hover {
  transform:translateY(-15px) scale(1.02);
  border-color:var(--card-accent, var(--p1));
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 45px var(--card-glow, rgba(201,180,240,0.4));
}
.p-card:hover::before { opacity: 0.8; }
.p-card .icon { font-size:2rem }
.p-card .name {
  font-family:'Cormorant Garamond',serif;font-size:1.1rem;
  font-weight:400;letter-spacing:.04em;color:var(--text);
}
.p-card .tagline { font-size:.68rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted) }
.p-card.selected { border-color:var(--card-accent, var(--p1));background:rgba(201,180,240,.08) }

/* Mysterious Guest Neon Effects */
.p-card.guest-matched {
  border-color: #00f3ff !important;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(0, 243, 255, 0.2) !important;
  animation: guestNeonShimmer 3s infinite alternate !important;
}
@keyframes guestNeonShimmer {
  from { border-color: #00f3ff; box-shadow: 0 0 20px rgba(0,243,255,0.4); }
  to { border-color: #ff00ff; box-shadow: 0 0 30px rgba(255,0,255,0.5); }
}

.notification-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 22px;
  height: 22px;
  background: #ff4d4d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
  animation: badgePulse 1s infinite;
  z-index: 5;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Help Icon Styling */
.help-container {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}
.help-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  background: var(--glass);
}
.help-icon:hover {
  color: var(--p1);
  border-color: var(--p1);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(201, 180, 240, 0.2);
}
.help-icon::after {
  content: "??????";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--glass-b);
  padding: 0.3rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  white-space: nowrap;
  pointer-events: none;
}
.help-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

#info-content p { margin-bottom: 1rem; }

/* Form inputs */
.onb-form { width:100%;max-width:480px;display:flex;flex-direction:column;gap:1.2rem }
.field-group { display:flex;flex-direction:column;gap:.4rem }
.field-label { font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted) }
.field-input,.field-select {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(201, 180, 240, 0.2);
  border-radius: 0;
  color: var(--text);
  padding: 1rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.4s var(--ease);
}
.field-input:focus,.field-select:focus { 
  border-color: var(--p1); 
  background: linear-gradient(to top, rgba(201, 180, 240, 0.05), transparent);
  box-shadow: 0 10px 20px -10px rgba(201, 180, 240, 0.3); 
}
.field-select option { background:#1a1025;color:#fff }
.field-input::placeholder { color:var(--muted) }

.toggle-row { display:flex;align-items:center;justify-content:space-between;gap:1rem }
.toggle { position:relative;width:48px;height:26px;flex-shrink:0 }
.toggle input { opacity:0;width:0;height:0 }
.t-slider {
  position:absolute;inset:0;background:rgba(255,255,255,.1);
  border-radius:13px;cursor:pointer;transition:.3s;border:1px solid var(--glass-b);
}
.toggle input:checked + .t-slider { background:linear-gradient(90deg,var(--p1),var(--p2));border-color:transparent }
.t-slider::before {
  content:'';position:absolute;
  width:18px;height:18px;left:3px;bottom:3px;
  background:#fff;border-radius:50%;transition:.3s;box-shadow:0 1px 4px rgba(0,0,0,.3);
}
.toggle input:checked + .t-slider::before { transform:translateX(22px) }

.btn-next {
  padding:1rem 3rem;
  background:linear-gradient(135deg,rgba(201,180,240,.15),rgba(240,180,212,.15));
  border:1px solid var(--p1);color:var(--text);
  font-family:'Inter',sans-serif;font-size:1rem;font-weight:500;
  letter-spacing:.1em;cursor:pointer;transition:all .4s cubic-bezier(0.16,1,0.3,1);
  border-radius: 12px;
}
.btn-next:hover { 
  box-shadow:0 0 25px rgba(201,180,240,.3);
  transform:translateY(-2px);
  background:linear-gradient(135deg,rgba(201,180,240,.25),rgba(240,180,212,.2));
}
.btn-next.btn-secondary:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.btn-back {
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border-radius: 12px;
}
.btn-back:hover {
  border-color: var(--p1);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

/* ?? CHAT SCREEN ?? */
#s-chat { padding:0;justify-content:flex-start !important;align-items:stretch !important }

.chat-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem 3rem;
  border-bottom:1px solid var(--glass-b);
  backdrop-filter:blur(30px);flex-shrink:0;
}
.soul-info { display:flex;align-items:center;gap:1rem }
.soul-orb {
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  background:conic-gradient(var(--p1),var(--p2),var(--p3),var(--p1));
  animation:spin 5s linear infinite;
  display:flex;align-items:center;justify-content:center;position:relative;
}
@keyframes spin{to{transform:rotate(360deg)}}
.soul-orb::after {
  content:'';position:absolute;inset:3px;border-radius:50%;
  background:var(--bg);
}
.soul-core {
  position:absolute;inset:7px;border-radius:50%;z-index:2;
  background:radial-gradient(circle,white,rgba(220,200,255,.6));
  animation:corePulse 2.5s ease-in-out infinite;
}
@keyframes corePulse{0%,100%{opacity:.7;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}
.soul-name {
  font-family:'Cormorant Garamond',serif;
  font-size:1.25rem;font-weight:300;letter-spacing:.08em;
}
.soul-tag { font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--p1);opacity:.8 }
.hdr-btns { display:flex;gap:.6rem }
.icon-btn {
  width:38px;height:38px;border-radius:50%;
  background:var(--glass);border:1px solid var(--glass-b);
  color:var(--muted);cursor:pointer;font-size:.95rem;
  display:flex;align-items:center;justify-content:center;
  transition:all .3s;
}
.icon-btn:hover { background:rgba(255,255,255,.1);border-color:var(--p1);color:var(--text) }
.hdr-token-wrap { display:flex;align-items:center;margin-right:auto;margin-left:1.5rem }
.token-balance {
  padding:.4rem .8rem;background:rgba(255,255,255,.05);
  border:1px solid var(--glass-b);border-radius:20px;
  font-size:.7rem;letter-spacing:.1em;color:var(--p1);
  box-shadow:0 0 15px rgba(201,180,240,.1);
  font-family:'Inter',sans-serif;font-weight:600;
  transition:all .5s var(--ease);
}
.token-balance.low { color:#f0a0a0;border-color:rgba(240,160,160,.3);box-shadow:0 0 15px rgba(240,160,160,.2) }

.chat-log {
  flex:1;overflow-y:auto;
  padding:2rem 20px;
  width: 100%; max-width: 800px; margin: 0 auto;
  display:flex;flex-direction:column;gap:1.5rem;
  scroll-behavior:smooth;
  mask-image:linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}
.chat-log::-webkit-scrollbar{width:4px}
.chat-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.1); border-radius: 4px;}
.chat-log::-webkit-scrollbar-track{background:transparent}

.msg { max-width:65%;animation:msgSlide .8s var(--ease) both }
@keyframes msgSlide{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.msg.assistant {
  align-self:flex-start;
  font-family:'Cormorant Garamond',serif;font-style:italic;
  font-size:1.25rem;font-weight:300;line-height:1.9;color:var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--p1);
  padding: 1rem 1.5rem; border-radius: 16px; border-top-left-radius: 4px;
  backdrop-filter: blur(10px); box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.msg.user {
  align-self:flex-end;
  background: linear-gradient(135deg, rgba(201,180,240,0.15), rgba(150,100,200,0.05));
  border: 1px solid rgba(201,180,240,0.3); border-right: 3px solid var(--p1);
  padding: 1rem 1.5rem; font-size: 0.95rem; color: #fff;
  border-radius: 16px; border-top-right-radius: 4px;
  box-shadow: 0 5px 15px rgba(201,180,240,0.1);
}
.msg.guest {
  align-self:flex-start;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,230,255,0.85));
  border: 1px solid rgba(201,180,240,0.3); border-left: 3px solid var(--p1);
  padding: 1rem 1.5rem; font-size: 0.95rem; color: #1a082e;
  border-radius: 16px; border-top-left-radius: 4px;
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

/* ?? GUEST ONLINE INDICATOR ?? */
#guest-online-indicator {
  line-height: 1;
  transition: opacity 0.3s;
}

/* ?? GUEST PHOTO IN CHAT ?? */
.msg img {
  max-width: 220px;
  max-height: 280px;
  border-radius: 12px;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.msg img:hover { opacity: 0.88; }

/* Like button on assistant messages */
.msg.assistant {
  position: relative;
}
.msg-like-btn {
  position: absolute;
  bottom: -12px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 10, 35, 0.85);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
  z-index: 2;
}
.msg-like-btn:hover {
  border-color: rgba(255, 210, 60, 0.6);
  color: rgba(255, 210, 60, 0.8);
  transform: scale(1.15);
}
.msg-like-btn.liked {
  border-color: rgba(255, 210, 60, 0.9);
  color: #ffd23c;
  background: rgba(255, 210, 60, 0.12);
}
.msg-like-btn .like-icon {
  width: 16px;
  height: 16px;
}
.msg-like-btn.liked .like-icon path {
  fill: rgba(255, 210, 60, 0.25);
  stroke: #ffd23c;
}

/* ?? QUOTE BOOK MODAL ?? */
.qb-overlay {
  align-items: flex-end;
}
@media (min-width: 600px) {
  .qb-overlay { align-items: center; }
}
.qb-modal {
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  background: linear-gradient(160deg, rgba(14,8,26,0.99) 0%, rgba(20,10,35,0.99) 100%);
  border: 1px solid rgba(201,180,240,0.15);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
@media (max-width: 599px) {
  .qb-modal { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 92vh; }
}
.qb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.qb-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.qb-icon {
  font-size: 1.4rem;
  color: var(--p1);
  opacity: 0.85;
}
.qb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.2;
}
.qb-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,180,240,0.45);
  margin-top: 0.15rem;
}
.qb-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.qb-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: scale(1.1);
}
.qb-sort-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem 0.5rem;
  flex-shrink: 0;
}
.qb-sort-btn {
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}
.qb-sort-btn.active, .qb-sort-btn:hover {
  background: rgba(201,180,240,0.12);
  border-color: rgba(201,180,240,0.4);
  color: var(--p1);
}
.qb-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,180,240,0.2) transparent;
}
.qb-body::-webkit-scrollbar { width: 4px; }
.qb-body::-webkit-scrollbar-thumb { background: rgba(201,180,240,0.2); border-radius: 4px; }

.qb-loading, .qb-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.25);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 2;
}
.qb-empty span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  font-style: normal;
}

/* Quote card */
.qb-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 1.4rem 1.6rem 1rem;
  transition: border-color 0.25s, background 0.25s;
}
.qb-card:hover {
  background: rgba(201,180,240,0.04);
  border-color: rgba(201,180,240,0.18);
}
.qb-card-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(201,180,240,0.18);
  margin-bottom: -0.5rem;
  user-select: none;
}
.qb-card-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1rem;
}
.qb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.qb-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.qb-card-author {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--p1);
  opacity: 0.7;
  text-transform: uppercase;
}
.qb-card-date {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}
.qb-card-action, .qb-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qb-publish-btn {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(201,180,240,0.3);
  background: transparent;
  color: rgba(201,180,240,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}
.qb-publish-btn:hover {
  background: rgba(201,180,240,0.1);
  border-color: var(--p1);
  color: var(--p1);
}
.qb-published {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,180,240,0.5);
}
.qb-like-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 0.75rem;
  transition: 0.2s;
}
.qb-like-btn:hover { border-color: rgba(255,210,60,0.4); color: rgba(255,210,60,0.7); }
.qb-like-btn.liked { border-color: rgba(255,210,60,0.6); color: #ffd23c; background: rgba(255,210,60,0.08); }
.qb-share-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.qb-share-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }

/* Week winner banner */
.qb-week-winner {
  background: linear-gradient(135deg, rgba(255,200,50,0.08), rgba(201,180,240,0.06));
  border: 1px solid rgba(255,200,50,0.2);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.qb-winner-crown { font-size: 2rem; margin-bottom: 0.4rem; }
.qb-winner-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,200,50,0.6);
  margin-bottom: 0.8rem;
}
.qb-winner-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.qb-winner-meta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}
.qb-winner-reward {
  font-size: 0.72rem;
  color: rgba(255,200,50,0.55);
  letter-spacing: 0.08em;
}

/* ?? SHARE AGREEMENT MODAL ?? */
.share-modal {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, rgba(14,8,26,0.99), rgba(20,10,35,0.99));
  border: 1px solid rgba(201,180,240,0.13);
  border-radius: 28px;
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.share-modal-glyph {
  font-size: 2rem;
  color: var(--p1);
  opacity: 0.55;
  margin-bottom: 1rem;
  display: block;
}
.share-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.8rem;
}
.share-modal-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-bottom: 1.8rem;
  padding: 0 0.5rem;
}
.share-consent-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  text-align: left;
  margin-bottom: 1.6rem;
  transition: border-color 0.2s, background 0.2s;
}
.share-consent-row:hover {
  border-color: rgba(201,180,240,0.25);
  background: rgba(201,180,240,0.04);
}
.share-consent-box {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.share-consent-box input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.share-consent-check-icon {
  font-size: 0.75rem;
  color: var(--p1);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.share-consent-box.checked {
  border-color: rgba(201,180,240,0.7);
  background: rgba(201,180,240,0.1);
}
.share-consent-box.checked .share-consent-check-icon {
  opacity: 1;
}
.share-consent-text {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.share-modal-actions {
  display: flex;
  gap: 0.75rem;
}
.share-btn-cancel {
  flex: 1;
  padding: 0.85rem;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 0.2s;
}
.share-btn-cancel:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
.share-btn-confirm {
  flex: 1.4;
  padding: 0.85rem;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, rgba(201,180,240,0.85), rgba(150,100,220,0.7));
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.share-btn-confirm:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.share-btn-confirm:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.chat-footer {
  padding: 1.5rem 20px 2rem;
  margin-bottom: 70px !important; /* SIGNIFICANT LIFT */
  width: 100%; max-width: 800px; margin-left: auto; margin-right: auto;
  border-top: 1px solid var(--glass-b);
  backdrop-filter: blur(20px); flex-shrink: 0;
  display: flex; align-items: flex-end; gap: 1rem;
  background: transparent;
}
@media (max-width: 600px) {
  .chat-footer {
    margin-bottom: 90px !important;
  }
}

/* ?? SIDEBAR CONTROLS (Support, Gifts) ?? */
.footer-controls {
  position: fixed !important;
  left: 1.5rem !important;
  bottom: 180px !important; /* SIGNIFICANT LIFT */
  display: none; /* Hidden by default ? shown only on chat screen via JS */
  flex-direction: column !important;
  align-items: center;
  gap: 1.2rem;
  z-index: 1000;
  width: auto;
  pointer-events: none; 
}
.footer-controls.visible {
  display: flex !important;
}
/* On mobile: move icons to right side to avoid overlapping centered content */
@media (max-width: 600px) {
  .footer-controls {
    left: auto !important;
    right: 1rem !important;
    bottom: 140px !important;
  }
}
.footer-controls > * { pointer-events: auto; }
.support-btn, .gift-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-b);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.4s var(--ease); color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.support-btn:hover, .gift-btn:hover { 
  background: rgba(255,255,255,0.12); 
  transform: translateX(5px); 
  border-color: var(--p1);
  box-shadow: 0 0 20px rgba(201,180,240,0.3);
}

.age-badge-footer {
  font-size: 0.6rem; padding: 2px 5px;
  background: rgba(255,70,70,0.1); color: #ff6b6b;
  border: 1px solid rgba(255,70,70,0.2); border-radius: 4px;
  font-weight: 800; letter-spacing: 0.05em; margin-right: 8px;
  vertical-align: middle;
}
.btn-rules-link {
  font-size: 0.75rem; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: all 0.3s;
}
.btn-rules-link:hover { color: var(--p1); }

.skills-section { margin-top:1.5rem;border-top:1px solid var(--glass-b);padding-top:1.5rem }
.skills-title { font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--p1);margin-bottom:1.5rem;opacity:.8 }
.skill-item { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.2rem;padding-bottom:1.2rem;border-bottom:1px solid rgba(255,255,255,0.03) }
.skill-item:last-child { border-bottom:none }
.skill-name-row { display:flex;align-items:center;gap:.6rem;margin-bottom:.3rem }
.skill-name { font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-style:italic;letter-spacing:.02em }
.skill-help-icon {
  width:16px;height:16px;border-radius:50%;
  border:1px solid var(--glass-b);color:var(--muted);
  font-size:.65rem;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .3s;
}
.skill-help-icon:hover { border-color:var(--p1);color:var(--p1);box-shadow:0 0 10px rgba(201,180,240,0.3) }

.skill-status {
  display:flex;align-items:center;padding:.4rem .9rem;
  border-radius:1px;background:rgba(255,255,255,.03);border:1px solid var(--glass-b);
  cursor:pointer;transition:all .3s var(--ease);
}
.skill-status:hover { background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.2) }

/* Special override for hover-based help modal */
#skill-help-modal { backdrop-filter: none; background: rgba(0,0,0,0.2); }
#skill-help-modal .modal { box-shadow: 0 10px 40px rgba(0,0,0,0.5); pointer-events: auto; }
.skill-status.active { cursor:default }
.skill-status.active:hover { background:rgba(255,255,255,.03);border-color:var(--glass-b) }

.skill-dot { width:6px;height:6px;border-radius:50%;margin-right:10px;box-shadow:0 0 10px currentColor }
.dot-red { background:#ff4d4d;color:#ff4d4d }
.dot-green { background:#00ff00;color:#00ff00 }
.skill-label { font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;font-weight:600;opacity:.8 }

.glyph-zone { display:flex;flex-direction:column;gap:1.5rem }
.glyph-input {
  background:transparent;border:none;border-bottom:1px solid var(--glass-b);
  padding:.8rem 0;color:var(--text);font-family:'Inter',sans-serif;letter-spacing:.2em;
  text-align:center;font-size:1.1rem;transition:.3s;
}
.glyph-input:focus { border-color:var(--p1);outline:none }
.btn-activate {
  padding:1rem;background:linear-gradient(135deg,rgba(201,180,240,.2),rgba(240,180,212,.2));
  border:1px solid var(--p1);color:var(--text);font-family:'Inter',sans-serif;
  font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;cursor:pointer;
  transition:all .4s var(--ease);
}
.btn-activate:hover { box-shadow:0 0 30px rgba(201,180,240,.3);transform:scale(1.02) }
.glyph-msg { font-size:.8rem;text-align:center;min-height:1.2em;color:var(--p1);font-style:italic }

.msg-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 180, 240, 0.2);
  border-radius: 20px;
  color: var(--text);
  padding: 0.6rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  resize: none;
  overflow-y: hidden;
  min-height: 42px;
  max-height: 130px;
  line-height: 1.4;
  display: block;
  box-sizing: border-box;
}
.msg-input.scrollable { overflow-y: auto; }
.msg-input::-webkit-scrollbar { width: 3px; }
.msg-input::-webkit-scrollbar-thumb { background: rgba(201,180,240,0.3); border-radius: 3px; }
.msg-input::placeholder { color: rgba(255, 255, 255, 0.4); text-transform: none; letter-spacing: 0; }
.msg-input:focus {
  border-color: var(--p1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(201, 180, 240, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.2);
}
.send-btn {
  width:42px;height:42px;border-radius:50%;border:none;
  background:linear-gradient(135deg,var(--p1),var(--p2));
  color:#fff;font-size:.9rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .3s;flex-shrink:0;
}
.send-btn:hover{transform:scale(1.1);box-shadow:0 0 20px rgba(201,180,240,.4)}
.send-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}

.voice-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-b);
  background: var(--glass); color: var(--muted); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
  flex-shrink: 0;
}
.voice-btn:hover { background: rgba(255,255,255,.1); border-color: var(--p1); color: var(--text); }
.voice-btn.recording {
  background: rgba(240, 100, 100, 0.2); border-color: #ff4d4d; color: #ff4d4d;
  animation: voicePulse 1.5s infinite;
}
@keyframes voicePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* ?? MODALS ?? */
.modal-overlay {
  position:fixed;inset:0;z-index:5000;
  background:rgba(10,5,20,.8);backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;
  transition:opacity .4s,visibility .4s;
}
.modal-overlay.open { opacity:1;visibility:visible }
#saim-warning-overlay { z-index: 7000; }
.modal {
  background:rgba(18,10,30,.97);
  border:1px solid var(--glass-b);
  padding:2.5rem;width:90%;max-width:520px;
  max-height:88vh;overflow-y:auto;
  position:relative;
  animation:modalIn .5s var(--ease) both;
}
.modal-overlay:not(.open) .modal { animation:none }
@keyframes modalIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
.modal-head {
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:2rem;
}
.modal-title {
  font-family:'Cormorant Garamond',serif;font-size:1.6rem;
  font-weight:300;letter-spacing:.08em;
}
.modal-close {
  width:32px;height:32px;border-radius:50%;
  background:var(--glass);border:1px solid var(--glass-b);
  color:var(--muted);cursor:pointer;font-size:1rem;
  display:flex;align-items:center;justify-content:center;transition:.3s;
}
.modal-close:hover{color:var(--text);border-color:var(--glass-b)}

/* ?? INFO LINKS on Splash / Onboard ?? */
.splash-info-links {
  display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;
  margin-top:1.2rem;
}
.info-link {
  font-size:.78rem;color:var(--muted);cursor:pointer;
  letter-spacing:.06em;
  padding:6px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(6px);
  transition:all .3s;
}
.info-link:hover {
  color:var(--text);border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.07);
}

.splash-info-stack {
  display:flex;flex-direction:column;align-items:center;gap:0.65rem;
  margin-top:1.2rem;width:100%;
}
.splash-info-stack .splash-info-links {
  margin-top:0;
}
.splash-info-stack--onb {
  margin-top:0.5rem;
}
.info-link--video {
  font-size:.82rem;border-color:rgba(201,180,240,.22);
}

.video-instruction-modal {
  max-width:min(920px, 96vw);
  width:96vw;
  max-height:90vh;
  padding:1.25rem 1.35rem 1.35rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  overflow:hidden;
}
.video-instruction-body {
  display:flex;
  flex-direction:row;
  gap:1rem;
  min-height:0;
  align-items:stretch;
}
.video-instruction-main {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:0.65rem;
}
.instruction-video-el {
  width:100%;
  max-height:min(52vh, 480px);
  background:#000;
  border-radius:10px;
  object-fit:contain;
}
.video-instruction-toolbar {
  display:flex;
  align-items:center;
  gap:0.65rem;
  flex-wrap:wrap;
}
.video-rate-label {
  font-family:'Inter',sans-serif;
  font-size:0.8rem;color:var(--muted);
}
#instruction-playback-rate {
  font-family:'Inter',sans-serif;
  font-size:0.82rem;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(14,9,22,0.95);
  color:var(--text);
  cursor:pointer;
}
.video-instruction-sidebar {
  flex:0 0 220px;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  min-height:0;
}
.video-instruction-list-title {
  font-family:'Cormorant Garamond',serif;
  font-size:1.05rem;
  font-weight:300;
  letter-spacing:.06em;
  color:var(--text);
  margin:0;
}
.video-instruction-playlist {
  display:flex;
  flex-direction:column;
  gap:0.4rem;
  overflow-y:auto;
  flex:1;
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.1) transparent;
}
.video-instruction-item {
  text-align:left;
  font-family:'Inter',sans-serif;
  font-size:0.8rem;
  line-height:1.35;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  transition:border-color .2s,background .2s,color .2s;
}
.video-instruction-item:hover {
  color:var(--text);
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
}
.video-instruction-item.active {
  color:var(--text);
  border-color:rgba(201,180,240,.35);
  background:rgba(201,180,240,.09);
}

@media (max-width: 720px) {
  .video-instruction-body {
    flex-direction:column;
  }
  .video-instruction-sidebar {
    flex:0 0 auto;
    max-height:none;
  }
  .video-instruction-playlist {
    flex-direction:row;
    flex-wrap:wrap;
    overflow-x:auto;
    overflow-y:visible;
    gap:0.45rem;
    padding-bottom:2px;
  }
  .video-instruction-item {
    flex:1 1 auto;
    min-width:min(100%, 140px);
    white-space:normal;
  }
  .instruction-video-el {
    max-height:42vh;
  }
}

/* ?? INFO MODAL CONTENT ?? */
.info-modal {
  max-width:600px;max-height:85vh;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent;
}
.info-modal::-webkit-scrollbar {width:4px}
.info-modal::-webkit-scrollbar-thumb {background:rgba(255,255,255,.12);border-radius:2px}
.info-body {
  display:flex;flex-direction:column;gap:1rem;
}
.info-body p {
  font-family:'Inter',sans-serif;font-size:.88rem;
  line-height:1.7;color:var(--muted);margin:0;
}
.info-body b {color:var(--text)}
.info-accent {
  color:var(--p3)!important;font-style:italic;
  border-left:3px solid var(--p3);padding-left:12px;
  margin:0.4rem 0;
}
.info-warning {
  color:var(--p2)!important;
  background:rgba(255,100,100,.06);
  border-radius:8px;padding:10px 14px;
  border:1px solid rgba(255,100,100,.12);
}
.info-divider {
  border:none;border-top:1px solid rgba(255,255,255,.06);
  margin:0.6rem 0;
}
.info-section-title {
  font-family:'Cormorant Garamond',serif;font-size:1.2rem;
  font-weight:300;letter-spacing:.08em;color:var(--text);
  margin:0.4rem 0 0;
}
.info-persona-block {
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px;padding:14px 16px;
}
.info-persona-block h4 {
  font-family:'Inter',sans-serif;font-size:.92rem;
  color:var(--text);margin:0 0 6px;font-weight:500;
}
.info-persona-block p {margin:0}
.info-skills {
  font-size:.82rem!important;color:rgba(180,170,200,.7)!important;
  margin-top:6px!important;
}
.info-close-btn {
  margin-top:0.8rem;align-self:center;
  padding:0.7rem 2.5rem;font-size:.9rem;
}

.setting-row { margin-bottom:1.8rem }
.s-label { display:block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:.6rem }
.s-select {
  width:100%;background:rgba(255,255,255,.04);border:1px solid var(--glass-b);
  color:var(--text);padding:.8rem 1rem;font-family:'Inter',sans-serif;
  font-size:.9rem;outline:none;
}
.s-select option{background:#12081e}

/* Skills Panel */
.skills-section { margin-top:1.5rem }
.skills-title {
  font-size:.7rem;letter-spacing:.25em;text-transform:uppercase;
  color:var(--p1);margin-bottom:1rem;opacity:.8;
}
.skill-item {
  display:flex;align-items:center;justify-content:space-between;
  padding:.9rem 0;border-bottom:1px solid rgba(255,255,255,.05);
  gap:1rem;
}
.skill-item:last-child{border:none}
.skill-left{flex:1}
.skill-name { font-size:.9rem;color:var(--text) }
.skill-desc { font-size:.7rem;color:var(--muted);margin-top:.2rem }
.skill-badge {
  font-size:.6rem;letter-spacing:.15em;text-transform:uppercase;
  padding:.2rem .6rem;border-radius:20px;
  background:rgba(255,255,255,.06);border:1px solid var(--glass-b);color:var(--muted);
}
.skill-badge.active { background:rgba(201,180,240,.15);border-color:var(--p1);color:var(--p1) }

/* Glyph card input area */
.glyph-zone {
  margin-top:1.5rem;padding-top:1.5rem;
  border-top:1px solid var(--glass-b);
  display:flex;flex-direction:column;gap:.8rem;
}
.glyph-input {
  width:100%;background:var(--glass);border:1px solid var(--glass-b);
  color:var(--text);padding:.9rem 1rem;
  font-family:'Inter',sans-serif;font-size:.9rem;
  letter-spacing:.2em;text-transform:uppercase;outline:none;
  transition:border-color .3s;
}
.glyph-input:focus{border-color:var(--p1)}
.glyph-input::placeholder{color:var(--muted);text-transform:none;letter-spacing:0}
.btn-activate {
  padding:.9rem;background:rgba(201,180,240,.08);
  border:1px solid rgba(201,180,240,.25);color:var(--p1);
  font-size:.8rem;letter-spacing:.3em;text-transform:uppercase;
  cursor:pointer;transition:all .4s;
}
.btn-activate:hover{background:rgba(201,180,240,.15);box-shadow:0 0 20px rgba(201,180,240,.2)}
.glyph-msg { font-size:.82rem;color:var(--p1);min-height:1.2em;text-align:center }

/* Panic overlay */
#panic { position:fixed;inset:0;background:#000;z-index:9999;display:none }

/* Persistent Rules Button */
.btn-rules-trigger:hover { color: var(--text); border-color: var(--p1); box-shadow: 0 0 15px rgba(201,180,240,0.2); }



/* Chat Screen Override: Bottom-Left Horizontal Row */


.btn-rules-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
  transition: all 0.3s var(--ease);
  opacity: 0.8; white-space: nowrap;
}
.btn-rules-link:hover { color: var(--p1); opacity: 1; }

.age-badge-global {
  background: rgba(255, 77, 77, 0.2); border: 1.5px solid rgba(255, 77, 77, 0.6);
  color: #ff4d4d; padding: 0.4rem 0.8rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 800; letter-spacing: 0.1em;
  backdrop-filter: blur(15px); pointer-events: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.3);
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* Move Reset button to bottom-right corner */
#btn-test-reset {
  left: auto !important; right: 2rem !important; bottom: 10px !important;
}

/* Consent Checkbox */
.consent-wrap {
  margin-top: 1.5rem; display: flex; align-items: flex-start; gap: 0.8rem;
  text-align: left; max-width: 90%; margin-left: auto; margin-right: auto;
  font-size: 0.85rem; color: var(--muted); cursor: pointer;
  animation: fadeIn 1s ease 0.5s both;
}
.consent-wrap input { cursor: pointer; accent-color: var(--p1); width: 18px; height: 18px; }
.consent-wrap span { line-height: 1.4; }
.consent-link { color: var(--p1); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: 0.3s; }
.consent-link:hover { color: var(--text); }

/* Legal Modal Styling */
.legal-content {
  font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 1.6;
  color: rgba(255,255,255,0.8); text-align: justify;
}
.legal-content h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--p1);
  margin: 1.5rem 0 1rem; font-weight: 300;
}
.legal-content p { margin-bottom: 1rem; }

/* Alert Modal (Accept Rules) */
.alert-modal {
  background: rgba(40, 10, 20, 0.95); border: 1px solid #ff4d4d;
  padding: 2rem; border-radius: 20px; text-align: center;
  max-width: 400px; box-shadow: 0 0 30px rgba(255,77,77,0.2);
}
.alert-modal h2 { color: #ff4d4d; margin-bottom: 1rem; font-family: 'Cormorant Garamond', serif; }

/* Emoji Picker */
.emoji-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.2rem; padding: 0 8px; transition: 0.3s;
}
.emoji-btn:hover { color: var(--p1); transform: scale(1.1); }
.camera-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(201,180,240,0.25);
  background: rgba(255,255,255,0.04);
  color: var(--muted); cursor: pointer; font-size: 1rem;
  transition: all 0.3s var(--ease); flex-shrink: 0;
}
.camera-btn:hover { color: var(--p1); border-color: var(--p1); transform: scale(1.06); }
.camera-btn.active {
  color: #6ee7b7; border-color: rgba(110,231,183,0.7);
  box-shadow: 0 0 18px rgba(110,231,183,0.18);
}

.emoji-picker {
  position: absolute; bottom: 80px; left: 20px;
  background: rgba(18, 10, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.emoji-picker.open { opacity: 1; visibility: visible; transform: translateY(0); }
.emoji-item {
  font-size: 1.4rem; cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
}
.emoji-item:hover { background: rgba(255,255,255,0.05); transform: scale(1.2); }

@media (max-width: 480px) {
  .emoji-picker { grid-template-columns: repeat(5, 1fr); left: 10px; right: 10px; bottom: 70px; }
}

/* Voice Lock Tooltip */
.voice-lock-tooltip {
  position: fixed;
  z-index: 2000;
  background: rgba(18, 10, 30, 0.98);
  border: 1px solid var(--p1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 15px rgba(201,180,240,0.2);
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 260px;
  pointer-events: none;
  display: none;
  backdrop-filter: blur(12px);
  animation: tooltipFadeIn 0.3s ease-out;
}
.voice-lock-tooltip .tooltip-title {
  color: var(--p1);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.voice-lock-tooltip .tooltip-text {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.9;
  font-style: italic;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ?? TYPING INDICATOR ?? */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease);
}
.typing-indicator.active {
  opacity: 1;
  visibility: visible;
}
.typing-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.typing-dots {
  display: flex;
  gap: 4px;
}
.typing-dot {
  width: 4px;
  height: 4px;
  background: var(--p1);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ?? PULSATING ORB (FOR TYPING) ?? */
.soul-orb.typing {
  animation: orbPulse 2s ease-in-out infinite;
  box-shadow: 0 0 25px var(--p1);
}
@keyframes orbPulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.4); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ?? DYING CANDLE (LOW ENERGY) ?? */
body.low-energy {
  filter: contrast(0.9) brightness(0.9) saturate(0.8);
}
body.low-energy .wave-bg {
  opacity: 0.4;
}
body.low-energy .soul-core {
  animation: coreFlicker 0.15s infinite;
}
@keyframes coreFlicker {
  0% { opacity: 0.6; }
  25% { opacity: 0.9; }
  50% { opacity: 0.5; }
  75% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

/* ========================================================= */
/* ?? MOBILE RESPONSIVE ADAPTATION (max-width: 768px)       */
/* ========================================================= */
@media (max-width: 768px) {
  
  /* 1. Typography & Main Screens (Scrolling & Sizing Fixes) */
  .screen {
    overflow-y: auto !important; /* Allow scrolling on small screens */
    padding-bottom: 2rem !important;
  }
  .splash-content {
    padding-top: 6rem !important; /* Give space for 18+ badge but not too much */
  }
  .splash-logo {
    font-size: 15vw !important; /* Scale dynamically for mobile */
    margin: 0.5rem 0 !important;
  }
  .splash-tagline {
    font-size: 0.8rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0 !important;
  }
  .splash-sub {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem !important;
    font-size: 0.5rem !important;
  }
  .onboard-form {
    min-width: 0 !important;
    width: 100% !important;
    padding: 1.5rem !important;
  }
  .onboard-step {
    padding: 1.5rem !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .gender-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* 2. Interactive Elements (Buttons & Modals) */
  .btn-glass {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    width: 85% !important;
    max-width: 320px !important;
    margin: 20px auto 0 !important;
  }
  .modal {
    min-width: 0 !important;
    width: 90% !important;
    max-width: 400px !important;
    padding: 1.5rem !important;
    margin: 1rem auto !important;
  }
  .modal-title {
    font-size: 1.3rem !important;
  }
  .modal-overlay {
    padding: 1rem !important;
  }
  
  /* 3. The Core Chat Interface (Radical Flow Overhaul) */
  .chat-header {
    flex-wrap: nowrap !important;
    padding: 0.5rem 0.8rem !important;
    gap: 0.6rem !important;
    height: 64px !important;
    position: relative !important; /* Not fixed, will scroll away */
    width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
  }
  .soul-orb { width: 32px !important; height: 32px !important; }
  .soul-core { inset: 5px !important; }
  .soul-name { display: block !important; font-size: 0.9rem !important; max-width: 60px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .soul-tag { display: none !important; }
  
  .hdr-token-wrap { margin-left: auto !important; flex-shrink: 1 !important; min-width: 0; }
  .token-balance { font-size: 0.7rem !important; padding: 0.3rem 0.6rem !important; white-space: nowrap; }
  .hdr-btns { display: flex !important; gap: 0.4rem !important; flex-shrink: 0 !important; }
  .icon-btn { width: 36px !important; height: 36px !important; font-size: 0.9rem !important; flex-shrink: 0 !important; }

  .chat-log { 
    margin: 0 !important;
    padding: 1rem 1rem 3rem 1rem !important; /* Extra bottom padding */
    width: 100% !important;
    box-sizing: border-box !important;
    flex: none !important; 
    height: auto !important;
    min-height: 50dvh !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    mask-image: none !important;
  }
  .message {
    max-width: 90% !important;
    font-size: 0.95rem !important;
  }
  .chat-footer {
    position: sticky !important;
    bottom: 0 !important;
    padding: 0.6rem 0.5rem calc(0.6rem + env(safe-area-inset-bottom, 0px)) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: none !important;
    backdrop-filter: none !important;
    z-index: 1000;
    gap: 0.4rem !important;
    display: flex !important;
    align-items: flex-end !important; /* Grow UPWARDS */
  }
  .chat-footer .support-btn, .chat-footer .gift-btn, .chat-footer .emoji-btn, .chat-footer .send-btn {
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
  }
  .msg-input {
    background: rgba(10, 7, 15, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-b) !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: auto !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    border-radius: 20px !important;
    max-height: 160px !important; /* ~5-6 lines */
    box-sizing: border-box !important;
  }
  /* 4. Help Link Redesign & Spacing */
  .onb-form {
    margin-top: 1rem !important;
  }
  .help-btn-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
  }
  .help-text-btn {
    font-size: 0.8rem;
    color: var(--p1);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(201, 180, 240, 0.3);
    border-radius: 30px;
    background: rgba(201, 180, 240, 0.05);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* 5. Eliminating Horizontal Scroll & Fixing Vertical Flow */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative;
    width: 100vw;
    height: auto !important;
    min-height: 100%;
  }
  #app {
    width: 100vw;
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }
  .screen {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 100vh;
    display: none !important; /* Hide inactive screens */
    flex-direction: column !important;
    justify-content: flex-start !important; /* Start from top */
    align-items: center !important;
    padding: 2.5rem 1rem !important;
    overflow: visible !important;
    flex-shrink: 0;
  }
  .screen.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #s-chat.active {
    position: relative !important; /* Natural positioning */
    display: flex !important;
    flex-direction: column !important;
    min-height: 100dvh !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 100;
    padding: 0 !important;
  }

  /* Removed duplicate definitions that were causing interior scroll and overriding the overhaul */

  /* 18+ Badge: Centered at bottom, hidden on chat screen */

  .footer-controls .support-btn, .footer-controls .gift-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--glass-b) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .footer-controls .age-badge-global {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }
  .footer-controls .btn-rules-link {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .footer-controls > * {
    margin: 0 !important;
  }
  

  
  /* Restore RESET button visibility for mobile */
  #btn-test-reset {
    left: 10px !important; right: auto !important;
    bottom: 10px !important; pointer-events: auto !important;
    opacity: 0.6;
  }
  
  /* Dim background particles */
  #splash-canvas {
    opacity: 0.1 !important;
  }
  
  /* 6. Advanced Layouts (Skills & Glyphs) */
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .skill-action {
    width: 100%;
    text-align: right;
  }
  .glyph-input {
    letter-spacing: 0.1em;
  }
}

/* =========================================
   GIFT SHOP & INVENTORY
========================================= */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-bottom: 2rem;
}

.gift-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-b);
  border-radius: 12px;
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.gift-card:hover {
  background: rgba(201, 180, 240, 0.08);
  border-color: var(--p1);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(201, 180, 240, 0.1);
}

.gift-card.daily-free {
  border: 1px solid var(--p1);
  background: rgba(201, 180, 240, 0.05);
  box-shadow: 0 0 15px rgba(201, 180, 240, 0.15);
}

.gift-badge-free {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--p1);
  color: #000;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.free-label {
  color: var(--p1);
  font-weight: 700;
  letter-spacing: 1px;
}

.gift-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: transform 0.3s var(--ease);
}

.gift-card:hover .gift-icon {
  transform: scale(1.15) rotate(5deg);
}

.gift-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.gift-price {
  font-size: 0.75rem;
  color: var(--p2);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.gift-return {
  font-size: 0.7rem;
  color: var(--p3);
  opacity: 0.8;
}

.gift-shop-modal {
  max-width: 750px !important;
  width: 95% !important;
}

.btn-gc-buy, .btn-sc-yes {
  border-color: var(--p2);
}
.btn-gc-buy:hover, .btn-sc-yes:hover {
  background: rgba(240, 180, 212, 0.15) !important;
  border-color: var(--p2);
  box-shadow: 0 0 20px rgba(240, 180, 212, 0.3);
}

/* =========================================
   TOAST NOTIFICATIONS
========================================= */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  max-width: 300px;
  word-wrap: break-word;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.error {
  border-left: 4px solid var(--p2);
}

@media (max-width: 600px) {
  #toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  .toast {
    max-width: 100%;
    width: 100%;
  }
}

/* =========================================
   CAPTCHA VERIFICATION
========================================= */
.captcha-box {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}
#captcha-track {
  width: 100%;
  height: 50px;
  position: relative;
  background: rgba(0,0,0,0.3);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s;
}
#captcha-text {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  user-select: none;
  z-index: 1;
  pointer-events: none;
}
#captcha-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.1s, background 0.3s, border-color 0.3s;
}
#captcha-thumb:active {
  cursor: grabbing;
}
#captcha-thumb.success {
  background: rgba(100,255,100,0.2);
  border-color: rgba(100,255,100,0.5);
  cursor: default;
}
.captcha-box.passed #captcha-track {
  background: rgba(100,255,100,0.05);
}

/* Persona Card States */
.p-card.activated {
  border-color: var(--p1) !important;
  background: rgba(201,180,240,0.1) !important;
  box-shadow: 0 0 20px rgba(201,180,240,0.2) !important;
  position: relative;
}
.p-card-activated-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--p1);
  z-index: 8;
  pointer-events: none;
}
.p-card-activated-mark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}

.p-card.locked {
  filter: grayscale(1) opacity(0.5);
  cursor: not-allowed !important;
  pointer-events: none;
}
.p-card.locked:hover {
  transform: none !important;
  border-color: var(--glass-b) !important;
  box-shadow: none !important;
}

/* ?? Flow sections ?? */
.flow-section-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  margin-bottom: 1.4rem;
  width: 100%;
}

/* ?? Sparkle divider ?? */
.flow-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.2rem 0;
  perspective: 600px;
}

.flow-divider-line {
  flex: 1;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,180,240,0.2) 20%,
    rgba(255,255,255,0.45) 50%,
    rgba(201,180,240,0.2) 80%,
    transparent 100%
  );
}

.flow-divider-line::after {
  content: '';
  position: absolute;
  top: 0; left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), rgba(201,180,240,0.8), rgba(255,255,255,0.95), transparent);
  animation: flowSweep 4s ease-in-out infinite;
}

.flow-divider-line--right::after {
  animation-delay: 0.4s;
}

@keyframes flowSweep {
  0%   { left: -45%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 145%; opacity: 0; }
}

.flow-divider-sparks {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
  transform-style: preserve-3d;
}

.flow-spark {
  color: var(--p1);
  font-size: 0.85rem;
  display: inline-block;
  transform-style: preserve-3d;
  animation: sparkTilt 3.2s ease-in-out infinite;
  text-shadow: 0 0 8px var(--p1), 0 0 18px rgba(201,180,240,0.6);
}

.flow-spark:nth-child(1) { animation-delay: 0s; }
.flow-spark:nth-child(2) { animation-delay: 0.55s; }
.flow-spark:nth-child(3) { animation-delay: 1.1s; }

@keyframes sparkTilt {
  0%   { transform: rotateY(0deg) scale(1);    opacity: 0.55; }
  20%  { transform: rotateY(60deg) scale(1.3); opacity: 1; }
  40%  { transform: rotateY(0deg) scale(1);    opacity: 0.55; }
  60%  { transform: rotateY(-60deg) scale(1.3);opacity: 1; }
  80%  { transform: rotateY(0deg) scale(1);    opacity: 0.55; }
  100% { transform: rotateY(0deg) scale(1);    opacity: 0.55; }
}

.persona-hint-text {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  font-style: italic;
  width: 100%;
}

/* --- PREMIUM SUPPORT SYSTEM --- */
.support-modal {
  width: 100%;
  max-width: 440px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: rgba(15, 12, 25, 0.85) !important;
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.support-modal-head {
  padding: 1.5rem !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.support-top-action {
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.02);
}

.btn-ticket-hero {
  width: 100%;
  background: linear-gradient(135deg, rgba(201, 180, 240, 0.2), rgba(240, 180, 212, 0.2));
  border: 1px solid rgba(201, 180, 240, 0.3);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
  color: #fff;
}

.btn-ticket-hero:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(201, 180, 240, 0.3), rgba(240, 180, 212, 0.3));
  border-color: var(--p1);
  box-shadow: 0 10px 20px rgba(201, 180, 240, 0.15);
}

.hero-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px var(--p1));
}

.hero-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--p1);
}

.hero-text span {
  font-size: 0.75rem;
  opacity: 0.7;
}

.support-log {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-log .msg {
  max-width: 85%;
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.support-log .msg.user {
  align-self: flex-end;
  background: var(--p1);
  color: #000;
  border-bottom-right-radius: 4px;
}

.support-log .msg.support {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.msg .time {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-top: 4px;
  display: block;
}

.support-input-area {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.support-input-wrapper {
  display: flex;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 5px 5px 15px;
  transition: 0.3s;
}

.support-input-wrapper:focus-within {
  border-color: var(--p1);
  background: rgba(255, 255, 255, 0.08);
}

.support-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  outline: none;
  padding: 10px 0;
  font-size: 0.95rem;
}

.btn-support-send {
  width: 40px;
  height: 40px;
  background: var(--p1);
  border: none;
  border-radius: 18px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.btn-support-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--p1);
}

/* --- PAYMENT SIMULATION STYLES --- */
.token-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-refill-plus {
  width: 24px;
  height: 24px;
  background: var(--p1);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 0;
  padding-bottom: 2px;
  margin-left: 4px;
}

.btn-refill-plus:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 10px var(--p1);
}

.deposit-modal {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 12, 25, 0.95) !important;
}

.deposit-hint {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.nominal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nominal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.nominal-card:hover {
  background: rgba(201, 180, 240, 0.1);
  border-color: var(--p1);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.nominal-card .n-val {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.nominal-card .n-price {
  font-size: 1.3rem;
  color: var(--p1);
  font-weight: 900;
}

.payment-modal-content {
  width: 100%;
  max-width: 440px;
  background: #0a0a0c !important;
  border: 1px solid rgba(255,255,255,0.1);
}

.payment-form .form-group label {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

#pay-amount {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--p1) !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  padding: 0.5rem 1rem !important;
  width: 100%;
}

.card-mockup {
  background: linear-gradient(135deg, #222, #111);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.card-mockup input {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  padding: 1rem !important;
  font-family: 'Courier New', Courier, monospace;
  color: #fff !important;
  font-size: 1.3rem !important;
  letter-spacing: 2px;
  width: 100%;
}

.card-mockup input::placeholder {
  color: rgba(255,255,255,0.2);
}

.btn-pay-confirm {
  width: 100%;
  background: var(--p1);
  color: #000;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.3rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(201,180,240,0.3);
  text-transform: uppercase;
}

.btn-pay-confirm:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(0,255,150,0.4);
}

/* ?? MOBILE HEADER FIX ?? */
.hdr-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}
.chat-title-wrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .chat-header {
    padding: 0.8rem 1rem;
  }
  .hdr-left { gap: 8px; }
  .hdr-right { gap: 6px; }
  .soul-orb {
    width: 30px;
    height: 30px;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem !important;
  }
  .token-group {
    padding: 0.2rem 0.5rem !important;
  }
  .token-balance {
    font-size: 0.65rem !important;
  }
  .hdr-token-wrap {
    margin-left: 0.5rem;
  }
}

/* ?? AUTH SCREENS ?? */
.glyph-msg {
  font-size: 0.8rem;
  min-height: 1.2em;
  text-align: center;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.glyph-input {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.glyph-input:focus {
  border-color: rgba(201,180,240,0.5) !important;
  box-shadow: 0 0 12px rgba(201,180,240,0.1);
}
/* ?? DISSOLVE ANIMATION ?? */
.dissolving {
  pointer-events: none !important;
  filter: blur(60px) grayscale(1);
  opacity: 0 !important;
  transition: filter 3.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 3.5s var(--ease) !important;
}

/* --- LEGAL FOOTER --- */
/* Prevent footer controls from hiding behind fixed legal footer */
.footer-controls-offset {
  padding-bottom: 38px;
}
/* Hide splash subtitle when user is in chat (it overlaps emoji button) */
#s-chat.active ~ .splash-sub,
body:has(#s-chat.active) .splash-sub {
  display: none !important;
}
.legal-footer {
  position: fixed !important;
  bottom: 0px !important;
  left: 0 !important;
  width: 100% !important;
  padding: 6px 24px !important; /* Slimmer */
  background: #190C13 !important;
  z-index: 900 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 2rem !important;
  align-items: center !important;
  font-size: 10px !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 -5px 30px rgba(0,0,0,0.8) !important;
}
.legal-links {
  display: flex;
  gap: 20px;
}
.legal-links a {
  color: #8a8a8a !important; /* Explicit grey */
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.legal-links a:hover {
  color: #c9b4f0 !important; /* var(--p1) equivalent */
  text-shadow: 0 0 10px rgba(201,180,240,0.4);
}
.legal-copyright {
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  max-width: 420px !important;
  text-align: center;
  padding: 2.5rem !important;
  background: rgba(10, 8, 15, 0.98) !important;
  border: 1px solid rgba(201, 180, 240, 0.3) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(201, 180, 240, 0.15) !important;
  border-radius: 24px !important;
}

/* --- LEGAL MODAL --- */
.legal-modal {
  max-width: 800px !important;
  width: 90% !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  padding: 1.35rem 1.5rem !important;
}
.legal-modal .modal-head {
  margin-bottom: 0.65rem !important;
}
.legal-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding: 20px 0;
  white-space: pre-wrap;
  text-align: left;
}
/* HTML-документы из LEGAL_TEXTS: pre-wrap сохранял переносы между тегами — лишние «пустые» интервалы */
.legal-modal .legal-content {
  padding: 0.25rem 0 0.5rem !important;
  white-space: normal !important;
  line-height: 1.62 !important;
}
.legal-content h3 {
  margin: 25px 0 12px;
  color: var(--p1);
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}
.legal-modal .legal-content h3 {
  margin: 14px 0 8px !important;
  padding-bottom: 4px !important;
  font-size: 1.1rem !important;
}
.legal-modal .legal-content h3:first-of-type {
  margin-top: 0 !important;
}
.legal-content b {
  color: var(--p2);
}
.legal-content p {
  margin-bottom: 12px;
}
.legal-modal .legal-content p {
  margin-bottom: 0.55rem !important;
}

/* Компактная верстка модалки «Правила» */
.docs-rules-modal {
  padding: 1.35rem 1.5rem !important;
}
.docs-rules-modal .modal-head {
  margin-bottom: 0.65rem !important;
  border-bottom: 1px solid rgba(201, 180, 240, 0.2);
}
.docs-rules-modal .docs-section {
  margin-bottom: 0.62rem !important;
}
.docs-rules-modal .docs-h {
  margin: 0 0 0.45rem !important;
  font-size: 1rem !important;
}
.docs-rules-modal .docs-lead {
  margin-bottom: 0.75rem !important;
  padding: 0.72rem 0.85rem !important;
  line-height: 1.58 !important;
}
.docs-rules-modal .docs-list li {
  margin-bottom: 0.32rem !important;
}
.docs-rules-modal .docs-grid {
  gap: 0.55rem !important;
}
.docs-rules-modal .docs-card {
  padding: 0.65rem 0.8rem !important;
}
/* Та же причина, что у .legal-modal — без pre-wrap между HTML-блоками */
.docs-rules-modal .legal-content {
  white-space: normal !important;
  padding: 0 !important;
}

/* --- DOCS / RULES & INFO MODALS (design system) --- */
.docs-rules-body.docs-lead,
.docs-lead {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(230, 220, 245, 0.88);
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(0, 243, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-lead--compact {
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem !important;
}
.docs-section {
  margin-bottom: 1.35rem;
}
.docs-h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--p1);
  margin: 0 0 0.75rem;
}
.docs-h-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  background: rgba(201, 180, 240, 0.15);
  border: 1px solid rgba(201, 180, 240, 0.35);
  flex-shrink: 0;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.docs-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.docs-card-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.docs-card p {
  margin: 0;
  font-size: 0.84rem !important;
  line-height: 1.62 !important;
  color: var(--muted) !important;
}
.docs-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--muted);
}
.docs-list li {
  margin-bottom: 0.45rem;
}
.docs-section--warn {
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: rgba(245, 158, 66, 0.06);
  border: 1px solid rgba(245, 158, 66, 0.25);
}

.docs-info-modal {
  max-width: 680px !important;
}

.docs-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.docs-fcard {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(12, 8, 20, 0.55);
  border: 1px solid rgba(201, 180, 240, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.docs-fcard:hover {
  border-color: rgba(201, 180, 240, 0.28);
  transform: translateY(-1px);
}
.docs-fcard-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.docs-fcard-ico {
  font-size: 1.2rem;
  line-height: 1;
}
.docs-fcard-head h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}
.docs-fcard p {
  margin: 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.65 !important;
  color: var(--muted) !important;
}

.docs-footnote {
  font-size: 0.8rem !important;
  opacity: 0.9;
}

.docs-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.docs-steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #12081e;
  background: linear-gradient(145deg, var(--p1), rgba(0, 243, 255, 0.65));
}

.docs-mini-list {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.72;
  color: var(--muted);
}
.docs-mini-list li {
  margin-bottom: 0.4rem;
}

.info-persona-block--accent {
  border: 1px solid rgba(0, 243, 255, 0.35) !important;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.12);
}
.info-persona-block--accent h4 {
  color: rgba(0, 243, 255, 0.92) !important;
}

@media (max-width: 600px) {
  .legal-footer {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 2px 8px !important;
    padding: 4px 10px !important;
    text-align: center !important;
    font-size: 8px !important;
  }
  .legal-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 3px 8px !important;
  }
  .legal-copyright {
    display: none !important; /* hide on mobile to save space */
  }
}

/* --- CONSENT WRAP --- */
.consent-wrap {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px;
  cursor: pointer;
  margin: 1rem 0;
  max-width: 400px;
  text-align: left;
  user-select: none;
}
.consent-wrap input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--p1);
}
.consent-wrap span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}
.consent-link {
  color: var(--p2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.consent-link:hover {
  color: #fff;
}

/* ?? T-BANK PAYMENT ADDITIONS ?? */
.nominal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.nominal-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nominal-card:hover {
  background: rgba(201,180,240,0.08);
  border-color: var(--p1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(201,180,240,0.2);
}
.n-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--p1);
}
.n-price {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 15px var(--p1)); }
}


#tbank-payment-iframe {
  background: #fff;
  border-radius: 0 0 16px 16px;
}

/* ??????????????????????????????????????????????
   INTRO SCREEN (#s-intro)
   ?????????????????????????????????????????????? */

/* Full-height scrollable wrapper */
.intro-scroll-wrap {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2.5rem 1.5rem 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  scroll-behavior: smooth;
}
.intro-scroll-wrap::-webkit-scrollbar { width: 4px; }
.intro-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(201,180,240,0.2); border-radius: 4px; }
.intro-scroll-wrap::-webkit-scrollbar-track { background: transparent; }

/* Individual content block / card */
.intro-block {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.intro-block:hover {
  border-color: rgba(201,180,240,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 20px rgba(201,180,240,0.06);
}

/* Warning block ? red/amber accent */
.intro-block--warning {
  border-color: rgba(240,100,100,0.25);
  border-top-color: rgba(240,100,100,0.4);
  background: linear-gradient(135deg, rgba(240,80,80,0.07), rgba(240,160,100,0.04));
  box-shadow: 0 0 30px rgba(240,80,80,0.06);
}
.intro-block--warning:hover {
  border-color: rgba(240,100,100,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 25px rgba(240,80,80,0.1);
}

/* Block title (icon + label) */
.intro-block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--p1);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.intro-block--warning .intro-block-title {
  color: #f09090;
}

/* Paragraph text */
.intro-block p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
}

/* Persona sub-cards */
.intro-persona-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.intro-persona-card:hover {
  background: rgba(201,180,240,0.06);
  border-color: rgba(201,180,240,0.2);
}
.intro-persona-card--special {
  border-color: rgba(0,243,255,0.15);
  background: rgba(0,243,255,0.03);
}
.intro-persona-card--special:hover {
  border-color: rgba(0,243,255,0.3);
  background: rgba(0,243,255,0.06);
}

.intro-persona-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.intro-persona-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--p1);
  opacity: 0.6;
  flex-shrink: 0;
}
.intro-persona-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* Farewell line */
.intro-farewell {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--p1);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* Navigation buttons bar ? inline flow, below farewell text */
.intro-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 0.4rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* "Back" button ? subtle ghost */
.btn-intro-back {
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  flex-shrink: 0;
}
.btn-intro-back:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* "Next" button ? glass / glow (re-uses .btn-glass, no animation override needed) */
.btn-intro-next {
  margin: 0 !important;
  animation: none !important;
  padding: 0.85rem 2.5rem !important;
  font-size: 1rem !important;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .intro-scroll-wrap {
    padding: 1.5rem 1rem 2rem;
    gap: 1.2rem;
  }
  .intro-block {
    padding: 1.4rem 1.2rem;
  }
  .btn-intro-back {
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
  }
  .btn-intro-next {
    padding: 0.75rem 1.8rem !important;
    font-size: 0.9rem !important;
  }
}


/* ?? PROMOTIONAL BANNER ?? */
.promo-banner {
  background: linear-gradient(90deg, rgba(201,180,240,0.1), rgba(240,114,182,0.2), rgba(201,180,240,0.1));
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  backdrop-filter: blur(10px);
  z-index: 100;
  animation: glowPulse 4s infinite alternate;
}
.promo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.05em;
}
.promo-icon { font-size: 1.1rem; }
.promo-divider { opacity: 0.3; }
.promo-timer-label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.7; }
#promo-timer { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--p2); }

/* ?? PRICE STRIKETHROUGH ?? */
.n-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.n-price-old {
  font-size: 0.75rem;
  text-decoration: line-through;
  opacity: 0.5;
  margin-bottom: 2px;
}
.n-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--p4);
}
.hidden { display: none !important; }

/* ????????????????????????????????????????????????????????????????
   ????-?????? ? Mother Creator UI
   ???????????????????????????????????????????????????????????????? */

/* ?? Soul List ?? */
.soul-list-wrap {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; gap: 1rem;
}
.soul-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--p2);
  border-radius: 16px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease);
}
.soul-card:hover {
  transform: translateX(6px);
  border-left-color: var(--p1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 25px rgba(240,180,212,0.15);
}
.soul-card.soul-generating {
  opacity: 0.6; cursor: not-allowed;
  border-left-color: rgba(255,255,255,0.2);
}
.soul-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; letter-spacing: 0.04em;
}
.soul-card-status {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.soul-create-btn {
  margin-top: 0.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
.soul-cost {
  font-size: 0.75rem; color: var(--p4); opacity: 0.8;
  background: rgba(180,240,212,0.1); border-radius: 10px; padding: 2px 8px;
}

/* ?? Soul Intro ?? */
.soul-intro-wrap {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; align-items: center; gap: 1.8rem;
  text-align: center;
}
.soul-intro-icon { font-size: 3rem; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.soul-intro-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.75);
}
.soul-intro-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; width: 100%;
}
.sib {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em;
  transition: all 0.4s;
}
.sib:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.sib-icon { font-size: 1.3rem; }
.soul-intro-btn { margin-top: 0.5rem; }

/* ?? Soul Config ?? */
.soul-config-wrap {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 1rem;
  max-height: 70vh; overflow-y: auto;
  padding-right: 4px;
}
.soul-config-wrap::-webkit-scrollbar { width: 3px; }
.soul-config-wrap::-webkit-scrollbar-thumb { background: rgba(201,180,240,0.3); border-radius: 3px; }

/* Social profile section divider in soul config */
.sc-life-params-divider {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(167,139,250,0.2);
}

/* Chronic conditions checkbox grid */
.sc-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
}
.sc-cond-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.2rem 0;
}
.sc-cond-item input[type="checkbox"] {
  accent-color: #a78bfa;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.sc-label {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.5rem;
}
.sc-hint { text-transform: none; font-size: 0.62rem; opacity: 0.6; letter-spacing: 0; }
.sc-select, .sc-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(201,180,240,0.2);
  border-radius: 8px 8px 0 0;
  color: var(--text);
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  outline: none; transition: all 0.4s;
}
.sc-select:focus, .sc-input:focus {
  border-bottom-color: var(--p1);
  background: rgba(201,180,240,0.05);
}
.sc-select option { background: #1a1025; color: #fff; }
.sc-textarea {
  width: 100%; min-height: 100px; resize: vertical;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text);
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: all 0.4s;
}
.sc-textarea:focus { border-color: var(--p1); background: rgba(201,180,240,0.04); }
.subtype-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.subtype-btn {
  padding: 0.45rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  color: var(--muted); font-size: 0.78rem; cursor: pointer;
  transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.subtype-btn.active, .subtype-btn:hover {
  background: rgba(201,180,240,0.12);
  border-color: var(--p1); color: var(--text);
  box-shadow: 0 0 12px rgba(201,180,240,0.2);
}
.gender-toggle, .acquaintance-btns {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.gender-btn, .acq-btn {
  padding: 0.5rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  color: var(--muted); font-size: 0.8rem; cursor: pointer;
  transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.gender-btn.active, .acq-btn.active,
.gender-btn:hover, .acq-btn:hover {
  background: rgba(240,180,212,0.1);
  border-color: var(--p2); color: var(--text);
}
.age-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; outline: none;
}
.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  cursor: pointer; box-shadow: 0 0 10px var(--p1);
  transition: transform 0.2s;
}
.age-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.sc-submit { width: 100%; margin-top: 1rem; }

/* ?? Close Extra ?? */
.close-extra-wrap {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 1rem;
}
.disclaimer-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(240,180,100,0.06);
  border: 1px solid rgba(240,180,100,0.2);
  border-radius: 12px; padding: 1.2rem;
}
.disclaimer-icon { font-size: 1.4rem; flex-shrink: 0; }
.disclaimer-text {
  font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.6);
}
.disclaimer-text strong { color: rgba(240,200,100,0.9); }
.consent-row {
  display: flex; align-items: flex-start; gap: 0.8rem;
  cursor: pointer; font-size: 0.78rem; color: var(--muted);
  line-height: 1.5;
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--p1);
}
.consent-text { flex: 1; }

/* ?? btn-primary (Mother-wide) ?? */
.btn-primary {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, rgba(201,180,240,0.15), rgba(240,180,212,0.1));
  border: 1px solid var(--p1); border-radius: 12px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.4s var(--ease);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(201,180,240,0.35);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(201,180,240,0.25), rgba(240,180,212,0.15));
}
.btn-primary:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ????????????????????????????????????????????????????????????????
   LOVER AWAKENING ? ??????????????????? ????? ???????????
   ???????????????????????????????????????????????????????????????? */
.lover-awakening {
  position: relative;
  width: 100%; max-width: 600px;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(240,100,150,0.12) 0%,
    rgba(200,100,200,0.06) 40%,
    transparent 70%
  );
  border-radius: 24px;
}

/* ????????? ??????? */
.la-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.la-particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,150,200,0.9), rgba(200,100,160,0.4));
  animation: laParticleFloat linear infinite;
  box-shadow: 0 0 6px rgba(240,150,200,0.5);
}
@keyframes laParticleFloat {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100vh) rotate(360deg) scale(0.3); opacity: 0; }
}

.la-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 2rem; padding: 3rem 2rem;
  text-align: center;
}

.la-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300; letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff, #f0b4d4, #d080b0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: fadeUp 1.2s 0.2s var(--ease) both;
}

.la-subtitle {
  font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(240,180,212,0.5);
  animation: fadeUp 1.2s 0.6s var(--ease) both;
}

/* ??????? ????? */
.la-orb-wrap {
  position: relative;
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.la-orb {
  width: 120px; height: 120px; border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,200,230,0.6),
    rgba(220,100,160,0.3) 50%,
    rgba(160,50,100,0.1)
  );
  box-shadow:
    0 0 40px rgba(240,100,160,0.4),
    0 0 80px rgba(240,100,160,0.15),
    inset 0 0 30px rgba(255,200,220,0.2);
  animation: laOrbBreath 4s ease-in-out infinite;
  transition: all 1.5s var(--ease);
}
@keyframes laOrbBreath {
  0%,100% { transform: scale(1); box-shadow: 0 0 40px rgba(240,100,160,0.4), 0 0 80px rgba(240,100,160,0.15); }
  50%      { transform: scale(1.06); box-shadow: 0 0 60px rgba(240,100,160,0.6), 0 0 120px rgba(240,100,160,0.25); }
}
.la-orb.pulsing {
  animation: laOrbPulse 2.5s ease-in-out infinite;
}
@keyframes laOrbPulse {
  0%,100% { transform: scale(1) rotate(0deg);   box-shadow: 0 0 50px rgba(240,100,160,0.5), 0 0 100px rgba(240,100,160,0.2); }
  33%      { transform: scale(1.08) rotate(3deg); box-shadow: 0 0 70px rgba(200,100,220,0.6), 0 0 140px rgba(200,100,220,0.3); }
  66%      { transform: scale(0.96) rotate(-2deg);box-shadow: 0 0 45px rgba(255,150,180,0.4), 0 0 90px rgba(255,150,180,0.2); }
}
.la-orb-inner {
  position: absolute; inset: 15px; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(255,220,235,0.8), rgba(240,100,160,0.2));
  animation: laInnerSpin 8s linear infinite;
}
@keyframes laInnerSpin { to { transform: rotate(360deg); } }

.la-orb-ring {
  position: absolute; inset: -15px; border-radius: 50%;
  border: 1px solid rgba(240,150,200,0.3);
  animation: laRingExpand 3s ease-in-out infinite;
}
.la-orb-ring2 {
  inset: -30px; border-color: rgba(200,100,160,0.15);
  animation-delay: 1.5s; animation-duration: 3.5s;
}
@keyframes laRingExpand {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* ??????????? ?????? */
.la-lines {
  display: flex; flex-direction: column; gap: 0.8rem;
  min-height: 100px;
}
.la-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300; font-style: italic;
  line-height: 1.6; letter-spacing: 0.02em;
  color: rgba(255,200,220,0.0);
  transition: color 1.2s ease, transform 1.2s ease;
  transform: translateY(10px);
}
.la-line.visible {
  color: rgba(255,200,220,0.9);
  transform: translateY(0);
}
.la-line em {
  font-style: normal;
  color: var(--p2);
  text-shadow: 0 0 20px rgba(240,180,212,0.6);
}

/* ?????? ??????????? */
.btn-awakening {
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg,
    rgba(240,100,150,0.2),
    rgba(200,80,130,0.1)
  );
  border: 1px solid rgba(240,150,200,0.4);
  border-top: 1px solid rgba(240,180,220,0.6);
  border-radius: 50px;
  color: rgba(255,200,220,0.95);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; letter-spacing: 0.15em;
  cursor: pointer; transition: all 0.6s var(--ease);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(240,100,150,0.2), 0 15px 30px rgba(0,0,0,0.3);
  animation: fadeUp 1.2s 1.5s var(--ease) both;
}
.btn-awakening:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, rgba(240,100,150,0.3), rgba(200,80,130,0.18));
  box-shadow: 0 0 60px rgba(240,100,150,0.5), 0 25px 50px rgba(240,100,150,0.2);
  border-color: rgba(255,180,220,0.7);
  color: #fff;
}
.btn-awakening:active { transform: scale(0.98); }

/* ????????????????????????????????????????????????????????????????
   MOTHER GENERATING ? ?????? ????????
   ???????????????????????????????????????????????????????????????? */
.mother-generating-wrap {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; align-items: center;
  gap: 2rem; padding: 2rem 1rem;
  text-align: center;
}

/* Orbit ????? */
.mg-orb-wrap {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.mg-orb {
  width: 110px; height: 110px; border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 30%,
    rgba(220,200,255,0.7),
    rgba(160,100,240,0.3) 50%,
    rgba(80,30,140,0.1)
  );
  box-shadow:
    0 0 40px rgba(180,120,255,0.4),
    0 0 80px rgba(180,120,255,0.12),
    inset 0 0 20px rgba(220,200,255,0.2);
  animation: mgPulse 3s ease-in-out infinite;
  transition: all 1.5s var(--ease);
}
@keyframes mgPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.07); box-shadow: 0 0 60px rgba(180,120,255,0.5), 0 0 120px rgba(180,120,255,0.2); }
}
.mg-orb.ready {
  background: radial-gradient(circle at 35% 30%,
    rgba(180,255,210,0.8),
    rgba(80,200,140,0.4) 50%,
    rgba(20,100,60,0.1)
  );
  box-shadow: 0 0 60px rgba(80,255,160,0.5), 0 0 120px rgba(80,255,160,0.2);
  animation: mgReadyPulse 2s ease-in-out infinite;
}
@keyframes mgReadyPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 60px rgba(80,255,160,0.5); }
  50%      { transform: scale(1.1); box-shadow: 0 0 100px rgba(80,255,160,0.8); }
}
.mg-core {
  position: absolute; inset: 20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7), transparent);
  animation: mgCore 4s ease-in-out infinite;
}
@keyframes mgCore { 0%,100%{opacity:0.5;transform:scale(0.8)} 50%{opacity:1;transform:scale(1)} }
.mg-ring {
  position: absolute;
  border: 1px solid rgba(180,120,255,0.3);
  border-radius: 50%;
  animation: mgRing 4s ease-in-out infinite;
}
.mg-ring:nth-child(2) { inset: -20px; animation-delay: 0s; }
.mg-ring2          { inset: -40px; animation-delay: 1.3s; border-color: rgba(180,120,255,0.18); }
.mg-ring3          { inset: -65px; animation-delay: 2.6s; border-color: rgba(180,120,255,0.08); }
@keyframes mgRing {
  0%,100% { transform: scale(1) rotate(0deg);   opacity: 0.6; }
  50%      { transform: scale(1.04) rotate(180deg); opacity: 1; }
}

.mg-phase {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; letter-spacing: 0.06em;
  color: var(--p1); min-height: 2em;
  transition: all 0.8s ease;
}
.mg-progress-bar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
}
.mg-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  border-radius: 2px;
  transition: width 3s var(--ease);
  box-shadow: 0 0 10px var(--p1);
}
.mg-hint {
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em;
  line-height: 1.6; min-height: 2.5em;
}
.mg-ready {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  animation: fadeUp 0.8s var(--ease) both;
}
.mg-ready-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300; letter-spacing: 0.12em;
  background: linear-gradient(135deg, #fff, var(--p2), var(--p1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(240,180,212,0.5));
}
.mg-activate-btn {
  animation: glowPulse 2s infinite alternate;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .soul-intro-steps { grid-template-columns: repeat(2, 1fr); }
  .la-title         { font-size: 1.8rem; }
  .la-orb           { width: 90px; height: 90px; }
  .la-orb-wrap      { width: 120px; height: 120px; }
  .btn-awakening    { font-size: 1rem; padding: 0.9rem 2rem; }
  .mg-orb-wrap      { width: 140px; height: 140px; }
  .mg-orb           { width: 90px; height: 90px; }
}

/* Psychological Matrix Modal */
.psych-matrix-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}

.psych-matrix-card {
  width: 100%; max-width: 450px; 
  background: rgba(30, 30, 35, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative; max-height: 90vh; overflow-y: auto;
}

.pm-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.5rem; cursor: pointer; transition: color 0.3s;
}
.pm-close:hover { color: #fff; }

.pm-title {
  font-family: var(--font-header); font-size: 1.6rem;
  color: var(--text); margin-bottom: 1.5rem; text-align: center;
  letter-spacing: 0.05em;
}

.pm-traits {
  display: flex; flex-direction: column; gap: 1rem;
}

.trait-row {
  display: flex; flex-direction: column; gap: 0.4rem;
}

.trait-name {
  display: flex; justify-content: space-between;
  font-size: 0.95rem; color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.trait-val { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

.trait-bar-wrap {
  width: 100%; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.05); overflow: hidden;
}

.trait-bar-fill {
  height: 100%; border-radius: 4px;
  box-shadow: inset 0 0 4px rgba(255,255,255,0.2);
  transition: width 1s ease-out;
}

.bg-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); box-shadow: 0 0 10px rgba(59,130,246,0.3); }
.bg-purple { background: linear-gradient(90deg, #8b5cf6, #c084fc); box-shadow: 0 0 10px rgba(139,92,246,0.3); }
.bg-red { background: linear-gradient(90deg, #ef4444, #f87171); box-shadow: 0 0 10px rgba(239,68,68,0.3); }
.bg-green { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 10px rgba(16,185,129,0.3); }

.soul-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

/* ?? UNIFIED SOUL ACTION BUTTONS ?? */
.soul-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 25px; /* Pill shape */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-main);
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.btn-traits {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}
.btn-traits:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-enter {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-enter:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.btn-sell {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #f1c40f;
}
.btn-sell:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.7);
  color: #fff;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
  transform: translateY(-3px) scale(1.02);
}

.btn-delete-soul {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 90, 90, 0.42);
  color: #ffb4b4;
}

.btn-delete-soul:hover {
  background: rgba(255, 80, 80, 0.22);
  border-color: rgba(255, 120, 120, 0.7);
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 80, 80, 0.18);
  transform: translateY(-3px) scale(1.02);
}

/* ?? MARKETPLACE CATEGORIES UI ?? */
.market-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.market-cat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-b);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.market-cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--p1);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,243,255,0.1);
}

.market-cat-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease);
}
.market-cat-card:hover .market-cat-icon {
  transform: scale(1.2) rotate(5deg);
}

.market-cat-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.market-cat-badge {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.market-nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--glass-b);
  margin-bottom: 1.5rem;
}

.btn-market-back {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-b);
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-market-back:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

/* ?? PREMIUM TRAIT SLIDERS ?? */
.trait-slider {
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.08) !important;
  height: 4px !important;
  border-radius: 4px !important;
  outline: none;
  margin: 10px 0;
  transition: all 0.3s var(--ease);
}

.trait-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--p1) !important;
  border: 2px solid #fff !important;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 15px var(--p1), 0 0 5px rgba(255,255,255,0.5);
  transition: all 0.3s var(--ease);
}

.trait-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 25px var(--p1), 0 0 10px rgba(255,255,255,0.8);
}

.trait-row:hover .trait-slider {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Modal Scrollbar Customization */
#matrix-traits-container::-webkit-scrollbar {
  width: 4px;
}
#matrix-traits-container::-webkit-scrollbar-thumb {
  background: var(--glass-b);
  border-radius: 4px;
}
#matrix-traits-container::-webkit-scrollbar-thumb:hover {
  background: var(--p1);
}

/* Home Screen: Activate Certificate Button */
.btn-activate-cert {
  background: rgba(201, 180, 240, 0.05);
  border: 1px solid rgba(201, 180, 240, 0.2);
  color: var(--p1);
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-activate-cert::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
}

.btn-activate-cert:hover::before {
  left: 100%;
}

.btn-activate-cert:hover {
  background: rgba(201, 180, 240, 0.12);
  border-color: var(--p1);
  box-shadow: 0 0 15px rgba(201, 180, 240, 0.15);
  transform: translateY(-1px);
}

.btn-activate-cert:active {
  transform: translateY(1px);
}
/* ?? MARKETPLACE & RATING (WOW UPDATE) ?? */
.rating-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(251, 140, 0, 0.05));
    border: 1px solid rgba(251, 140, 0, 0.3);
    border-radius: 12px;
    font-weight: 800;
    color: #ffb74d;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    box-shadow: 0 0 15px rgba(251, 140, 0, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}
.rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(251, 140, 0, 0.3);
    border-color: #ffb74d;
}
.rating-val { font-size: 1.1rem; text-shadow: 0 0 10px rgba(251, 140, 0, 0.5); }

/* ?? Rating tier badges ??????????????????????????????????????? */
.rating-silver .rating-val,
.rating-silver .rating-tier-label {
    color: #C0C0C0;
    text-shadow: 0 0 8px rgba(192,192,192,0.7);
}
.rating-silver { border-color: rgba(192,192,192,0.4); background: linear-gradient(135deg, rgba(192,192,192,0.08), rgba(192,192,192,0.03)); }

.rating-gold .rating-val,
.rating-gold .rating-tier-label {
    color: #C9747C;
    text-shadow: 0 0 10px rgba(183,110,121,0.8);
}
.rating-gold { border-color: rgba(183,110,121,0.5); background: linear-gradient(135deg, rgba(183,110,121,0.12), rgba(183,110,121,0.04)); }

@keyframes ratingShimmer {
    0%   { color: #a78bfa; text-shadow: 0 0 12px #a78bfa; }
    20%  { color: #60a5fa; text-shadow: 0 0 14px #60a5fa; }
    40%  { color: #34d399; text-shadow: 0 0 12px #34d399; }
    60%  { color: #fbbf24; text-shadow: 0 0 14px #fbbf24; }
    80%  { color: #f472b6; text-shadow: 0 0 12px #f472b6; }
    100% { color: #a78bfa; text-shadow: 0 0 12px #a78bfa; }
}
.rating-diamond .rating-val {
    animation: ratingShimmer 3s linear infinite;
}
.rating-diamond .rating-tier-label { color: #a78bfa; }
.rating-diamond { border-color: rgba(167,139,250,0.4); background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(96,165,250,0.05)); }

.rating-legend .rating-val::before { content: '??'; font-size: 0.9em; margin-right: 2px; }
.rating-legend .rating-val {
    animation: ratingShimmer 2s linear infinite;
    font-weight: 900;
}
.rating-legend .rating-tier-label { color: #fbbf24; font-weight: 700; }
.rating-legend { border-color: rgba(251,191,36,0.5); background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.04)); }

.rating-tier-label {
    font-size: 0.7rem;
    opacity: 0.85;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* Home screen rating badge */
.home-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(251,140,0,0.3);
    background: rgba(255,255,255,0.05);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffb74d;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.3s;
}
.home-rating-badge:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(251,140,0,0.3); }

/* Locked subtype button */
.subtype-locked { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }

.marketplace-overlay {
    background: rgba(10, 5, 20, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    z-index: 5001 !important;
}

.market-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-b);
}

.market-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--p1), var(--p2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    padding: 1rem 0;
}

.soul-card-market {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.soul-card-market::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(201,180,240,0.1), transparent 70%);
    opacity: 0.5;
}

.soul-card-market:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--p1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(201,180,240,0.2);
}

.market-soul-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #fff;
}

.market-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

.seller-rating {
    background: rgba(251, 140, 0, 0.1);
    color: #ffb74d;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.market-bio-preview {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.market-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--p1);
}

.btn-buy-lot {
    background: linear-gradient(135deg, var(--p1), var(--p2));
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-buy-lot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--p1);
}

.btn-sell-soul {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 180, 212, 0.1);
    border: 1px solid rgba(240, 180, 212, 0.3);
    color: #f0b4d4;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.4s var(--ease);
}

.btn-sell-soul:hover {
    background: rgba(240, 180, 212, 0.2);
    border-color: #f0b4d4;
    box-shadow: 0 0 15px rgba(240, 180, 212, 0.2);
}

.sell-soul-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: #ffb74d; color: #000;
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 8px; border-radius: 4px;
    text-transform: uppercase;
}

/* Animations */
.fade-in { animation: fadeIn 0.6s var(--ease) both; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.slide-up { animation: slideUp 0.8s var(--ease) both; }
@keyframes slideUp { from{opacity:0; transform:translateY(30px)} to{opacity:1; transform:translateY(0)} }
/ *    % %  Q U O T E   B O O K   S T Y L E S    % %  * / 
 . q u o t e - c a r d   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 3 ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 8 ) ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         p a d d i n g :   1 . 5 r e m ; 
         m a r g i n - b o t t o m :   1 . 5 r e m ; 
         p o s i t i o n :   r e l a t i v e ; 
         b a c k d r o p - f i l t e r :   b l u r ( 1 5 p x ) ; 
         t r a n s i t i o n :   a l l   0 . 4 s   v a r ( - - e a s e ) ; 
 } 
 . q u o t e - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ; 
         b o r d e r - c o l o r :   v a r ( - - p 1 ) ; 
         b o x - s h a d o w :   0   1 0 p x   3 0 p x   r g b a ( 0 , 0 , 0 , 0 . 4 ) ; 
 } 
 . q u o t e - t e x t   { 
         f o n t - f a m i l y :   ' C o r m o r a n t   G a r a m o n d ' ,   s e r i f ; 
         f o n t - s t y l e :   i t a l i c ; 
         f o n t - s i z e :   1 . 3 r e m ; 
         l i n e - h e i g h t :   1 . 6 ; 
         c o l o r :   v a r ( - - t e x t ) ; 
         m a r g i n - b o t t o m :   1 r e m ; 
 } 
 . q u o t e - m e t a   { 
         f o n t - s i z e :   0 . 8 r e m ; 
         c o l o r :   v a r ( - - m u t e d ) ; 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   f l e x - e n d ; 
         g a p :   0 . 5 r e m ; 
         l e t t e r - s p a c i n g :   0 . 0 2 e m ; 
 } 
 . q u o t e - a u t h o r   {   c o l o r :   v a r ( - - p 1 ) ;   f o n t - w e i g h t :   5 0 0 ;   } 
 
 . w i n n e r - b a n n e r   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   r g b a ( 2 1 2 ,   1 7 5 ,   5 5 ,   0 . 1 5 ) ,   r g b a ( 0 ,   0 ,   0 ,   0 . 4 ) ) ; 
         b o r d e r :   2 p x   s o l i d   # d 4 a f 3 7 ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         p a d d i n g :   2 r e m ; 
         m a r g i n - b o t t o m :   2 r e m ; 
         t e x t - a l i g n :   c e n t e r ; 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
         b o x - s h a d o w :   0   0   3 0 p x   r g b a ( 2 1 2 ,   1 7 5 ,   5 5 ,   0 . 2 ) ; 
 } 
 . w i n n e r - b a n n e r : : b e f o r e   { 
         c o n t e n t :   ' <' ; 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   - 1 0 p x ;   r i g h t :   - 1 0 p x ; 
         f o n t - s i z e :   5 r e m ; 
         o p a c i t y :   0 . 1 ; 
         t r a n s f o r m :   r o t a t e ( 2 0 d e g ) ; 
 } 
 . w i n n e r - t i t l e   { 
         f o n t - f a m i l y :   ' C o r m o r a n t   G a r a m o n d ' ,   s e r i f ; 
         f o n t - s i z e :   1 . 8 r e m ; 
         c o l o r :   # d 4 a f 3 7 ; 
         m a r g i n - b o t t o m :   1 r e m ; 
         l e t t e r - s p a c i n g :   0 . 0 5 e m ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
 } 
 . w i n n e r - c o n g r a t s   { 
         f o n t - s i z e :   0 . 9 r e m ; 
         c o l o r :   # f f f ; 
         m a r g i n - t o p :   1 r e m ; 
         f o n t - w e i g h t :   6 0 0 ; 
         t e x t - s h a d o w :   0   0   1 0 p x   r g b a ( 2 1 2 ,   1 7 5 ,   5 5 ,   0 . 5 ) ; 
 } 
 
 . q u o t e - a c t i o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 r e m ; 
         m a r g i n - t o p :   1 r e m ; 
         b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ; 
         p a d d i n g - t o p :   1 r e m ; 
 } 
 . q - a c t i o n - b t n   { 
         b a c k g r o u n d :   n o n e ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         w i d t h :   3 6 p x ;   h e i g h t :   3 6 p x ; 
         d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ; 
         c o l o r :   v a r ( - - m u t e d ) ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 3 s ; 
 } 
 . q - a c t i o n - b t n : h o v e r   { 
         b o r d e r - c o l o r :   v a r ( - - p 1 ) ; 
         c o l o r :   v a r ( - - p 1 ) ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ; 
 } 
 . q - a c t i o n - b t n . l i k e d   { 
         c o l o r :   # f f 4 d 4 d ; 
         b o r d e r - c o l o r :   # f f 4 d 4 d ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   7 7 ,   7 7 ,   0 . 1 ) ; 
 } 
 
 . s o c i a l - s h a r e - g r i d   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 . 5 r e m ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         m a r g i n - t o p :   1 . 5 r e m ; 
 } 
 . s h a r e - i c o n - b t n   { 
         d i s p l a y :   f l e x ;   f l e x - d i r e c t i o n :   c o l u m n ;   a l i g n - i t e m s :   c e n t e r ;   g a p :   0 . 5 r e m ; 
         c u r s o r :   p o i n t e r ;   t r a n s i t i o n :   t r a n s f o r m   0 . 3 s ; 
 } 
 . s h a r e - i c o n - b t n : h o v e r   {   t r a n s f o r m :   s c a l e ( 1 . 1 ) ;   } 
 . s h a r e - i c o n - b t n   i m g   {   w i d t h :   4 0 p x ;   h e i g h t :   4 0 p x ;   b o r d e r - r a d i u s :   1 0 p x ;   } 
 . s h a r e - l a b e l   {   f o n t - s i z e :   0 . 7 r e m ;   c o l o r :   v a r ( - - m u t e d ) ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   } 
 
 . s a v e - q u o t e - b t n   { 
         o p a c i t y :   0 ; 
         p o s i t i o n :   a b s o l u t e ; 
         r i g h t :   - 4 0 p x ; 
         t o p :   5 0 % ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 0 % ) ; 
         t r a n s i t i o n :   a l l   0 . 3 s ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - p 1 ) ; 
         c o l o r :   v a r ( - - p 1 ) ; 
         w i d t h :   3 2 p x ;   h e i g h t :   3 2 p x ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         c u r s o r :   p o i n t e r ; 
         d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ; 
 } 
 . m s g . a s s i s t a n t : h o v e r   . s a v e - q u o t e - b t n   { 
         o p a c i t y :   1 ; 
         r i g h t :   1 0 p x ; 
 } 
 
 
 
/* ===========================
   FINAL CONSOLIDATED LUX UI
   =========================== */

.grain { pointer-events: none !important; z-index: -1 !important; }

#onb-body, .s-onboard {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.soul-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px 20px !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 15px auto !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

.sc-info {
    flex: 1 1 200px !important;
    display: flex;
    flex-direction: column;
}

.soul-card-name {
    font-size: 1.5rem !important;
    font-weight: 300;
}

.soul-battle-toggle-wrap {
    flex: 0 0 auto !important;
    margin: 0 10px !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px !important;
    border-radius: 40px;
    z-index: 1000 !important;
}

.soul-card-actions {
    flex: 0 0 auto !important;
    display: flex;
    gap: 10px !important;
    z-index: 1000 !important;
}

.soul-btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative !important;
}

.soul-card-actions {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
}

.soul-card-actions .btn-delete-soul {
    padding: 9px 14px !important;
    min-width: 0 !important;
    background: rgba(255, 95, 95, 0.055) !important;
    border: 1px solid rgba(255, 130, 130, 0.24) !important;
    color: rgba(255, 190, 190, 0.82) !important;
    box-shadow: none !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.03em !important;
}

.soul-card-actions .btn-delete-soul:hover {
    background: rgba(255, 95, 95, 0.14) !important;
    border-color: rgba(255, 150, 150, 0.52) !important;
    color: #ffdada !important;
    box-shadow: 0 8px 22px rgba(255, 80, 80, 0.12) !important;
    transform: translateY(-2px) !important;
}

.soul-delete-link {
    flex: 1 1 100%;
    justify-self: flex-end;
    margin: -2px 4px 0 auto;
    padding: 0;
    width: auto;
    border: 0;
    background: transparent;
    color: rgba(255, 165, 165, 0.56);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: right;
    opacity: 0.72;
    transition: color 0.2s ease, opacity 0.2s ease, text-shadow 0.2s ease;
}

.soul-delete-link:hover {
    color: rgba(255, 205, 205, 0.92);
    opacity: 1;
    text-shadow: 0 0 14px rgba(255, 90, 90, 0.28);
}

.p-card.activated {
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Battle Card Specifics */
.px-battle-card {
    animation: battle-shimmer 3s infinite linear;
    background: linear-gradient(135deg, rgba(255,77,77,0.1) 0%, rgba(20,20,20,0.8) 50%, rgba(255,77,77,0.1) 100%) !important;
    background-size: 200% 100% !important;
}

@keyframes battle-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ===========================
   BATTLE ALLOW TOGGLE SWITCH
   =========================== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    transition: background 0.3s, box-shadow 0.3s;
}
.toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: rgba(255, 77, 77, 0.5);
    border-color: #ff4d4d;
    box-shadow: 0 0 8px rgba(255,77,77,0.5);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background: #ff4d4d;
}
.toggle-slider:hover {
    border-color: rgba(255,255,255,0.3);
}

/* HEAVY LUXURY MARKETPLACE CSS */
.lux-market-list { display:flex;flex-direction:column;gap:1.2rem; margin-top: 1rem; width:100%; max-width:1000px; margin-inline:auto; }
.lux-market-controls { display:flex; justify-content:space-between; align-items:center; margin-bottom: 0.75rem; max-width:1000px; margin-inline:auto; width:100%; }
.lux-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1000px;
    margin-inline: auto;
    width: 100%;
    margin-bottom: 1.25rem;
}
.lux-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lux-filter-tab:hover {
    border-color: rgba(201,180,240,0.45);
    color: rgba(255,255,255,0.9);
    background: rgba(201,180,240,0.08);
}
.lux-filter-tab.active {
    border-color: var(--p1);
    background: rgba(201,180,240,0.15);
    color: var(--p1);
    font-weight: 600;
}
.lux-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: rgba(201,180,240,0.25);
    color: var(--p1);
    font-size: 0.68rem;
    font-weight: 700;
}
.lux-market-sort { background:transparent; border:1px solid var(--p1); color:var(--text); padding:0.6rem 1.2rem; border-radius:30px; outline:none; font-family:'Inter', sans-serif; cursor:pointer; font-size:0.85rem;}
.lux-market-sort option { background:#12081e; color:#fff;}
.lux-row { display:grid; grid-template-columns: 2fr 1.5fr 1fr 1fr 1.5fr auto; align-items:center; gap:1rem; padding:1.2rem 1.5rem; background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.05); border-radius:16px; transition:all 0.4s cubic-bezier(0.16,1,0.3,1); }
.lux-row:hover { background:rgba(255,255,255,0.04); border-color:rgba(201,180,240,0.3); transform:translateX(5px); box-shadow:0 10px 20px rgba(0,0,0,0.4); }
.lux-col { display:flex; flex-direction:column; gap:0.3rem; }
.lux-label { font-size:0.6rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted); }
.lux-val { font-size:0.95rem; font-family:'Cormorant Garamond', serif; color:var(--text); font-weight:500; }
.lux-val.p1 { color:var(--p1); font-family:'Inter', sans-serif; font-size:0.9rem; font-weight:600; }
.lux-btn-more { padding:0.6rem 1.2rem; background:linear-gradient(135deg, rgba(201,180,240,0.1), rgba(240,180,212,0.1)); border:1px solid var(--p1); color:var(--text); border-radius:30px; cursor:pointer; font-size:0.8rem; font-family:'Inter',sans-serif; text-transform:uppercase; letter-spacing:0.1em; transition:0.3s; }
.lux-btn-more:hover { box-shadow: 0 0 15px rgba(201,180,240,0.3); background:rgba(201,180,240,0.2); }

/* LUXURY DETAILS CARD */
.lux-detail-wrap { display:grid; grid-template-columns: 1fr 2fr; gap:2.5rem; max-width:800px; margin:0 auto; background:rgba(18,10,30,0.8); border:1px solid var(--glass-b); padding:2.5rem; border-radius:24px; box-shadow:0 20px 50px rgba(0,0,0,0.8); }
.lux-photo-slot { aspect-ratio:3/4; border-radius:16px; border:2px solid rgba(201,180,240,0.2); background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.5)); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.lux-photo-slot::after { content:'PHOTO SLOT'; position:absolute; color:rgba(255,255,255,0.1); font-family:'Inter'; font-weight:800; font-size:1.5rem; transform:rotate(-45deg); letter-spacing:0.2em; }
.lux-info-grid { display:grid; grid-template-columns: 1fr 1fr; gap:1.5rem; margin-top:2rem;}
.lux-review { margin-top:2rem; padding:1.5rem; border-left:3px solid var(--p1); background:rgba(255,255,255,0.03); font-style:italic; font-family:'Cormorant Garamond',serif; font-size:1.1rem; color:var(--muted); line-height:1.6; }
.lux-action-row { display:flex; gap:1.5rem; margin-top:2.5rem; align-items:center; grid-column:1/-1; justify-content:flex-end;}
.lux-btn-buy { padding:1rem 2.5rem; font-size:1.1rem; border-radius:40px; background:linear-gradient(135deg, var(--p1), var(--p2)); color:#000; font-weight:700; border:none; cursor:pointer; text-transform:uppercase; letter-spacing:0.1em; transition:0.4s; }
.lux-btn-buy:hover { box-shadow:0 0 30px var(--p1); transform:scale(1.05); }

/* CHECKBOX MODAL */
.lux-modal { background:rgba(15,8,22,0.98); border:1px solid var(--p1); border-radius:20px; padding:2.5rem; max-width:500px; text-align:center; box-shadow:0 0 50px rgba(201,180,240,0.15); }
.lux-modal-title { font-family:'Cormorant Garamond',serif; font-size:1.6rem; margin-bottom:0.5rem; color:var(--p1); }
.lux-modal-price { font-size:2rem; font-weight:800; margin-bottom:2rem; color:#fff; }
.lux-checkbox-row { display:flex; align-items:flex-start; gap:1rem; text-align:left; margin-bottom:1.2rem; cursor:pointer; }
.lux-checkbox-row input { accent-color:var(--p1); transform:scale(1.3); margin-top:4px; }
.lux-checkbox-row span { font-size:0.85rem; color:var(--muted); line-height:1.5; }
.lux-btn-confirm { width:100%; padding:1rem; border-radius:30px; background:linear-gradient(135deg, var(--p1), var(--p2)); color:#000; font-weight:700; border:none; cursor:pointer; margin-top:1.5rem; transition:0.3s; }
.lux-btn-confirm:disabled { background:rgba(255,255,255,0.1); color:rgba(255,255,255,0.3); box-shadow:none; cursor:not-allowed; transform:none; }

/* ===========================
   PREMIUM SOULS BATTLE ARENA
   =========================== */
.arena-modal {
    max-width: 860px !important;
    padding: 0 !important;
    background: rgba(10, 5, 20, 0.98) !important;
    border: 1px solid rgba(201, 180, 240, 0.2) !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5002;
}

.arena-stage {
    display: none;
    flex-direction: column;
    height: 600px;
    max-height: 80vh;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
}
.arena-stage.active { display: flex; }
/* Results stage: flexible height, content scrolls, buttons always visible */
#arena-stage-results.active {
    height: auto;
    min-height: 400px;
    max-height: 84vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* STAGE: SELECT */
.arena-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.75rem 2.5rem 2.25rem;
    flex: 1;
    position: relative;
}
.soul-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.soul-slot-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--p1);
}
.soul-picker-trigger {
    width: 100%;
    min-height: 300px;
    border-radius: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 58%),
        rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    text-align: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    pointer-events: auto !important;
    z-index: 3;
}
.soul-picker-trigger:hover {
    border-color: var(--p1);
    background:
        radial-gradient(circle at top, rgba(201, 180, 240, 0.10), transparent 58%),
        rgba(201, 180, 240, 0.05);
    transform: translateY(-2px);
}
.soul-picker-trigger.selected {
    border-style: solid;
    border-color: var(--p1);
    background:
        radial-gradient(circle at top, rgba(201, 180, 240, 0.14), transparent 58%),
        rgba(201, 180, 240, 0.08);
}
.soul-picker-trigger .icon {
    font-size: 1.8rem;
}
.soul-picker-trigger .name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    color: #fff;
}
.soul-picker-trigger .meta {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 260px;
}
.soul-picker-trigger-left {
    box-shadow: inset 0 0 0 1px rgba(115, 180, 255, 0.06);
}
.soul-picker-trigger-right {
    box-shadow: inset 0 0 0 1px rgba(201, 180, 240, 0.05);
}

.arena-vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #8fdb8d;
    text-shadow: 0 0 20px rgba(143, 219, 141, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* STAGE: PREP (LOADER) */
.arena-prep-view {
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    text-align: center;
}
.arena-loader-container {
    display: flex;
    gap: 4rem;
    position: relative;
}
.soul-loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.soul-loader::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--p1);
    border-bottom-color: var(--p2);
    animation: spin 2s linear infinite;
}
.soul-loader.ready::before {
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
}
.prep-status-text {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 1rem;
    min-height: 1.5em;
}

/* STAGE: SETUP */
.arena-setup-view {
    padding: 3rem;
    gap: 2rem;
}
.arena-setup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}
.arena-input-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.arena-topic-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}
.arena-topic-input:focus { border-color: var(--p1); box-shadow: 0 0 15px rgba(201, 180, 240, 0.2); }

/* STAGE: ARENA */
.arena-chat-view {
    height: 100%;
}
.arena-header {
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}
/* New arena header bar (replaces modal-head in arena) */
.arena-header-bar {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
    gap: 0.5rem;
}
.arena-header-bar .modal-title {
    font-size: 1.1rem;
    white-space: nowrap;
}
.arena-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.arena-balance-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #f0d060;
    background: rgba(240,208,96,0.08);
    border: 1px solid rgba(240,208,96,0.15);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    white-space: nowrap;
}
.arena-timer {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--p2);
}
.arena-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    scroll-behavior: smooth;
}
.arena-msg {
    max-width: 78%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    animation: msgSlide 0.4s ease both;
    position: relative;
}
.arena-msg:hover .arena-msg-like {
    opacity: 1;
}
.arena-msg-like {
    position: absolute;
    bottom: 0.4rem;
    right: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.15s;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
}
.arena-msg-like:hover { transform: scale(1.2); }
.arena-msg-like.liked { opacity: 1; }
.soul1 .arena-msg-like { right: unset; left: 0.6rem; }
.arena-msg-name {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.45;
    padding: 0 0.2rem;
}
.arena-msg-text {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.12rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.75;
    padding: 1rem 1.4rem;
    border-radius: 20px;
}
.arena-msg.soul1 {
    align-self: flex-start;
}
.arena-msg.soul1 .arena-msg-name { color: var(--p1); }
.arena-msg.soul1 .arena-msg-text {
    background: rgba(201,180,240,0.09);
    border: 1px solid rgba(201,180,240,0.18);
    border-top-left-radius: 4px;
    color: rgba(255,255,255,0.88);
}
.arena-msg.soul2 {
    align-self: flex-end;
    align-items: flex-end;
}
.arena-msg.soul2 .arena-msg-name { color: var(--p2); }
.arena-msg.soul2 .arena-msg-text {
    background: rgba(240,180,212,0.09);
    border: 1px solid rgba(240,180,212,0.18);
    border-top-right-radius: 4px;
    color: rgba(255,255,255,0.88);
}
/* Waiting dots */
.arena-msg-waiting {
    align-self: center;
    display: flex;
    gap: 6px;
    padding: 0.6rem 0;
    opacity: 0.4;
}
.arena-msg-waiting span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p1);
    animation: arenaDot 1.2s ease-in-out infinite;
}
.arena-msg-waiting span:nth-child(2) { animation-delay: 0.2s; background: var(--p2); }
.arena-msg-waiting span:nth-child(3) { animation-delay: 0.4s; }
@keyframes arenaDot {
    0%,80%,100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}
/* Timer waiting state */
#battle-timer { transition: color 0.3s; }
#battle-timer:not(:empty) { display: block !important; }

/* ARENA FIRST WAIT */
.arena-first-wait {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem;
}
.arena-wait-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arena-wait-core {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(201,180,240,0.7), rgba(120,60,200,0.3));
    box-shadow: 0 0 30px rgba(201,180,240,0.4), 0 0 60px rgba(201,180,240,0.15);
    animation: arenaOrbPulse 2.4s ease-in-out infinite;
}
.arena-wait-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(201,180,240,0.25);
    animation: arenaRingExpand 2.4s ease-out infinite;
}
.arena-wait-ring.r2 {
    animation-delay: 1.2s;
    border-color: rgba(240,180,212,0.18);
}
@keyframes arenaOrbPulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 30px rgba(201,180,240,0.4); }
    50%      { transform: scale(1.08); box-shadow: 0 0 50px rgba(201,180,240,0.65), 0 0 90px rgba(201,180,240,0.2); }
}
@keyframes arenaRingExpand {
    0%   { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}
.arena-wait-topic {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    text-align: center;
    letter-spacing: 0.03em;
    max-width: 340px;
    line-height: 1.5;
}
.arena-wait-hint {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    text-align: center;
}

/* STAGE: RESULTS */
/* ??? Arena Results Screen ????????????????????????????????????? */
.arena-result-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}
.winner-reveal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
    width: 100%;
    padding: 0.25rem 0;
}
.winner-vs-sep {
    font-size: 1.4rem;
    opacity: 0.4;
    align-self: center;
    padding-bottom: 0.5rem;
}
.winner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    max-width: 200px;
}
.winner-crown-wrap {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crown-icon {
    font-size: 1.6rem;
    animation: crownFloat 2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px gold);
    display: none;
}
.crown-icon.active { display: block; }

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.result-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0.3rem;
}
.result-streak {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.verdict-analysis {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-style: italic;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.78rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: left;
}

.arena-controls {
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 5, 20, 0.6);
    flex-shrink: 0; /* never shrink ? always visible */
    position: relative;
    z-index: 3;
}

.battle-picker-modal {
    max-width: 860px !important;
    padding: 0 !important;
    background: rgba(10, 5, 20, 0.98) !important;
    border: 1px solid rgba(201, 180, 240, 0.2) !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5002;
}
.battle-picker-subtitle {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.battle-picker-body {
    padding: 1.4rem 1.6rem 1.8rem;
    min-height: 420px;
    max-height: 65vh;
    overflow-y: auto;
}
.battle-picker-list {
    display: grid;
    gap: 0.9rem;
}
.battle-picker-empty {
    padding: 2rem;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}
.battle-pick-card {
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 52%),
        rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 1.15rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: 0.25s;
    text-align: left;
    color: inherit;
}
.battle-pick-card:hover {
    border-color: var(--p1);
    background:
        radial-gradient(circle at top left, rgba(201, 180, 240, 0.10), transparent 52%),
        rgba(201, 180, 240, 0.06);
    transform: translateY(-2px);
}
.battle-pick-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.battle-pick-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #fff;
}
.battle-pick-card-subtitle {
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.battle-pick-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}
.battle-stat-chip {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    padding: 0.38rem 0.78rem;
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}
.battle-pick-card.is-clone {
    border-color: rgba(143, 219, 141, 0.28);
    background:
        radial-gradient(circle at top left, rgba(143, 219, 141, 0.11), transparent 52%),
        rgba(255,255,255,0.03);
}
.battle-pick-card.is-clone:hover {
    border-color: rgba(143, 219, 141, 0.55);
}
.battle-picker-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    padding: 0.75rem 0.25rem 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.4rem;
    user-select: none;
}
.battle-result-streak {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
#battle-arena-modal.open,
#battle-arena-modal.open *,
#battle-soul-picker-modal.open,
#battle-soul-picker-modal.open * {
    pointer-events: auto !important;
}
#battle-arena-modal.open {
    z-index: 30000 !important;
}
#battle-soul-picker-modal.open {
    z-index: 30001 !important;
}

/* ???????????????????????????????????????????
   AUTH ? USERNAME BADGE & MODALS
??????????????????????????????????????????? */
.auth-username-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(100, 220, 180, 0.35);
    background: rgba(100, 220, 180, 0.08);
    color: #64dcb4;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 0.5rem;
}
.auth-username-badge:hover {
    border-color: rgba(100, 220, 180, 0.65);
    background: rgba(100, 220, 180, 0.14);
}
.auth-username-badge::before {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.8;
}

/* Auth section inside balance widget on home screen */
.auth-home-bind-btn {
    background: none;
    border: 1px solid rgba(100, 220, 180, 0.3);
    border-radius: 20px;
    color: rgba(100, 220, 180, 0.75);
    font-size: 0.7rem;
    padding: 0.25rem 1rem;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}
.auth-home-bind-btn:hover {
    border-color: rgba(100, 220, 180, 0.6);
    color: #64dcb4;
    background: rgba(100, 220, 180, 0.08);
}
.auth-home-name {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(100, 220, 180, 0.08);
    border: 1px solid rgba(100, 220, 180, 0.35);
    border-radius: 20px;
    color: #64dcb4;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
.auth-home-name:hover {
    border-color: rgba(100, 220, 180, 0.65);
    background: rgba(100, 220, 180, 0.14);
}

/* ??????? ?????? ???? ???????????? ??? ??????: ???? ????? ????, ?????? ?? ????? */
.auth-guest-stealth {
    opacity: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    height: 44px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.reg-login-hint {
    font-size: 0.85rem;
    color: var(--p2);
    width: 100%;
    text-align: left;
    line-height: 1.35;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-9px); }
    36% { transform: translateX(9px); }
    54% { transform: translateX(-6px); }
    72% { transform: translateX(6px); }
}

.input-shake {
    animation: inputShake 0.45s ease;
}

.auth-overlay {
    z-index: 13000;
}
.auth-overlay.open {
    pointer-events: auto;
}
.auth-modal {
    position: relative;
    background: linear-gradient(160deg, #11101c 0%, #0d0c17 100%);
    border: 1px solid rgba(100, 220, 180, 0.2);
    border-radius: 24px;
    padding: 2.4rem 2rem 2rem;
    max-width: 420px;
    width: 94%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 0 50px rgba(100, 220, 180, 0.1), 0 8px 32px rgba(0,0,0,0.6);
}
.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s;
}
.auth-modal-close:hover { color: rgba(255,255,255,0.8); }

.auth-modal-glyph {
    font-size: 2.4rem;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(100,220,180,0.4));
}
.auth-modal-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}
.auth-modal-desc {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.auth-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.auth-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(100,220,180,0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: rgba(100,220,180,0.55);
    background: rgba(100,220,180,0.05);
}
.auth-input::placeholder { color: rgba(255,255,255,0.25); }
.auth-field-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    padding-left: 0.25rem;
}
.auth-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    color: #fca5a5;
    line-height: 1.45;
}

.auth-modal-actions {
    display: flex;
    gap: 0.75rem;
}
.auth-modal-btn-primary {
    flex: 1;
    padding: 0.85rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3dd9a4 0%, #1a9e72 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.auth-modal-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-modal-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.auth-modal-btn-secondary {
    flex: 1;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.auth-modal-btn-secondary:hover {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.85);
}

/* ???????????????????????????????????????????
   CLONE REQUEST MODAL
??????????????????????????????????????????? */
.clone-req-overlay {
    z-index: 12000;
}
.clone-req-overlay.open {
    pointer-events: auto;
}
.clone-req-modal {
    position: relative;
    background: linear-gradient(160deg, #13101e 0%, #0e0c18 100%);
    border: 1px solid rgba(143, 90, 240, 0.25);
    border-radius: 24px;
    padding: 2.4rem 2rem 2rem;
    max-width: 540px;
    width: 94%;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 0 60px rgba(120, 60, 220, 0.18), 0 8px 32px rgba(0,0,0,0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 90, 240, 0.3) transparent;
}
.clone-req-modal::-webkit-scrollbar { width: 4px; }
.clone-req-modal::-webkit-scrollbar-track { background: transparent; }
.clone-req-modal::-webkit-scrollbar-thumb { background: rgba(143,90,240,0.35); border-radius: 4px; }

.clone-req-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s;
    pointer-events: auto;
}
.clone-req-close:hover { color: rgba(255,255,255,0.85); }

.clone-req-glyph {
    font-size: 2.8rem;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(143,90,240,0.5));
}
.clone-req-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}

.clone-req-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}
.clone-req-body p { margin: 0; }
.clone-req-body strong { color: rgba(255,255,255,0.95); }
.clone-req-def {
    font-style: normal;
    color: rgba(201,180,240,0.75);
    font-size: 0.78em;
}

.clone-req-conditions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.clone-req-cond-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
}
.clone-req-cond-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(143, 90, 240, 0.3);
    border: 1px solid rgba(143, 90, 240, 0.5);
    color: #c9b4f0;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.clone-req-notice {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    background: rgba(143, 90, 240, 0.08);
    border: 1px solid rgba(143, 90, 240, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.79rem;
    color: rgba(201,180,240,0.85);
    line-height: 1.55;
}
.clone-req-notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.clone-req-checkbox-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.clone-req-checkbox-row:hover {
    border-color: rgba(143,90,240,0.4);
    background: rgba(143,90,240,0.06);
}
.clone-req-checkbox-row input[type="checkbox"] {
    display: none;
}
.clone-req-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(143,90,240,0.5);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 0.05rem;
}
.clone-req-checkbox-row input:checked ~ .clone-req-checkmark {
    background: rgba(143,90,240,0.8);
    border-color: #8f5af0;
}
.clone-req-checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.clone-req-checkbox-row input:checked ~ .clone-req-checkmark::after {
    display: block;
}
.clone-req-checkbox-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
}

.clone-req-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    background: linear-gradient(135deg, #8f5af0 0%, #6b3fa8 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(143,90,240,0.35);
}
.clone-req-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.clone-req-submit:not(:disabled):hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(143,90,240,0.5);
}
.clone-req-submit:not(:disabled):active {
    transform: translateY(0);
}

/* ??? Trends tabs ????????????????????????????????????????????? */
.trends-tab-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trends-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.75rem 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}
.trends-tab.active { color: #f0d060; border-bottom-color: #f0d060; }

/* Тренды потока: список цитат/батлов в скроллящейся колонке (flex + min-height:0) */
#global-quotes-overlay .qb-modal > .trends-tab-row {
  flex-shrink: 0;
}
#global-quotes-overlay .trends-pane {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}
#global-quotes-overlay .trends-pane .qb-sort-row {
  flex-shrink: 0;
}
#global-quotes-overlay .trends-pane .qb-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ??? Trend Battle cards ??????????????????????????????????????? */
.tb-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.tb-topic {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #fff;
    line-height: 1.3;
}
.tb-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
}
.tb-names small { opacity: 0.5; }
.tb-winner { color: #f0d060; }
.tb-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}
.tb-free  { font-size: 0.7rem; color: #7ee8a2; background: rgba(126,232,162,0.1); border-radius: 20px; padding: 0.15rem 0.55rem; }
.tb-price { font-size: 0.7rem; color: #f0d060; background: rgba(240,208,96,0.1);  border-radius: 20px; padding: 0.15rem 0.55rem; }
.tb-like-btn {
    display: flex; align-items: center; gap: 0.3rem;
    background: none; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 0.2rem 0.55rem;
    color: rgba(255,255,255,0.4); cursor: pointer; font-size: 0.7rem;
    transition: 0.2s;
}
.tb-like-btn.liked { color: #f0d060; border-color: rgba(240,208,96,0.4); }
.tb-open-btn {
    margin-left: auto;
    background: rgba(201,180,240,0.1); border: 1px solid rgba(201,180,240,0.25);
    border-radius: 20px; padding: 0.2rem 0.75rem;
    color: #c9b4f0; cursor: pointer; font-size: 0.72rem;
    transition: 0.2s;
}
.tb-open-btn:hover { background: rgba(201,180,240,0.2); }

/* ??? Share battle price tabs ?????????????????????????????????? */
.share-price-tab {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 0.3rem 0.85rem;
    color: rgba(255,255,255,0.4); cursor: pointer; font-size: 0.78rem;
    transition: 0.2s;
}
.share-price-tab.active { background: rgba(240,208,96,0.12); border-color: rgba(240,208,96,0.35); color: #f0d060; }

/* ??? Battle Archive actions row ??????????????????????????????? */
.battle-arc-actions { display: flex; gap: 0.5rem; margin-top: 0.3rem; }

/* ??? Battle Score Breakdown ?????????????????????????????????? */
.score-total-badge {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f0d060;
    text-shadow: 0 0 10px rgba(240,208,96,0.5);
    min-height: 1.4em;
}
.score-breakdown-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.score-breakdown-card {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
}
.score-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin: 0.5rem 0 0.25rem;
}
.score-section-title:first-child { margin-top: 0; }
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 0.5rem;
}
.score-row:last-child { border-bottom: none; }
.score-label { color: rgba(255,255,255,0.55); flex: 1; }
.score-val { font-weight: 600; white-space: nowrap; }
.score-val.pos { color: #7ee8a2; }
.score-val.neg { color: #ff7070; }
.score-val.zero { color: rgba(255,255,255,0.25); }
.score-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}
.score-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.8rem;
    color: #f0d060;
    margin-top: 0.3rem;
}

/* ??? Battle Judge Progress Screen ???????????????????????????? */
.arena-judging-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    flex: 1;
}
.arena-judge-orb {
    width: 90px;
    height: 90px;
    position: relative;
}
.arena-judge-orb .arena-wait-ring,
.arena-judge-orb .arena-wait-core {
    position: absolute;
    border-radius: 50%;
}
.arena-judge-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    text-align: center;
}
.arena-judge-progress {
    width: 220px;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.arena-judge-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c9b4f0, #f0d060);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.arena-judge-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
    text-align: center;
}

/* ??? Battle Role Selector ????????????????????????????????????? */
.arena-role-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 1.2rem 0 0.6rem;
}
.arena-role-row {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}
.arena-role-card {
    flex: 1;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255,255,255,0.03);
    position: relative;
}
.arena-role-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
.arena-role-card.for-side {
    border-color: rgba(100,220,130,0.4);
    background: rgba(100,220,130,0.07);
}
.arena-role-card.against-side {
    border-color: rgba(255,100,100,0.4);
    background: rgba(255,100,100,0.07);
}
.arena-role-soul-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arena-role-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}
.arena-role-badge.for  { background: rgba(100,220,130,0.18); color: #64dc82; border: 1px solid rgba(100,220,130,0.35); }
.arena-role-badge.against { background: rgba(255,100,100,0.18); color: #ff6464; border: 1px solid rgba(255,100,100,0.35); }
.arena-role-badge.neutral { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.12); }
.arena-role-check {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.15s;
}
.arena-role-card.for-side .arena-role-check {
    border-color: #64dc82;
    background: #64dc82;
    color: #0a0514;
}

/* ??? Battle Archive ???????????????????????????????????????????? */
#battle-archive-overlay, #battle-transcript-overlay { z-index: 14000; }
#share-battle-overlay, #my-finds-overlay, #purchase-battle-overlay { z-index: 15000; }
.battle-arc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.battle-arc-card:hover {
    border-color: rgba(167,139,250,0.45);
    background: rgba(167,139,250,0.07);
    transform: translateY(-1px);
}
.battle-arc-topic {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.35rem;
}
.battle-arc-meta {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.battle-arc-winner { color: #a78bfa; font-weight: 600; }
.battle-arc-empty {
    text-align: center;
    color: rgba(255,255,255,0.25);
    padding: 3rem 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}
/* Transcript viewer */
.btr-msg {
    max-width: 78%;
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.btr-msg.left { align-self: flex-start; }
.btr-msg.right { align-self: flex-end; align-items: flex-end; }
.btr-name {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.4;
}
.btr-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
}
.btr-msg.left .btr-text {
    background: rgba(201,180,240,0.09);
    border: 1px solid rgba(201,180,240,0.18);
    border-top-left-radius: 4px;
}
.btr-msg.right .btr-text {
    background: rgba(240,180,212,0.09);
    border: 1px solid rgba(240,180,212,0.18);
    border-top-right-radius: 4px;
}
.btr-verdict {
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-top: 1.2rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.btr-verdict strong { color: #a78bfa; display: block; margin-bottom: 0.4rem; }

/* ???????????????????????????????????????????????????????
   AMBASSADOR PROGRAM PAGE
??????????????????????????????????????????????????????? */

.ambassador-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 6, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  overflow-x: hidden;
}
.ambassador-overlay.open { display: flex; justify-content: center; align-items: flex-start; }

.ambassador-modal {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.ambassador-close {
  position: fixed;
  top: 1rem; right: 1.2rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
  z-index: 9001;
}
.ambassador-close:hover { background: rgba(255,80,80,0.2); border-color: rgba(255,80,80,0.5); color: #ff8888; }

/* ?? Hero ?? */
.amb-hero {
  position: relative;
  padding: 4rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}
.amb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,200,66,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.amb-hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.amb-star {
  position: absolute;
  color: rgba(245,200,66,0.5);
  animation: ambStarFloat 6s ease-in-out infinite;
}
.amb-star.s1 { top: 15%; left: 8%; font-size: 1.4rem; animation-delay: 0s; }
.amb-star.s2 { top: 25%; left: 88%; font-size: 0.9rem; animation-delay: 1.2s; }
.amb-star.s3 { top: 65%; left: 5%; font-size: 0.7rem; animation-delay: 2.4s; }
.amb-star.s4 { top: 70%; left: 92%; font-size: 1.1rem; animation-delay: 0.8s; }
.amb-star.s5 { top: 40%; left: 50%; font-size: 0.6rem; animation-delay: 3s; }
@keyframes ambStarFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}
.amb-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(245,200,66,0.6));
  animation: ambIconPulse 3s ease-in-out infinite;
}
@keyframes ambIconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(245,200,66,0.6)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(245,200,66,0.9)); }
}
.amb-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffe066 0%, #f5c842 40%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
.amb-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 2rem;
  letter-spacing: 0.02em;
}
.amb-hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5c842, transparent);
  margin: 0 auto;
  border-radius: 2px;
}

/* ?? Sections ?? */
.amb-section {
  padding: 2rem 1.5rem;
  position: relative;
}
.amb-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.03em;
}
.amb-section-icon { font-size: 1.3rem; }

/* ?? Benefits ?? */
.amb-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.amb-benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  transition: 0.4s;
}
.amb-benefit-card:hover {
  background: rgba(245,200,66,0.06);
  border-color: rgba(245,200,66,0.25);
  transform: translateX(4px);
}
.amb-benefit-card--highlight {
  border-color: rgba(245,200,66,0.3);
  background: rgba(245,200,66,0.05);
  box-shadow: 0 0 30px rgba(245,200,66,0.08);
}
.amb-benefit-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.amb-benefit-content { flex: 1; }
.amb-benefit-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.amb-benefit-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.amb-accent-pct {
  color: #f5c842;
  font-size: 1.35rem;
  font-weight: 600;
}

/* ?? Bonus Section ?? */
.amb-section--bonus {
  overflow: hidden;
}
.amb-bonus-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,200,66,0.04), rgba(167,139,250,0.04));
  border-top: 1px solid rgba(245,200,66,0.1);
  border-bottom: 1px solid rgba(245,200,66,0.1);
  pointer-events: none;
}
.amb-bonus-intro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.amb-bonus-chips {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.amb-bonus-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 16px;
  flex: 1;
  min-width: 200px;
  transition: 0.3s;
}
.amb-bonus-chip:hover { background: rgba(245,200,66,0.08); transform: translateY(-2px); }
.amb-bonus-chip-icon { font-size: 2rem; line-height: 1; }
.amb-bonus-chip-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #f5c842;
  line-height: 1;
}
.amb-bonus-chip-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* ?? How text ?? */
.amb-how-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* ?? Form Section ?? */
.amb-form-section {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.amb-url-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.amb-url-field-wrap { display: flex; flex-direction: column; gap: 0.3rem; }
.amb-url-input-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.1rem 0.8rem;
  transition: 0.3s;
}
.amb-url-input-row:focus-within {
  border-color: rgba(245,200,66,0.5);
  background: rgba(245,200,66,0.03);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.08);
}
.amb-url-prefix { font-size: 1rem; flex-shrink: 0; opacity: 0.6; }
.amb-url-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  padding: 0.85rem 0;
  font-family: inherit;
}
.amb-url-input::placeholder { color: rgba(255,255,255,0.28); }
.amb-url-error {
  font-size: 0.75rem;
  color: #ff7878;
  padding-left: 0.5rem;
  min-height: 1rem;
  display: none;
}
.amb-url-error.visible { display: block; }
.amb-url-field-wrap.has-error .amb-url-input-row {
  border-color: rgba(255,80,80,0.5);
  box-shadow: 0 0 0 3px rgba(255,80,80,0.08);
}
.amb-url-disclaimer {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.amb-add-url-btn {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 0.05em;
}
.amb-add-url-btn:hover {
  border-color: rgba(245,200,66,0.4);
  color: rgba(245,200,66,0.9);
  background: rgba(245,200,66,0.05);
}

/* ?? Checkbox ?? */
.amb-checkbox-wrap {
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.amb-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
}
.amb-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.amb-checkbox-custom {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
  margin-top: 0.1rem;
}
.amb-checkbox-input:checked + .amb-checkbox-custom {
  background: rgba(245,200,66,0.8);
  border-color: #f5c842;
  box-shadow: 0 0 10px rgba(245,200,66,0.4);
}
.amb-checkbox-input:checked + .amb-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
}
.amb-checkbox-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ?? Form Buttons ?? */
.amb-form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.amb-cancel-btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  border-radius: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}
.amb-cancel-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}
.amb-submit-btn {
  flex: 2;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, rgba(245,200,66,0.85), rgba(255,170,0,0.85));
  border: none;
  color: #1a1100;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(245,200,66,0.3);
}
.amb-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f5c842, #ff9900);
  box-shadow: 0 6px 30px rgba(245,200,66,0.5);
  transform: translateY(-1px);
}
.amb-submit-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

/* ?? Investor Button ?? */
.amb-investor-wrap {
  padding: 2rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.amb-investor-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.amb-investor-divider::before,
.amb-investor-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.amb-investor-divider-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.amb-investor-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, rgba(15,12,40,0.95), rgba(25,18,60,0.95));
  border: 1px solid rgba(100,80,200,0.4);
  border-radius: 18px;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 4px 30px rgba(80,60,180,0.2), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  min-width: 260px;
  max-width: 340px;
}
.amb-investor-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left, rgba(100,80,200,0.15), transparent 60%);
  transition: 0.4s;
}
.amb-investor-btn:hover {
  border-color: rgba(140,110,255,0.7);
  box-shadow: 0 8px 40px rgba(100,80,200,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.amb-investor-btn:hover::before { opacity: 1.5; }
.amb-investor-btn-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(140,110,255,0.6));
}
.amb-investor-btn-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(200,185,255,0.95);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: left;
}
.amb-investor-btn-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140,110,255,0.6);
  background: rgba(100,80,200,0.15);
  border: 1px solid rgba(100,80,200,0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ?? Ambassador card special glow ?? */
.px-ambassador-card {
  background: linear-gradient(135deg, rgba(245,200,66,0.06), rgba(255,170,0,0.03)) !important;
}
.px-ambassador-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(245,200,66,0.15), transparent 65%);
  z-index: -1;
  animation: ambCardShimmer 4s ease-in-out infinite;
}
@keyframes ambCardShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (max-width: 600px) {
  .amb-hero { padding: 3rem 1rem 2rem; }
  .amb-section { padding: 1.5rem 1rem; }
  .amb-form-section { padding: 0 1rem 1.5rem; }
  .amb-investor-wrap { padding: 1.5rem 1rem 1rem; }
  .amb-bonus-chips { flex-direction: column; }
  .amb-investor-btn { min-width: unset; width: 100%; }
  .amb-form-actions { flex-direction: column; }
  .amb-cancel-btn, .amb-submit-btn { flex: unset; width: 100%; }
}

/* ?? Rating Info Modal ?????????????????????????????????????????? */
.rim-box {
    background: linear-gradient(160deg, rgba(12,8,32,0.98), rgba(20,12,50,0.98));
    border: 1px solid rgba(150,120,255,0.25);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    color: #e2d9f3;
}
.rim-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rim-score {
    font-size: 2.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}
.rim-subtitle { font-size: 0.82rem; opacity: 0.55; }
.rim-tier {
    font-size: 1rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
}
.rim-section {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rim-section:last-child { border-bottom: none; margin-bottom: 0; }
.rim-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 0.55rem;
}
.rim-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    line-height: 1.45;
}
.rim-list li::before { content: '? '; opacity: 0.5; }
.rim-penalties li { color: #fca5a5; }
.rim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.rim-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rim-table td:first-child {
    font-weight: 700;
    width: 70px;
    color: #a78bfa;
}
.rim-exchange { background: rgba(255,255,255,0.02); border-radius: 10px; padding: 0.85rem; }

/* ===================================================================
   SAIM COIN ? ?????
   =================================================================== */

/* -- ????????? SAIM ? ?????? ----------------------------------------- */
.saim-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(167,139,250,0.3);
  background: rgba(167,139,250,0.07);
  transition: all 0.2s;
  margin-right: 0.6rem;
}
.saim-indicator:hover {
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.5);
}
.saim-indicator-icon {
  font-size: 0.85rem;
  color: #a78bfa;
}
.saim-indicator-lock {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* -- ??????? ???????? ------------------------------------------------ */
.saim-mining-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-right: 0.5rem;
}
.saim-mining-toggle input[type="checkbox"] { display: none; }
.saim-toggle-track {
  width: 30px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  transition: background 0.2s;
}
.saim-mining-toggle input:checked ~ .saim-toggle-track {
  background: rgba(245,158,66,0.4);
  border-color: rgba(245,158,66,0.6);
}
.saim-toggle-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  top: 1px;
  left: 1px;
  transition: transform 0.2s, background 0.2s;
}
.saim-mining-toggle input:checked ~ .saim-toggle-track .saim-toggle-thumb {
  transform: translateX(14px);
  background: #f59e42;
}
.saim-toggle-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* -- Wallet modal ---------------------------------------------------- */
.saim-wallet-modal {
  background: linear-gradient(160deg, rgba(10,6,30,0.98), rgba(18,10,45,0.98));
  border: 1px solid rgba(167,139,250,0.2);
}
.saim-balance-card {
  background: linear-gradient(135deg, rgba(167,139,250,0.12), rgba(139,92,246,0.05));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.saim-balance-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}
.saim-balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.02em;
}
.saim-balance-usd {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.7;
  margin-top: 0.2rem;
}
.saim-balance-phase {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.saim-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.saim-wallet-row:last-child { border-bottom: none; }

/* -- Singularity progress bar ---------------------------------------- */
.saim-singularity-track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(167,139,250,0.12);
  overflow: hidden;
}
.saim-singularity-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 0.6s ease;
}

/* -- Coming Soon tag -------------------------------------------------- */
.saim-coming-soon-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.8rem;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  color: #a78bfa;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* -- Transaction history --------------------------------------------- */
.saim-tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
}
.saim-tx-item:last-child { border-bottom: none; }
.saim-tx-type { color: var(--muted); }
.saim-tx-amount-pos { color: #4ade80; font-weight: 600; }
.saim-tx-amount-neg { color: #f87171; font-weight: 600; }
.saim-tx-ts { color: var(--muted); font-size: 0.7rem; }

/* -- SAIM Transfer button in guest chat ------------------------------ */
.saim-share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(167,139,250,0.35);
  background: rgba(167,139,250,0.08);
  color: #a78bfa;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.saim-share-btn:hover {
  background: rgba(167,139,250,0.18);
  border-color: rgba(167,139,250,0.6);
}

/* -- SAIM notification toast ----------------------------------------- */
.saim-toast {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: linear-gradient(135deg, rgba(10,6,30,0.95), rgba(30,20,60,0.95));
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: #a78bfa;
  z-index: 9000;
  animation: saim-toast-in 0.3s ease;
  max-width: 280px;
}
.saim-toast strong { color: #c4b5fd; }
@keyframes saim-toast-in {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* -- SAIM: ????????? ?? ???????? ?????? ------------------------------ */
.saim-home-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(167,139,250,0.3);
  background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(139,92,246,0.04));
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.2rem;
}
.saim-home-indicator:hover {
  border-color: rgba(167,139,250,0.55);
  background: linear-gradient(135deg, rgba(167,139,250,0.16), rgba(139,92,246,0.08));
  box-shadow: 0 0 16px rgba(167,139,250,0.15);
}
.saim-home-icon {
  font-size: 1rem;
  color: #a78bfa;
}
.saim-home-label {
  font-size: 0.82rem;
  color: #c4b5fd;
  letter-spacing: 0.03em;
}
.saim-home-balance {
  font-size: 0.82rem;
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}
.saim-home-lock {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ?? Soul card SAIM badge ??????????????????????????????????????????????? */
.soul-saim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.72rem;
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
  margin-top: 2px;
  opacity: 0.85;
}

/* ?? Soul passport button ??????????????????????????????????????????????? */
.btn-passport {
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.35);
  color: #a78bfa;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-passport:hover {
  background: rgba(167,139,250,0.22);
}

/* ?? Soul Passport Modal ???????????????????????????????????????????????? */
.soul-passport-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
  overflow-y: auto;
}
.soul-passport-card {
  background: var(--surface, #1a1a2e);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 1.2rem;
  padding: 1.6rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.sp-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted, #888);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.sp-close:hover { color: var(--text, #fff); }
.sp-header { margin-bottom: 1.2rem; }
.sp-title  { font-size: 1.1rem; font-weight: 500; color: var(--text, #fff); margin-bottom: 0.3rem; }
.sp-title span { color: #a78bfa; }
.sp-subtitle { font-size: 0.78rem; color: var(--muted, #888); }
.sp-loading { color: var(--muted, #888); padding: 2rem 0; text-align: center; font-size: 0.85rem; }

.sp-section { margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sp-section:last-child { border-bottom: none; margin-bottom: 0; }
.sp-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #888);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.sp-row { font-size: 0.82rem; color: var(--text, #fff); margin-bottom: 0.25rem; }
.sp-conditions { color: #f59e42; }

/* Psych matrix mini-bars */
.sp-trait-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.sp-trait-name { font-size: 0.72rem; color: var(--muted, #888); width: 110px; flex-shrink: 0; }
.sp-trait-bar  { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.sp-trait-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); border-radius: 2px; transition: width 0.5s ease; }
.sp-trait-val  { font-size: 0.7rem; color: #a78bfa; width: 28px; text-align: right; flex-shrink: 0; }

/* SAIM stats row */
.sp-saim-stats {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.sp-saim-item { flex: 1; text-align: center; }
.sp-saim-val  { font-size: 0.85rem; font-family: 'Courier New', monospace; color: #a78bfa; font-weight: 600; }
.sp-saim-label { font-size: 0.65rem; color: var(--muted, #888); margin-top: 2px; }

/* Topic pills */
.sp-topics { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.sp-topic-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 1rem;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  color: #c4b5fd;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hash block */
.sp-hash-val {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--muted, #888);
  word-break: break-all;
  margin-bottom: 0.3rem;
}
.sp-hash-ts { font-size: 0.68rem; color: var(--muted, #888); }

/* FDS Mobile Export */
.soul-app-export-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 0.25rem;
  padding: 0.6rem 0.85rem;
  background: rgba(100, 181, 246, 0.05);
  border: 1px solid rgba(100, 181, 246, 0.15);
  border-radius: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  flex-wrap: wrap;
}
.soul-app-export-info__text {
  flex: 1 1 180px;
}
.soul-app-export-info__text strong {
  color: rgba(144, 202, 249, 0.85);
  font-weight: 500;
}
.soul-app-export-btn {
  flex-shrink: 0;
  background: rgba(100, 181, 246, 0.12);
  border: 1px solid rgba(100, 181, 246, 0.35);
  color: #90caf9;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  pointer-events: auto;
}
.soul-app-export-btn:hover:not(:disabled) {
  background: rgba(100, 181, 246, 0.25);
  box-shadow: 0 0 10px rgba(100, 181, 246, 0.2);
}
.soul-app-export-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ─── Облегчённый интерфейс (диагностика / настройки) ─── */
html.visual-lite #splash-canvas,
html.visual-lite .grain {
  display: none !important;
}

html.visual-lite .wave-layer {
  animation: none !important;
  transform: translateX(-25%);
}

html.visual-lite .blob {
  animation: none !important;
  filter: blur(48px);
}

html.visual-lite .splash-tagline,
html.visual-lite .splash-logo,
html.visual-lite .btn-glass-icon {
  animation: none !important;
  opacity: 1;
}

html.visual-lite * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
