:root {
  --bg-dark: #060919;
  --bg-surface: rgba(12, 22, 50, 0.75);
  --bg-surface-hover: rgba(18, 32, 72, 0.85);
  --border-neon-blue: rgba(0, 210, 255, 0.4);
  --border-neon-purple: rgba(168, 85, 247, 0.5);
  --neon-cyan: #00d2ff;
  --neon-blue: #0070f3;
  --neon-purple: #a855f7;
  --neon-magenta: #ec4899;
  --neon-gold: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --glow-cyan: 0 0 16px rgba(0, 210, 255, 0.4);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.45);
  --glow-gold: 0 0 24px rgba(245, 158, 11, 0.5);
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 114, 255, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 210, 255, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden !important;
  max-width: 100vw;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(6, 9, 25, 0.85);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ==========================================================================
   1. ACCESS DENIED SCREEN
   ========================================================================== */
.access-denied-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 20, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.denied-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  max-width: 380px;
}

.denied-icon {
  font-size: 54px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.6));
}

.denied-card h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.denied-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.denied-id-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.denied-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   2. TOP PROFILE HEADER
   ========================================================================== */
.profile-header {
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  background: linear-gradient(180deg, rgba(13, 24, 54, 0.85) 0%, rgba(6, 9, 25, 0.4) 100%);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.avatar-frame {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
  position: relative;
  z-index: 2;
  background: #0d1733;
}

.avatar-glow {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  opacity: 0.6;
  filter: blur(4px);
  z-index: 1;
}

.user-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.user-meta-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.user-identity-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.user-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  flex: 1 1 auto;
  min-width: 0;
}

.user-meta-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.user-id-badge {
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex: 0 0 auto;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.user-id-badge:hover,
.user-id-badge:active {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  color: #38bdf8;
  transform: scale(0.97);
}

.btn-profile-account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 7px;
  color: var(--neon-cyan, #00f0ff);
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-profile-account:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px) scale(1.08);
}

.btn-profile-account:active {
  background: rgba(0, 240, 255, 0.38);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.85);
  transform: scale(0.90);
  transition: all 0.1s ease;
}

.account-icon-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-profile-account:hover .account-icon-svg {
  transform: scale(1.15);
}

.btn-profile-account:active .account-icon-svg {
  transform: scale(0.90);
}

.btn-global-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 7px;
  color: var(--neon-cyan, #00f0ff);
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
}

.btn-global-chat:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px) scale(1.08);
}

.btn-global-chat:active {
  background: rgba(0, 240, 255, 0.38);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.85);
  transform: scale(0.90);
  transition: all 0.1s ease;
}

.chat-icon-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-global-chat:hover .chat-icon-svg {
  transform: scale(1.15);
}

.btn-global-chat:active .chat-icon-svg {
  transform: scale(0.90);
}

.chat-unread-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  font-family: var(--font-heading, sans-serif);
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.75);
  pointer-events: none;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: chatBadgePulse 2.5s infinite;
}

.chat-unread-badge.hidden {
  display: none !important;
}

@keyframes chatBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(244, 63, 94, 0.75); }
  50% { transform: scale(1.12); box-shadow: 0 0 14px rgba(244, 63, 94, 1); }
}

.btn-profile-settings {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 7px;
  color: var(--neon-cyan, #00f0ff);
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.btn-profile-settings:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
  transform: translateY(-1px) scale(1.08);
}

.btn-profile-settings:active {
  background: rgba(0, 240, 255, 0.35);
  transform: scale(0.90);
  transition: all 0.1s ease;
}

.settings-gear-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.btn-profile-settings:hover .settings-gear-svg,
.btn-profile-settings:active .settings-gear-svg {
  transform: rotate(60deg);
}

.user-title-row {
  margin: 1px 0 2px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.user-title-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 1.5px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.conn-badge.online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.conn-badge.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.conn-badge.sync-pending {
  background: rgba(234, 179, 8, 0.25);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.6);
  cursor: pointer;
}

.conn-dot {
  font-size: 7px;
}

.level-badge {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.4);
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.user-title {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.exp-bar-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.exp-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.exp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #0070f3);
  box-shadow: 0 0 8px #00d2ff;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.exp-text {
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 4-column Currencies Bar */
.currencies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.currency-card {
  background: rgba(13, 27, 62, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: inset 0 0 8px rgba(0, 210, 255, 0.08);
  border-radius: 8px;
  padding: 4px 5px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  backdrop-filter: blur(6px);
  min-width: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.currency-card:active {
  transform: scale(0.97);
  border-color: rgba(0, 210, 255, 0.5);
}

.currency-icon-val {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.c-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.c-val {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.c-label {
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-plus {
  position: absolute;
  right: 4px;
  top: 2px;
  font-size: 9px;
  color: var(--neon-cyan);
  opacity: 0.7;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.currency-card.clickable {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.currency-card.clickable:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
}

.currency-card.clickable:hover .c-plus {
  opacity: 1;
  transform: scale(1.3);
}

.currency-card.clickable:active {
  transform: scale(0.95);
}

@keyframes shakeHighlight {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.shake-highlight {
  animation: shakeHighlight 0.4s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
}

/* ==========================================================================
   3. CONTENT AREA & TABS
   ========================================================================== */
.content-area {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   4. BANNER CARD (STANDARD)
   ========================================================================== */
.banner-card-frame {
  background: rgba(13, 25, 58, 0.6);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25), inset 0 0 15px rgba(0, 210, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(12px);
}

.banner-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  position: relative;
  z-index: 5;
}

.banner-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-tag-icon {
  font-size: 20px;
}

.banner-tag-text {
  display: flex;
  flex-direction: column;
}

.b-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.b-sub {
  font-size: 10px;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.banner-timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 12, 28, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.timer-icon {
  font-size: 12px;
}

/* Banner Visual Poster */
.banner-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.banner-showcase {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 25, 0.2) 0%, transparent 40%, rgba(6, 9, 25, 0.95) 100%);
  pointer-events: none;
}

.banner-char-info {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 4;
}

.rarity-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.rarity-tag.legendary {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.rarity-tag.epic {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
}

.rarity-tag.common {
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid #94a3b8;
  color: #cbd5e1;
}

.char-showcase-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.char-showcase-anime {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

/* Carousel Navigation */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  background: rgba(6, 12, 28, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--neon-cyan);
  width: 32px;
  height: 48px;
  border-radius: 8px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.carousel-arrow.left { left: 8px; }
.carousel-arrow.right { right: 8px; }

.carousel-arrow:active {
  background: rgba(0, 210, 255, 0.3);
  transform: translateY(-50%) scale(0.95);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 10px;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.carousel-dots .dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ==========================================================================
   5. SUMMON BUTTONS (Free, 1x and 10x)
   ========================================================================== */
.summon-actions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.summon-btn-free {
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.38) 50%, rgba(4, 120, 87, 0.5) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.75);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25), inset 0 0 14px rgba(52, 211, 153, 0.15);
  border-radius: 16px;
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.summon-btn-free:hover {
  border-color: #34d399;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.summon-btn-free:active {
  transform: scale(0.98);
}

.summon-btn-free.disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  opacity: 0.65;
  cursor: default;
}

.btn-free-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-free-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-free-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.8));
}

.btn-free-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-free-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.btn-free-sub {
  font-size: 11px;
  color: #6ee7b7;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.summon-btn-free.disabled .btn-free-sub {
  color: #94a3b8;
}

.btn-free-action-pill {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #022c22;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.summon-btn-free.disabled .btn-free-action-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  box-shadow: none;
}

.summon-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}

.summon-btn {
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summon-btn:active {
  transform: scale(0.97);
}

/* 1x Button (Cyan Glow) */
.btn-1x {
  background: linear-gradient(180deg, rgba(14, 30, 68, 0.8) 0%, rgba(6, 14, 35, 0.95) 100%);
  border: 1.5px solid rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25), inset 0 0 12px rgba(0, 210, 255, 0.1);
}

/* 10x Button (Purple & Gold Glow) */
.btn-10x {
  background: linear-gradient(180deg, rgba(46, 16, 80, 0.85) 0%, rgba(20, 8, 40, 0.95) 100%);
  border: 1.5px solid rgba(217, 70, 239, 0.8);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45), inset 0 0 15px rgba(236, 72, 153, 0.15);
}

.btn-sparkle-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, transparent 70%);
  filter: blur(10px);
}

.btn-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dice-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.6));
}

.dice-badge {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  border-radius: 6px;
  padding: 1px 5px;
}

.btn-multiplier {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.btn-multiplier.gold {
  color: #fef08a;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

.btn-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 6px;
}

.btn-action-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-cost-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.btn-cost-badge.gold {
  color: var(--neon-gold);
}

.cost-icon {
  font-size: 11px;
}

/* ==========================================================================
   6. OTHER TABS (COLLECTION, BATTLES, DATING, SOCIAL)
   ========================================================================== */
.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tab-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.collection-stats {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* ==========================================================================
   COLLECTION MODE SWITCHER & ANIME UNIVERSES CODEX (КАТАЛОГ ВСЕЛЕННЫХ)
   ========================================================================== */

.collection-mode-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(13, 27, 62, 0.65);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.col-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.col-mode-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.col-mode-tab.active {
  background: rgba(0, 210, 255, 0.16);
  border-color: rgba(0, 240, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.col-mode-icon {
  font-size: 16px;
  line-height: 1;
}

.col-mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.col-mode-badge.gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.col-sub-view {
  animation: fadeInColView 0.22s ease-out;
}

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

/* Anime Catalog HUD */
.anime-catalog-hud {
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.85) 0%, rgba(10, 16, 36, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.anime-catalog-hud .hud-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan, #00f0ff);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
  margin-bottom: 2px;
}

.anime-catalog-hud h3 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.anime-catalog-hud .hud-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.hud-stats-box {
  display: flex;
  gap: 10px;
}

.hud-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hud-stat-lbl {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.hud-stat-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.hud-stat-val.text-gold {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.hud-stat-val.text-cyan {
  color: var(--neon-cyan, #00f0ff);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Global Progress */
.anime-global-progress-wrap {
  margin-bottom: 12px;
}

.anime-global-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.anime-global-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7 0%, #00f0ff 60%, #f59e0b 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Anime Search Bar */
.anime-controls-row {
  margin-bottom: 10px;
}

.anime-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.anime-search-bar:focus-within {
  border-color: var(--neon-cyan, #00f0ff);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.anime-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
}

.anime-search-bar input::placeholder {
  color: #64748b;
}

/* Alphabet Filter Strip */
.anime-alphabet-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.anime-alphabet-strip::-webkit-scrollbar {
  display: none;
}

.anime-letter-chip {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  user-select: none;
  flex-shrink: 0;
}

.anime-letter-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.anime-letter-chip.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

/* Status Filter Row */
.anime-status-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.anime-status-filter-row::-webkit-scrollbar {
  display: none;
}

.anime-status-chip {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.anime-status-chip:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
}

.anime-status-chip.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.28);
}

/* Anime Universes Grid */
.anime-universes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Anime Universe Card */
.anime-card {
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.85) 0%, rgba(8, 14, 30, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.24s ease;
  overflow: hidden;
  user-select: none;
}

.anime-card:hover, .anime-card:active {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 240, 255, 0.15);
}

.anime-card.completed {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(28, 25, 15, 0.85) 0%, rgba(10, 16, 32, 0.95) 100%);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.18);
}

.anime-card.completed:hover, .anime-card.completed:active {
  border-color: #f59e0b;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.35);
}

.anime-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.anime-card-header-info {
  flex: 1;
  min-width: 0;
}

.anime-card-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--neon-cyan, #00f0ff);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.anime-card-tag.gold {
  color: #f59e0b;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.anime-card-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anime-card-status-pill {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.anime-card-status-pill.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.anime-card-status-pill.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan, #00f0ff);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.anime-card-status-pill.muted {
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumbs strip */
.anime-card-thumbs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.anime-mini-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  background: #060a18;
}

.anime-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-mini-thumb.owned.legendary {
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.anime-mini-thumb.owned.epic {
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.anime-mini-thumb.owned.common {
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.anime-mini-thumb.locked img {
  filter: grayscale(100%) brightness(35%);
}

.anime-mini-thumb .mini-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 2px 4px #000;
}

.anime-mini-thumb-more {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Rarity row */
.anime-card-rarity-row {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 11px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-weight: 700;
}

.ac-rarity-chip {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ac-rarity-chip.leg { color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); }
.ac-rarity-chip.epic { color: #c084fc; border-color: rgba(192, 132, 252, 0.25); }
.ac-rarity-chip.com { color: #38bdf8; border-color: rgba(56, 189, 248, 0.25); }

/* Progress bar inside card */
.anime-card-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anime-card-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.anime-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.anime-card-progress-fill.gold {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.anime-card-pct-label {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 28px;
  text-align: right;
}

/* Universe Detail Sub-View */
.anime-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anime-universe-banner {
  background: linear-gradient(135deg, rgba(16, 28, 64, 0.88) 0%, rgba(8, 14, 30, 0.96) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin: 0 16px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.aub-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--neon-cyan, #00f0ff);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.aub-status-badge.gold {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.aub-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.aub-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.aub-stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.aub-stat-chip strong {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
}

.aub-progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.aub-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7 0%, #00f0ff 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.aub-progress-bar-fill.gold {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.aub-rarity-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aub-rarity-pill {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.aub-rarity-pill.leg { color: #f59e0b; border-color: rgba(245, 158, 11, 0.35); }
.aub-rarity-pill.epic { color: #c084fc; border-color: rgba(192, 132, 252, 0.35); }
.aub-rarity-pill.com { color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); }

.anime-char-filters {
  display: flex;
  gap: 8px;
  padding: 4px 16px 12px;
  margin-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.anime-char-filters::-webkit-scrollbar {
  display: none;
}

.collection-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.filter-btn {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.card-item {
  background: rgba(13, 27, 62, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.card-item:hover {
  transform: translateY(-2px);
}

.card-item.Legendary { border-color: var(--neon-gold); box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
.card-item.Epic { border-color: var(--neon-purple); box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
.card-item.Common { border-color: rgba(255, 255, 255, 0.2); }

.card-item.locked {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  background: rgba(8, 14, 30, 0.6);
}

.card-item.locked.Legendary {
  border-color: rgba(245, 158, 11, 0.3) !important;
}
.card-item.locked.Epic {
  border-color: rgba(168, 85, 247, 0.3) !important;
}
.card-item.locked.Common {
  border-color: rgba(0, 210, 255, 0.2) !important;
}

.card-item.owned {
  border-width: 1.5px;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #050814;
}

.card-thumb-wrap img,
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.card-item.locked .card-thumb-wrap img,
.card-item.locked .card-thumb {
  filter: grayscale(0.75) brightness(0.65);
}

.card-item.locked:hover .card-thumb-wrap img,
.card-item.locked:hover .card-thumb {
  filter: grayscale(0.35) brightness(0.85);
  transform: scale(1.05);
}

.card-locked-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.card-lock-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 10, 24, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 210, 255, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-item.locked:hover .card-lock-pill {
  transform: scale(1.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.5);
}

.card-lock-pill .lock-icon {
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.card-locked-badge,
.card-id-corner,
.card-locked-id,
.detail-id-badge {
  display: none !important;
}

.card-meta {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-level-tag {
  font-size: 10px;
  color: var(--neon-cyan);
  font-weight: 600;
}

.card-level-tag.locked-tag {
  color: #94a3b8;
}

/* Battle Modes */
.battle-modes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.battle-card {
  background: rgba(13, 27, 62, 0.7);
  border: 1.5px solid rgba(0, 210, 255, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.battle-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
}

.mode-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mode-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mode-progress-badge {
  font-size: 11px;
  color: var(--neon-gold);
  margin-top: 6px;
}

.mode-enter-btn {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* Dating */
.gift-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.gift-slot {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.g-icon { font-size: 24px; }
.g-name { font-size: 10px; color: var(--text-secondary); }
.gift-slot strong { font-family: var(--font-heading); font-size: 14px; color: #ffffff; }

.dating-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  background: rgba(236, 72, 153, 0.1);
  border: 1px dashed rgba(236, 72, 153, 0.4);
  padding: 12px;
  border-radius: 12px;
}

/* Social */
.clan-summary-card {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.clan-badge-icon { font-size: 32px; }
.clan-label { font-size: 11px; color: var(--text-secondary); }
.clan-meta h3 { font-family: var(--font-heading); font-size: 18px; color: #ffffff; }

.rating-preview h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--neon-gold);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 27, 62, 0.4);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

/* ==========================================================================
   7. BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 12, 28, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px env(safe-area-inset-bottom, 0px) 8px;
  z-index: 1000;
}

.nav-tab {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex: 1;
}

.nav-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.nav-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-indicator {
  position: absolute;
  top: 0;
  width: 32px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-tab.active {
  color: var(--neon-cyan);
}

.nav-tab.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

.nav-tab.active .nav-indicator {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ==========================================================================
   8. SUMMON RESULT MODAL
   ========================================================================== */
.summon-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 16px)) max(16px, env(safe-area-inset-right, 16px)) max(16px, env(safe-area-inset-bottom, 16px)) max(16px, env(safe-area-inset-left, 16px));
}

.summon-modal-overlay.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.9);
  backdrop-filter: blur(16px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: linear-gradient(180deg, rgba(14, 25, 58, 0.95) 0%, rgba(6, 10, 26, 0.98) 100%);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.35);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.summon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summon-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.btn-skip-summon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-skip-summon:active {
  transform: scale(0.95);
  background: rgba(245, 158, 11, 0.3);
}

#modal-rarity-badge:empty {
  display: none !important;
}

.summon-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  overflow-y: auto;
  max-height: 55vh;
  padding: 4px;
}

.summon-cards-container.single-card {
  grid-template-columns: 1fr;
  max-width: 230px;
  margin: 0 auto;
}

.summon-cards-container.single-card .summon-card-box {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.summon-card-box {
  background: rgba(13, 27, 62, 0.7);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  animation: cardFlip 0.4s ease-out;
}

@keyframes cardFlip {
  0% { transform: scale(0.7) rotateY(90deg); opacity: 0; }
  100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

.summon-card-box.Legendary {
  border-color: var(--neon-gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.summon-card-box.Epic {
  border-color: var(--neon-purple);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}

.summon-card-box.Common {
  border-color: rgba(0, 210, 255, 0.3);
}

.summon-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.summon-card-details {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summon-card-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summon-card-sub {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summon-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
}

.duplicate-pill {
  font-size: 9px;
  background: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  padding: 1px 4px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
}

.summon-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-again, .btn-confirm {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}

.btn-again {
  background: rgba(13, 27, 62, 0.8);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

.btn-again:active, .btn-confirm:active {
  transform: scale(0.97);
}

/* ==========================================================================
   9. TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 27, 62, 0.96);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.45);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  max-width: min(88vw, 360px);
  width: max-content;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
  z-index: 10000;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastFade 0.25s ease-out;
}

.toast.hidden { display: none; }

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: #ef4444;
}

.sync-banner-bar {
  margin: 10px 0 0;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid var(--neon-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  animation: pulseGold 2s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.sync-banner-bar .sync-text {
  font-size: 12px;
  font-weight: 700;
  color: #fef08a;
  flex: 1;
}

.sync-banner-bar .sync-arrow {
  font-size: 14px;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}

.sync-btn-glow {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.hidden { display: none !important; }

/* ==========================================================================
   10. COLLECTION TAB & SEARCH BAR
   ========================================================================== */
.tab-header .tab-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.collection-search-bar {
  position: relative;
  margin: 12px 16px 8px;
  display: flex;
  align-items: center;
}

.collection-search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
}

.collection-search-bar input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.collection-search-bar input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.collection-search-bar input::placeholder {
  color: var(--text-dim);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
}

.search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.collection-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 16px 12px;
}

.col-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.col-filter-row::-webkit-scrollbar,
.collection-filters::-webkit-scrollbar {
  display: none;
}

.col-filter-row.secondary-row {
  padding-top: 2px;
}

.filter-btn-summer {
  font-size: 16px;
  line-height: 1;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.filter-btn-summer.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(6, 182, 212, 0.28));
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  color: #ffffff;
}

[data-theme="dark"] .filter-btn-summer.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(14, 165, 233, 0.22));
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

.filter-btn {
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(168, 85, 247, 0.25));
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
}

.filter-btn.toggle-owned.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.filter-btn.toggle-locked.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(185, 28, 28, 0.3));
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 16px 84px; /* Space for fixed bottom navigation bar */
}

@media (min-width: 440px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.card-item {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card-item:hover, .card-item:active {
  transform: translateY(-4px) scale(1.02);
}

.card-item.owned {
  border-color: rgba(0, 210, 255, 0.3);
}

.card-item.owned.Legendary {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.card-item.owned.Epic {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
}

.card-item.owned.Common {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #090e24;
}

.card-thumb-wrap img,
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
  display: block;
}

.card-item:hover .card-thumb-wrap img,
.card-item:hover .card-thumb {
  transform: scale(1.06);
}

/* Locked Card Styling */
.card-item.locked .card-thumb-wrap img,
.card-item.locked .card-thumb {
  filter: grayscale(1) brightness(0.28) contrast(1.1);
}

.card-item.locked {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 30, 0.6);
}

.card-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.card-locked-badge {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
}

.card-locked-id {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Level badge on owned cards */
.card-level-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  background: rgba(6, 9, 25, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.5);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.card-level-pill.max-level {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: #fef08a;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Card item meta */
.card-meta {
  padding: 8px 6px;
  background: rgba(12, 18, 38, 0.9);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-item .card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-item .card-level-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-item.Legendary .card-level-tag { color: #f59e0b; font-weight: 700; }
.card-item.Epic .card-level-tag { color: #c084fc; font-weight: 700; }
.card-item.Common .card-level-tag { color: #38bdf8; }

/* ==========================================================================
   11. FULL-SCREEN CARD DETAIL MODAL
   ========================================================================== */
.card-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 12px)) max(12px, env(safe-area-inset-right, 12px)) max(12px, env(safe-area-inset-bottom, 12px)) max(12px, env(safe-area-inset-left, 12px));
}

.card-detail-modal .detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeIn 0.25s ease-out;
}

.card-detail-modal .detail-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  background: rgba(12, 20, 44, 0.9);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.2), 0 20px 40px rgba(0,0,0,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: popInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInModal {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.detail-top-nav {
  padding: 10px 16px;
  background: rgba(8, 14, 32, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand-icon {
  font-size: 16px;
}

.detail-nav-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.detail-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-share-icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 50%;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.15);
}

.detail-share-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.detail-share-icon:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.45);
  transform: translateY(-1px) scale(1.06);
}

.detail-share-icon:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

.detail-share-icon:active {
  transform: scale(0.92);
}

[data-theme="dark"] .detail-share-icon {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.1);
}

[data-theme="dark"] .detail-share-icon:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.detail-close-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-close-icon:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

.detail-scroll-body {
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

/* Art Frame - Pristine Original Art Display */
.detail-art-frame {
  position: relative;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: #040614;
  border: 2px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.detail-art-frame.Legendary {
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.4), 0 16px 36px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.16) 0%, #040614 80%);
}

.detail-art-frame.Epic {
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.4), 0 16px 36px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.16) 0%, #040614 80%);
}

.detail-art-frame.Common {
  border-color: rgba(0, 210, 255, 0.75);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.32), 0 16px 36px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at 50% 30%, rgba(0, 210, 255, 0.1) 0%, #040614 80%);
}

.detail-card-img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  background: transparent;
  image-rendering: auto;
  image-rendering: smooth;
  pointer-events: none;
  user-select: none;
}

.detail-rarity-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transform: translateZ(28px);
  pointer-events: none;
}

.detail-rarity-pill.legendary { background: rgba(245, 158, 11, 0.92); color: #000; box-shadow: 0 0 16px rgba(245, 158, 11, 0.75); }
.detail-rarity-pill.epic { background: rgba(168, 85, 247, 0.92); color: #fff; box-shadow: 0 0 16px rgba(168, 85, 247, 0.75); }
.detail-rarity-pill.common { background: rgba(0, 210, 255, 0.92); color: #000; box-shadow: 0 0 16px rgba(0, 210, 255, 0.75); }

.detail-id-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  background: rgba(6, 9, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}

/* Detail Info Sheet */
.detail-info-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero Info (Full width name, anime universe, stars, and tags) */
.detail-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 4px;
}

.detail-name-row {
  width: 100%;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.detail-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-anime {
  font-size: 12.5px;
  color: #00f0ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 3px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  max-width: fit-content;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
}

.detail-anime:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.detail-anime:active {
  transform: scale(0.96);
}

.detail-anime-icon {
  font-size: 11px;
  opacity: 0.9;
}

.detail-anime-chevron {
  font-size: 13px;
  font-weight: 700;
  color: #00f0ff;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.detail-anime:hover .detail-anime-chevron {
  transform: translateX(2px);
}

.detail-rarity-stars {
  font-size: 13px;
  letter-spacing: 2.5px;
  display: inline-flex;
  align-items: center;
}

.detail-rarity-stars.legendary {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

.detail-rarity-stars.epic {
  color: #c084fc;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.8);
}

.detail-rarity-stars.common {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.detail-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.detail-class-badge {
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--border-neon-purple);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
  white-space: nowrap;
}

.detail-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
}

.detail-status-pill.locked {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.detail-status-pill .status-dot {
  font-size: 9px;
}

/* Collapsible Stats Drawer & Toggle */
.detail-toggle-stats-btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(8, 14, 32, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 14px;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.detail-toggle-stats-btn:hover, .detail-toggle-stats-btn:active {
  background: rgba(0, 210, 255, 0.14);
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.detail-toggle-stats-btn.expanded {
  background: rgba(12, 22, 50, 0.85);
  border-color: rgba(0, 210, 255, 0.45);
  color: #ffffff;
}

.detail-toggle-stats-btn.expanded .toggle-chevron {
  transform: rotate(180deg);
}

.toggle-stats-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-stats-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-lvl-badge {
  padding: 2px 8px;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 8px;
  font-size: 11px;
  color: var(--neon-cyan);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.detail-toggle-stats-btn.expanded .toggle-chevron {
  transform: rotate(180deg);
}

.toggle-stats-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-icon {
  font-size: 14px;
}

.toggle-chevron {
  font-size: 11px;
  color: var(--neon-cyan);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.detail-stats-drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
}

.detail-stats-drawer.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.detail-stats-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  background: rgba(8, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s;
}

.stat-box.atk {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, rgba(8, 14, 32, 0.85) 100%);
}
.stat-box.atk .stat-box-value {
  color: #fca5a5;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.stat-box.hp {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(8, 14, 32, 0.85) 100%);
}
.stat-box.hp .stat-box-value {
  color: #6ee7b7;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.stat-box.val {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(8, 14, 32, 0.85) 100%);
}
.stat-box.val .stat-box-value {
  color: #fde047;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.stat-box-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.stat-box-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.detail-stats-card {
  background: rgba(8, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.detail-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.detail-stat-row .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-stat-row .stat-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.detail-stat-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.detail-stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.detail-stat-hint {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Locked state notice */
.detail-locked-notice {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  font-size: 12px;
  color: #fca5a5;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Action Buttons */
.detail-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-detail-avatar {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(0, 210, 255, 0.3));
  border: 1.5px solid #10b981;
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.btn-detail-avatar:hover, .btn-detail-avatar:active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(0, 210, 255, 0.5));
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-detail-avatar.active-avatar {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(5, 150, 105, 0.5) 100%) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
  cursor: default !important;
  pointer-events: none;
}

.btn-detail-avatar.remove-avatar-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.35) 100%) !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
  color: #fecaca !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.3) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.btn-detail-avatar.remove-avatar-btn:hover,
.btn-detail-avatar.remove-avatar-btn:active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.6) 100%) !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.6) !important;
  transform: translateY(-1px);
}

.btn-detail-avatar .btn-icon {
  font-size: 16px;
}

.btn-detail-return {
  width: 100%;
  padding: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-detail-return:hover, .btn-detail-return:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   12. GACHA SUMMON PORTAL FX OVERLAY
   ========================================================================== */
.summon-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 20, 0.96);
  backdrop-filter: blur(25px);
  animation: fadeIn 0.2s ease-out;
}

.portal-core {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.portal-ring.ring-1 {
  width: 220px;
  height: 220px;
  border-color: rgba(0, 210, 255, 0.7);
  animation: spinPortalClockwise 3s linear infinite;
}

.portal-ring.ring-2 {
  width: 170px;
  height: 170px;
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  animation: spinPortalCounter 2s linear infinite;
}

.portal-ring.ring-3 {
  width: 120px;
  height: 120px;
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
  animation: spinPortalClockwise 1.5s linear infinite;
}

@keyframes spinPortalClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinPortalCounter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.portal-energy-beam {
  position: absolute;
  width: 12px;
  height: 140vh;
  background: linear-gradient(180deg, transparent, #00d2ff 30%, #ffffff 50%, #00d2ff 70%, transparent);
  box-shadow: 0 0 40px #00d2ff, 0 0 80px #a855f7;
  opacity: 0.9;
  animation: beamPulse 0.8s infinite alternate ease-in-out;
}

.portal-energy-beam.legendary {
  background: linear-gradient(180deg, transparent, #f59e0b 30%, #ffffff 50%, #f59e0b 70%, transparent);
  box-shadow: 0 0 50px #f59e0b, 0 0 90px #ef4444;
}

.portal-energy-beam.epic {
  background: linear-gradient(180deg, transparent, #a855f7 30%, #ffffff 50%, #a855f7 70%, transparent);
  box-shadow: 0 0 40px #a855f7, 0 0 80px #00d2ff;
}

@keyframes beamPulse {
  0% { transform: scaleX(0.8); opacity: 0.7; }
  100% { transform: scaleX(1.6); opacity: 1; filter: brightness(1.3); }
}

.portal-status-text {
  position: absolute;
  bottom: -48px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.7);
  animation: pulseOpacity 1s infinite alternate;
}

@keyframes pulseOpacity {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Skip Button in Summon Modal */
.btn-skip-summon {
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--neon-gold);
  border-radius: 12px;
  color: #fef08a;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-skip-summon:hover {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* 3D Flip Card Effect in Summon Modal */
.summon-card-box {
  cursor: pointer;
  perspective: 1000px;
}

.summon-card-box .summon-card-img {
  transition: transform 0.4s ease;
}

.summon-card-box:hover .summon-card-img {
  transform: scale(1.05);
}

/* ==========================================================================
   13. SOCIAL TAB (PODIUM & CLAN)
   ========================================================================== */
.clan-action-hint {
  font-size: 11px;
  color: var(--neon-purple);
  font-weight: 600;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.leaderboard-metric-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
  padding: 2px 8px;
  background: rgba(0, 210, 255, 0.12);
  border-radius: 10px;
}

/* Top 3 Podium */
.leaderboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 4px 0;
}

.podium-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-slot.first {
  order: 2;
}

.podium-slot.second {
  order: 1;
}

.podium-slot.third {
  order: 3;
}

.podium-crown {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  z-index: 5;
  pointer-events: none;
  line-height: 1;
}

.podium-slot.first .podium-crown,
.podium-avatar-wrap.rank-1 .podium-crown {
  font-size: 22px;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.9));
  animation: floatCrown 2s infinite ease-in-out;
}

@keyframes floatCrown {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.podium-avatar-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  margin-bottom: 6px;
}

.podium-slot.first .podium-avatar-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.podium-slot.second .podium-avatar-wrap {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  box-shadow: 0 0 16px rgba(226, 232, 240, 0.4);
}

.podium-slot.third .podium-avatar-wrap {
  background: linear-gradient(135deg, #d97706, #78350f);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.4);
}

.podium-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #060919;
}

.podium-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.podium-points {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

.podium-pillar {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.podium-slot.first .podium-pillar {
  height: 68px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-top: 2px solid #f59e0b;
}

.podium-slot.second .podium-pillar {
  height: 50px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-top: 2px solid #94a3b8;
}

.podium-slot.third .podium-pillar {
  height: 38px;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-top: 2px solid #d97706;
}

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 13px;
  transition: all 0.2s;
}

.leader-item:hover {
  border-color: rgba(0, 210, 255, 0.3);
  background: rgba(18, 30, 60, 0.8);
}

.leader-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 8px;
}

.leader-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-pts {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* My rank pinned card */
.my-rank-card {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid var(--neon-cyan);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.2);
}

.my-rank-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.my-rank-pos {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.my-rank-points {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* ==========================================================================
   CYBERPUNK CLOUD MENU HUB & ROUNDED CARD STYLES
   ========================================================================== */

.menu-hub-container {
  padding-bottom: 24px;
}

.menu-hub-header {
  margin-bottom: 18px;
}

.menu-hub-badge-wrap {
  margin-bottom: 6px;
}

.menu-hub-system-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-card {
  position: relative;
  width: 100%;
  height: 145px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: #0f1220;
  border: 1.5px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-card:hover, .menu-card:active {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--neon-cyan);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.35), inset 0 0 15px rgba(0, 240, 255, 0.12);
}

.menu-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}

.menu-card:hover .menu-card-img,
.menu-card:active .menu-card-img {
  transform: scale(1.05);
}

.menu-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  transition: background 0.25s ease;
}

.menu-card:hover .menu-card-overlay,
.menu-card:active .menu-card-overlay {
  background: rgba(0, 240, 255, 0.08);
}

.menu-card-content,
.menu-info,
.menu-title,
.menu-desc,
.menu-badge {
  display: none !important;
}

.menu-badge {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.menu-badge.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.menu-badge.badge-cyan {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.menu-badge.badge-purple {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.menu-badge.badge-blue {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.menu-badge.badge-green {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.menu-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.menu-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Subscreen (Rating / Hall of Fame inside Menu) */
.menu-subscreen {
  animation: fadeInSubscreen 0.25s ease-out;
}

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

.menu-subscreen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.menu-back-btn:hover, .menu-back-btn:active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transform: translateX(-2px);
}

.menu-back-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--neon-cyan);
}

.menu-subscreen-title {
  font-family: var(--font-heading);
  font-size: clamp(13px, 3.8vw, 15px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   CYBERPUNK SHOP & TENTEN SHOP STYLES
   ========================================================================== */

.shop-sub-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-sub-tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.shop-sub-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(168, 85, 247, 0.25));
  color: #ffffff;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.shop-pane {
  animation: fadeInPane 0.25s ease-out;
}

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

.shop-collage-box {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  background: #0f1220;
}

.shop-collage-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.shop-timer-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10, 12, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.shop-timer-badge strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--neon-cyan);
}

/* 1. Daily Showcase Header Banner (ZZZ Rotation Style) */
.daily-showcase-banner {
  background: linear-gradient(135deg, rgba(20, 25, 42, 0.95), rgba(12, 16, 28, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.daily-showcase-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
}

.showcase-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.showcase-tag-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  display: inline-block;
}

.showcase-sys-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.showcase-wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #c084fc;
  font-family: var(--font-heading);
}

.wallet-currency-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.showcase-banner-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.showcase-timer-box .timer-icon {
  font-size: 16px;
}

.showcase-timer-box .timer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.showcase-timer-box .timer-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.showcase-timer-box .timer-countdown {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.showcase-info-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.35;
}

/* Legacy fallback wrapper (zero-height) */
.shop-collage-box {
  display: none !important;
}

.shop-section-title {
  margin: 14px 0 10px;
}

.shop-section-title h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.shop-section-title .shop-section-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Daily Characters List */
/* 2. Daily Characters List */
.shop-daily-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.shop-daily-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 18, 32, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 10px 14px;
  background: rgba(16, 20, 36, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  transition: all 0.22s ease;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.shop-daily-card:hover {
  transform: translateY(-2px);
}

.card-rarity-ribbon {
  position: absolute;
  top: 0;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  z-index: 2;
}

.card-rarity-ribbon.legendary {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.card-rarity-ribbon.epic {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.card-rarity-ribbon.common {
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  color: #000000;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.shop-daily-card.legendary {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.15);
}

.shop-daily-card.epic {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.15);
}

.shop-daily-card.common {
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.1);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.12);
}

.shop-card-portrait-wrap {
  width: 60px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: #0a0d18;
}

.shop-card-portrait-wrap img,
.shop-card-portrait-img,
.shop-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.22s ease;
}

.shop-card-portrait-wrap:hover img,
.shop-daily-card:hover .shop-card-portrait-img,
.shop-daily-card:hover .shop-card-thumb {
  transform: scale(1.08);
}

.card-zoom-hint {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 5px;
  padding: 1px 4px;
  font-size: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shop-card-portrait-wrap:hover .card-zoom-hint {
  opacity: 1;
}

.shop-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.shop-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  cursor: pointer;
}

.shop-card-name:hover {
  color: var(--neon-cyan);
}

.card-stars-mini {
  font-size: 8px;
  letter-spacing: -1px;
}

.shop-card-anime {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.shop-card-lvl-tag {
  font-size: 11px;
  color: var(--neon-cyan);
  font-weight: 700;
}

.card-ownership-tag {
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: var(--font-heading);
}

.card-ownership-tag.owned {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.card-ownership-tag.new {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #fbbf24;
  color: #fef08a;
}

.shop-card-stats {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-shop-buy {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0077fe 100%);
  color: #000000;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  min-width: 80px;
  min-height: 44px;
}

.btn-shop-buy span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #000000;
  line-height: 1.1;
}

.btn-shop-buy small {
  font-size: 11px;
  color: #051937;
  font-weight: 800;
  line-height: 1.1;
}

.btn-shop-buy:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.55);
  transform: translateY(-1px);
}

.btn-shop-buy:active {
  transform: scale(0.96);
}

.btn-shop-buy.bought {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none;
}

.btn-shop-buy.bought small {
  color: rgba(255, 255, 255, 0.4) !important;
}

.btn-shop-buy.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   TENTEN SHOP & HOYOVERSE MODAL STYLES (ZZZ / HSR AESTHETICS)
   ========================================================================== */

/* 1. Kiosk Hostess Header */
.tenten-banner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(20, 25, 42, 0.95), rgba(12, 16, 28, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.tenten-banner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-cyan), #10b981);
}

.tenten-avatar-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  flex-shrink: 0;
  position: relative;
  background: #000;
}

.tenten-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

.tenten-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #0f1220;
  box-shadow: 0 0 6px #10b981;
}

.tenten-speech {
  flex: 1;
  min-width: 0;
}

.tenten-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.tenten-name-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.tenten-wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  font-family: var(--font-heading);
}

.tenten-phrase {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin: 0;
  line-height: 1.35;
}

/* 2. Featured Tickets Hero Card */
.tenten-featured-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75), rgba(15, 18, 32, 0.95));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(245, 158, 11, 0.15);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenten-featured-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.tenten-featured-card:active {
  transform: scale(0.98);
}

.featured-card-badge {
  position: absolute;
  top: 0;
  right: 18px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  z-index: 2;
}

.tickets-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticket-visual-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.ticket-big-emoji {
  font-size: 32px;
  z-index: 1;
}

.ticket-rarity-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

.ticket-meta {
  flex: 1;
  min-width: 0;
}

.ticket-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ticket-title-row h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.ticket-price-pill {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--neon-gold);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  color: #fbbf24;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.ticket-desc-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 3px 0 6px;
}

.ticket-limit-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.ticket-limit-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ticket-limit-text {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.featured-card-cta {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.btn-tenten-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 10px;
  padding: 6px 14px;
  color: #fef08a;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tenten-cta:hover {
  background: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.cta-arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.btn-tenten-cta:hover .cta-arrow {
  transform: translateX(2px);
}

/* 3. Gifts Grid & Tactile Item Tiles */
.shop-section-title .section-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 20px;
}

.tenten-gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tenten-gift-card {
  background: rgba(16, 20, 36, 0.9);
  border-radius: 18px;
  padding: 12px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tenten-gift-card:hover {
  transform: translateY(-2px);
}

.tenten-gift-card:active {
  transform: scale(0.97);
}

/* Rarity Tiers */
.tenten-gift-card.tier-common {
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.tenten-gift-card.tier-common:hover {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.tenten-gift-card.tier-rare {
  border: 1px solid rgba(0, 240, 255, 0.35);
}
.tenten-gift-card.tier-rare:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.tenten-gift-card.tier-epic {
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
}
.tenten-gift-card.tier-epic:hover {
  border-color: #c084fc;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
}

.tenten-gift-card.tier-legendary {
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}
.tenten-gift-card.tier-legendary:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
}

/* Inventory Badge */
.gift-inv-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.inv-icon {
  font-size: 10px;
}

/* Visual Box */
.gift-visual-box {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  position: relative;
}

.gift-icon {
  font-size: 32px;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.tenten-gift-card:hover .gift-icon {
  transform: scale(1.1);
}

/* Card Details */
.gift-details {
  display: flex;
  flex-direction: column;
}

.gift-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-effect-badge {
  font-size: 10px;
  font-weight: 700;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 6px;
  padding: 1px 5px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.gift-effect-badge.special-effect {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
}

.gift-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.gift-price-val {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  font-family: var(--font-heading);
}

.gift-action-btn {
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 7px;
  padding: 2px 7px;
  text-transform: uppercase;
}

.gift-action-btn.gold {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Legendary Featured Ring Special Card */
.featured-ring {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  padding: 14px 16px;
  min-height: auto;
  gap: 16px;
}

.featured-ring .gift-visual-box {
  height: 64px;
  width: 64px;
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  margin: 0;
}

.featured-ring .gift-icon {
  font-size: 36px;
}

.featured-ring .gift-details {
  flex: 1;
  min-width: 0;
}

.featured-ring .gift-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.gift-legendary-ribbon {
  position: absolute;
  top: 0;
  left: 16px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  z-index: 2;
}

/* ==========================================================================
   4. HOYOVERSE / ZZZ STYLE TENTEN PURCHASE MODAL
   ========================================================================== */
.tenten-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.25s ease;
}

.tenten-modal-overlay.hidden {
  display: none !important;
}

.tenten-modal-backdrop {
  position: absolute;
  inset: 0;
}

.tenten-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #15192c 0%, #0d0f1a 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
  animation: tentenModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tentenModalPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.tenten-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tenten-modal-title-box {
  flex: 1;
}

.tenten-modal-sys-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 2px;
}

.tenten-modal-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* Modal Hero Showcase */
.tenten-modal-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 16px;
}

.tenten-modal-hero-frame {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.tenten-modal-hero-icon {
  font-size: 38px;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.tenten-modal-hero-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
}

.tenten-modal-hero-info {
  flex: 1;
  min-width: 0;
}

.tenten-modal-badge-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.tenten-rarity-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.tenten-rarity-pill.common {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid #10b981;
}

.tenten-rarity-pill.rare {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.tenten-rarity-pill.epic {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid #a855f7;
}

.tenten-rarity-pill.legendary {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.tenten-effect-pill {
  font-size: 10px;
  font-weight: 700;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 6px;
  padding: 2px 6px;
}

.tenten-modal-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 6px;
  line-height: 1.35;
}

.tenten-modal-inventory-stat {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
}

.tenten-modal-inventory-stat strong {
  color: #ffffff;
}

/* Stepper Controls */
.tenten-modal-stepper-box {
  margin-bottom: 16px;
}

.stepper-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stepper-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.stepper-btn:active {
  transform: scale(0.94);
}

.stepper-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.stepper-input {
  width: 100%;
  height: 44px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  padding: 0 32px 0 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.stepper-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.stepper-unit {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.stepper-quick-chips {
  display: flex;
  gap: 6px;
}

.qty-chip {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.qty-chip:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.qty-chip:active {
  transform: scale(0.96);
}

.qty-chip.chip-max {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.qty-chip.chip-max:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
}

/* Cost Sheet */
.tenten-modal-cost-sheet {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 4px;
}

.cost-row:last-child {
  margin-bottom: 0;
}

.cost-label {
  color: rgba(255, 255, 255, 0.65);
}

.cost-val {
  font-weight: 700;
  color: #ffffff;
}

.cost-row.highlight {
  margin: 6px 0;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cost-row.highlight .cost-label {
  font-weight: 800;
  color: #ffffff;
  font-size: 12px;
}

.cost-val-total {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.cost-row.subtle {
  font-size: 10px;
}

.cost-val-balance {
  font-weight: 700;
  color: #34d399;
}

.cost-val-balance.insufficient {
  color: #f87171;
}

/* CTA Action Button */
.tenten-modal-actions {
  display: flex;
}

.btn-tenten-confirm {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0077fe 100%);
  border: none;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-tenten-confirm:hover {
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}

.btn-tenten-confirm:active {
  transform: scale(0.98);
}

.btn-tenten-confirm.disabled {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   WISHLIST (СПИСОК ЖЕЛАЕМОГО) STYLES
   ========================================================================== */

.wishlist-banner-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 27, 75, 0.4));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
}

.wishlist-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wishlist-sys-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbbf24;
}

.wishlist-count-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #fbbf24;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.wishlist-banner-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.wishlist-banner-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
}

/* Selected Wishlist Cards */
.wishlist-selected-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.wishlist-selected-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 18, 32, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.wishlist-selected-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.wishlist-selected-thumb {
  width: 50px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.wishlist-selected-info {
  flex: 1;
  min-width: 0;
}

.wishlist-selected-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}

.wishlist-selected-anime {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-selected-rarity {
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.btn-wishlist-remove {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-wishlist-remove:hover, .btn-wishlist-remove:active {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* Empty Wishlist Box */
.wishlist-empty-box {
  background: rgba(15, 18, 32, 0.5);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}

.wishlist-empty-box .empty-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.wishlist-empty-box h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.wishlist-empty-box p {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

/* Wishlist Catalog Search & Filter */
.wishlist-search-bar {
  position: relative;
  margin-bottom: 12px;
}

.wishlist-search-bar input {
  width: 100%;
  padding: 10px 38px 10px 36px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.wishlist-search-bar input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.wishlist-search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
}

.wishlist-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}

.wishlist-filter-row::-webkit-scrollbar {
  display: none;
}

.wishlist-filter-btn {
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wishlist-filter-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(168, 85, 247, 0.25));
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Wishlist Catalog Grid */
.wishlist-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.wishlist-catalog-card {
  background: rgba(15, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.wishlist-catalog-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
}

.wishlist-catalog-card.in-wishlist {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.wishlist-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #090e24;
}

.wishlist-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wishlist-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 6px;
}

.wishlist-card-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.wishlist-card-anime {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-wishlist-action {
  width: 100%;
  padding: 7px 6px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
}

.btn-wishlist-action:hover, .btn-wishlist-action:active {
  background: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.btn-wishlist-action.added {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #fbbf24;
  color: #fbbf24;
}

.btn-wishlist-action.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   AWARDS, DAILY TASKS & ACHIEVEMENTS SYSTEM (ZZZ / HSR AESTHETIC)
   ========================================================================== */

/* Sub-Tabs Navigation */
.awards-sub-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.awards-sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.awards-sub-tab:active {
  transform: scale(0.97);
}

.awards-sub-tab.active {
  background: rgba(0, 240, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.awards-tab-icon {
  font-size: 15px;
}

.awards-tab-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.awards-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInPane 0.25s ease-out;
}

.awards-pane.hidden {
  display: none !important;
}

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

/* --------------------------------------------------------------------------
   1. Daily Login Bonus Hero Card
   -------------------------------------------------------------------------- */
.login-bonus-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.9) 0%, rgba(13, 17, 30, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(0, 240, 255, 0.05);
  transition: all 0.3s ease;
}

.login-bonus-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.login-bonus-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.login-bonus-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.login-bonus-status {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.login-bonus-status.ready {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.login-bonus-status.cooldown {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-bonus-content {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.login-bonus-icon-box {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.login-bonus-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(0, 240, 255, 0.5));
}

.login-bonus-info {
  flex: 1;
}

.login-bonus-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.login-bonus-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.login-bonus-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-claim-login {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #050b14;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  transition: all 0.25s ease;
}

.btn-claim-login:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.2);
}

.btn-claim-login:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.login-cooldown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-cooldown-wrap strong {
  color: #fbbf24;
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   2. Daily Tasks Section
   -------------------------------------------------------------------------- */
.daily-tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  margin-top: 4px;
}

.tasks-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasks-header-icon {
  font-size: 22px;
}

.tasks-header-left h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.tasks-reset-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.tasks-reset-row strong {
  color: #38bdf8;
  font-family: monospace;
  font-size: 11px;
}

.btn-claim-all-tasks {
  padding: 7px 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-claim-all-tasks:active {
  transform: scale(0.95);
}

.btn-claim-all-tasks:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

.daily-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-task-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.daily-task-card.ready {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.1);
}

.daily-task-card.claimed {
  opacity: 0.6;
  border-color: rgba(255, 255, 255, 0.04);
}

.task-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.task-info-block {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-progress-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.task-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.task-progress-bar-fill.done {
  background: linear-gradient(90deg, #10b981, #059669);
}

.task-progress-val {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  font-family: monospace;
  white-space: nowrap;
}

.task-action-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.task-reward-chip {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-task-claim {
  padding: 6px 12px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #050b14;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  transition: all 0.2s ease;
}

.btn-task-claim:active {
  transform: scale(0.95);
}

.task-status-pill {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.task-status-pill.claimed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.task-status-pill.in-progress {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   3. Global Achievements Section
   -------------------------------------------------------------------------- */
.achievements-summary-banner {
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.85), rgba(13, 17, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ach-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ach-summary-badge {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a78bfa;
}

.ach-summary-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0 0;
}

.ach-ready-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 11px;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
}

.ach-summary-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ach-progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.ach-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 5px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ach-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
}

.ach-claim-all-row {
  display: flex;
}

.btn-claim-all-ach {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
  transition: all 0.2s ease;
}

.btn-claim-all-ach:active {
  transform: scale(0.97);
}

.btn-claim-all-ach:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

/* Category Filter Chips Horizontal Scroll */
.ach-categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
}

.ach-categories-scroll::-webkit-scrollbar {
  display: none;
}

.ach-cat-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ach-cat-chip.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.ach-cat-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
}

.ach-category-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
}

.ach-cat-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.btn-claim-cat-ach {
  padding: 6px 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.global-achievements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.achievement-card.ready {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.12);
}

.achievement-card.completed {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.04);
}

.ach-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ach-card-info {
  flex: 1;
}

.ach-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ach-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.ach-tier-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.ach-card-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.ach-card-rewards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ach-reward-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ach-title-reward-tag {
  font-size: 11px;
  font-weight: 800;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 1px 6px;
  border-radius: 6px;
}

.ach-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ach-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ach-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.ach-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 4px;
}

.ach-bar-meta {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
}

.btn-ach-claim {
  padding: 7px 14px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #050b14;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-ach-claim:active {
  transform: scale(0.95);
}

.ach-done-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Promo Codes Terminal
   -------------------------------------------------------------------------- */
.promo-terminal-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(13, 17, 30, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.promo-terminal-glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

.promo-terminal-header {
  text-align: center;
}

.promo-terminal-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.promo-terminal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.promo-terminal-header p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 320px;
  line-height: 1.4;
}

.promo-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.promo-input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
}

.promo-input {
  width: 100%;
  padding: 14px 40px 14px 42px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.promo-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
  background: rgba(0, 0, 0, 0.6);
}

.promo-clear-btn {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-redeem-promo {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-redeem-promo:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.promo-status-msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  animation: fadeInPane 0.2s ease-out;
}

.promo-status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.promo-status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.promo-terminal-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
}

.promo-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.info-icon {
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   CRAFT & FORGE SUBSCREEN (ZZZ / HSR FIRE & EMBER FORGE)
   ========================================================================== */

.craft-header-balance {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.craft-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 16px 80px;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Hero Banner */
.craft-hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 18, 12, 0.95) 0%, rgba(18, 14, 22, 0.95) 100%);
  border: 1px solid rgba(255, 122, 0, 0.3);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 180, 100, 0.2);
}

.craft-banner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 100, 0, 0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.craft-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.craft-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 100, 0, 0.15);
  border: 1px solid rgba(255, 100, 0, 0.3);
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ff9d42;
}

.craft-fire-icon {
  font-size: 12px;
}

.craft-reset-pill {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.craft-reset-pill strong {
  color: #f1f5f9;
  font-family: var(--font-heading);
}

.craft-banner-body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.craft-banner-body p {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

/* 2. Pending Craft Alert Banner */
.craft-pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
  animation: pulsePendingBorder 2s infinite ease-in-out;
}

@keyframes pulsePendingBorder {
  0%, 100% { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); }
  50% { border-color: rgba(245, 158, 11, 0.9); box-shadow: 0 4px 24px rgba(245, 158, 11, 0.4); }
}

.pending-alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.pending-alert-content {
  flex: 1;
}

.pending-alert-content h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 2px 0;
}

.pending-alert-content p {
  font-size: 11px;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.3;
}

.btn-resume-craft {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #111827;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-resume-craft:active {
  transform: scale(0.96);
  filter: brightness(1.1);
}

/* 3. Section Title */
.craft-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.craft-section-title .section-icon {
  font-size: 20px;
}

.craft-section-title h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.craft-sub-label {
  font-size: 11px;
  color: #94a3b8;
}

/* 4. Recipe Cards Grid */
.craft-recipes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.craft-recipe-card {
  position: relative;
  overflow: hidden;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.craft-recipe-card:hover {
  transform: translateY(-2px);
}

.craft-recipe-card.rarity-common {
  border-color: rgba(148, 163, 184, 0.3);
}

.craft-recipe-card.rarity-epic {
  border-color: rgba(168, 85, 247, 0.4);
}

.craft-recipe-card.rarity-legendary {
  border-color: rgba(245, 158, 11, 0.45);
}

.craft-recipe-card .recipe-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
  opacity: 0.3;
}

.craft-recipe-card.rarity-common .recipe-glow {
  background: rgba(148, 163, 184, 0.4);
}

.craft-recipe-card.rarity-epic .recipe-glow {
  background: rgba(168, 85, 247, 0.5);
}

.craft-recipe-card.rarity-legendary .recipe-glow {
  background: rgba(245, 158, 11, 0.6);
}

.recipe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recipe-rarity-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
}

.recipe-rarity-badge.common {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.recipe-rarity-badge.epic {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

.recipe-rarity-badge.legendary {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.recipe-limit-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
}

.recipe-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recipe-formula {
  display: flex;
  align-items: center;
  gap: 8px;
}

.formula-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 60px;
}

.formula-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.formula-val.shards {
  color: #fbbf24;
}

.formula-sub {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
}

.formula-plus {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
}

.recipe-materials-info {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
}

.recipe-materials-info strong {
  color: #38bdf8;
  font-family: var(--font-heading);
  font-size: 13px;
}

.recipe-footer {
  margin-top: 4px;
}

.btn-recipe-select {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-recipe-select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-recipe-select:active {
  transform: scale(0.98);
}

.btn-recipe-select.epic {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(147, 51, 234, 0.15) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.btn-recipe-select.epic:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(147, 51, 234, 0.25) 100%);
}

.btn-recipe-select.legendary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fef08a;
}

.btn-recipe-select.legendary:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
}

.btn-recipe-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* 5. Rules Card */
.craft-rules-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 4px;
}

.rules-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rules-header-icon {
  font-size: 16px;
}

.rules-card-header h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rule-bullet {
  color: #f59e0b;
  font-size: 10px;
  line-height: 1.6;
}

.rule-item p {
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

.rule-item strong {
  color: #e2e8f0;
}

/* 6. Materials Selector View */
.craft-materials-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.craft-materials-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.craft-materials-back-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.craft-materials-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

/* Sticky Action Tracker Panel */
.craft-tracker-panel {
  position: sticky;
  top: 60px;
  z-index: 20;
  background: rgba(18, 22, 28, 0.95);
  border: 1px solid rgba(255, 122, 0, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tracker-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracker-label, .tracker-cost-label {
  font-size: 11px;
  color: #94a3b8;
  margin-right: 6px;
}

.tracker-counter {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #38bdf8;
}

.tracker-cost-val {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #fbbf24;
}

.craft-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.craft-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7a00, #ff4d00);
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracker-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-craft-reset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-craft-reset:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-craft-forge {
  flex: 1;
  background: linear-gradient(135deg, #ff7a00 0%, #ff4d00 100%);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-craft-forge:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.55);
}

.btn-craft-forge:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-craft-forge:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: #334155;
  color: #64748b;
}

.craft-materials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
  padding: 4px 2px;
}

.materials-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.materials-header-right {
  font-size: 11px;
  color: #94a3b8;
}

/* Materials Cards Grid */
.craft-materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.craft-mat-card {
  position: relative;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.craft-mat-card.selected {
  border-color: #ff7a00;
  box-shadow: 0 4px 20px rgba(255, 122, 0, 0.25);
}

.craft-mat-card-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d1117;
}

.craft-mat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.craft-mat-badge-level {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
}

.craft-mat-badge-avail {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(16, 185, 129, 0.85);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.craft-mat-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.craft-mat-name {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.craft-mat-anime {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stepper Controls */
.craft-mat-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  gap: 6px;
}

.btn-mat-step {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mat-step:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-mat-step:active:not(:disabled) {
  transform: scale(0.92);
}

.btn-mat-step:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mat-step-val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ff7a00;
  min-width: 24px;
  text-align: center;
}

/* Empty Materials State */
.craft-materials-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.craft-materials-empty .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.craft-materials-empty h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #f1f5f9;
  margin: 0 0 6px 0;
}

.craft-materials-empty p {
  font-size: 12px;
  color: #94a3b8;
  max-width: 280px;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.btn-go-to-banners {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
}

/* 7. 3-Card Chamber View */
.chamber-hero-header {
  text-align: center;
  padding: 10px 10px 0;
}

.chamber-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.chamber-hero-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
}

.chamber-hero-header p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.craft-chamber-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.craft-candidate-card {
  position: relative;
  background: rgba(22, 27, 34, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.craft-candidate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.craft-candidate-card.active {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(30, 24, 18, 0.98) 0%, rgba(22, 27, 34, 0.98) 100%);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4), inset 0 0 12px rgba(245, 158, 11, 0.15);
}

.candidate-art-wrap {
  position: relative;
  width: 100px;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  background: #0d1117;
}

.candidate-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-info-sheet {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.candidate-title-block h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px 0;
}

.candidate-anime-label {
  font-size: 11px;
  color: #94a3b8;
}

.candidate-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.candidate-level-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.candidate-level-pill.new-card {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.candidate-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s ease;
}

.craft-candidate-card.active .candidate-check-circle {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
  font-weight: 800;
}

.chamber-action-bar {
  margin-top: 14px;
}

.btn-chamber-claim {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #111827;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-chamber-claim:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

.btn-chamber-claim:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-chamber-claim:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #334155;
  color: #64748b;
  box-shadow: none;
}

/* 8. Modals (Confirm & Reward) */
.craft-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInPane 0.2s ease-out;
}

.craft-modal-overlay.hidden {
  display: none !important;
}

.craft-confirm-sheet {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #161b22;
  border: 1px solid rgba(255, 122, 0, 0.4);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 100, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1001;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-icon {
  font-size: 20px;
}

.sheet-header-title h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.sheet-warning-text {
  font-size: 12px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.sheet-materials-list {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.materials-list-title {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
}

.materials-summary-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

.sheet-cost-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.cost-label {
  color: #94a3b8;
}

.cost-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #f1f5f9;
}

.cost-val.highlight {
  color: #fbbf24;
}

.cost-val.subtle {
  color: #f87171;
}

.sheet-note {
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-sheet-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-sheet-confirm {
  flex: 2;
  background: linear-gradient(135deg, #ff7a00 0%, #ff4d00 100%);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.4);
}

/* Craft Result Celebration Modal */
.craft-result-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #11141c;
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  z-index: 1001;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-burst-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(25px);
}

.result-top-banner .result-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 4px;
}

.result-top-banner h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 4px 0 0 0;
}

.result-card-frame {
  position: relative;
  width: 140px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(245, 158, 11, 0.8);
}

.result-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-rarity-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.result-meta h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px 0;
}

.result-meta p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 10px 0;
}

.result-stats-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.result-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.result-stat-chip.points {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-result-claim {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #111827;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   REFERRAL NETWORK (ZZZ / HSR CYBERPUNK NETWORK STYLES)
   ========================================================================== */

/* Sub-tabs header */
.referral-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.referral-sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.referral-sub-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.ref-count-pill {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.ref-header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  color: #00f0ff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
}

/* Hero Banner */
.referral-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}

.referral-banner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

.referral-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  color: #c084fc;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.referral-banner-body h3 {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.referral-banner-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

/* 3 Stats Cards */
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.ref-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ref-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.3);
}

.ref-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.ref-stat-icon-wrap.icon-apple {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ref-stat-icon-wrap.icon-crystal {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.ref-stat-icon-wrap.icon-ticket {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ref-stat-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ref-stat-value {
  margin: 0 0 2px 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.ref-stat-sub {
  font-size: 9px;
  color: #64748b;
}

/* Referral Link Box */
.referral-link-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.ref-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ref-card-icon {
  font-size: 20px;
}

.ref-card-titles h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.ref-card-titles span {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.ref-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ref-link-input-wrap {
  flex: 1;
  position: relative;
}

.ref-link-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #38bdf8;
  font-family: monospace;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ref-link-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-ref-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-ref-copy:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.btn-ref-share {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}

.btn-ref-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* Roadmap */
.referral-roadmap-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.roadmap-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.roadmap-header-icon {
  font-size: 20px;
}

.roadmap-header h4 {
  margin: 0 0 2px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.roadmap-sub {
  font-size: 11px;
  color: #94a3b8;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 28px;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 11px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.4), rgba(168, 85, 247, 0.4), rgba(245, 158, 11, 0.5));
}

.roadmap-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.roadmap-step.step-welcome {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.04);
}

.roadmap-step.step-legendary {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.1);
}

.roadmap-marker {
  position: absolute;
  left: -28px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.roadmap-marker .marker-dot {
  font-size: 10px;
  font-weight: 800;
  color: #00f0ff;
}

.roadmap-marker.grand {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.roadmap-marker.grand .marker-dot {
  color: #f59e0b;
}

.roadmap-step-content {
  width: 100%;
}

.roadmap-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.roadmap-threshold-badge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.roadmap-threshold-badge.welcome {
  color: #38bdf8;
}

.roadmap-threshold-badge.legendary {
  color: #fbbf24;
}

.roadmap-reward-badge {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.roadmap-reward-badge.legendary {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.roadmap-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
}

/* Referrals List Subtab */
.ref-list-toolbar {
  margin-bottom: 14px;
}

.ref-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ref-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
}

.ref-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 36px 10px 36px;
  font-size: 13px;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ref-search-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.ref-search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

.referrals-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Referral Card */
.ref-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ref-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.15);
}

.ref-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-avatar-box {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 240, 255, 0.4);
  flex-shrink: 0;
  background: #020617;
}

.ref-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-info-col {
  flex: 1;
  min-width: 0;
}

.ref-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ref-name-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-clan-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.ref-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
}

.ref-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ref-meta-item.points {
  color: #38bdf8;
  font-weight: 700;
}

.ref-progress-block {
  background: rgba(2, 6, 23, 0.5);
  border-radius: 8px;
  padding: 6px 8px;
}

.ref-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 4px;
}

.ref-progress-target {
  color: #94a3b8;
}

.ref-progress-pct {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #00f0ff;
}

.ref-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.ref-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #a855f7 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Empty State */
.referrals-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.referrals-empty-state h4 {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.referrals-empty-state p {
  margin: 0 0 16px 0;
  font-size: 12px;
  color: #94a3b8;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.btn-empty-invite {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-empty-invite:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   REFERRAL DOSSIER MODAL
   ========================================================================== */

.referral-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.referral-modal-overlay.hidden {
  display: none !important;
}

.referral-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: #0b0f19;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-icon {
  font-size: 18px;
}

.modal-title-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.referral-modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Modal Hero Card */
.ref-modal-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.ref-modal-avatar-frame {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
  background: #020617;
}

.ref-modal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-modal-hero-info {
  flex: 1;
  min-width: 0;
}

.ref-modal-name {
  margin: 0 0 2px 0;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-modal-username {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.ref-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ref-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.ref-modal-badge.clan {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.ref-modal-badge.points {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* Modal Metrics 3-grid */
.ref-modal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

/* Modal Milestones Progress Card */
.ref-modal-milestones-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.milestones-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.milestones-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-icon {
  font-size: 18px;
}

.milestones-header-left h4 {
  margin: 0 0 2px 0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.next-goal-text {
  font-size: 10px;
  color: #94a3b8;
}

.progress-pct-badge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  color: #00f0ff;
}

.ref-modal-progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ref-modal-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #3b82f6 50%, #a855f7 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Milestones Detailed Rows */
.ref-modal-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ref-m-row.reached {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
}

.ref-m-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-m-check {
  font-size: 12px;
}

.ref-m-target {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
}

.ref-m-reward {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.ref-m-reward.legendary {
  color: #fbbf24;
}

/* Modal Footer */
.referral-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.btn-ref-modal-close {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ref-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   DATING / WAIFU ROOM & AI MESSENGER (MARIN KITAGAWA)
   ========================================================================== */

/* Dating Hub View */
.dating-hub-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.dating-hero-card {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 27, 46, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(244, 114, 182, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 114, 182, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dating-hero-bg-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 75%);
  pointer-events: none;
}

.dating-hero-portrait-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(45, 27, 60, 0.4) 0%, transparent 70%);
  overflow: hidden;
}

.dating-hero-img {
  max-height: 270px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dating-hero-card:hover .dating-hero-img {
  transform: scale(1.02);
}

.dating-hero-overlay-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.dating-mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 114, 182, 0.35);
  color: #f472b6;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dating-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fb923c;
  font-size: 11px;
  font-weight: 700;
}

.dating-hero-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dating-hero-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dating-hero-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(244, 114, 182, 0.3);
}

.dating-hero-anime {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-top: 2px;
}

.dating-lvl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}

.dating-lvl-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #f472b6;
}

.dating-ring-icon {
  font-size: 14px;
}

.dating-status-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Meters Block */
.dating-meters-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dating-meter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dating-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.dating-meter-header strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
}

.dating-meter-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.dating-meter-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease-out;
}

.dating-meter-bar-fill.points {
  background: linear-gradient(90deg, #ec4899, #f43f5e, #fb7185);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.dating-meter-bar-fill.trust {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #a855f7);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

.dating-meter-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

/* CTA Block */
.dating-cta-block {
  margin-top: 4px;
}

.btn-dating-chat-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #9333ea 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35), 0 0 15px rgba(147, 51, 234, 0.25);
  transition: all 0.2s ease;
}

.btn-dating-chat-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
}

.btn-dating-chat-cta:active {
  transform: translateY(1px);
}

.cta-icon {
  font-size: 20px;
}

.cta-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  text-align: left;
}

.cta-text-wrap strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.cta-text-wrap small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}

.cta-arrow {
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.btn-dating-chat-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* Activities Grid */
.dating-activities-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title-sm {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.dating-activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dating-act-card {
  position: relative;
  background: rgba(20, 24, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dating-act-card:hover {
  background: rgba(30, 35, 60, 0.8);
  border-color: rgba(244, 114, 182, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.dating-act-card:active {
  transform: scale(0.98);
}

.act-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.act-icon-wrap.gift {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.act-icon-wrap.date {
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.act-icon-wrap.game {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.act-icon-wrap.moment {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.act-info h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
}

.act-info p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2px 0 0;
  line-height: 1.3;
}

.act-badge-indicator {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.act-badge-indicator.ready {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Secondary Row */
.dating-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-dating-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dating-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sec-badge {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 10px;
}

/* Inventory Bar */
.dating-inventory-bar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dating-inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inv-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.btn-dating-to-shop {
  background: none;
  border: none;
  color: #ec4899;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dating-inv-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.dating-inv-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  cursor: pointer;
}

.dating-inv-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chip-count {
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   MESSENGER / AI CHAT
   ========================================================================== */

.dating-messenger-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 480px;
  background: #090d16;
  border-radius: 18px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.messenger-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.btn-messenger-back {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.messenger-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: visible;
}

.messenger-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ec4899;
}

.messenger-online-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f172a;
}

.messenger-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.messenger-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.messenger-status-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.status-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.messenger-header-actions {
  display: flex;
  gap: 6px;
}

.btn-msg-hdr-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-msg-hdr-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Balance Strip */
.messenger-balance-strip {
  padding: 6px 14px;
  background: rgba(10, 15, 30, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.messenger-balance-strip strong {
  color: #ec4899;
}

/* Quick Topics Carousel */
.messenger-topics-carousel {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  scrollbar-width: none;
}

.messenger-topics-carousel::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-chip:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ffffff;
}

/* Messenger Feed */
.messenger-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-date-divider {
  align-self: center;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin: 6px 0;
}

.chat-bubble {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInMsg 0.25s ease-out;
}

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

.chat-bubble.user {
  align-self: flex-end;
}

.chat-bubble.user .bubble-body {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-bubble.marin {
  align-self: flex-start;
  display: flex;
  gap: 8px;
}

.bubble-marin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ec4899;
  flex-shrink: 0;
  margin-top: 2px;
}

.bubble-marin-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble.marin .bubble-body {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(244, 114, 182, 0.2);
  color: #f1f5f9;
  border-radius: 16px 16px 16px 4px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bubble-photo-attachment {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(244, 114, 182, 0.4);
  cursor: pointer;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.bubble-photo-attachment:hover {
  transform: scale(1.03);
}

.bubble-time {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.chat-bubble.user .bubble-time {
  align-self: flex-end;
}

/* Typing Indicator */
.typing-bubble-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 8px;
}

.typing-avatar-mini img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ec4899;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.typing-bubble .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f472b6;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-bubble .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-bubble .dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

.typing-hint-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

/* Input Dock */
.messenger-input-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-input-gift {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-input-gift:hover {
  background: rgba(236, 72, 153, 0.25);
}

.input-box-wrap {
  flex: 1;
}

.input-box-wrap input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.input-box-wrap input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

.btn-input-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  border: none;
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.btn-input-send:active {
  transform: scale(0.92);
}

/* ==========================================================================
   DATING MODALS & SHEETS
   ========================================================================== */

.dating-modal-overlay,
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 7, 20, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.dating-modal-overlay.hidden,
.modal-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dating-modal-sheet {
  background: linear-gradient(180deg, #181c2e 0%, #0d121f 100%);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 20px;
  width: 92%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.15);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dating-modal-sheet.gallery-sheet {
  max-width: 480px;
}

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

.dating-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}

.dating-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-hdr-icon {
  font-size: 24px;
}

.dating-modal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.dating-modal-title-wrap p {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 1px 0 0;
}

.btn-dating-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dating-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.dating-modal-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 26, 0.6);
}

.btn-dating-shop-redirect {
  width: 100%;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-dating-retry {
  background: rgba(244, 114, 182, 0.2);
  border: 1px solid rgba(244, 114, 182, 0.5);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dating-retry:hover {
  background: rgba(244, 114, 182, 0.35);
  transform: translateY(-1px);
}

.chat-retry-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 6px 12px;
  font-size: 11px;
  color: #fca5a5;
}

.btn-chat-retry {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Gifts Selection Grid */
.gifts-selection-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gift-select-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gift-select-card.favorite {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.06);
}

.gift-select-card.legendary {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}

.gift-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g-emoji {
  font-size: 22px;
}

.g-bonus-tag {
  font-size: 10px;
  font-weight: 700;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.g-bonus-tag.fav {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.g-bonus-tag.marriage {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.gift-card-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0;
}

.gift-card-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.gift-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.gift-in-stock {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.btn-give-gift {
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ec4899, #db2777);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.btn-give-gift.special {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Date Locations List */
.date-locations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.date-location-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-location-header h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.date-location-header p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 0 0;
  line-height: 1.35;
}

.date-choices-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.btn-date-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-date-choice:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.4);
}

.choice-reward-tag {
  font-size: 10px;
  color: #f472b6;
}

/* Mini-games Modals */
.game-select-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-game-tab {
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-game-tab.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-riddle-bubble {
  display: flex;
  gap: 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 14px;
  padding: 12px;
}

.riddle-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ec4899;
}

.riddle-text {
  flex: 1;
}

.riddle-author {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #f472b6;
  display: block;
  margin-bottom: 4px;
}

.riddle-text p {
  font-size: 11.5px;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.quiz-question-prompt {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-quiz-option {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-quiz-option:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-quiz-option.correct {
  background: rgba(52, 211, 153, 0.25) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
}

.btn-quiz-option.wrong {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: #f43f5e !important;
  color: #f43f5e !important;
}

/* RPS */
.rps-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.rps-marin-prompt p {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
}

.rps-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-rps-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rps-choice:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.rps-emoji {
  font-size: 28px;
}

.rps-label {
  font-size: 11px;
  font-weight: 700;
}

.rps-result-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.rps-result-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
}

.rps-result-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Moments Interactive List */
.moments-interactive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.moment-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.moment-item-card.completed {
  opacity: 0.6;
}

.moment-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moment-item-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.moment-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.moment-status-badge.avail {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.moment-status-badge.done {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.moment-status-badge.locked {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.moment-item-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  margin: 0;
}

.moment-choices-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.btn-moment-choice {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.btn-moment-choice:hover {
  background: rgba(56, 189, 248, 0.25);
}

/* Gallery Modals */
.gallery-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-gallery-tab {
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-gallery-tab.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ffffff;
}

.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card.locked {
  cursor: not-allowed;
  background: rgba(10, 15, 26, 0.8);
}

.gallery-lock-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
}

.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Photo Viewer Sub-Modal */
.photo-viewer-sheet {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 16px;
  max-width: 90%;
  width: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.btn-photo-viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  z-index: 5;
}

.photo-viewer-img-wrap {
  width: 100%;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.photo-viewer-img-wrap img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.photo-viewer-info {
  padding: 12px 16px;
}

.photo-viewer-info h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.photo-viewer-info p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 0 0;
  line-height: 1.35;
}

/* Level Up Modal */
.dating-levelup-card {
  background: linear-gradient(180deg, #241432 0%, #0d121f 100%);
  border: 1.5px solid #ec4899;
  border-radius: 20px;
  width: 85%;
  max-width: 360px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4), 0 0 30px rgba(168, 85, 247, 0.3);
  animation: popInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popInModal {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.levelup-sparkles {
  font-size: 20px;
}

.levelup-img-wrap {
  width: 120px;
  height: 120px;
  margin: 10px 0;
}

.levelup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(236, 72, 153, 0.5));
}

.levelup-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.levelup-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(236, 72, 153, 0.5);
}

.levelup-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 6px 0 16px;
  line-height: 1.4;
}

.btn-levelup-confirm {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

/* Strict mobile viewport bounds & horizontal shift prevention */
html,
body,
#app-container,
.main-screen,
.app-main,
.tab-pane,
.dating-hub-container,
.dating-messenger-container,
.arena-hub-container,
.arena-battle-container {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   BATTLES & ARENA TACTICAL COMBAT STYLES
   ========================================================================== */

/* Arena Hub Container */
.arena-hub-container {
  padding: 12px 14px 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Status Bar */
.arena-status-bar {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.arena-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arena-stat-icon {
  font-size: 20px;
}

.arena-stat-content {
  display: flex;
  flex-direction: column;
}

.arena-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.arena-stat-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.arena-badge-access {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 16px;
  letter-spacing: 0.5px;
}

.arena-badge-access.ready {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.arena-badge-access.locked {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* World Raid Boss Hero Card */
.arena-boss-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(35, 15, 25, 0.9) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 63, 94, 0.2);
}

.arena-boss-art-wrap {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.arena-boss-phase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.arena-boss-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.arena-phase-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 63, 94, 0.6);
  color: #fda4af;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}

.arena-armor-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  animation: pulseGlow 1.5s infinite;
}

.arena-boss-meta {
  padding: 14px;
}

.arena-boss-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.arena-boss-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(244, 63, 94, 0.5);
}

.arena-boss-weakness-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 8px;
  border-radius: 8px;
}

.arena-hp-bar-container {
  margin: 10px 0 12px;
}

.arena-hp-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.arena-hp-track {
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.arena-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  border-radius: 6px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.arena-boss-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
  margin-bottom: 14px;
}

.arena-boss-actions {
  display: flex;
  gap: 10px;
}

.btn-arena-primary {
  flex: 1.4;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.45);
  transition: transform 0.18s, filter 0.18s;
}

.btn-arena-primary:hover {
  filter: brightness(1.1);
}

.btn-arena-primary:active {
  transform: scale(0.97);
}

.btn-arena-secondary {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.btn-arena-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Squad Quick View Strip */
.arena-squad-strip-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.squad-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.squad-strip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.squad-power-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
}

.btn-squad-edit-quick {
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.arena-squad-slots-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.quick-slot-item {
  aspect-ratio: 3/4;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}

.quick-slot-item:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
}

.quick-slot-item.filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.3);
}

.quick-slot-item.filled.rarity-legendary {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.quick-slot-item.filled.rarity-epic {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.quick-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-slot-pos-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 8px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  text-align: center;
  padding: 2px 0;
}

.quick-slot-empty-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.3);
}

/* Secondary Modes Grid */
.arena-modes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arena-mode-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.arena-mode-tile:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.mode-tile-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mode-tile-body {
  flex: 1;
}

.mode-tile-body h4 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
}

.tile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tower-floor-badge {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1px 6px;
  border-radius: 6px;
}

.mode-tile-body p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.35;
}

.btn-arena-mode-enter {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.btn-arena-mode-enter:hover {
  background: var(--neon-cyan);
  color: #000000;
  border-color: var(--neon-cyan);
}

.btn-arena-mode-enter.btn-mode-muted {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ARENA TACTICAL COMBAT VIEW (CINEMATIC BOSS & 5-COLUMN HERO DECK)
   ========================================================================== */

/* Automatically hide top profile header and bottom navigation tab bar in battle */
body.arena-battle-active header.profile-header,
body.arena-battle-active nav.bottom-nav {
  display: none !important;
}

body.arena-battle-active .app-container {
  padding-bottom: 0 !important;
  max-width: 520px;
}

.arena-battle-container {
  min-height: 100vh;
  padding: 6px 8px calc(12px + env(safe-area-inset-bottom, 12px));
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: radial-gradient(circle at 50% 10%, rgba(55, 15, 30, 0.95) 0%, rgba(10, 14, 24, 0.98) 100%);
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Battle Subheader */
.arena-battle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.btn-battle-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.battle-title-wrap {
  text-align: center;
}

.battle-mode-tag {
  font-size: 8px;
  font-weight: 800;
  color: #fda4af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.battle-round-title {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.battle-dmg-counter {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.battle-dmg-counter .dmg-label {
  font-size: 7.5px;
  color: var(--text-dim);
}

.battle-dmg-counter strong {
  font-family: var(--font-heading);
  font-size: 11.5px;
  color: #4ade80;
}

/* --------------------------------------------------------------------------
   1. Big Cinematic Boss Stage
   -------------------------------------------------------------------------- */
.arena-boss-hero-card {
  background: rgba(18, 22, 36, 0.95);
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.boss-hero-art-wrap {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  background: #000000;
}

.boss-hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.boss-hero-art-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 40%, rgba(10, 14, 24, 0.85) 80%, rgba(10, 14, 24, 1) 100%);
}

.boss-phase-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(244, 63, 94, 0.6);
  color: #fda4af;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.boss-armor-break-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  z-index: 2;
  animation: pulseDangerBorder 0.8s infinite alternate;
}

.boss-hero-footer {
  padding: 4px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(10, 14, 24, 0.95);
}

.boss-hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boss-hero-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  color: #fda4af;
  letter-spacing: 0.5px;
}

.boss-hero-hp-val {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
}

.boss-hero-hp-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.boss-hero-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  border-radius: 3px;
  transition: width 0.35s ease;
}

.boss-hero-intent-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(35, 15, 25, 0.85);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 8px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.intent-icon {
  font-size: 8.5px;
  line-height: 1;
}

.intent-label {
  font-weight: 800;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.25);
  padding: 1px 3px;
  border-radius: 3px;
}

.intent-text {
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intent-target {
  font-weight: 700;
  color: #fca5a5;
  margin-left: auto;
  white-space: nowrap;
}

.intent-danger-alert {
  font-size: 7.5px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulseTargetDanger 1s infinite alternate;
}

/* --------------------------------------------------------------------------
   2. Squad Lineup (5 Hero Columns in a Single Row + Skill Under Each)
   -------------------------------------------------------------------------- */
.arena-squad-lineup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.squad-lineup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.squad-lineup-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.squad-lineup-hint {
  font-size: 7.5px;
  color: #38bdf8;
  font-weight: 600;
}

.squad-heroes-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Single Hero Column */
.hero-col-name {
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  line-height: 1;
  margin-top: 1px;
}

.hero-battle-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  min-width: 0;
}

.hero-slot-tag {
  font-size: 6.5px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.hero-slot-tag.front {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.hero-slot-tag.back {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.hero-slot-tag.supp {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Portrait Card */
.hero-col-card {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.hero-col-card.is-targeted {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.85);
  animation: pulseDangerBorder 1.2s infinite alternate;
}

.hero-col-card.is-dead {
  filter: grayscale(0.9) brightness(0.5);
  opacity: 0.5;
}

.hero-col-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-col-danger-reticle {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 6.5px;
  font-weight: 900;
  text-align: center;
  border-radius: 3px;
  padding: 1px 0;
  z-index: 3;
  letter-spacing: 0.3px;
  animation: pulseTargetDanger 0.8s infinite alternate;
}

.btn-hero-col-swap {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 8.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
}

.btn-hero-col-swap:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.9);
  transform: scale(1.1);
}

.btn-hero-col-swap:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.85);
}

.hero-col-status-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 7.5px;
  z-index: 2;
}

/* HP Mini Track */
.hero-col-hp-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-col-hp-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-col-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.hero-col-shield-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #38bdf8;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.hero-col-hp-text {
  font-size: 7.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1;
}

/* Skill Button (Directly Under Each Hero) */
.btn-hero-col-skill {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  color: #ffffff;
  min-height: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.18s ease;
}

.btn-hero-col-skill:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
}

.btn-hero-col-skill.is-queued {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.btn-hero-col-skill:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.skill-name-label {
  font-size: 7.5px;
  font-weight: 800;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}

.skill-cost-badge {
  font-size: 7px;
  font-weight: 800;
  color: #fde047;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}

.skill-queued-check {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 8px;
  font-weight: 900;
  color: var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   3. Bottom Action Dock
   -------------------------------------------------------------------------- */
.battle-bottom-dock {
  background: rgba(10, 14, 24, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-top: auto;
}

.dock-energy-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dock-cp-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dock-cp-icon {
  font-size: 11px;
}

.dock-cp-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.dock-cp-orbs {
  display: flex;
  gap: 3px;
}

.cp-orb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.cp-orb.active {
  background: #38bdf8;
  border-color: #7dd3fc;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.85);
}

.cp-orb.spending {
  background: #f59e0b;
  border-color: #fde68a;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.85);
}

.dock-cp-val {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
}

.dock-quota-group {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
}

.dock-actions-strip {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 20px;
}

.dock-actions-chips {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.action-chip-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-size: 8px;
  color: #ffffff;
  white-space: nowrap;
}

.btn-remove-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-remove-chip:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.65);
  color: #ffffff;
  transform: scale(1.1);
}

.btn-dock-clear {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-dock-execute {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.5);
  letter-spacing: 0.5px;
  transition: transform 0.18s, filter 0.18s;
}

.btn-dock-execute:active {
  transform: scale(0.98);
}

.btn-dock-execute-icon {
  font-size: 14px;
}

@keyframes pulseDangerBorder {
  0% { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
  100% { border-color: #ef4444; box-shadow: 0 0 14px rgba(239, 68, 68, 0.85); }
}

@keyframes pulseTargetDanger {
  0% { opacity: 0.85; transform: scale(0.99); }
  100% { opacity: 1; transform: scale(1.01); }
}

/* ==========================================================================
   ARENA MODALS STYLING
   ========================================================================== */

.arena-modal-sheet {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 16px));
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Squad Constructor Header */
.squad-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 42px;
}

.squad-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.squad-modal-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.squad-modal-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  letter-spacing: -0.2px;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.btn-modal-close.squad-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-modal-close.squad-close-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: rotate(90deg) scale(1.05);
}

.btn-modal-close.squad-close-btn:active {
  transform: rotate(90deg) scale(0.92);
}

/* Squad Constructor */
.squad-presets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.presets-label {
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 700;
}

.preset-buttons {
  display: flex;
  gap: 4px;
}

.btn-preset {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-preset.active {
  background: var(--neon-cyan);
  color: #000000;
  border-color: var(--neon-cyan);
}

.preset-actions {
  display: flex;
  gap: 4px;
}

.btn-preset-act {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-preset-act.btn-auto-fill {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.squad-slots-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formation-row-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.formation-slots-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.squad-slot-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 84px;
}

.squad-slot-card:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.04);
}

.squad-slot-card.active-slot {
  border-color: var(--neon-cyan);
  border-style: solid;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.squad-slot-card.has-card {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.25);
}

.slot-pos-badge {
  font-size: 9px;
  font-weight: 800;
  color: #38bdf8;
}

.slot-content.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.4);
}

.slot-add-icon {
  font-size: 20px;
  font-weight: 800;
}

.slot-hint-text {
  font-size: 9px;
}

.slot-content.filled {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slot-card-thumb {
  width: 36px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.slot-card-meta {
  flex: 1;
}

.slot-card-name {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.slot-card-class {
  font-size: 9px;
  color: #fbbf24;
}

.squad-balance-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.balance-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.balance-tag.valid {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.squad-card-picker-drawer {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px;
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.picker-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.picker-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.picker-filters .filter-pill {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto !important;
  opacity: 1 !important;
  transition: all 0.15s ease;
}

.picker-filters .filter-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.picker-filters .filter-pill.active {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.picker-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
}

.picker-card-item {
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s;
}

.picker-card-item:hover {
  transform: scale(1.04);
  border-color: var(--neon-cyan);
}

.picker-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picker-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  padding: 1px 0;
}

.btn-squad-save {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Journal Modal Sheet */
.journal-modal-sheet {
  background: #0f172a;
}

.journal-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journal-icon-wrap {
  font-size: 24px;
}

.journal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.journal-subtitle {
  font-size: 11px;
  color: var(--text-dim);
}

.journal-dmg-summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dmg-summary-item {
  display: flex;
  flex-direction: column;
}

.dmg-summary-item .sum-label {
  font-size: 8.5px;
  color: var(--text-dim);
}

.dmg-summary-item .sum-value {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.dmg-summary-item .sum-value.green {
  color: #4ade80;
}

.dmg-summary-item .sum-value.red {
  color: #f87171;
}

.journal-events-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.events-heading {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.journal-events-list {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journal-log-line {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.btn-journal-continue {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Rules Modal */
.rules-tabs-nav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 10px;
}

.rules-tab-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.rules-tab-btn.active {
  background: var(--neon-cyan);
  color: #000;
  font-weight: 800;
}

.rules-content-body {
  max-height: 60vh;
  overflow-y: auto;
}

.rule-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.rule-block h4 {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.rule-block p, .rule-block ul {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

.rule-block ul {
  padding-left: 18px;
}

.rule-classes-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.badge-class-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-class-pill.pure {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge-class-pill.phys {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.badge-class-pill.magic {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.badge-class-pill.supp {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.skills-catalog-grid, .intents-catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-catalog-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.rule-catalog-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.rule-catalog-details {
  flex: 1;
}

.rule-catalog-name {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.rule-catalog-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

/* Swap & Target Pickers */
.swap-slots-grid, .target-allies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-picker-choice {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-picker-choice:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}








/* Hint button in boss intent strip */
.intent-content-left {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.btn-battle-hint-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 800;
  border-radius: 5px;
  padding: 2px 6px;
  cursor: pointer;
  margin-left: 6px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
}

.btn-battle-hint-trigger:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.5));
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.hint-btn-icon {
  font-size: 9.5px;
}

.hint-btn-label {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hint-btn-badge {
  background: #f59e0b;
  color: #000000;
  font-size: 7.5px;
  font-weight: 900;
  padding: 0.5px 3.5px;
  border-radius: 6px;
  line-height: 1.1;
}

/* Hero card queued focus */
.hero-col-card.is-queued-actor {
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8) !important;
  animation: pulseGoldBorder 1.2s infinite alternate;
}

@keyframes pulseGoldBorder {
  0% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.95); }
}

.btn-hero-col-skill.is-queued {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(56, 189, 248, 0.35)) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6) !important;
}

.hp-shield-badge {
  color: #38bdf8;
  font-weight: 800;
}

/* Tactical Hint Modal Sheet */
.hint-modal-sheet {
  max-width: 380px;
  background: #11141d;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 16px;
}

.hint-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.hint-round-pill {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
}

.hint-intent-summary {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
}

.hint-box-label {
  font-size: 7.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: block;
  margin-bottom: 3px;
}

.hint-box-val-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
}

.hint-box-val-sub {
  font-size: 9.5px;
  color: #e2e8f0;
  margin-top: 2px;
}

.hint-recommendation-card {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 9px 11px;
}

.hint-rec-action-text {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.3;
}

.hint-rec-reason-text {
  font-size: 9.5px;
  color: #cbd5e1;
  margin-top: 5px;
  line-height: 1.4;
}

.hint-remaining-indicator {
  font-size: 9px;
  color: #64748b;
  text-align: center;
}

.hint-remaining-indicator strong {
  color: #f59e0b;
}

.hint-modal-ok-btn {
  width: 100%;
  padding: 9px 0;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

/* Hero Info Modal */
.hero-info-modal-sheet {
  max-width: 380px;
  background: #11141d;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 16px;
}

.hero-info-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 10px;
}

.hero-info-header-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px;
}

.hero-info-portrait {
  width: 56px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.hero-info-header-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-info-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.hero-info-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.hero-info-tag {
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.hero-info-stats-row {
  display: flex;
  gap: 8px;
  font-size: 8.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.hero-info-stats-row strong {
  color: #ffffff;
}

.hero-info-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
}

.hero-info-sec-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 3px;
}

.hero-info-sec-desc {
  margin: 0;
  font-size: 9px;
  color: #cbd5e1;
  line-height: 1.4;
}

.hero-info-skill-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 8px;
  color: #94a3b8;
}

.hero-info-skill-meta strong {
  color: #f59e0b;
}

.hero-info-close-btn {
  width: 100%;
  padding: 8px 0;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  margin-top: 2px;
}

/* ========================================================
   TITLES COLLECTION MODAL (CYBERPUNK STYLING)
   ======================================================== */
.user-title {
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
  user-select: none;
}
.user-title:hover {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.titles-modal-sheet {
  background: linear-gradient(180deg, #131728 0%, #090c16 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px 20px 0 0;
  max-width: 520px;
  width: 100%;
  height: 85vh;
  max-height: 88vh;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(168, 85, 247, 0.2);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.titles-modal-header {
  flex-shrink: 0 !important;
  padding: 14px 16px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.titles-modal-header-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.titles-modal-system-tag {
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a855f7;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.titles-modal-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.titles-modal-crown {
  font-size: 16px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.titles-modal-title-row h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.titles-modal-stats-row {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.titles-modal-stats-row strong {
  color: #38bdf8;
}

.titles-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.titles-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.titles-controls-wrap {
  flex-shrink: 0 !important;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.titles-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 6px 10px;
  gap: 6px;
  transition: border-color 0.2s;
}

.titles-search-box:focus-within {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.titles-search-icon {
  font-size: 12px;
  opacity: 0.6;
}

.titles-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 11px;
}

.titles-search-input::placeholder {
  color: #64748b;
}

.titles-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
}

.titles-search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.titles-filter-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.titles-filter-pills-row::-webkit-scrollbar {
  display: none;
}

.titles-filter-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.titles-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.titles-filter-pill.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.3));
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.titles-secondary-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.titles-ownership-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.titles-ownership-btn {
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.titles-ownership-btn:hover {
  color: #ffffff;
}

.titles-ownership-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.titles-sort-wrap {
  position: relative;
}

.titles-sort-select {
  background: rgba(20, 24, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.titles-sort-select:focus {
  border-color: #38bdf8;
}

.titles-cards-scroll {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 20px)) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.title-card {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
  height: auto !important;
  box-sizing: border-box !important;
  width: 100% !important;
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.85) 0%, rgba(12, 16, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  position: relative;
  overflow: visible !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.title-card:hover {
  transform: translateY(-1px);
}

.title-card.rarity-common {
  border-color: rgba(148, 163, 184, 0.25);
}

.title-card.rarity-epic {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.08);
}

.title-card.rarity-legendary {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.title-card.is-equipped {
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25) !important;
}

.title-card.is-locked {
  opacity: 0.9;
}

.title-card-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

.title-name-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.title-action-wrap {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.title-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.title-rarity-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.title-rarity-badge.badge-common {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.title-rarity-badge.badge-epic {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  text-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}

.title-rarity-badge.badge-legendary {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.title-equipped-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.title-desc {
  display: block !important;
  font-size: 11px !important;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  word-break: break-word !important;
  flex-shrink: 0 !important;
}

.title-progress-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

.title-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #64748b;
}

.title-progress-header strong {
  color: #cbd5e1;
}

.title-progress-header .progress-pct {
  color: #38bdf8;
  font-weight: 700;
}

.title-progress-fill-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.title-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.title-card.rarity-common .title-progress-fill {
  background: #38bdf8;
}

.title-card.rarity-epic .title-progress-fill {
  background: #a855f7;
}

.title-card.rarity-legendary .title-progress-fill {
  background: #f59e0b;
}

.title-card.is-unlocked .title-progress-fill {
  background: #10b981;
}

.title-req-cards-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
}
.title-req-cards-row::-webkit-scrollbar {
  display: none;
}

.title-req-card-thumb {
  position: relative;
  width: 36px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  background: #0b0f19;
}

.title-req-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-req-card-thumb.is-missing img {
  filter: grayscale(100%) brightness(0.35);
}

.title-req-card-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 8px;
  background: rgba(16, 185, 129, 0.9);
  border-radius: 50%;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.title-req-card-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px #000);
}

.title-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.title-btn-equip {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-size: 9.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.title-btn-equip:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.title-btn-unequip {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 9.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.title-btn-unequip:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.title-locked-tag {
  font-size: 9.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.titles-empty-state {
  text-align: center;
  padding: 30px 10px;
  color: #64748b;
  font-size: 11px;
}

/* Menu Hub Titles Card */
.menu-card-titles {
  position: relative;
  background: linear-gradient(135deg, #181432 0%, #0d1222 50%, #15102a 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 15px rgba(168, 85, 247, 0.15);
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  overflow: hidden;
  min-height: 110px;
}

.menu-card-titles:hover, .menu-card-titles:active {
  border-color: #c084fc;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(168, 85, 247, 0.2);
  transform: translateY(-4px) scale(1.015);
}

.menu-card-titles-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.2), transparent 70%);
  pointer-events: none;
}

.menu-card-titles-content {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
}

.menu-card-titles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-titles-badge-chip {
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
}

.menu-titles-stat-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
}

.menu-card-titles-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-titles-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.menu-titles-info {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  gap: 2px;
}

.menu-titles-title {
  display: block !important;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.menu-titles-sub {
  display: block !important;
  font-size: 9px;
  color: #94a3b8;
}

.menu-titles-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #a855f7;
  transition: transform 0.2s ease;
}

.menu-card-titles:hover .menu-titles-arrow {
  transform: translateX(3px);
  color: #c084fc;
}

/* ==========================================================================
   WAIFU BATTLES (ТУРНИРЫ / ВАЙФУ-БАТТЛЫ) - CYBERPUNK THEME
   ========================================================================== */

.waifu-header-medals-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.waifu-header-medals-chip:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.waifu-chip-icon {
  font-size: 15px;
}

.waifu-chip-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.5px;
}

/* Sub-Tabs: Active vs History */
.waifu-sub-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 16px 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.waifu-sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.waifu-sub-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.waifu-sub-tab.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  color: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.25);
}

.waifu-tab-icon {
  font-size: 16px;
}

/* Content Area */
.waifu-battles-content {
  padding: 0 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.waifu-section-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Status & Countdown Card */
.waifu-status-card {
  background: linear-gradient(145deg, rgba(24, 18, 38, 0.85) 0%, rgba(13, 17, 30, 0.95) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.waifu-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ec4899, #a855f7, #06b6d4);
}

.waifu-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waifu-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #ff3b88;
  letter-spacing: 1px;
}

.waifu-live-dot {
  width: 8px;
  height: 8px;
  background: #ff3b88;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff3b88;
  animation: waifuPulse 1.5s infinite;
}

@keyframes waifuPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.waifu-countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.waifu-countdown-label {
  font-size: 11px;
  color: #94a3b8;
}

.waifu-countdown-value {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
}

.waifu-pool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.waifu-pool-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.waifu-pool-title {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waifu-pool-sum {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #ffd700;
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.waifu-pool-unit {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.waifu-commission-badge {
  font-size: 11px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Matchup Arena (VS Arena) */
.waifu-matchup-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  position: relative;
}

.waifu-fighter-card {
  position: relative;
  background: rgba(18, 22, 34, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.waifu-fighter-card:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);
}

.waifu-fighter-card.selected {
  border-color: #ff3b88 !important;
  background: linear-gradient(180deg, rgba(255, 59, 136, 0.15) 0%, rgba(18, 22, 34, 0.95) 100%) !important;
  box-shadow: 0 0 24px rgba(255, 59, 136, 0.4) !important;
  transform: translateY(-2px);
}

.waifu-card-inner {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  height: 100%;
}

.waifu-portrait-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  max-height: 170px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.waifu-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.waifu-fighter-card:hover .waifu-portrait-img {
  transform: scale(1.04);
}

.waifu-rarity-pill {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.waifu-rarity-pill.Common {
  background: rgba(148, 163, 184, 0.4);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.waifu-rarity-pill.Epic {
  background: rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.waifu-rarity-pill.Legendary {
  background: rgba(234, 179, 8, 0.4);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.7);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}

.waifu-fighter-meta {
  width: 100%;
}

.waifu-fighter-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waifu-fighter-anime {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waifu-rate-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 8px;
  padding: 4px 6px;
}

.waifu-rate-prefix {
  font-size: 9px;
  font-weight: 700;
  color: #f472b6;
}

.waifu-rate-num {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.waifu-fighter-stats {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  padding: 0 4px;
}

.waifu-fighter-pool {
  color: #ffd700;
  font-weight: 700;
}

.waifu-fighter-pct {
  font-weight: 700;
  color: #38bdf8;
}

.waifu-select-indicator {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.waifu-fighter-card.selected .waifu-select-indicator {
  background: #ff3b88;
  border-color: #ff3b88;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 59, 136, 0.5);
}

.select-radio-icon {
  font-size: 12px;
}

/* VS Center Divider */
.waifu-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.waifu-vs-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.waifu-vs-text {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Ratio Bar */
.waifu-ratio-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waifu-ratio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.waifu-ratio-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.waifu-ratio-fill.fill-1 {
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  transition: width 0.4s ease;
}

.waifu-ratio-fill.fill-2 {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  transition: width 0.4s ease;
}

/* User Bet Display (State A) */
.waifu-user-bet-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 22, 30, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.user-bet-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bet-status-icon {
  font-size: 24px;
}

.bet-card-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #10b981;
  margin: 0;
}

.bet-card-sub {
  font-size: 11px;
  color: #94a3b8;
}

.user-bet-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bet-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bet-detail-lbl {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bet-detail-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.bet-detail-val.text-gold { color: #ffd700; }
.bet-detail-val.text-cyan { color: #38bdf8; }
.bet-detail-val.text-neon-green { color: #10b981; }

/* Betting Form (State B) */
.waifu-betting-form {
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.betting-form-header h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.betting-form-sub {
  font-size: 11px;
  color: #94a3b8;
}

.waifu-chips-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.waifu-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 4px;
  color: #e2e8f0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.waifu-chip-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.5);
  color: #ffffff;
}

.waifu-chip-btn.chip-max {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.waifu-chip-btn.chip-max:hover {
  background: rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.waifu-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waifu-input-field-box {
  display: flex;
  align-items: center;
  background: rgba(10, 14, 22, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px 12px;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.waifu-input-field-box:focus-within {
  border-color: #ff3b88;
  box-shadow: 0 0 16px rgba(255, 59, 136, 0.3);
}

.input-currency-icon {
  font-size: 18px;
}

.waifu-bet-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  padding: 8px 0;
}

.waifu-bet-input::placeholder {
  color: #475569;
  font-weight: 500;
  font-size: 14px;
}

.waifu-clear-bet-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.waifu-clear-bet-btn:hover {
  color: #f1f5f9;
}

.waifu-est-win-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.est-win-label {
  font-size: 12px;
  color: #94a3b8;
}

.est-win-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffd700;
}

.btn-waifu-bet-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff3b88 0%, #ec4899 50%, #d946ef 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 59, 136, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-waifu-bet-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 59, 136, 0.6);
  filter: brightness(1.1);
}

.btn-waifu-bet-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-waifu-bet-submit:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* History Section */
.waifu-history-header {
  margin-bottom: 4px;
}

.waifu-history-header h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.history-sub {
  font-size: 11px;
  color: #94a3b8;
}

.waifu-history-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waifu-history-card {
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.waifu-history-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.history-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-winner-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1.5px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.history-winner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-crown-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 12px;
}

.history-info-col {
  flex: 1;
  min-width: 0;
}

.history-winner-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-winner-title h5 {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-anime-name {
  font-size: 11px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.history-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: #cbd5e1;
}

.history-mult-badge {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
}

.history-user-outcome-pill {
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.history-user-outcome-pill.won {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.history-user-outcome-pill.lost {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.waifu-active-empty,
.waifu-history-empty {
  text-align: center;
  padding: 30px 20px;
  background: rgba(18, 22, 34, 0.6);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.waifu-active-empty h4,
.waifu-history-empty h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 17px;
  color: #ffffff;
  margin: 10px 0 6px;
}

.waifu-active-empty p,
.waifu-history-empty p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* ==========================================================================
   CLANS SUBSCREEN & CYBERPUNK CLAN SYSTEM
   ========================================================================== */

.clans-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
}

.clans-subscreen-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 14px 40px;
}

.clans-state-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero card for Hub */
.clans-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95), rgba(12, 15, 25, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: 20px 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.05);
}

.clans-hero-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.clans-hero-badge {
  display: inline-block;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.clans-hero-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.clans-hero-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 16px;
}

.clans-hero-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.clans-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.clans-stat-pill .pill-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clans-stat-pill .pill-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

.clans-stat-pill .pill-val.req {
  color: #f59e0b;
}

.btn-clan-action-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  color: #0f172a;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-clan-action-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-clan-action-hero:active {
  transform: scale(0.98);
}

/* Leaderboard section */
.clans-leaderboard-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clans-section-header h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px;
}

.clans-section-sub {
  font-size: 11px;
  color: #64748b;
}

.clans-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.clans-search-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
}

.clans-search-input {
  width: 100%;
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 11px 40px 11px 38px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.clans-search-input:focus {
  border-color: #f59e0b;
}

.clans-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

/* Podium Grid */
.clans-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: flex-end;
  gap: 8px;
  margin: 10px 0 6px;
}

.clan-podium-card {
  background: rgba(18, 22, 34, 0.85);
  border-radius: 14px;
  padding: 14px 8px 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.clan-podium-card:active {
  transform: scale(0.97);
}

.clan-podium-card.first {
  order: 2;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.12), rgba(18, 22, 34, 0.95));
  padding-top: 20px;
  padding-bottom: 16px;
}

.clan-podium-card.second {
  order: 1;
  border: 1px solid rgba(203, 213, 225, 0.35);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.08), rgba(18, 22, 34, 0.95));
}

.clan-podium-card.third {
  order: 3;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08), rgba(18, 22, 34, 0.95));
}

.podium-rank-medal {
  font-size: 24px;
  margin-bottom: 4px;
}

.clan-podium-card.first .podium-rank-medal {
  font-size: 28px;
}

.podium-clan-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  max-width: 95px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.podium-clan-pts {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
}

.podium-clan-members {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

/* Clans List Grid */
.clans-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clan-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 22, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s;
}

.clan-item-card:hover {
  background: rgba(24, 29, 45, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.clan-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.clan-item-rank {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  min-width: 24px;
  text-align: center;
}

.clan-item-rank.top-rank {
  color: #f59e0b;
}

.clan-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.clan-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clan-item-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clan-item-sub-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
}

.clan-item-sub-info span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.clan-item-pts {
  color: #f59e0b;
  font-weight: 600;
}

.clan-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-clan-join {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clan-join:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
  cursor: not-allowed;
}

.btn-clan-info {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 10px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
}

.clans-empty-state {
  text-align: center;
  padding: 30px 20px;
  background: rgba(18, 22, 34, 0.6);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.clans-empty-state .empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.clans-empty-state h5 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 4px;
}

.clans-empty-state p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   MY CLAN DASHBOARD STYLES
   ========================================================================== */

.my-clan-hero-card {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95), rgba(12, 15, 25, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-clan-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.my-clan-badge-icon {
  font-size: 36px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-clan-main-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.my-clan-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-clan-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.my-clan-role-tag {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.my-clan-role-tag.leader {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.my-clan-rank-badge {
  font-size: 12px;
  color: #94a3b8;
}

.my-clan-rank-badge strong {
  color: #f59e0b;
}

.my-clan-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.my-clan-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.my-clan-stat-card .stat-label {
  font-size: 10px;
  color: #64748b;
}

.my-clan-stat-card .stat-value {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-clan-stat-card .stat-value.gold {
  color: #f59e0b;
}

/* Sub-tabs */
.my-clan-tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(18, 22, 34, 0.7);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.my-clan-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 8px;
  color: #94a3b8;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.my-clan-tab-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.my-clan-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-clan-pane-header h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}

.my-clan-pane-header .pane-sub {
  font-size: 11px;
  color: #64748b;
}

/* Members Grid */
.my-clan-members-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clan-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
}

.clan-member-card.is-leader {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), rgba(18, 22, 34, 0.9));
}

.member-left-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.member-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: #0f172a;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role-badge {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.member-role-badge.leader {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.member-role-badge.member {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.member-sub-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #64748b;
}

.member-sub-stats .pts {
  color: #f59e0b;
  font-weight: 600;
}

.member-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-member-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-member-action.kick {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.btn-member-action.transfer {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
}

.my-clan-leave-bar {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn-clan-leave {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 10px 20px;
  color: #f87171;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Management Panel */
.clan-manage-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clan-setting-card {
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clan-setting-card.danger-zone {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(18, 22, 34, 0.95));
}

.setting-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-icon {
  font-size: 22px;
}

.setting-title-box h5 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}

.setting-title-box span {
  font-size: 11px;
  color: #94a3b8;
}

.setting-title-box strong {
  color: #f59e0b;
}

.setting-input-row {
  display: flex;
  gap: 8px;
}

.clan-setting-input,
.clan-setting-select {
  flex: 1;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.clan-setting-input:focus,
.clan-setting-select:focus {
  border-color: #f59e0b;
}

.btn-setting-submit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  color: #0f172a;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-setting-submit.warning {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

.btn-setting-danger {
  width: 100%;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.setting-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.danger-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Clan Modals */
.clan-modal-card {
  width: 90%;
  max-width: 440px;
  background: #111524;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.clan-detail-modal-card {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.detail-header-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-header-badge {
  font-size: 11px;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clan-modal-sub {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 14px;
  line-height: 1.45;
}

.clan-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.clan-input-group label {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

.clan-modal-input {
  width: 100%;
  background: rgba(18, 22, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.clan-modal-input:focus {
  border-color: #f59e0b;
}

.clan-input-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
}

.clan-create-requirements {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.req-item strong {
  color: #f59e0b;
}

.clan-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-clan-modal-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px;
  color: #cbd5e1;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-clan-modal-confirm {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 12px;
  padding: 11px;
  color: #0f172a;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-clan-modal-confirm.danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
}

.btn-clan-modal-confirm.warning {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0f172a;
}

/* Detail Modal Specifics */
.clan-detail-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.detail-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-stat-box .d-label {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
}

.detail-stat-box .d-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-stat-box .d-val.gold {
  color: #f59e0b;
}

.clan-detail-roster-header h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.clan-detail-roster-scroll {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

/* Prompt Card for Confirmations */
.prompt-card {
  text-align: center;
  align-items: center;
}

.prompt-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 4px;
}

.prompt-icon-bubble.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.prompt-icon-bubble.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}

.prompt-card h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.prompt-card p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   RESTORATION MODULE (SAO / AINCRAD)
   ========================================================================== */

.restoration-nav-medals {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.restoration-nav-medals:active {
  transform: scale(0.96);
  background: rgba(234, 179, 8, 0.22);
}

.restoration-nav-icon {
  font-size: 15px;
}

#restoration-nav-medals-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: #fef08a;
  letter-spacing: 0.5px;
}

.restoration-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero Artwork Card */
.restoration-hero-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
  background: #0f172a;
}

.restoration-hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  cursor: pointer;
  overflow: hidden;
}

.restoration-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.restoration-hero-img-wrap:hover .restoration-hero-img {
  transform: scale(1.03);
}

.restoration-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(11, 15, 25, 0.95) 100%);
  pointer-events: none;
}

.restoration-hero-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.restoration-badge-level {
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #38bdf8;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.restoration-badge-status {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.restoration-badge-status.in-progress {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.restoration-badge-status.completed {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.restoration-hero-info {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 50px;
  pointer-events: none;
}

.restoration-stage-title {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.restoration-stage-desc {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.restoration-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.restoration-zoom-hint:hover {
  transform: scale(1.1);
  background: rgba(56, 189, 248, 0.3);
}

/* Progress Card */
.restoration-progress-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.restoration-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.restoration-progress-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.restoration-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.restoration-percent-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.restoration-progress-amounts {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
}

.restoration-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.restoration-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #67e8f9 100%);
  border-radius: 8px;
  position: relative;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.restoration-bar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: barShimmer 2.5s infinite linear;
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.restoration-progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.restoration-remaining-text {
  color: #94a3b8;
  font-weight: 500;
}

.restoration-system-hint {
  color: #38bdf8;
  opacity: 0.85;
}

/* Reward Box */
.restoration-reward-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.restoration-reward-box.eligible {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

.reward-box-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.reward-box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reward-box-title {
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reward-highlight {
  color: #facc15;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
}

.reward-box-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.reward-box-my-contrib {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.reward-box-my-contrib strong {
  color: #f1f5f9;
}

.reward-status-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  text-align: center;
}

.reward-status-pill.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.reward-status-pill.eligible {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Donate Action Card */
.restoration-donate-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.donate-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donate-header-icon {
  font-size: 22px;
}

.donate-header-title h4 {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.donate-header-title span {
  font-size: 11px;
  color: #94a3b8;
}

.restoration-quick-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.quick-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.quick-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.quick-chip:active {
  transform: scale(0.95);
}

.quick-chip.max-chip {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.restoration-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.restoration-input-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.input-currency-icon {
  font-size: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.restoration-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  padding: 10px 0;
  -moz-appearance: textfield;
}

.restoration-input::-webkit-outer-spin-button,
.restoration-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.input-clear-btn:hover {
  color: #e2e8f0;
}

.btn-restoration-donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.btn-restoration-donate:hover:not(:disabled) {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

.btn-restoration-donate:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-restoration-donate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(40%);
}

/* Completed Card */
.restoration-completed-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(202, 138, 4, 0.05) 100%);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.2);
}

.completed-crown {
  font-size: 38px;
  margin-bottom: 6px;
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.restoration-completed-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fef08a;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.restoration-completed-card p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Sub-tabs */
.restoration-sub-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.res-sub-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.res-sub-tab.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.res-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* My Rank Card */
.res-my-rank-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-rank-left, .my-rank-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.my-rank-right {
  text-align: right;
}

.my-rank-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.res-my-rank-card strong {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
}

#res-my-rank-num {
  color: #38bdf8;
}

/* Podium */
.res-podium-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 6px;
}

.podium-slot {
  flex: 1;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-user-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}

.podium-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.podium-avatar-wrap.rank-1 {
  width: 52px;
  height: 52px;
}

.podium-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.podium-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}



.podium-name {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-amount {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #facc15;
}

.podium-pillar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.podium-pillar.rank-1 {
  height: 105px;
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.3) 0%, rgba(202, 138, 4, 0.15) 100%);
  border: 1px solid rgba(234, 179, 8, 0.5);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.25);
}

.podium-pillar.rank-2 {
  height: 80px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.25) 0%, rgba(148, 163, 184, 0.1) 100%);
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.podium-pillar.rank-3 {
  height: 65px;
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.25) 0%, rgba(146, 64, 14, 0.1) 100%);
  border: 1px solid rgba(180, 83, 9, 0.4);
}

.podium-rank-num {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 22px;
  font-weight: 800;
}

.podium-pillar.rank-1 .podium-rank-num { color: #facc15; }
.podium-pillar.rank-2 .podium-rank-num { color: #e2e8f0; }
.podium-pillar.rank-3 .podium-rank-num { color: #f97316; }

/* Ranking List */
.res-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.res-rank-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.res-rank-item.is-me {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.res-rank-num {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  min-width: 22px;
  text-align: center;
}

.res-rank-item.is-me .res-rank-num {
  color: #38bdf8;
}

.res-rank-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.res-rank-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

.res-rank-info {
  flex: 1;
  min-width: 0;
}

.res-rank-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-rank-item.is-me .res-rank-name {
  color: #38bdf8;
}

.res-rank-amount {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #facc15;
  flex-shrink: 0;
}

/* Stages List */
.res-stages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-stage-card {
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.2s ease;
}

.res-stage-card.active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.1);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.res-stage-card.completed {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.res-stage-card.locked {
  opacity: 0.65;
  filter: grayscale(30%);
}

.res-stage-thumb-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.res-stage-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.res-stage-thumb-wrap:hover .res-stage-thumb {
  transform: scale(1.1);
}

.res-stage-thumb-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.res-stage-thumb-wrap:hover .res-stage-thumb-zoom {
  opacity: 1;
}

.res-stage-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.res-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-stage-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-stage-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.res-stage-status-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.res-stage-status-badge.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.res-stage-status-badge.locked {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.res-stage-loc {
  font-size: 11px;
  color: #94a3b8;
}

.res-stage-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.res-stage-meta strong {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-weight: 700;
}

/* Titles Tab */
.res-titles-intro {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  padding: 0 4px;
}

.res-titles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res-title-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.res-title-card.unlocked {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
}

.res-title-card.rarity-legendary {
  border-color: rgba(234, 179, 8, 0.35);
}

.res-title-card.rarity-epic {
  border-color: rgba(168, 85, 247, 0.35);
}

.res-title-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-title-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.res-title-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.res-title-tag.unlocked {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.res-title-tag.locked {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.res-title-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.res-title-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.res-title-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.res-title-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.res-title-card.unlocked .res-title-bar-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.res-title-count {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

/* Restoration Art Modal & Clan Modals - Centered Full Viewport Overlay with Highest Z-Index */
#modal-restoration-art,
#modal-clan-create,
#modal-clan-detail,
#modal-clan-kick,
#modal-clan-transfer,
#modal-clan-leave,
#modal-clan-delete {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top, 16px)) 16px max(16px, env(safe-area-inset-bottom, 16px)) !important;
  background: rgba(3, 6, 18, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

#modal-restoration-art.hidden,
#modal-clan-create.hidden,
#modal-clan-detail.hidden,
#modal-clan-kick.hidden,
#modal-clan-transfer.hidden,
#modal-clan-leave.hidden,
#modal-clan-delete.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.modal-open {
  overflow: hidden !important;
}

.restoration-art-modal-card {
  position: relative !important;
  z-index: 1000000 !important;
  width: 90vw;
  max-width: 480px;
  max-height: 85vh;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.restoration-art-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.art-modal-title-box h4 {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.art-modal-title-box span {
  font-size: 12px;
  color: #38bdf8;
}

.art-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.art-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.art-modal-img-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070a11;
}

.art-modal-full-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   TOWER OF TRIALS (БАШНЯ ИСПЫТАНИЙ) CYBERPUNK STYLES
   ========================================================================== */

/* Fullscreen Battle Mode Overrides */
body.tower-battle-active header.profile-header,
body.tower-battle-active nav.bottom-nav {
  display: none !important;
}

body.tower-battle-active .app-container {
  padding-bottom: 0 !important;
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   Tower Hub View
   -------------------------------------------------------------------------- */
.tower-hub-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 12px calc(24px + env(safe-area-inset-bottom, 24px));
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

.tower-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.btn-tower-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-tower-back:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.15);
}

.tower-title-center {
  text-align: center;
}

.tower-title-sub {
  font-size: 8.5px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.tower-title-main {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.tower-header-actions {
  display: flex;
  gap: 6px;
}

.btn-tower-action-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tower-action-icon:active {
  transform: scale(0.95);
  background: rgba(0, 240, 255, 0.2);
}

/* Floor Art Card */
.tower-floor-card {
  background: rgba(18, 22, 38, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.tower-art-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #090d16;
  overflow: hidden;
}

.tower-floor-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s ease;
}

.tower-art-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(18, 22, 38, 0.9) 100%);
  pointer-events: none;
}

.tower-badge-floor {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #00f0ff;
  border-radius: 6px;
  color: #00f0ff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.tower-badge-kind {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(244, 63, 94, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}

.tower-floor-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tower-zone-row {
  display: flex;
  align-items: center;
}

.tower-zone-name {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tower-enemy-name {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.tower-zone-desc {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Floor Stats Comparison Grid */
.tower-stats-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.tower-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tower-stat-box .ts-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.tower-stat-box .ts-value {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 800;
}

.tower-stat-box .enemy-hp { color: #f87171; }
.tower-stat-box .enemy-atk { color: #fb923c; }
.tower-stat-box .rec-atk { color: #38bdf8; }
.tower-stat-box .rec-hp { color: #4ade80; }

/* Tactical Affinities */
.tower-tactics-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px 10px;
  border-left: 3px solid #00f0ff;
}

.tower-tactic-row {
  font-size: 11.5px;
  line-height: 1.35;
  display: flex;
  gap: 6px;
}

.tactic-tag {
  font-weight: 800;
  flex-shrink: 0;
}

.tactic-tag.weakness { color: #38bdf8; }
.tactic-tag.resistance { color: #f43f5e; }
.tactic-tag.tip { color: #fbbf24; }

.tactic-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Floor Rewards */
.tower-rewards-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rewards-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.rewards-chips {
  display: flex;
  gap: 8px;
}

.reward-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reward-chip strong {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  color: #fbbf24;
}

/* Squad Compatibility Card */
.tower-squad-card {
  background: rgba(18, 22, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tower-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tch-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tch-title > span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.squad-compat-badge {
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
}

.tower-compat-meter-wrap {
  width: 100%;
}

.tower-compat-meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.tower-compat-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #00f0ff 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.tower-squad-preview-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.tower-hero-slot-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tower-hero-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tower-hero-role-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  padding: 1px 0;
  text-transform: uppercase;
}

/* Weekly Tribute Card */
.tower-tribute-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.tribute-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tribute-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tribute-icon {
  font-size: 24px;
}

.tribute-title-wrap h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #e9d5ff;
}

.tribute-sub {
  margin: 0;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.btn-claim-tribute {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: 1px solid #c084fc;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  transition: all 0.2s ease;
}

.btn-claim-tribute:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-claim-tribute:not(:disabled):active {
  transform: scale(0.96);
}

.tribute-rewards-preview {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
}

.tribute-chip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.tribute-chip strong {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  color: #fbbf24;
}

.tribute-status-notice {
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
  padding: 4px 6px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Primary Launch Button */
.tower-launch-dock {
  margin-top: 4px;
}

.btn-tower-primary {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 50%, #7928ca 100%);
  border: 1px solid rgba(0, 240, 255, 0.8);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
  transition: all 0.25s ease;
}

.btn-tower-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.btn-launch-glow {
  font-size: 18px;
  filter: drop-shadow(0 0 6px #ffffff);
}

/* --------------------------------------------------------------------------
   Tower Battle View
   -------------------------------------------------------------------------- */
.tower-battle-container {
  min-height: 100vh;
  padding: 6px 8px calc(14px + env(safe-area-inset-bottom, 14px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at 50% 10%, rgba(30, 20, 50, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

.tower-battle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.tower-battle-turn-indicator {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tower-battle-floor-pill {
  font-size: 8px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tower-battle-round-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.tower-header-phase-badge {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 10px;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.25);
  border: 1px solid rgba(244, 63, 94, 0.5);
  border-radius: 4px;
  color: #fda4af;
  padding: 2px 6px;
}

/* Boss HUD Card */
.tower-boss-hud-card {
  background: rgba(18, 22, 36, 0.95);
  border: 1.5px solid rgba(244, 63, 94, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.tb-boss-art-wrap {
  position: relative;
  width: 100%;
  height: 125px;
  background: #090d16;
  overflow: hidden;
}

.tb-boss-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.tb-boss-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(18, 22, 36, 0.95) 100%);
  pointer-events: none;
}

.tb-boss-tag {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  backdrop-filter: blur(4px);
}

.tb-boss-stun-tag {
  position: absolute;
  top: 6px;
  right: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid #fca5a5;
  border-radius: 4px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  animation: pulse 1s infinite alternate;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.tb-boss-meta-pane {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tb-boss-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-boss-name {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
}

.tb-boss-hp-numbers {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #f87171;
}

/* HP & Break Bars */
.tb-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.tb-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.35s ease;
}

.tb-bar-container.boss-hp .tb-bar-fill {
  background: linear-gradient(90deg, #ef4444 0%, #f43f5e 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Break Gauge */
.tb-break-gauge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.tb-break-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-break-label {
  font-size: 9px;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 0.5px;
}

.tb-break-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  color: #00f0ff;
}

.tb-bar-container.break-bar {
  height: 6px;
}

.tb-bar-fill.break-fill {
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 50%, #fbbf24 100%);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Intent Banner */
.tb-intent-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 2px;
}

.tb-intent-banner.danger {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: pulse 1.2s infinite alternate;
}

.tb-intent-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.tb-intent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tb-intent-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tb-intent-prefix {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.tb-intent-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
}

.tb-intent-desc {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

.tb-intent-hint-tag {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 5px;
  color: #38bdf8;
  white-space: nowrap;
}

/* Squad HUD Status Strip */
.tb-squad-hud-strip {
  background: rgba(18, 22, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tb-squad-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-squad-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.tb-squad-hp-text {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
}

.tb-bar-container.squad-hp .tb-bar-fill {
  background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.tb-buffs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 18px;
}

.tb-buff-chip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.tb-buff-chip.atk { color: #f87171; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); }
.tb-buff-chip.vuln { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); }
.tb-buff-chip.cd { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }

/* Combat Log Card */
.tb-combat-log-card {
  background: rgba(15, 20, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.tb-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.tb-log-title {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.tb-log-badge {
  font-size: 9px;
  color: #38bdf8;
  font-weight: 700;
}

.tb-log-body {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tb-log-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  text-align: center;
  padding: 6px 0;
}

.tb-log-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tb-log-line .highlight-dmg { color: #f87171; font-weight: 800; }
.tb-log-line .highlight-heal { color: #4ade80; font-weight: 800; }
.tb-log-line .highlight-break { color: #00f0ff; font-weight: 800; }
.tb-log-line .highlight-boss { color: #fbbf24; font-weight: 800; }

/* Bottom Action Dock (4 actions) */
.tb-bottom-dock {
  margin-top: auto;
  padding-top: 4px;
}

.tb-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-tb-action {
  background: rgba(18, 22, 38, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-tb-action:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-tb-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.action-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-icon {
  font-size: 16px;
}

.action-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.action-desc {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

.action-cd-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid #ef4444;
  color: #fca5a5;
  border-radius: 4px;
  padding: 1px 4px;
}

/* Action Themes */
.action-attack {
  border-color: rgba(244, 63, 94, 0.5);
}
.action-attack .action-name { color: #fb7185; }
.action-attack:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.15);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.action-defend {
  border-color: rgba(56, 189, 248, 0.5);
}
.action-defend .action-name { color: #38bdf8; }
.action-defend:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.action-break {
  border-color: rgba(251, 191, 36, 0.5);
}
.action-break .action-name { color: #fbbf24; }
.action-break:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.action-support {
  border-color: rgba(16, 185, 129, 0.5);
}
.action-support .action-name { color: #34d399; }
.action-support:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* --------------------------------------------------------------------------
   Tower Modals
   -------------------------------------------------------------------------- */
#modal-tower-victory,
#modal-tower-defeat,
#modal-tower-abandon,
#modal-tower-stats,
#modal-tower-rules {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tower-result-card {
  width: 90%;
  max-width: 360px;
  background: rgba(18, 22, 38, 0.98);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.tower-result-card.victory {
  border: 1.5px solid rgba(16, 185, 129, 0.6);
}

.tower-result-card.defeat {
  border: 1.5px solid rgba(239, 68, 68, 0.6);
}

.tr-banner {
  padding: 16px 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tr-banner.victory {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.3) 0%, rgba(18, 22, 38, 0) 100%);
}

.tr-banner.defeat {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.3) 0%, rgba(18, 22, 38, 0) 100%);
}

.tr-glow-crown {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

.tr-title {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

.tr-banner.victory .tr-title { color: #4ade80; text-shadow: 0 0 15px rgba(74, 222, 128, 0.6); }
.tr-banner.defeat .tr-title { color: #f87171; text-shadow: 0 0 15px rgba(248, 113, 113, 0.6); }

.tr-floor-tag {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.tr-body {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-mvp-card {
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-mvp-badge {
  font-size: 9px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.tr-mvp-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  color: #ffffff;
}

.tr-mvp-stats {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.tr-title-unlocked {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid #c084fc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #e9d5ff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-title-unlocked strong {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14px;
  color: #ffffff;
}

.tr-rewards-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-rewards-box h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.tr-rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tr-rew-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tr-rew-icon {
  font-size: 18px;
}

.tr-rew-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
}

.tr-defeat-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.tr-defeat-info p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.tr-defeat-info strong {
  color: #f87171;
}

.tr-tactical-hint-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}

.tr-tactical-hint-box .hint-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.tr-tactical-hint-box p {
  font-size: 11px;
  color: #fde68a;
  line-height: 1.35;
}

.tr-footer {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
}

.btn-tr-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tr-primary {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-tr-primary.restart {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.btn-tr-primary:active, .btn-tr-secondary:active {
  transform: scale(0.97);
}

/* Info Modals (Stats & Rules) */
.tower-info-modal-card {
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  background: rgba(18, 22, 38, 0.98);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.tower-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tih-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tih-icon {
  font-size: 18px;
}

.tih-title h4 {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.tower-info-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tower-info-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tower-stats-overview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.tso-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tso-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.tso-val {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #00f0ff;
}

.tower-char-stats-section h5 {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.tower-char-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.tower-char-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
}

.tcs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.tcs-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tcs-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.tcs-metrics {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.tower-rules-content .rule-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tower-rules-content h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
}

.tower-rules-content p {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.tower-rules-content ul {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* ========================================================================== */
/* SETTINGS MODAL & SYSTEM CONTROLS                                          */
/* ========================================================================== */
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.settings-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.settings-modal-sheet {
  background: linear-gradient(180deg, #0e172e 0%, #080d1e 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
  animation: slideUpSettingsModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideUpSettingsModal {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-sys-tag {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--neon-cyan, #00f0ff);
  text-transform: uppercase;
}

.settings-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-title-icon {
  font-size: 18px;
}

.settings-title-row h3 {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.settings-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-modal-close:hover,
.settings-modal-close:active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.05);
}

/* Nav Tabs: 2-Row Layout */
.settings-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(6, 11, 24, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-nav-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.settings-nav-row .settings-tab-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: var(--text-secondary, #94a3b8);
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

#stab-btn-notifications {
  flex: 1.05;
}

#stab-btn-privacy {
  flex: 1.35;
}

#stab-btn-account {
  flex: 0.85;
}

.settings-tab-btn .stab-icon {
  font-size: 13.5px;
  line-height: 1;
}

.settings-tab-btn .stab-text {
  white-space: nowrap;
}

.settings-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.settings-nav-row.secondary .settings-tab-btn.featured-tab {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}

.settings-tab-btn.featured-tab .stab-featured-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stab-badge-new {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #030712;
  background: linear-gradient(135deg, #00f0ff, #38bdf8);
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.settings-tab-btn.featured-tab.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

/* Modal Body */
.settings-modal-body {
  padding: 14px 16px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-pane.hidden {
  display: none;
}

.settings-hero-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.shb-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.shb-text h4 {
  margin: 0 0 2px 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.shb-text p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Settings Item Card */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(13, 21, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.settings-item-card:hover {
  background: rgba(16, 27, 56, 0.8);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sic-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.sic-icon-wrap.cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.sic-icon-wrap.purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.sic-icon-wrap.gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.sic-icon-wrap.green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.sic-icon-wrap.blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.sic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sic-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.sic-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

/* Cyberpunk Toggle Switch */
.cyber-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cyber-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cyber-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cyber-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #94a3b8;
  border-radius: 50%;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cyber-switch input:checked + .cyber-slider {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--neon-cyan, #00f0ff);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.cyber-switch input:checked + .cyber-slider:before {
  transform: translateX(20px);
  background: var(--neon-cyan, #00f0ff);
  box-shadow: 0 0 8px var(--neon-cyan, #00f0ff);
}

/* Stub Card */
.settings-stub-card {
  text-align: center;
  padding: 30px 18px 24px;
  background: rgba(13, 21, 44, 0.6);
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stub-hologram-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.stub-hologram-icon {
  font-size: 34px;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}

.stub-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
  animation: pulseGlowRing 2s infinite ease-in-out;
}

@keyframes pulseGlowRing {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.stub-badge {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.settings-stub-card h4 {
  margin: 0;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.settings-stub-card p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 320px;
}

.stub-features-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 300px;
  margin: 6px 0;
}

.sfp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #cbd5e1;
  text-align: left;
}

.sfp-icon {
  font-size: 13px;
}

.btn-stub-action {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  color: #ffffff;
  padding: 8px 18px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-stub-action:hover,
.btn-stub-action:active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(168, 85, 247, 0.35));
  border-color: var(--neon-cyan, #00f0ff);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   THEME SYSTEM: SELECTOR CARDS & VISUAL SWITCHING
   ========================================================================== */
.themes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-select-card {
  background: rgba(13, 21, 44, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.theme-select-card:hover {
  background: rgba(18, 28, 58, 0.85);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.theme-select-card.active {
  border-color: var(--neon-cyan, #00f0ff);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 14px rgba(0, 240, 255, 0.05);
}

.tsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tsc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsc-icon {
  font-size: 18px;
}

.tsc-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.tsc-tag {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
}

.tsc-tag.cyber {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.tsc-tag.dark {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tsc-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s ease;
}

.theme-select-card.active .tsc-check-indicator {
  background: var(--neon-cyan, #00f0ff);
  border-color: var(--neon-cyan, #00f0ff);
  color: #030712;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  font-weight: 800;
}

.tsc-palette-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tsc-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.tsc-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.tsc-status-row {
  display: flex;
  justify-content: flex-end;
}

.tsc-status-pill {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transition: all 0.2s ease;
}

.theme-select-card.active .tsc-status-pill {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan, #00f0ff);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   PREMIUM DARK AMOLED THEME OVERRIDES (OBSIDIAN / TRUE BLACK)
   ========================================================================== */
[data-theme="dark"] {
  --bg-dark: #000000;
  --bg-surface: rgba(18, 18, 23, 0.88);
  --bg-surface-hover: rgba(28, 28, 36, 0.95);
  --border-neon-blue: rgba(255, 255, 255, 0.12);
  --border-neon-purple: rgba(160, 160, 175, 0.2);
  --neon-cyan: #ffffff;
  --neon-blue: #38bdf8;
  --neon-purple: #c084fc;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-dim: #71717a;
  --glow-cyan: 0 0 16px rgba(255, 255, 255, 0.15);
  --glow-purple: 0 0 16px rgba(192, 132, 252, 0.2);
}

[data-theme="dark"] body,
body[data-theme="dark"] {
  background-color: #000000 !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(35, 35, 45, 0.4) 0%, transparent 65%),
    radial-gradient(circle at 100% 50%, rgba(22, 22, 30, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(18, 18, 24, 0.3) 0%, transparent 50%) !important;
  color: #ffffff;
}

[data-theme="dark"] .app-container {
  background: rgba(0, 0, 0, 0.96) !important;
}

[data-theme="dark"] .profile-header {
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.95) 0%, rgba(10, 10, 13, 0.7) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(10, 10, 13, 0.96) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .currency-card {
  background: rgba(20, 20, 26, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .banner-card-frame {
  background: rgba(16, 16, 21, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .btn-1x {
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.9) 0%, rgba(14, 14, 18, 0.95) 100%) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .btn-10x {
  background: linear-gradient(180deg, rgba(32, 28, 22, 0.92) 0%, rgba(16, 15, 14, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.16), inset 0 0 12px rgba(245, 158, 11, 0.06) !important;
}

[data-theme="dark"] .btn-10x .btn-sparkle-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%) !important;
}

[data-theme="dark"] .btn-10x .btn-cost-badge.gold {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .btn-10x .dice-badge {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .btn-10x .btn-multiplier.gold {
  color: #fde047 !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

[data-theme="dark"] .settings-modal-sheet {
  background: linear-gradient(180deg, #131318 0%, #09090c 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.9) !important;
}

[data-theme="dark"] .settings-nav-tabs {
  background: rgba(10, 10, 14, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .settings-item-card {
  background: rgba(20, 20, 26, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .settings-hero-banner {
  background: linear-gradient(135deg, rgba(32, 32, 42, 0.7) 0%, rgba(18, 18, 24, 0.85) 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .settings-stub-card {
  background: rgba(18, 18, 24, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .theme-select-card {
  background: rgba(18, 18, 24, 0.75);
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .theme-select-card.active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12), inset 0 0 14px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .theme-select-card.active .tsc-check-indicator {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .theme-select-card.active .tsc-status-pill {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   PLAYER PROFILE DOSSIER & WAIFU SHOWCASE MODALS
   ========================================================================== */

@keyframes profileModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#player-profile-modal,
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 0.25s ease;
}

#showcase-selector-modal,
.showcase-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 0.25s ease;
}

#player-profile-modal.hidden,
.profile-modal-overlay.hidden,
#showcase-selector-modal.hidden,
.showcase-modal-overlay.hidden {
  display: none !important;
}

.profile-modal-sheet,
.showcase-modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: linear-gradient(180deg, #131728 0%, #0a0d18 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: profileModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

.profile-modal-header,
.showcase-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 23, 40, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.profile-sys-tag,
.showcase-sys-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-family: 'Orbitron', monospace;
  color: #00f0ff;
  text-transform: uppercase;
  opacity: 0.85;
}

.profile-title-row,
.showcase-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.profile-title-icon,
.showcase-title-icon {
  font-size: 18px;
  line-height: 1;
}

#profile-modal-heading,
.showcase-title-row h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.3px;
}

.profile-modal-close,
.showcase-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.profile-modal-close:hover,
.showcase-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}

.profile-modal-close:active,
.showcase-modal-close:active {
  transform: scale(0.94);
}

.profile-modal-body {
  padding: 16px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(88vh - 65px);
}

.profile-hero-card,
.profile-section-card,
.profile-external-actions {
  flex-shrink: 0;
}

/* Hero Card (Визитка игрока) */
.profile-hero-card {
  background: linear-gradient(135deg, rgba(22, 28, 50, 0.9) 0%, rgba(13, 17, 32, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 16px;
  padding: 14px 16px 16px 16px;
  position: relative;
  overflow: visible;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.04);
}

.profile-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.profile-avatar-wrap {
  width: 72px;
  height: 72px;
  min-width: 72px;
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00f0ff, #ff007f);
  box-sizing: border-box;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #000000;
}

.profile-avatar-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.profile-rank-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff007f, #7928ca);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.profile-identity-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name-row {
  display: flex;
  align-items: center;
}

.profile-display-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.profile-uid-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s ease;
  user-select: none;
}

.profile-uid-pill:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

.profile-uid-pill:active {
  transform: scale(0.96);
}

.profile-title-pill-wrap {
  margin-top: 1px;
}

.profile-title-neon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.profile-meta-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.profile-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.profile-clan-chip {
  background: rgba(255, 0, 127, 0.12);
  border: 1px solid rgba(255, 0, 127, 0.3);
  color: #ff3399;
}

.profile-clan-chip.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-clan-chip.clickable:hover {
  background: rgba(255, 0, 127, 0.22);
  border-color: rgba(255, 0, 127, 0.5);
  transform: translateY(-1px);
}

.profile-level-chip {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
}

/* Sections (Bio, Showcase, Hall of Fame) */
.profile-section-card {
  background: rgba(20, 26, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.profile-sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b8c1ec;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-counter-badge {
  font-size: 11px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.profile-edit-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.profile-edit-btn:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.profile-edit-btn:active {
  transform: scale(0.96);
}

/* Bio Status */
.profile-bio-text {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0;
  font-style: italic;
  word-break: break-word;
}

.profile-bio-input {
  width: 100%;
  background: rgba(10, 14, 25, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
}

.profile-bio-input:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.profile-bio-edit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.profile-bio-counter {
  font-size: 11px;
  color: #8892b0;
}

.profile-bio-actions {
  display: flex;
  gap: 6px;
}

.btn-bio-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bio-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-bio-save {
  background: linear-gradient(135deg, #00f0ff, #0070f3);
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-bio-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.45);
}

/* Waifu Showcase Grid (5 slots) */
.profile-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.showcase-slot {
  aspect-ratio: 3 / 4.4;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: rgba(12, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-slot.editable {
  cursor: pointer;
}

.showcase-slot.editable:hover {
  transform: translateY(-3px);
}

.showcase-slot.legendary {
  border: 1px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.showcase-slot.epic {
  border: 1px solid #bb86fc;
  box-shadow: 0 0 8px rgba(187, 134, 252, 0.3);
}

.showcase-slot.common {
  border: 1px solid #00f0ff;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.25);
}

.showcase-slot.empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(15, 20, 32, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.4);
}

.showcase-plus-icon {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.showcase-empty-text {
  font-size: 9px;
  text-transform: uppercase;
  margin-top: 2px;
}

.showcase-slot-img-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.showcase-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-lvl-tag {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}

.showcase-slot-name {
  font-size: 9px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  padding: 2px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(5, 7, 15, 0.88);
}

/* Hall of Fame / Battle Stats (Зал славы) */
.profile-hall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hall-stat-tile {
  background: rgba(12, 16, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hall-stat-tile:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.hall-icon {
  font-size: 20px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.tower-tile .hall-icon {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
}

.restoration-tile .hall-icon {
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
}

.collection-tile .hall-icon {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
}

.points-tile .hall-icon {
  background: rgba(255, 0, 127, 0.12);
  color: #ff007f;
}

.hall-info {
  flex: 1;
  min-width: 0;
}

.hall-label {
  font-size: 10px;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hall-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* External Telegram Action Button */
.profile-external-actions {
  margin-top: 4px;
}

.btn-profile-telegram {
  width: 100%;
  background: linear-gradient(135deg, #229ed9, #0088cc);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35);
  transition: all 0.2s ease;
}

.btn-profile-telegram:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.45);
}

.btn-profile-telegram:active {
  transform: scale(0.97);
}

/* Showcase Selector Modal */
.showcase-selected-counter {
  font-size: 11px;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 2px 7px;
  border-radius: 8px;
}

.showcase-modal-search {
  padding: 12px 18px 6px 18px;
}

.showcase-search-input {
  width: 100%;
  background: rgba(10, 14, 25, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 13px;
  box-sizing: border-box;
}

.showcase-search-input:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.showcase-modal-cards-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
}

.showcase-picker-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(18, 23, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-picker-card:hover {
  background: rgba(25, 32, 54, 0.85);
  transform: translateX(2px);
}

.showcase-picker-card.selected {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.picker-thumb-wrap {
  width: 44px;
  height: 58px;
  min-width: 44px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.picker-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.picker-lvl-tag {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}

.picker-check-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #00f0ff;
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 240, 255, 0.6);
}

.picker-info {
  flex: 1;
  min-width: 0;
}

.picker-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-anime {
  font-size: 11px;
  color: #8892b0;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 25, 0.7);
}

.btn-showcase-save {
  width: 100%;
  background: linear-gradient(135deg, #00f0ff, #0070f3);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-showcase-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.45);
}

.btn-showcase-save:active {
  transform: scale(0.97);
}

/* Bio Edit Modal */
#profile-bio-modal,
.bio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10035 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

#profile-bio-modal.hidden,
.bio-modal-overlay.hidden {
  display: none !important;
}

.bio-modal-sheet {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #161b2e 0%, #0d101d 100%);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: profileModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bio-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-title-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bio-title-icon {
  font-size: 18px;
}

.bio-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.bio-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}

.bio-modal-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bio-modal-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   DARK THEME (OBSIDIAN) OVERRIDES FOR PROFILE & SHOWCASE
   ========================================================================== */
[data-theme="dark"] .profile-modal-sheet,
[data-theme="dark"] .showcase-modal-sheet {
  background: #0d0d12 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .profile-modal-header,
[data-theme="dark"] .showcase-modal-header {
  background: rgba(16, 16, 22, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .profile-sys-tag,
[data-theme="dark"] .showcase-sys-tag {
  color: #ffffff !important;
  opacity: 0.7;
}

[data-theme="dark"] .profile-hero-card {
  background: linear-gradient(135deg, #14141a 0%, #0a0a0e 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .profile-avatar-wrap {
  background: linear-gradient(135deg, #ffffff, #888899) !important;
}

[data-theme="dark"] .profile-avatar-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%) !important;
}

[data-theme="dark"] .profile-uid-pill {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .profile-uid-pill:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .profile-section-card {
  background: rgba(18, 18, 24, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .profile-sec-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .profile-edit-btn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .profile-bio-input {
  background: #08080a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .profile-bio-input:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-bio-save {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .showcase-counter-badge,
[data-theme="dark"] .showcase-selected-counter {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .showcase-slot {
  background: rgba(12, 12, 16, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .showcase-slot.common {
  border-color: #ffffff !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .hall-stat-tile {
  background: rgba(14, 14, 18, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .hall-stat-tile:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .collection-tile .hall-icon {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .showcase-search-input {
  background: #08080a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .showcase-search-input:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .showcase-picker-card {
  background: rgba(18, 18, 24, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .showcase-picker-card.selected {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .picker-check-badge {
  background: #ffffff !important;
  color: #000000 !important;
}

[data-theme="dark"] .showcase-modal-footer {
  background: rgba(10, 10, 14, 0.8) !important;
}

[data-theme="dark"] .btn-showcase-save {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .bio-modal-sheet {
  background: #111116 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 15px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .bio-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================================================
   FIRST-TIME UNIVERSE SPOTLIGHT ONBOARDING HINT
   ========================================================================== */

@keyframes spotlightFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spotlightPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.9), inset 0 0 10px rgba(0, 240, 255, 0.35), 0 0 0 9999px rgba(3, 6, 18, 0.86);
    border-color: #00f0ff;
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 240, 255, 1), inset 0 0 16px rgba(0, 240, 255, 0.6), 0 0 0 9999px rgba(3, 6, 18, 0.86);
    border-color: #38bdf8;
  }
}

@keyframes spotlightBounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes spotlightBounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

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

.spotlight-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: auto;
  animation: spotlightFadeIn 0.25s ease-out forwards;
}

.spotlight-modal-overlay.hidden {
  display: none !important;
}

.spotlight-cutout-box {
  position: fixed;
  pointer-events: none;
  border: 2px solid #00f0ff;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.9), inset 0 0 10px rgba(0, 240, 255, 0.35), 0 0 0 9999px rgba(3, 6, 18, 0.86);
  animation: spotlightPulse 2s infinite ease-in-out;
  z-index: 100001;
  box-sizing: border-box;
}

.spotlight-tooltip-card {
  position: fixed;
  z-index: 100002;
  background: linear-gradient(135deg, rgba(16, 22, 42, 0.98) 0%, rgba(9, 13, 26, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 240, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: spotlightCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

.spotlight-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  margin-bottom: 4px;
}

.spotlight-arrow-wrap.up {
  animation: spotlightBounceUp 1.4s infinite ease-in-out;
}

.spotlight-arrow-wrap.down {
  animation: spotlightBounceDown 1.4s infinite ease-in-out;
}

.spotlight-arrow-svg {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

.spotlight-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.spotlight-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.spotlight-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.spotlight-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 4px 0 12px 0;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.btn-spotlight-ok {
  background: linear-gradient(135deg, #00f0ff, #0070f3);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 32px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-spotlight-ok:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

.btn-spotlight-ok:active {
  transform: scale(0.96);
}

/* Spotlight Dark Theme Overrides */
[data-theme="dark"] .detail-anime {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .detail-anime:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .detail-anime-chevron {
  color: #ffffff !important;
}

[data-theme="dark"] .spotlight-cutout-box {
  border-color: #ffffff !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.3), 0 0 0 9999px rgba(0, 0, 0, 0.9) !important;
}

[data-theme="dark"] .spotlight-tooltip-card {
  background: #111116 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .spotlight-arrow-wrap {
  color: #ffffff !important;
}

[data-theme="dark"] .spotlight-arrow-svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) !important;
}

[data-theme="dark"] .spotlight-tag {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-spotlight-ok {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.35) !important;
}

/* ==========================================================================
   GLOBAL IN-APP CHAT (CYBER MESSENGER & OBSIDIAN DARK THEME)
   ========================================================================== */

#global-chat-modal,
.chat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10010 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), backdrop-filter 0.28s ease;
}

.chat-modal-overlay:not(.hidden) {
  display: flex !important;
}

.chat-modal-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.chat-modal-overlay.closing {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.24s cubic-bezier(0.4, 0, 1, 1);
}

.chat-modal-sheet {
  width: 100%;
  max-width: 520px;
  height: 92vh;
  height: 92dvh;
  max-height: min(92dvh, 780px);
  background: linear-gradient(180deg, rgba(13, 22, 45, 0.98) 0%, rgba(8, 14, 30, 0.99) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.15);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.chat-modal-overlay.open .chat-modal-sheet {
  transform: translateY(0);
}

.chat-modal-overlay.closing .chat-modal-sheet {
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 1, 1);
}

/* Chat Header */
.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(10, 18, 38, 0.94);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-sys-tag {
  font-family: var(--font-heading, sans-serif);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--neon-cyan, #00f0ff);
  letter-spacing: 1px;
  opacity: 0.85;
}

.chat-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.chat-title-icon {
  font-size: 16px;
  line-height: 1;
}

.chat-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading, sans-serif);
  letter-spacing: 0.5px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan, #00f0ff);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-action-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.chat-action-btn:active {
  transform: scale(0.9);
}

/* Chat Messages Wrap & List */
.chat-messages-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.chat-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: min-content;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim, #64748b);
  letter-spacing: 0.5px;
}

.chat-date-divider span {
  background: rgba(15, 23, 42, 0.65);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Message Rows - Static by default, animation ONLY for entering messages */
.chat-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  position: relative;
}

.chat-msg-row.entering {
  animation: chatMsgEntrance 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes chatMsgEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-msg-row.other {
  justify-content: flex-start;
}

.chat-msg-row.self {
  justify-content: flex-end;
}

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chat-msg-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* Message Bubble */
.chat-msg-bubble {
  max-width: min(78vw, 360px);
  border-radius: 16px;
  padding: 8px 12px 6px;
  position: relative;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.chat-msg-row.other .chat-msg-bubble {
  background: rgba(18, 29, 60, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-bottom-left-radius: 4px;
  color: #f1f5f9;
}

.chat-msg-row.self .chat-msg-bubble {
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-bottom-right-radius: 4px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

/* Author Meta */
.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.chat-msg-sender-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--neon-cyan, #00f0ff);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.chat-msg-sender-name:hover {
  text-decoration: underline;
}

.chat-msg-clan-chip {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  letter-spacing: 0.3px;
}

.chat-msg-title-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

/* Reply Quote Box inside Message */
.chat-msg-reply-quote {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--neon-cyan, #00f0ff);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-msg-row.self .chat-msg-reply-quote {
  border-left-color: #38bdf8;
  background: rgba(0, 0, 0, 0.3);
}

.chat-msg-reply-quote:hover {
  background: rgba(0, 0, 0, 0.45);
}

.chat-msg-reply-sender {
  font-weight: 700;
  font-size: 10px;
  color: var(--neon-cyan, #00f0ff);
  margin-bottom: 1px;
}

.chat-msg-row.self .chat-msg-reply-sender {
  color: #7dd3fc;
}

.chat-msg-reply-snippet {
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
}

.chat-msg-text {
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.45;
}

.chat-msg-time {
  display: block;
  text-align: right;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

/* Reply Action Button on each message */
.chat-msg-reply-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan, #00f0ff);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  margin-bottom: 4px;
}

.chat-msg-reply-btn:hover {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.chat-msg-reply-btn:active {
  transform: scale(0.88);
}

/* Flash highlight animation for jumping to quoted message */
.chat-msg-row.highlight-flash .chat-msg-bubble {
  animation: chatMsgHighlightFlash 1.6s ease-out;
}

@keyframes chatMsgHighlightFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.9);
  }
  30% {
    box-shadow: 0 0 25px 4px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.4);
  }
  100% {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  }
}

/* Scroll Bottom Float Button - Smooth scale & opacity transitions */
.chat-scroll-bottom-btn {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 27, 62, 0.95);
  border: 1px solid var(--neon-cyan, #00f0ff);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 5;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-scroll-bottom-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
}

.chat-scroll-bottom-btn.hidden {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.8) !important;
  pointer-events: none !important;
  display: flex !important;
}

.chat-scroll-arrow {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.chat-new-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  color: #ef4444;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 6px #ef4444;
  transition: opacity 0.2s;
}

.chat-new-indicator.hidden {
  display: none !important;
}

/* Reply Preview Bar above input - Smooth accordion expand */
.chat-reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 24, 48, 0.96);
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  border-left: 3px solid var(--neon-cyan, #00f0ff);
  padding: 7px 14px;
  flex-shrink: 0;
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.24s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.24s ease, transform 0.24s ease, padding 0.24s ease;
  overflow: hidden;
}

.chat-reply-bar.hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-left-width: 0 !important;
  transform: translateY(6px) !important;
  pointer-events: none !important;
  display: flex !important;
}

.chat-reply-bar-icon {
  color: var(--neon-cyan, #00f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-reply-bar-content {
  flex: 1;
  min-width: 0;
}

.chat-reply-bar-title {
  font-size: 11px;
  color: var(--neon-cyan, #00f0ff);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.chat-reply-bar-snippet {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-reply-bar-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.chat-reply-bar-close:hover {
  color: #f87171;
  transform: scale(1.15);
}

/* Chat Input Footer */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 16, 35, 0.98);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  margin: 0;
}

.chat-input-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chat-input-field {
  width: 100%;
  background: rgba(18, 29, 60, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  padding: 10px 48px 10px 14px;
  color: #ffffff;
  font-family: var(--font-body, sans-serif);
  font-size: 13.5px;
  outline: none;
  transition: all 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-sizing: border-box;
}

.chat-input-field:focus {
  border-color: var(--neon-cyan, #00f0ff);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  background: rgba(18, 29, 60, 0.95);
}

.chat-char-count {
  position: absolute;
  right: 12px;
  font-size: 10px;
  color: var(--text-dim, #64748b);
  pointer-events: none;
  transition: color 0.15s;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0, 114, 255, 0.4);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.chat-send-btn svg {
  pointer-events: none;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.7);
}

.chat-send-btn:active {
  transform: scale(0.92);
}

.chat-send-btn.disabled,
.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none !important;
}

.chat-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim, #64748b);
  animation: chatMsgEntrance 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.chat-empty-icon {
  font-size: 38px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.chat-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.chat-empty-sub {
  font-size: 12px;
  opacity: 0.75;
}

/* ==========================================================================
   DARK THEME (MIDNIGHT AMOLED / OBSIDIAN) OVERRIDES FOR GLOBAL CHAT
   ========================================================================== */

[data-theme="dark"] .chat-modal-overlay {
  background: rgba(0, 0, 0, 0.88);
}

[data-theme="dark"] .chat-modal-sheet {
  background: linear-gradient(180deg, #111116 0%, #0a0a0e 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .chat-modal-header {
  background: rgba(14, 14, 18, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

[data-theme="dark"] .chat-sys-tag {
  color: #ffffff !important;
  opacity: 0.65;
}

[data-theme="dark"] .chat-title-row h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .chat-action-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .chat-action-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .chat-messages-wrap {
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

[data-theme="dark"] .chat-date-divider span {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .chat-msg-avatar {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .chat-msg-avatar:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .chat-msg-row.other .chat-msg-bubble {
  background: rgba(20, 20, 26, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .chat-msg-row.self .chat-msg-bubble {
  background: linear-gradient(135deg, #272733 0%, #171720 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .chat-msg-sender-name {
  color: #ffffff !important;
}

[data-theme="dark"] .chat-msg-clan-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .chat-msg-title-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .chat-msg-reply-quote {
  background: rgba(0, 0, 0, 0.4) !important;
  border-left: 2.5px solid #ffffff !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .chat-msg-reply-sender {
  color: #ffffff !important;
}

[data-theme="dark"] .chat-msg-reply-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .chat-msg-reply-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .chat-msg-row.highlight-flash .chat-msg-bubble {
  animation: chatMsgHighlightFlashDark 1.6s ease-out !important;
}

@keyframes chatMsgHighlightFlashDark {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
  }
  30% {
    box-shadow: 0 0 25px 4px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  }
}

[data-theme="dark"] .chat-reply-bar {
  background: rgba(14, 14, 18, 0.98) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  border-left-color: #ffffff !important;
}

[data-theme="dark"] .chat-reply-bar-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .chat-reply-bar-title {
  color: #ffffff !important;
}

[data-theme="dark"] .chat-reply-bar-snippet {
  color: #94a3b8 !important;
}

[data-theme="dark"] .chat-input-area {
  background: rgba(10, 10, 14, 0.98) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .chat-input-field {
  background: rgba(18, 18, 24, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .chat-input-field:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18) !important;
  background: rgba(22, 22, 30, 0.98) !important;
}

[data-theme="dark"] .chat-send-btn {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .chat-send-btn:hover {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.08) !important;
}

[data-theme="dark"] .chat-scroll-bottom-btn {
  background: rgba(18, 18, 24, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .chat-scroll-bottom-btn:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .chat-empty-state {
  color: #94a3b8 !important;
}

[data-theme="dark"] .chat-empty-title {
  color: #f1f5f9 !important;
}

/* ==========================================================================
   MAINTENANCE MODE FULLSCREEN OVERLAY
   ========================================================================== */

.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
}

.maintenance-overlay.hidden {
  display: none !important;
}

.maintenance-card {
  max-width: 420px;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 24px;
  padding: 36px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(234, 179, 8, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.maintenance-icon {
  font-size: 54px;
  line-height: 1;
  animation: pulseRotate 3s infinite ease-in-out;
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.maintenance-badge {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 4px;
}

.maintenance-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 0 0;
  letter-spacing: 0.3px;
}

.maintenance-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.maintenance-btn {
  margin-top: 14px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000000;
  border: none;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
  transition: all 0.2s ease;
}

.maintenance-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
}
