/**
 * Alcateia Hub - Components & Modules
 * High-End Gaming UI Design System
 */

/* ==========================================================================
   1. FLOATING GAMING HUD CAPSULE HEADER
   ========================================================================== */
.alcateia-header.floating-hud-mode {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  height: auto;
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 100;
  pointer-events: none;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.alcateia-header.floating-hud-mode .alcateia-header-inner {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 15, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 8px 5px 8px;
  border-radius: 9999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
  max-width: 96vw;
  height: auto;
  margin: 0 auto;
}

body.theme-light .alcateia-header.floating-hud-mode .alcateia-header-inner {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Nav Items Container (Inside Floating HUD) */
.alcateia-nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  padding: 0;
  border: none;
}

.alcateia-nav-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.alcateia-nav-item svg {
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.alcateia-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .alcateia-nav-item:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

/* Active Nav Pill State (Solid Crimson Red - Alcateia Hub Signature) */
.alcateia-nav-item.active-pill {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.alcateia-nav-item.active-pill svg {
  opacity: 1;
  transform: scale(1.05);
}

/* Right Tools Group */
.alcateia-header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.alcateia-nav-item svg {
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.alcateia-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .alcateia-nav-item:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

/* Active Nav Pill State (Solid Crimson Red - Alcateia Hub Signature) */
.alcateia-nav-item.active-pill {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.alcateia-nav-item.active-pill svg {
  opacity: 1;
  transform: scale(1.05);
}

/* Right Tools Group */
.alcateia-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-top-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.4);
  color: #ff6b84;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-top-admin:hover {
  background: #ff3b5c;
  color: #ffffff;
  border-color: #ff3b5c;
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.4);
  transform: translateY(-1px);
}

body.theme-light .btn-top-admin {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

body.theme-light .btn-top-admin:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-pill-admin {
  display: none;
}

.btn-top-members {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fbbf24;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-top-members:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
  filter: brightness(1.08);
}

.tools-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

body.theme-light .tools-divider {
  background: rgba(0, 0, 0, 0.1);
}

.tool-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
  flex-shrink: 0;
}

.tool-circle-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.tool-circle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 59, 92, 0.4);
  color: #ffffff;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 59, 92, 0.2);
}

.tool-circle-btn:active {
  transform: scale(0.96);
}

body.theme-light .tool-circle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.theme-light .tool-circle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 59, 92, 0.5);
  color: #0f172a;
}

/* Header tool buttons end */

@media (max-width: 1200px) {
  .alcateia-nav-item span {
    display: none;
  }

  .alcateia-nav-item {
    padding: 7px 10px;
  }
}

@media (max-width: 860px) {
  .alcateia-header-inner {
    padding: 0 14px;
  }

  .btn-top-members span,
  .btn-top-admin span {
    display: none;
  }

  .btn-top-members,
  .btn-top-admin {
    padding: 6px 10px;
  }

  .alcateia-nav-bar {
    gap: 2px;
    padding: 2px;
  }
}



/* ==========================================================================
   2. BUTTONS & CONTROLS
   ========================================================================== */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--text-dark-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--trans-fast);
}

.btn-pill-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background-color: #000000;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform var(--trans-fast);
}

.btn-pill-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-pill-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   3. CHARACTER DOCK SELECTOR (Hero Bottom-Left)
   ========================================================================== */
.character-dock {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.dock-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dark-muted);
}

.dock-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-sm);
}

.dock-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
}

.dock-item.active {
  background: var(--text-dark-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.25);
}

.dock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dock-name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   4. SKILLS SECTION (Columns with Circular Tech Icons)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.2rem;
  width: 100%;
  align-items: start;
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--trans-smooth);
  height: fit-content;
  align-self: start;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Circular Tech Skill Icon */
.skill-icon-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
  transition: all var(--trans-fast);
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
  font-size: 1.9rem;
}

.skill-card:hover .skill-icon-wrap {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.skill-icon-wrap img,
.skill-icon-wrap .icon-image-tag {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.skill-icon-wrap .icon-text-tag {
  font-size: 2.1rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.icon-image-tag {
  width: 1.25em;
  height: 1.25em;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: inline-block;
  vertical-align: -0.18em;
}

.icon-text-tag {
  font-size: 1.25em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-icon .icon-image-tag {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  max-height: 16px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.skill-type-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.skill-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light-secondary);
  white-space: pre-line;
}


/* ==========================================================================
   5. WEAPONS GRID (With Icon Support)
   ========================================================================== */
.weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.weapon-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all var(--trans-fast);
  height: fit-content;
  align-self: start;
}

.weapon-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.weapon-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weapon-icon-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.weapon-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.weapon-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weapon-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.weapon-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weapon-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255, 59, 92, 0.15);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 59, 92, 0.3);
  white-space: nowrap;
}

.weapon-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weapon-effect {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-light-secondary);
  white-space: pre-line;
}


/* ==========================================================================
   6. ECHO BUILDS & STATS (With Icon Support)
   ========================================================================== */
.echo-build-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.echo-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.echo-header-with-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.echo-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.06);
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.echo-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.echo-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.echo-set-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
}

.echo-bonus-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-light-secondary);
  white-space: pre-line;
}

.echo-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.echo-main-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.echo-main-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.echo-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.echo-slot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.echo-slot-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.2);
}

.echo-slot-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.echo-slot-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.echo-slot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.echo-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.echo-slot-type {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.82rem;
}

.echo-slot-name-label {
  font-size: 0.76rem;
  color: var(--text-light-secondary, #94a3b8);
}

.echo-slot-stat {
  color: var(--brand-cyan);
  font-weight: 600;
  text-align: right;
}


/* ==========================================================================
   7. RECOMMENDED TEAMS & SYNERGY SYSTEM (Sinergias & Composições)
   ========================================================================== */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
  width: 100%;
}

.team-card {
  background: radial-gradient(circle at 50% 25%, #0a0e18 0%, #04060a 65%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.8rem 1.8rem 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3b5c 0%, #a855f7 50%, #38bdf8 100%);
  opacity: 0.9;
  transition: height 0.3s ease;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 30px rgba(255, 59, 92, 0.1);
}

.team-card-ambient-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 59, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Header Row */
.team-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  position: relative;
  z-index: 1;
}

.team-header-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.team-archetype-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.team-archetype-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 10px #ff3b5c;
  animation: pulseNeon 2s ease-in-out infinite;
}

@keyframes pulseNeon {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px #ff3b5c; }
}

.team-archetype-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ff3b5c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.team-badge-formation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CINEMATIC TRIO SHOWCASE (Enhanced Holographic Gaming Podiums)
   ========================================================================== */
.team-card.team-cinematic-card {
  position: relative;
  background: linear-gradient(170deg, rgba(14, 18, 28, 0.95) 0%, rgba(8, 10, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 28px 24px 28px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-card-ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.team-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-archetype-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-archetype-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: archetypePulse 2s ease-in-out infinite;
}

@keyframes archetypePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

.team-archetype-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #38bdf8;
  text-transform: uppercase;
}

.team-name {
  font-family: 'Plus Jakarta Sans', var(--font-display), sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.team-badge-formation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

/* Trio Showcase Grid */
.team-showcase-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

/* Individual Holographic Podium Card */
.team-showcase-podium {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(18, 24, 38, 0.6) 40%, rgba(10, 13, 20, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 14px 14px 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 480px;
}

/* Lead character subtle top highlight */
.team-showcase-podium.is-current-lead {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(22, 30, 46, 0.65) 40%, rgba(10, 13, 20, 0.94) 100%);
}

.team-showcase-trio:hover .team-showcase-podium:not(:hover) {
  opacity: 0.85;
}

.team-showcase-podium:hover {
  transform: translateY(-8px);
  opacity: 1 !important;
  border-color: var(--hero-elem-color, rgba(255, 255, 255, 0.25));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.2);
}

/* Ambient Backlight Halo */
.team-podium-aura {
  position: absolute;
  top: 15%;
  left: 5%;
  right: 5%;
  height: 60%;
  pointer-events: none;
  z-index: 1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
}

.team-showcase-podium:hover .team-podium-aura {
  opacity: 1.25;
}

/* Top Slot Badge & Element Tag */
.team-podium-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 4;
}

.team-podium-slot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-podium-slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.team-podium-elem-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.team-podium-elem-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* Header with Resonator Name, Role Pill & Weapon */
.team-showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 8px;
  text-align: center;
}

.team-showcase-name {
  font-family: 'Plus Jakarta Sans', var(--font-display), -apple-system, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

.team-showcase-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 4px 14px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(0.74rem, 1vw, 0.84rem);
  font-weight: 800;
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 95%;
  line-height: 1.25;
  transition: all 0.3s ease;
}

.team-showcase-podium:hover .team-showcase-role-pill {
  border-color: var(--hero-elem-color, rgba(255, 255, 255, 0.3));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.team-showcase-weapon-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* 3/4 Bust Artwork Stage */
.team-showcase-art-box {
  position: relative;
  width: 100%;
  height: clamp(300px, 32vw, 390px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  margin-top: auto;
  z-index: 2;
}

.team-showcase-art-img {
  height: 100%;
  width: auto;
  max-width: 125%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.92));
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  transform-origin: center bottom;
  will-change: transform;
  animation: teamLevitate 6s ease-in-out infinite alternate;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.team-showcase-col.pos-0 .team-showcase-art-img {
  animation: teamLevitate 6s ease-in-out infinite alternate;
  animation-delay: 0s;
}

.team-showcase-col.pos-1 .team-showcase-art-img {
  animation: teamLevitate 6.6s ease-in-out infinite alternate;
  animation-delay: -2.2s;
}

.team-showcase-col.pos-2 .team-showcase-art-img {
  animation: teamLevitate 5.8s ease-in-out infinite alternate;
  animation-delay: -3.8s;
}

.team-showcase-podium:hover .team-showcase-art-img {
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.98));
}

.team-showcase-bottom-shade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(10, 13, 20, 0.98) 0%, rgba(10, 13, 20, 0.5) 50%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.team-showcase-light-stage {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(12px);
}

/* Footer Action Cue Button */
.team-showcase-footer {
  width: 100%;
  position: relative;
  z-index: 4;
  margin-top: 6px;
}

.team-showcase-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.team-showcase-podium:hover .team-showcase-cue {
  background: var(--hero-elem-color, #38bdf8);
  color: #060913;
  border-color: var(--hero-elem-color, #38bdf8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  font-weight: 900;
}

.team-showcase-cue.is-lead-cue {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (max-width: 900px) {
  .team-showcase-trio {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-showcase-art-box {
    height: 320px;
  }
}

/* Synergy Strategy Box */
.team-synergy-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  z-index: 1;
}

.team-synergy-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.synergy-sparkle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 59, 92, 0.14);
  border: 1px solid rgba(255, 59, 92, 0.28);
  color: #ff3b5c;
  flex-shrink: 0;
}

.team-synergy-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
  font-weight: 400;
}

.synergy-highlight {
  color: #ff5c7c;
  font-weight: 700;
  background: rgba(255, 59, 92, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 59, 92, 0.2);
}

/* ==========================================================================
   ☀️ LIGHT MODE OVERRIDES FOR TEAMS & SYNERGY
   ========================================================================== */
body.theme-light .team-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .team-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
}

body.theme-light .team-card-ambient-glow {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.06) 0%, transparent 70%) !important;
}

body.theme-light .team-header-row {
  border-bottom-color: #e2e8f0 !important;
}

body.theme-light .team-archetype-tag {
  color: #e11d48 !important;
}

body.theme-light .team-archetype-pulse {
  background: #e11d48 !important;
  box-shadow: 0 0 8px #e11d48 !important;
}

body.theme-light .team-name {
  color: #0f172a !important;
}

body.theme-light .team-badge-formation {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

body.theme-light .team-showcase-trio {
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 80%) !important;
  border-color: #334155 !important;
}

body.theme-light .team-showcase-bottom-shade {
  background: linear-gradient(to top, #0f172a 0%, transparent 100%) !important;
}

body.theme-light .team-hero-role-tag.role-subdps {
  background: #faf5ff !important;
  border-color: #e9d5ff !important;
  color: #9333ea !important;
}

body.theme-light .team-hero-role-tag.role-support {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #16a34a !important;
}

body.theme-light .synergy-connector-node {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .team-card:hover .synergy-connector-node {
  border-color: #e11d48 !important;
  color: #e11d48 !important;
  background: #fff1f2 !important;
}

body.theme-light .team-synergy-body {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.theme-light .team-synergy-label {
  color: #0f172a !important;
}

body.theme-light .team-desc {
  color: #334155 !important;
}

body.theme-light .synergy-sparkle-icon {
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
  color: #e11d48 !important;
}

body.theme-light .synergy-highlight {
  color: #be123c !important;
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
}


/* ==========================================================================
   8. MODALS & ROSTER DRAWER (White Sci-Fi Aesthetic)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(18, 20, 26, 0.95) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 59, 92, 0.12) !important;
  transform: scale(0.96);
  transition: transform var(--trans-smooth);
  color: #ffffff !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-compact {
  max-width: 540px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-slashes {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.modal-title-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff !important;
}

.modal-skill-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.modal-close-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: scale(1.08);
}

/* Filters & Search */
.modal-filters {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  padding: 10px 16px;
  border-radius: var(--radius-full);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.filter-pill:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.filter-pill.active {
  background: #ffffff !important;
  color: #0a0b0e !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

/* Roster Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.roster-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all var(--trans-fast);
}

.roster-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 10px 28px rgba(255, 59, 92, 0.25);
  transform: translateY(-3px);
}

.roster-card-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.roster-card-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff !important;
}

.roster-card-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65) !important;
}

.roster-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.roster-card-meta .icon-image-tag,
.roster-card-meta img {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  object-fit: contain !important;
}

/* Tactical Tip & Modal Skill Icon */
.modal-skill-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
}

.modal-skill-icon img,
.modal-skill-icon .icon-image-tag {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 50%;
  display: block !important;
}

.modal-skill-icon .icon-text-tag {
  font-size: 1.9rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.modal-skill-desc {
  white-space: pre-line;
  line-height: 1.65;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82) !important;
}

.skill-tactical-tip {
  margin-top: 1rem;
  padding: 12px 16px;
  background: rgba(0, 240, 255, 0.06);
  border-left: 3px solid var(--brand-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  border-right: 1px solid rgba(0, 240, 255, 0.15);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8) !important;
}

.tip-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-cyan);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-meta-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-light-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   9. ELEMENTAL PARTICLES & PARALLAX CANVAS
   ========================================================================== */
.elemental-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   10. SPOTLIGHT UNIVERSAL SEARCH (Ctrl + K)
   ========================================================================== */
.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dark-primary);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.search-trigger-btn:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-kbd-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.07);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-dark-secondary);
}

.modal-search-spotlight {
  max-width: 620px;
  padding: 0 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 59, 92, 0.12) !important;
  background: #14171f !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
}

.spotlight-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #181b24;
}

.spotlight-icon {
  font-size: 1.2rem;
}

.spotlight-search-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.spotlight-search-header input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.spotlight-esc-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.spotlight-row:hover,
.spotlight-row.selected {
  background: rgba(255, 255, 255, 0.08);
}

.spotlight-row-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spotlight-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-row-content {
  flex: 1;
  min-width: 0;
}

.spotlight-row-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.spotlight-row-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-type-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255, 59, 92, 0.15);
  color: #ff3b5c;
  border: 1px solid rgba(255, 59, 92, 0.3);
  border-radius: var(--radius-full);
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #181b24;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.spotlight-footer kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 5px;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   11. SKILL LEVEL-UP PRIORITY & COMBAT ROTATION
   ========================================================================== */
.skills-tab-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sub-section-header {
  margin-bottom: 1.2rem;
}

.sub-section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.skill-priority-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.priority-node-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all var(--trans-fast);
}

.priority-node-card.is-interactive {
  cursor: pointer;
}

.priority-node-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.priority-node-card.is-interactive:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 8px 24px rgba(255, 59, 92, 0.15);
}

.priority-step-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.15);
  border: 1.5px solid var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.25);
  margin-top: 2px;
}

.priority-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all var(--trans-fast);
}

.priority-icon-wrap img,
.priority-icon-wrap .icon-image-tag {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.priority-icon-wrap .icon-text-tag {
  font-size: 1.35rem;
  line-height: 1;
}

.priority-node-card:hover .priority-icon-wrap {
  border-color: var(--brand-primary);
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.priority-content {
  flex: 1;
}

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

.priority-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.priority-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light-secondary);
}

.priority-tag.tag-max {
  background: rgba(255, 59, 92, 0.2);
  color: #ff6b84;
  border: 1px solid rgba(255, 59, 92, 0.4);
}

.priority-reason {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-light-secondary);
}

/* Combat Rotation Grid */
.rotation-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.rotation-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all var(--trans-fast);
}

.rotation-step-card.is-interactive {
  cursor: pointer;
}

.rotation-step-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rotation-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  min-width: 18px;
  margin-top: 2px;
}

.rotation-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all var(--trans-fast);
}

.rotation-icon-wrap img,
.rotation-icon-wrap .icon-image-tag {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.rotation-icon-wrap .icon-text-tag {
  font-size: 1.35rem;
  line-height: 1;
}

.rotation-step-card:hover .rotation-icon-wrap {
  border-color: var(--brand-primary);
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.rotation-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.rotation-action-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.rotation-key-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.rotation-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-light-secondary);
}

/* ==========================================================================
   12. RESONANCE CHAIN (CADEIA DE RESSONÂNCIA - S1 TO S6) - CINEMATIC MOCKUP
   ========================================================================== */
.resonance-chain-layout {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  padding: 4px 0 24px 0;
}

.res-cinematic-stage {
  position: relative;
  width: 100%;
  min-height: 620px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

/* Cinematic Full Wallpaper */
.res-cinematic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  filter: saturate(1.15) brightness(0.96);
  transition: transform 0.6s ease;
  z-index: 1;
}

/* Atmospheric Vignette & Contrast Overlay */
.res-cinematic-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 45%, transparent 28%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0.95) 100%),
              linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 38%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Inner Stage Content */
.res-cinematic-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 56px;
  min-height: 620px;
  width: 100%;
  gap: 32px;
}

/* ==========================================================================
   MINIMALIST RESONANCE CHAIN (Cadeia de Ressonância)
   ========================================================================== */
.res-minimal-left {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 4;
}

/* Minimalist Clean Floating Header */
.res-minimal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.res-minimal-emblem-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--element-color, rgba(56, 189, 248, 0.25));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.res-minimal-header:hover .res-minimal-emblem-wrap {
  border-color: var(--element-color, #38bdf8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 28px var(--element-color, rgba(56, 189, 248, 0.4));
  transform: translateY(-2px);
}

.res-minimal-emblem-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--element-color, #38bdf8));
  transition: transform 0.3s ease;
}

.res-minimal-header:hover .res-minimal-emblem-img {
  transform: scale(1.08);
}

.res-minimal-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-minimal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-minimal-seq-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--element-color, #38bdf8);
  letter-spacing: 0.06em;
}

.res-minimal-dot {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
}

.res-minimal-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.res-minimal-title {
  font-family: 'Plus Jakarta Sans', var(--font-display), -apple-system, sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* Minimalist Glass Description Card */
.res-minimal-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: resDescFadeIn 0.3s ease-out;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

.res-cine-desc-p {
  font-size: 0.98rem;
  line-height: 1.76;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
  margin: 0;
}

.res-cine-gold {
  color: #fbbf24;
  font-weight: 700;
}

.res-cine-bold {
  color: #ffffff;
  font-weight: 700;
}

.res-cine-bullet {
  color: var(--element-color, #38bdf8);
  margin-right: 6px;
  display: inline-block;
  font-size: 0.75rem;
  vertical-align: middle;
}

/* ==========================================================================
   RIGHT PANEL: VERTICAL CIRCULAR SEQUENCE CRESTS (S1 TO S6)
   ========================================================================== */
.res-cinematic-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.res-crest-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.res-crest-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 0.55;
  filter: grayscale(20%) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
  transform: scale(1);
}

.res-crest-btn:hover {
  opacity: 0.9;
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.res-crest-btn.active {
  opacity: 1;
  transform: scale(1.22);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 26px var(--element-color, #00e5ff));
}

.res-crest-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.res-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive Adaptations */
@media (max-width: 950px) {
  .res-cinematic-content {
    flex-direction: column-reverse;
    gap: 32px;
    padding: 32px 24px;
    align-items: flex-start;
    min-height: auto;
  }

  .res-minimal-left {
    max-width: 100%;
  }

  .res-crest-column {
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }

  .res-crest-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .res-minimal-title {
    font-size: 1.4rem;
  }

  .res-cine-desc-p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}

/* ==========================================================================
   12. ASCENSION MATERIAL & FARM PLANNER CALCULATOR
   ========================================================================== */
.farm-calculator-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.planner-controls-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.planner-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.planner-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planner-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.planner-presets {
  display: flex;
  gap: 6px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.preset-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.planner-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.planner-slider-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

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

.slider-label {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-cyan);
}

.range-dual-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.range-input {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.range-input.range-target {
  accent-color: var(--brand-cyan);
}

/* Materials Summary Grid */
.materials-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.mat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all var(--trans-fast);
}

.mat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.mat-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  padding: 4px;
}

.mat-details {
  flex: 1;
  min-width: 0;
}

.mat-name {
  font-size: 0.78rem;
  color: var(--text-light-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mat-amount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.mat-gold .mat-amount {
  color: #ffbe0b;
}

.mat-purple .mat-amount {
  color: #c77dff;
}

.mat-green .mat-amount {
  color: #52b788;
}

.mat-boss .mat-amount {
  color: #ff3b5c;
}

/* Tier Breakdown Grid */
.materials-tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tier-breakdown-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-card-header h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #ffffff;
}

.tier-rarity-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rarity-badge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.r-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light-secondary);
}

.r-count {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
}

.r-green {
  border-color: rgba(82, 183, 136, 0.4);
}

.r-green .r-count {
  color: #52b788;
}

.r-blue {
  border-color: rgba(0, 180, 216, 0.4);
}

.r-blue .r-count {
  color: #00b4d8;
}

.r-purple {
  border-color: rgba(199, 125, 255, 0.4);
}

.r-purple .r-count {
  color: #c77dff;
}

.r-gold {
  border-color: rgba(255, 190, 11, 0.4);
}

.r-gold .r-count {
  color: #ffbe0b;
}

/* Interactive Checklist */
.farm-checklist-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.checklist-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
}

.checklist-sub {
  font-size: 0.82rem;
  color: var(--text-light-secondary);
}

.checklist-reset-btn {
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.3);
  color: #ff6b84;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.checklist-reset-btn:hover {
  background: #ff3b5c;
  color: #fff;
}

.checklist-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.checklist-col-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  min-width: 200px;
}

.chk-icon {
  font-size: 1.1rem;
}

.checklist-col-inputs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.chk-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light-secondary);
}

.chk-have-input {
  width: 70px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  text-align: center;
}

.chk-remaining-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-light-secondary);
}

.chk-rem-val {
  color: #ff3b5c;
  font-size: 0.95rem;
  margin-left: 4px;
}

.chk-rem-val.completed {
  color: #52b788;
}

.chk-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.chk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan) 0%, #52b788 100%);
  transition: width 0.3s ease;
}

@media (max-width: 768px) {

  .planner-sliders-grid,
  .materials-tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Admin Buttons (Direct Edit & Management)
   ========================================================================== */
.nav-admin-btn {
  background: rgba(255, 59, 92, 0.15) !important;
  border: 1px solid rgba(255, 59, 92, 0.4) !important;
  color: #ff6b84 !important;
  font-weight: 700 !important;
}

.nav-admin-btn:hover {
  background: #ff3b5c !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(255, 59, 92, 0.5);
  transform: translateY(-1px);
}

.btn-pill-admin {
  background: rgba(255, 59, 92, 0.12) !important;
  border: 1.5px solid rgba(255, 59, 92, 0.4) !important;
  color: #ff3b5c !important;
  font-weight: 700 !important;
}

.btn-pill-admin:hover {
  background: #ff3b5c !important;
  color: #ffffff !important;
  border-color: #ff3b5c !important;
  box-shadow: 0 8px 25px rgba(255, 59, 92, 0.45);
  transform: translateY(-2px);
}

.floating-admin-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff3b5c 0%, #d90429 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 59, 92, 0.5);
  transition: all var(--trans-fast);
}

.floating-admin-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 59, 92, 0.8);
}

/* ==========================================================================
   ALCATEIA HUB - SHARED VIEW CONTAINERS & TYPOGRAPHY
   ========================================================================== */
.alcateia-view-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 100px 24px 80px 24px;
  animation: alcateiaFadeIn 0.35s ease-out;
}

@keyframes alcateiaFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alcateia-section-header {
  margin-bottom: 32px;
}

/* ==========================================================================
   ALCATEIA HUB - UNIFIED AAA GAMING DESIGN SYSTEM (ALL VIEWS)
   ========================================================================== */
.unified-game-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 10%, rgba(239, 68, 68, 0.08) 0%, rgba(13, 16, 25, 0.98) 50%, #07080c 100%);
  overflow-x: hidden;
}

body.theme-light .unified-game-section {
  background: transparent !important;
}

.alcateia-view-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 105px 4vw 80px 4vw;
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unified Page Header Component */
.view-hero-header {
  margin-bottom: 34px;
}

.alcateia-section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.view-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.badge-dot-glow {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseGlow 2s infinite;
}

.badge-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.view-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.15;
  text-transform: uppercase;
}

body.theme-light .view-main-title {
  color: #0f172a;
}

.text-crimson-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #ff4b6e 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-light .text-crimson-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.view-lead-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}

body.theme-light .view-lead-subtitle {
  color: #475569;
}

.btn-alcateia-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-alcateia-action:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   HOME: LATEST NEWS PREVIEW (Alcateia Hub Dashboard Section)
   ========================================================================== */
.home-news-section {
  position: relative;
  width: 100%;
  background: #080a10;
  padding: 70px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.home-news-container {
  max-width: 1550px;
  margin: 0 auto;
}

.home-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.home-news-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-red-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.home-news-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0 0 4px 0;
}

.home-news-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.btn-see-all-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 18px;
  border-radius: 9999px;
}

.btn-see-all-news:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateX(3px);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   UNIFIED CARD COMPONENTS (News, Stories, Gallery)
   ========================================================================== */
.alcateia-news-card,
.featured-news-card,
.secondary-news-card,
.story-game-card,
.gallery-item-card {
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light .alcateia-news-card,
body.theme-light .featured-news-card,
body.theme-light .secondary-news-card,
body.theme-light .story-game-card,
body.theme-light .gallery-item-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Glowing Top Accent Line on Hover */
.alcateia-news-card::before,
.featured-news-card::before,
.secondary-news-card::before,
.story-game-card::before,
.gallery-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #ef4444 0%, rgba(239, 68, 68, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 5;
  pointer-events: none;
}

.alcateia-news-card:hover,
.featured-news-card:hover,
.secondary-news-card:hover,
.story-game-card:hover,
.gallery-item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.15);
  background: rgba(18, 23, 36, 0.85);
}

body.theme-light .alcateia-news-card:hover,
body.theme-light .featured-news-card:hover,
body.theme-light .secondary-news-card:hover,
body.theme-light .story-game-card:hover,
body.theme-light .gallery-item-card:hover {
  background: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.alcateia-news-card:hover::before,
.featured-news-card:hover::before,
.secondary-news-card:hover::before,
.story-game-card:hover::before,
.gallery-item-card:hover::before {
  opacity: 1;
}

/* News Card Thumb */
.news-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151824;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.alcateia-news-card:hover .news-card-thumb {
  transform: scale(1.06);
}

.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

body.theme-light .news-card-title {
  color: #0f172a;
}

.news-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   NEWS VIEW: CLEAN MINIMALIST SHOWCASE WITH AMBIENT RED LIGHT & TECH GRID
   ========================================================================== */
.alcateia-news-view.minimalist-news-mode {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 95px 24px 80px;
  background-color: #07080c;
  overflow: hidden;
  z-index: 10;
}

body.theme-light .alcateia-news-view.minimalist-news-mode {
  background-color: #f8fafc;
}

/* Atmospheric Red Ambient Glow & Tech Grid Backdrop */
.news-ambient-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.news-ambient-red-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 32%, rgba(239, 68, 68, 0.32) 0%, rgba(220, 38, 38, 0.15) 30%, transparent 65%),
    radial-gradient(circle at 18% 75%, rgba(239, 68, 68, 0.18) 0%, rgba(185, 28, 28, 0.05) 35%, transparent 60%),
    radial-gradient(circle at 50% 5%, rgba(239, 68, 68, 0.12) 0%, transparent 50%);
  animation: pulseNewsRedGlow 7s ease-in-out infinite alternate;
}

body.theme-light .news-ambient-red-glow {
  background:
    radial-gradient(circle at 75% 32%, rgba(239, 68, 68, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 18% 75%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
}

@keyframes pulseNewsRedGlow {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 1.15;
    transform: scale(1.05);
  }
}

.news-tech-grid {
  position: absolute;
  inset: 0;
  background-size: 42px 42px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 95%);
}

body.theme-light .news-tech-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.032) 1px, transparent 1px);
}

.news-stencil-watermark {
  position: absolute;
  right: -2%;
  bottom: 2%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.022);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 0.8;
}

body.theme-light .news-stencil-watermark {
  color: rgba(0, 0, 0, 0.02);
}

.news-clean-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.news-clean-main-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.theme-light .news-clean-main-title {
  color: #0f172a;
}

.news-clean-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.theme-light .news-clean-subtitle {
  color: #64748b;
}

/* Category Filter Pills Bar */
.news-filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.news-filter-pills-bar::-webkit-scrollbar {
  display: none;
}

.news-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.news-filter-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

body.theme-light .news-filter-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.theme-light .news-filter-pill:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.08);
}

.news-filter-pill.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

body.theme-light .news-filter-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* SHOWCASE HERO ROW (Big Card on Left + Compact Card on Right) */
.news-showcase-hero-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .news-showcase-hero-row {
    grid-template-columns: 1fr;
  }
}

/* MINIMALIST NEWS CARD (Modern Glassmorphic Minimalist Design) */
.minimalist-news-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
  min-height: 260px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Subtle glass rim highlight on top border */
.minimalist-news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 40%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.28) 60%, transparent 100%);
  z-index: 4;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.news-showcase-hero-row .minimalist-news-card.featured-hero {
  min-height: 390px;
}

.news-showcase-hero-row .minimalist-news-card.secondary-hero {
  min-height: 390px;
}

.minimalist-news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.92),
    0 0 35px -8px rgba(255, 59, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.minimalist-news-card:hover::after {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 59, 92, 0.7) 30%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 59, 92, 0.7) 70%, transparent 100%);
}

.minimalist-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.minimalist-news-card:hover .minimalist-card-bg {
  transform: scale(1.04);
}

.minimalist-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 18, 0.97) 0%, rgba(8, 11, 18, 0.65) 45%, rgba(8, 11, 18, 0.1) 75%, transparent 100%);
  z-index: 2;
  transition: background 0.35s ease;
}

.minimalist-news-card:hover .minimalist-card-overlay {
  background: linear-gradient(0deg, rgba(8, 11, 18, 0.98) 0%, rgba(8, 11, 18, 0.52) 45%, rgba(8, 11, 18, 0.05) 75%, transparent 100%);
}

/* Light Mode Overrides */
body.theme-light .minimalist-news-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1);
}

body.theme-light .minimalist-news-card::after {
  display: none;
}

body.theme-light .minimalist-news-card:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16);
}

body.theme-light .minimalist-card-overlay {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.5) 45%, transparent 100%);
}

.minimalist-card-content {
  position: relative;
  z-index: 3;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.minimalist-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.minimalist-tag-pill {
  background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(255, 59, 92, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.minimalist-date-text {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.minimalist-card-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.34;
  margin: 6px 0 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.featured-hero .minimalist-card-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.minimalist-game-sub {
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
}

/* FEED SECTION & REGULAR ARTICLES GRID */
.news-feed-section-wrap {
  margin-bottom: 36px;
}

.news-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

/* CLEAN CODES STRIP */
.news-clean-codes-strip {
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

body.theme-light .news-clean-codes-strip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.clean-codes-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clean-codes-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

body.theme-light .clean-codes-title {
  color: #0f172a;
}

.clean-codes-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.clean-codes-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clean-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.theme-light .clean-code-chip {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

.clean-code-chip:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  transform: translateY(-2px);
}

.clean-code-name {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

body.theme-light .clean-code-name {
  color: #0f172a;
}

.clean-code-reward {
  font-size: 0.72rem;
  color: #94a3b8;
}


/* ==========================================================================
   ARTICLE READER MODAL (Senior UI/UX Minimalist Editorial Experience)
   ========================================================================== */
.modal-article-card {
  max-width: 760px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 20px !important;
  background: rgba(13, 17, 26, 0.98) !important;
}

body.theme-light .modal-article-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.modal-article-card .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .modal-article-card .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.modal-article-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-article-card .modal-body-content {
  padding: 24px 28px 36px;
  max-height: 70vh;
  overflow-y: auto;
}

.article-hero-banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-light .article-meta-info {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.article-text-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #cbd5e1;
}

body.theme-light .article-text-body {
  color: #334155;
}

.article-text-body h3,
.article-text-body h4 {
  font-family: var(--font-display);
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 800;
}

body.theme-light .article-text-body h3,
body.theme-light .article-text-body h4 {
  color: #0f172a;
}

.article-text-body p {
  margin-bottom: 16px;
}

.article-text-body ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.article-text-body li {
  margin-bottom: 8px;
}

.article-text-body blockquote {
  border-left: 3px solid #ef4444;
  padding: 12px 18px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-style: italic;
  color: #f1f5f9;
}

body.theme-light .article-text-body blockquote {
  color: #1e293b;
}


/* ==========================================================================
   STORIES VIEW: NARRATIVAS DOS JOGOS (Clean Modern News Typography)
   ========================================================================== */
.stories-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 28px;
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .stories-games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.story-universe-grand-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
  cursor: pointer;
}

.story-universe-grand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 59, 92, 0.45);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px -8px rgba(255, 59, 92, 0.25);
}

body.theme-light .story-universe-grand-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

body.theme-light .story-universe-grand-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 45px -10px rgba(239, 68, 68, 0.12);
}

.story-card-art-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.88) saturate(1.05);
}

.story-universe-grand-card:hover .story-card-art-bg {
  transform: scale(1.04);
}

.story-card-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(8, 11, 18, 0.2) 0%,
      rgba(8, 11, 18, 0.68) 42%,
      rgba(8, 11, 18, 0.98) 100%);
  pointer-events: none;
}

body.theme-light .story-card-overlay-gradient {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.8) 42%,
      rgba(255, 255, 255, 0.98) 100%);
}

.story-card-content {
  position: relative;
  z-index: 3;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.story-universe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(255, 59, 92, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-light .story-universe-pill {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

.story-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.story-chapters-badge {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.theme-light .story-chapters-badge {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  border-color: rgba(15, 23, 42, 0.1);
}

.story-universe-subtitle {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.01em;
  display: block;
}

body.theme-light .story-universe-subtitle {
  color: #64748b;
}

.story-universe-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

body.theme-light .story-universe-title {
  color: #0f172a;
  text-shadow: none;
}

.story-universe-tagline {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  color: #f87171;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

body.theme-light .story-universe-tagline {
  color: #dc2626;
}

.story-universe-desc {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

body.theme-light .story-universe-desc {
  color: #334155;
}

.story-card-footer {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-meta-tags-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.story-meta-micro-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  color: #e2e8f0;
}

body.theme-light .story-meta-micro-tag {
  background: rgba(241, 245, 249, 0.9);
  border-color: #cbd5e1;
  color: #1e293b;
}

.story-meta-micro-tag .meta-label {
  color: #94a3b8;
  font-weight: 600;
}

body.theme-light .story-meta-micro-tag .meta-label {
  color: #64748b;
}

.story-meta-micro-tag .meta-val {
  font-weight: 600;
  color: #ffffff;
}

body.theme-light .story-meta-micro-tag .meta-val {
  color: #0f172a;
}

.btn-universe-explore {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  transition: all 0.25s ease;
}

.btn-universe-explore:hover {
  background: linear-gradient(135deg, #ff3b5c 0%, #ef4444 100%);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 59, 92, 0.5);
}

.btn-universe-explore svg {
  transition: transform 0.25s ease;
}

.btn-universe-explore:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   CHAPTERS SELECTION HUB & CARDS (Capítulos com Capa)
   ========================================================================== */
.stories-chapters-nav-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.btn-back-universes {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-universes:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

body.theme-light .btn-back-universes {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-light .btn-back-universes:hover {
  background: rgba(0, 0, 0, 0.1);
}

.story-universe-header-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
}

body.theme-light .story-universe-header-banner {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

.story-universe-header-banner .banner-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) blur(2px);
  pointer-events: none;
}

body.theme-light .story-universe-header-banner .banner-bg-img {
  filter: brightness(0.9) opacity(0.2);
}

.story-universe-header-banner .banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-meta-pill {
  align-self: flex-start;
  background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.banner-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.theme-light .banner-title {
  color: #0f172a;
}

.banner-synopsis {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 900px;
  margin: 4px 0 0 0;
}

body.theme-light .banner-synopsis {
  color: #475569;
}

.stories-chapters-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .stories-chapters-section-title-row {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.chapters-hub-heading {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.015em;
}

body.theme-light .chapters-hub-heading {
  color: #0f172a;
}

.chapters-hub-count {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .chapters-hub-count {
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
  border-color: rgba(0, 0, 0, 0.08);
}

/* CHAPTERS GRID & CARDS WITH COVERS */
.story-chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.chapter-selection-card {
  position: relative;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
  cursor: pointer;
}

.chapter-selection-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 92, 0.4);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 25px -5px rgba(255, 59, 92, 0.2);
}

body.theme-light .chapter-selection-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px -5px rgba(15, 23, 42, 0.06);
}

body.theme-light .chapter-selection-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 16px 36px -8px rgba(239, 68, 68, 0.12);
}

.chapter-card-cover-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #000000;
}

.chapter-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-selection-card:hover .chapter-card-cover-img {
  transform: scale(1.06);
}

.chapter-card-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(11, 15, 25, 0.85) 100%);
  pointer-events: none;
}

body.theme-light .chapter-card-cover-gradient {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.chapter-card-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 3;
}

.chapter-card-read-time {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.chapter-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.chapter-card-info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter-card-act {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: -0.01em;
}

body.theme-light .chapter-card-act {
  color: #dc2626;
}

.chapter-card-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

body.theme-light .chapter-card-title {
  color: #0f172a;
}

.chapter-card-summary {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-light .chapter-card-summary {
  color: #475569;
}

.btn-read-chapter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.chapter-selection-card:hover .btn-read-chapter {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

body.theme-light .btn-read-chapter {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.theme-light .chapter-selection-card:hover .btn-read-chapter {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* ==========================================================================
   GALLERY VIEW: LUXURY ARTWORK & WALLPAPER HUB (AAA Design Standard)
   ========================================================================== */

/* 1. Spotlight Hero Showcase */
.gallery-spotlight-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.15);
  background: #070a12;
  display: flex;
  align-items: flex-end;
}

body.theme-light .gallery-spotlight-hero {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.12);
}

.gallery-spotlight-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.75) saturate(1.1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-spotlight-hero:hover .gallery-spotlight-bg {
  transform: scale(1.03);
}

.gallery-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 16, 0.96) 0%, rgba(6, 9, 16, 0.82) 42%, rgba(6, 9, 16, 0.2) 100%),
    linear-gradient(180deg, transparent 40%, rgba(6, 9, 16, 0.95) 100%);
  z-index: 2;
}

.gallery-spotlight-content {
  position: relative;
  z-index: 3;
  padding: 34px 38px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery-spotlight-content {
    padding: 22px;
  }
}

.gallery-spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spotlight-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.spotlight-res-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.gallery-spotlight-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gallery-spotlight-desc {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.88rem;
  color: #cbd5e1 !important;
  margin: 0;
  line-height: 1.5;
}

body.theme-light .gallery-spotlight-desc {
  color: #475569;
}

.gallery-spotlight-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-spotlight-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-spotlight-download:hover {
  background: linear-gradient(135deg, #ff3b5c 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 59, 92, 0.6);
}

.btn-spotlight-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-spotlight-view:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

body.theme-light .btn-spotlight-view {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}


/* 2. Discovery & Filter Controls Toolbar */
.gallery-discovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.gallery-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.gallery-search-wrap {
  position: relative;
  min-width: 260px;
  max-width: 380px;
  flex: 1;
}

.gallery-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.gallery-search-input {
  width: 100%;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 10px 38px 10px 40px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.86rem;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gallery-search-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(18, 24, 38, 0.95);
}

body.theme-light .gallery-search-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #94a3b8;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-search:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.gallery-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.theme-light .gallery-filter-pills {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.gallery-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .gallery-pill:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.gallery-pill.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.07) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 7px;
  border-radius: 9999px;
  font-weight: 700;
}

.gallery-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.gallery-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.gallery-sort-label {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Custom Minimalist Rounded Sort Dropdown */
.gallery-custom-dropdown {
  position: relative;
  display: inline-block;
}

.gallery-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 8px 18px 8px 14px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.gallery-dropdown-trigger:hover,
.gallery-custom-dropdown.open .gallery-dropdown-trigger {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(22, 28, 42, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gallery-dropdown-current-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.gallery-dropdown-current-text {
  font-weight: 600;
  color: #ffffff;
}

.gallery-dropdown-chevron {
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 2px;
}

.gallery-custom-dropdown.open .gallery-dropdown-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.gallery-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: rgba(14, 18, 28, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gallery-custom-dropdown.open .gallery-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gallery-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.gallery-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.gallery-dropdown-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
}

.gallery-item-icon {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.gallery-dropdown-item:hover .gallery-item-icon,
.gallery-dropdown-item.active .gallery-item-icon {
  color: #ffffff;
}

.gallery-sort-select {
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 8px 16px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-sort-select:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

body.theme-light .gallery-dropdown-trigger,
body.theme-light .gallery-sort-select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.theme-light .gallery-dropdown-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

body.theme-light .gallery-dropdown-item {
  color: #334155;
}

body.theme-light .gallery-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-light .gallery-dropdown-item.active {
  background: #e2e8f0;
  color: #0f172a;
}


/* 3. Luxury Gallery Cards Grid & Card Components */
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  width: 100%;
}

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

.gallery-item-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: #080b14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

body.theme-light .gallery-item-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px -5px rgba(15, 23, 42, 0.08);
}

.gallery-item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 59, 92, 0.45);
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.95), 0 0 25px -5px rgba(255, 59, 92, 0.25);
}

body.theme-light .gallery-item-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 36px -8px rgba(239, 68, 68, 0.15);
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-card:hover .gallery-item-img {
  transform: scale(1.07);
}

/* Card Top Bar (Universe Badge + Action Buttons) */
.gallery-card-top-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.gallery-card-top-bar>* {
  pointer-events: auto;
}

.gallery-card-badge-left {
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-dot-universe {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.badge-dot-universe.pgr {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.gallery-card-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-like:hover,
.btn-card-like.liked {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-card-like.liked svg {
  fill: #ef4444;
}

.btn-card-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-card:hover .btn-card-download {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
  transform: scale(1.03);
}

.btn-card-download:hover {
  transform: scale(1.08) !important;
  filter: brightness(1.15);
}

/* Card Bottom Info Overlay (Subtle and Clean) */
.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 14, 0.85) 100%);
  padding: 12px 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0.9;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-item-card:hover .gallery-item-overlay {
  opacity: 1;
}

body.theme-light .gallery-item-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.75) 100%);
}

.gallery-item-bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gallery-card-badge-left,
.gallery-item-res-tag,
.lightbox-category-tag,
.lightbox-res-badge,
.spotlight-res-pill {
  display: none !important;
}

.gallery-item-downloads-count {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}



.gallery-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(14, 18, 28, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

.gallery-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.gallery-empty-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.gallery-empty-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}


/* ==========================================================================
   MODALS: MEMBROS VIP & LIGHTBOX VIEWER
   ========================================================================== */
.modal-members-card {
  max-width: 580px;
  background: #0f121a;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.15);
}

.modal-vip-crown {
  font-size: 1.8rem;
}

.members-vip-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(180, 83, 9, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.vip-badge-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.members-vip-hero h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.members-vip-hero p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.vip-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.vip-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.vip-perk-icon {
  color: #f59e0b;
  font-size: 1.1rem;
}

.btn-join-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-join-vip:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

/* ==========================================================================
   CINEMA LIGHTBOX IMAGE MODAL (ULTRA-MODERN IMMERSIVE VIEWER)
   ========================================================================== */
.image-lightbox-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(4, 6, 12, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Ambient glow mirroring active wallpaper */
.lightbox-ambient-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(90px) brightness(0.4) saturate(1.4);
  opacity: 0.45;
  transform: scale(1.2);
  pointer-events: none;
  z-index: 1;
  transition: background-image 0.4s ease, opacity 0.4s ease;
}

.lightbox-cinema-layout {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* 1. Top Header Toolbar */
.lightbox-top-toolbar {
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.92) 0%, rgba(8, 11, 20, 0.6) 80%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}

.lightbox-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lightbox-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lightbox-category-tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.lightbox-res-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.lightbox-counter-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.lightbox-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-lightbox-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lightbox-like:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: translateY(-1px);
}

.btn-lightbox-like.liked {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-lightbox-like.liked svg {
  fill: #ef4444;
}

.btn-lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff3b5c 0%, #ef4444 60%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-lightbox-download:hover {
  background: linear-gradient(135deg, #ff5574 0%, #ff3b5c 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(255, 59, 92, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-lightbox-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lightbox-icon-action:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

/* 2. Center Stage & Viewport */
.lightbox-center-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 80px;
  min-height: 0;
  overflow: hidden;
}

.lightbox-image-viewport {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-full-img {
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
  animation: lightboxFadeZoom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.3s ease;
}

@keyframes lightboxFadeZoom {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Navigation Chevrons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 20, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.lightbox-prev-btn {
  left: 24px;
}

.lightbox-next-btn {
  right: 24px;
}

.lightbox-nav-btn:hover {
  background: #ff3b5c;
  border-color: #ff3b5c;
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 35px rgba(255, 59, 92, 0.55);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* 3. Bottom Information Bar */
.lightbox-bottom-bar {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(0deg, rgba(8, 11, 20, 0.95) 0%, rgba(8, 11, 20, 0.7) 80%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}

.lightbox-info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 65%;
}

.lightbox-main-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.lightbox-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lightbox-tag-pill {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.lightbox-info-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lightbox-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-lightbox-secondary-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lightbox-secondary-download:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Lightbox Mobile Adjustments */
@media (max-width: 768px) {
  .lightbox-top-toolbar {
    padding: 10px 14px;
    gap: 8px;
  }
  .lightbox-meta-left {
    gap: 6px;
  }
  .lightbox-badge-pill span:last-child {
    display: none;
  }
  .lightbox-res-badge {
    display: none;
  }
  .lightbox-actions-right {
    gap: 6px;
  }
  .btn-lightbox-download span {
    display: none;
  }
  .btn-lightbox-download {
    padding: 8px 12px;
  }
  .lightbox-center-stage {
    padding: 8px 12px;
  }
  .lightbox-full-img {
    max-width: 95vw;
    max-height: calc(100vh - 200px);
  }
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev-btn {
    left: 8px;
  }
  .lightbox-next-btn {
    right: 8px;
  }
  .lightbox-bottom-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .lightbox-info-left {
    max-width: 100%;
  }
  .lightbox-info-right {
    width: 100%;
    justify-content: space-between;
  }
}


.modal-article-card {
  max-width: 780px;
  width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(14, 18, 28, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.12);
}

.modal-article-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.article-hero-banner {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-hero-banner img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-text-body {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 0.96rem;
}

.article-text-body h3 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.3rem;
  margin: 24px 0 12px 0;
}

.article-text-body h4 {
  font-family: var(--font-display);
  color: #ef4444;
  font-size: 1.05rem;
  margin: 18px 0 8px 0;
}

.article-text-body ul {
  padding-left: 20px;
  margin: 14px 0;
}

.article-text-body li {
  margin-bottom: 8px;
}

.article-text-body blockquote {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #e2e8f0;
}

/* ==========================================================================
   S0-ANIMATION INSPIRED SECTION TRANSITION SYSTEM
   ========================================================================== */
.s0-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  perspective: 1000px;
}

.s0-transition-curtain.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Multi-step Shutter / Curtain Blade */
.s0-curtain-dark-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 24, 38, 0.98) 0%, rgba(7, 8, 12, 0.99) 70%, #030407 100%);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.32s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}

.s0-transition-curtain.active .s0-curtain-dark-layer {
  transform: scaleY(1);
}

.s0-transition-curtain.revealing {
  visibility: visible;
  opacity: 1;
}

.s0-transition-curtain.revealing .s0-curtain-dark-layer {
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Leading Edge Crimson Laser Sweep Bar */
.s0-curtain-laser-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #ef4444 20%, #ffffff 50%, #ef4444 80%, transparent 100%);
  box-shadow: 0 0 25px #ef4444, 0 0 50px #ef4444;
  top: 0;
  transform: translateY(-100%);
  opacity: 0;
  z-index: 10;
  transition: transform 0.32s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.18s ease;
}

.s0-transition-curtain.active .s0-curtain-laser-bar {
  opacity: 1;
  transform: translateY(100vh);
}

.s0-transition-curtain.revealing .s0-curtain-laser-bar {
  opacity: 0;
  transform: translateY(100vh);
}

/* Center Tech Glyph & Ring */
.s0-curtain-tech-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.s0-transition-curtain.active .s0-curtain-tech-center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition-delay: 0.08s;
}

.s0-transition-curtain.revealing .s0-curtain-tech-center {
  transform: translate(-50%, -50%) scale(1.18);
  opacity: 0;
  transition: all 0.2s ease-out;
}

.s0-tech-glyph {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 8px 22px;
  border-radius: 9999px;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.s0-glyph-bracket {
  color: #ef4444;
  font-size: 1.2rem;
  font-weight: 900;
}

.s0-tech-radar-line {
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  animation: s0RadarPulse 0.9s infinite alternate ease-in-out;
}

@keyframes s0RadarPulse {
  0% {
    transform: scaleX(0.5);
    opacity: 0.4;
  }

  100% {
    transform: scaleX(1.4);
    opacity: 1;
    box-shadow: 0 0 14px #ef4444;
  }
}

/* 3D Perspective Section Entrance Animation */
.view-entering-s0 {
  animation: s0SectionUnfold 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes s0SectionUnfold {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(10deg) translateY(24px) scale(0.985);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ==========================================================================
   GUIDES HUB & BUILDS ARCHIVE (Alcateia Guides View)
   ========================================================================== */
.alcateia-guides-view {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 100px 24px 80px;
  background: radial-gradient(circle at 50% 10%, rgba(239, 68, 68, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 60%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    #07090e;
  z-index: 10;
}

body.theme-light .alcateia-guides-view {
  background: radial-gradient(circle at 50% 10%, rgba(239, 68, 68, 0.03) 0%, transparent 60%),
    #f8fafc;
}

.guides-top-bar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.guides-header-meta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.guides-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 9999px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
  white-space: nowrap;
}

.guides-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 23, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 9999px;
  color: #94a3b8;
  width: 320px;
  max-width: 100%;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.guides-search-box:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

body.theme-light .guides-search-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.guides-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
}

body.theme-light .guides-search-input {
  color: #0f172a;
}

/* Subtabs Navigation Bar */
.guides-nav-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(16px);
}

.guides-nav-tabs-bar::-webkit-scrollbar {
  display: none;
}

body.theme-light .guides-nav-tabs-bar {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

.guides-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.guides-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

body.theme-light .guides-nav-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.guides-nav-tab.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
}

/* Filter Control Panel */
.guides-filter-control-panel {
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(16px);
}

body.theme-light .guides-filter-control-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}

.filter-group-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

body.theme-light .filter-group-row-split {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.filter-subgroup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.guide-filter-chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light .guide-filter-chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

.guide-filter-chip.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

body.theme-light .guide-filter-chip.active {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Builds Grid */
.guides-builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* Resonator Build Card */
.guide-build-card {
  background: rgba(14, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

body.theme-light .guide-build-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.guide-build-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-element-color, #ef4444) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.guide-build-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-element-color, rgba(239, 68, 68, 0.5));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.15);
}

body.theme-light .guide-build-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.guide-build-card:hover::before {
  opacity: 1;
}

/* Card Header */
.guide-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guide-char-avatar-box {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--card-element-color, #ef4444);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

.guide-char-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.guide-build-card:hover .guide-char-avatar-img {
  transform: scale(1.08);
}

.guide-char-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.guide-char-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-char-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.theme-light .guide-char-name {
  color: #0f172a;
}

.guide-char-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.guide-char-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-badge-element {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--card-element-color, #ef4444);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.guide-badge-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

body.theme-light .guide-badge-role {
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
}

/* Build Rows Breakdown */
.guide-build-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
}

body.theme-light .guide-build-sections {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.guide-build-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.guide-row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.76rem;
  min-width: 100px;
}

.guide-row-val {
  color: #f1f5f9;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-light .guide-row-val {
  color: #1e293b;
}

.guide-weapon-val {
  color: #38bdf8;
}

.guide-echo-val {
  color: #ec4899;
}

.guide-stats-val {
  color: #fbbf24;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
}

.guide-team-val {
  color: #34d399;
}

/* Card Action Footer */
.guide-card-footer {
  margin-top: auto;
  padding-top: 6px;
}

.btn-open-character-guide {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-open-character-guide:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* Sonata Sets Grid & Cards */
.guide-pane-header {
  margin-bottom: 28px;
}

.guide-pane-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px 0;
}

body.theme-light .guide-pane-header h2 {
  color: #0f172a;
}

.guide-pane-header p {
  color: #94a3b8;
  font-size: 0.92rem;
  margin: 0;
  max-width: 750px;
}

.sonata-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.sonata-set-card {
  background: rgba(14, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  backdrop-filter: blur(16px);
}

body.theme-light .sonata-set-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.sonata-set-card:hover {
  transform: translateY(-5px);
  border-color: var(--sonata-color, #ef4444);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.15);
}

.sonata-set-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sonata-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sonata-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sonata-color, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.sonata-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

body.theme-light .sonata-name {
  color: #0f172a;
}

.sonata-element-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sonata-color, #ef4444);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sonata-color, #ef4444);
  padding: 3px 10px;
  border-radius: 9999px;
}

.sonata-bonus-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
}

body.theme-light .sonata-bonus-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.sonata-bonus-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sonata-piece-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sonata-color, #ef4444);
}

.sonata-piece-desc {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.5;
}

body.theme-light .sonata-piece-desc {
  color: #334155;
}

.sonata-rec-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
}

.sonata-rec-label {
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.74rem;
}

.sonata-rec-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sonata-char-chip {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
}

body.theme-light .sonata-char-chip {
  background: rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

/* Combat Guides Grid */
.combat-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.combat-guide-card {
  background: rgba(14, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

body.theme-light .combat-guide-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.combat-guide-card:hover {
  transform: translateY(-5px);
  border-color: #ef4444;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.15);
}

.combat-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.combat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.combat-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

body.theme-light .combat-card-title {
  color: #0f172a;
}

.combat-tag-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.1em;
}

.combat-card-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

body.theme-light .combat-card-desc {
  color: #475569;
}

.combat-tips-box {
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-light .combat-tips-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.combat-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

body.theme-light .combat-tip-item {
  color: #334155;
}

.combat-tip-bullet {
  color: #ef4444;
  font-weight: 900;
}

/* Farm Calendar Grid */
.farm-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.farm-day-card {
  background: rgba(14, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

body.theme-light .farm-day-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.farm-day-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.farm-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.farm-day-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

body.theme-light .farm-day-title {
  color: #0f172a;
}

.farm-mat-item {
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-light .farm-mat-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.farm-mat-icon {
  font-size: 1.5rem;
}

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

.farm-mat-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: #f1f5f9;
}

body.theme-light .farm-mat-name {
  color: #1e293b;
}

.farm-mat-domain {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ==========================================================================
   USER AUTHENTICATION & PASSPORT SYSTEM (Login, Register, Verification, Reset)
   ========================================================================== */

/* Top User Header Pill & Wrap */
.top-user-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.top-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 4px 14px 4px 5px;
  cursor: pointer;
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  flex-shrink: 0;
}

.top-user-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 59, 92, 0.5);
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.25);
  transform: translateY(-1px);
}

.top-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b5c 0%, #dc2626 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 59, 92, 0.45);
  flex-shrink: 0;
  overflow: hidden;
}

.top-user-avatar svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.top-user-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.top-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.top-user-pill.logged-in {
  background: rgba(255, 59, 92, 0.12);
  border-color: rgba(255, 59, 92, 0.4);
}

body.theme-light .top-user-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-light .top-user-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: #ef4444;
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

body.theme-light .user-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

body.theme-light .user-dropdown-header {
  background: #f1f5f9;
}

.user-dropdown-avatar-badge {
  font-size: 1.2rem;
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-dropdown-username {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .user-dropdown-username {
  color: #0f172a;
}

.user-dropdown-email {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

body.theme-light .user-dropdown-divider {
  background: rgba(0, 0, 0, 0.06);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.theme-light .user-dropdown-item {
  color: #334155;
}

body.theme-light .user-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.user-dropdown-item.item-logout {
  color: #f87171;
}

/* ==========================================================================
   AUTH MODAL CARDS & SCREENS
   ========================================================================== */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-dialog,
.modal-auth-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 59, 92, 0.15);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.open .auth-modal-dialog,
.auth-modal-backdrop.open .modal-auth-card {
  transform: scale(1) translateY(0);
}

body.theme-light .auth-modal-dialog,
body.theme-light .modal-auth-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 30px rgba(255, 59, 92, 0.1);
}

/* Ambient Cyber Glow & Energy Rings Animation */
.auth-ambient-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 59, 92, 0.35) 0%, rgba(255, 59, 92, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: authGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes authGlowPulse {
  0% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.85);
  }

  100% {
    opacity: 0.95;
    transform: translateX(-50%) scale(1.18);
  }
}

.auth-cyber-rings {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 59, 92, 0.15);
  pointer-events: none;
  animation: authRingSpin 24s linear infinite;
}

@keyframes authRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Close Button */
.auth-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.auth-close-btn:hover {
  background: rgba(255, 59, 92, 0.15);
  border-color: rgba(255, 59, 92, 0.4);
  color: #ff3b5c;
  transform: rotate(90deg) scale(1.05);
}

body.theme-light .auth-close-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

/* Tab Switchers */
.auth-tabs-nav {
  position: relative;
  z-index: 2;
  display: flex;
  background: rgba(8, 11, 18, 0.7);
  margin: 24px 24px 0 24px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .auth-tabs-nav {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.06);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 59, 92, 0.45);
}

body.theme-light .auth-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.auth-modal-body {
  padding: 20px 24px 28px 24px;
}

.auth-view-header {
  margin-bottom: 20px;
}

.auth-view-header h3 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

body.theme-light .auth-view-header h3 {
  color: #0f172a;
}

.auth-view-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.auth-view-header.text-center {
  text-align: center;
}

.auth-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.3);
  color: #ff3b5c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
}

/* Forms & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

body.theme-light .auth-input-group label {
  color: #334155;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper svg {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input-wrapper input {
  width: 100%;
  background: rgba(8, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input-wrapper input:focus {
  border-color: #ff3b5c;
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.2);
  background: rgba(14, 18, 28, 0.95);
}

.auth-input-wrapper input:focus+svg,
.auth-input-wrapper:focus-within svg {
  color: #ff3b5c;
}

body.theme-light .auth-input-wrapper input {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.theme-light .auth-input-wrapper input:focus {
  background: #ffffff;
  border-color: #ff3b5c;
}

.auth-input-hint {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}

/* Digit Code Inputs (6 Digits) */
.digit-code-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}

.digit-code-input {
  width: 48px;
  height: 56px;
  background: rgba(8, 11, 18, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff3b5c;
  outline: none;
  transition: all 0.2s ease;
}

.digit-code-input:focus {
  border-color: #ff3b5c;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.35);
  transform: translateY(-2px);
  background: rgba(18, 23, 36, 0.95);
}

body.theme-light .digit-code-input {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.15);
  color: #e11d48;
}

body.theme-light .digit-code-input:focus {
  background: #ffffff;
  border-color: #ff3b5c;
}

/* Submit Button */
.auth-submit-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 59, 92, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.auth-submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  animation: authBtnShimmer 3.5s infinite ease-in-out;
}

@keyframes authBtnShimmer {
  0% {
    left: -60%;
  }

  35%,
  100% {
    left: 140%;
  }
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 59, 92, 0.55);
  filter: brightness(1.06);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Links & Footer Prompts */
.auth-link-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: #ff3b5c;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-link-btn:hover {
  color: #ff6b84;
  text-decoration: underline;
}

.auth-footer-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #94a3b8;
}

body.theme-light .auth-footer-prompt {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.auth-link-bold {
  background: transparent;
  border: none;
  padding: 0;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-link-bold:hover {
  color: #ff3b5c;
  text-decoration: underline;
}

body.theme-light .auth-link-bold {
  color: #0f172a;
}

body.theme-light .auth-link-bold:hover {
  color: #ff3b5c;
}

.auth-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.82rem;
}

.auth-resend-btn {
  background: transparent;
  border: none;
  color: #ff3b5c;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-resend-btn:disabled {
  color: #64748b;
  cursor: not-allowed;
}

.auth-separator {
  color: #475569;
}

/* Error & Success Feedback Banners */
.auth-form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 14px;
  animation: shakeError 0.3s ease;
}

.auth-form-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   ADMIN STORIES & CHAPTERS STUDIO & NARRATIVE READER STYLES
   ========================================================================== */
.admin-fmt-toolbar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

body.theme-light .admin-fmt-toolbar {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

.admin-fmt-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-fmt-btn:hover {
  background: rgba(255, 59, 92, 0.2);
  border-color: #ff3b5c;
  color: #ffffff;
  transform: translateY(-1px);
}

body.theme-light .admin-fmt-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body.theme-light .admin-fmt-btn:hover {
  background: rgba(255, 59, 92, 0.12);
  border-color: #ff3b5c;
  color: #ff3b5c;
}

/* Chapter Selection Pill Button */
.admin-chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-chapter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-chapter-pill.active {
  background: rgba(255, 59, 92, 0.18);
  border-color: #ff3b5c;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.25);
}

body.theme-light .admin-chapter-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

body.theme-light .admin-chapter-pill.active {
  background: rgba(255, 59, 92, 0.12);
  border-color: #ff3b5c;
  color: #ff3b5c;
}

/* Story Narrative Reader Body Typography */
.chapter-reader-body {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #e2e8f0;
  letter-spacing: -0.005em;
}

.chapter-reader-body p {
  margin-bottom: 1.25rem;
}

.chapter-reader-body blockquote {
  border-left: 3px solid #ff3b5c;
  background: rgba(255, 59, 92, 0.06);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
  color: #f1f5f9;
  font-style: italic;
}

.chapter-reader-body h3,
.chapter-reader-body h4 {
  color: #ffffff;
  font-weight: 800;
  margin: 1.6rem 0 0.8rem 0;
  letter-spacing: -0.015em;
}

body.theme-light .chapter-reader-body {
  color: #334155;
}

body.theme-light .chapter-reader-body blockquote {
  background: #fff1f2;
  color: #0f172a;
}

body.theme-light .chapter-reader-body h3,
body.theme-light .chapter-reader-body h4 {
  color: #0f172a;
}

/* Story Narrative Illustrations & Inline Images */
.chapter-reader-body img,
.chapter-story-img img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.85rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  background: rgba(15, 23, 42, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: zoom-in;
}

.chapter-reader-body img:hover,
.chapter-story-img img:hover {
  border-color: rgba(255, 59, 92, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 59, 92, 0.15);
}

.chapter-reader-body figure,
.chapter-story-img {
  margin: 2rem 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter-reader-body figure img,
.chapter-story-img img {
  margin: 0 0 0.65rem 0;
}

.chapter-reader-body figcaption,
.chapter-story-img figcaption {
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  max-width: 90%;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

body.theme-light .chapter-reader-body img,
body.theme-light .chapter-story-img img {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: #f8fafc;
}

body.theme-light .chapter-reader-body figcaption,
body.theme-light .chapter-story-img figcaption {
  color: #64748b;
}

/* Toolbar Image Buttons in Admin */
.admin-fmt-btn-img {
  background: rgba(255, 59, 92, 0.12) !important;
  color: #ff6b8b !important;
  border: 1px solid rgba(255, 59, 92, 0.25) !important;
  font-weight: 700 !important;
}

.admin-fmt-btn-img:hover {
  background: rgba(255, 59, 92, 0.22) !important;
  border-color: rgba(255, 59, 92, 0.45) !important;
  color: #fff !important;
}

/* ==========================================================================
   MODAL READING & CHAPTER STORY READER STYLES
   ========================================================================== */
.modal-box-reading {
  background: rgba(13, 16, 23, 0.97) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 34px !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 59, 92, 0.15) !important;
  transform: scale(0.96);
  transition: transform var(--trans-smooth);
  color: #ffffff !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: relative;
}

.modal-backdrop.open .modal-box-reading {
  transform: scale(1);
}

body.theme-light .modal-box-reading {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12) !important;
}

/* Reader Headers & Badges */
.story-reader-header,
.article-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.story-modal-tag-row,
.article-reader-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-modal-tag,
.article-modal-tag {
  background: linear-gradient(135deg, #ff3b5c 0%, #d91b40 100%);
  color: #ffffff;
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.35);
}

.article-read-time-pill {
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.story-modal-universe {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

body.theme-light .story-modal-universe {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #ff3b5c;
  border-color: #ff3b5c;
  color: #ffffff;
  transform: rotate(90deg);
}

body.theme-light .btn-close-modal {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.story-modal-title,
.article-modal-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.theme-light .story-modal-title,
body.theme-light .article-modal-title {
  color: #0f172a;
}

.story-modal-meta,
.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.article-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #f1f5f9;
}

.article-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.2);
  border: 1px solid #ff3b5c;
  color: #ff3b5c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.meta-dot,
.story-modal-meta .meta-sep {
  color: #475569;
}

body.theme-light .story-modal-meta,
body.theme-light .article-modal-meta {
  color: #64748b;
}

/* Cover Image Hero */
.story-hero-wrap,
.article-hero-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  background: #090b10;
}

/* ==========================================================================
   EDITORIAL ARTICLE & NEWS READER (CLEAN, HUMAN-DESIGNED PUBLICATION)
   ========================================================================== */
.article-reader-container {
  max-width: 760px !important;
  padding: 36px 40px !important;
  background: #0d1117 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85) !important;
}

.article-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.article-reader-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-modal-tag {
  font-family: var(--font-mono), monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff3b5c;
  background: rgba(255, 59, 92, 0.1);
  border: 1px solid rgba(255, 59, 92, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-read-time-pill {
  font-family: var(--font-mono), monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.article-modal-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 26px;
}

.article-author-name {
  font-weight: 600;
  color: #cbd5e1;
}

.meta-dot {
  color: #334155;
}

/* Cover Image */
.article-hero-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #000000;
}

.article-modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(13, 17, 23, 0.6) 100%);
  pointer-events: none;
}

/* Editorial Body Typography */
.article-modal-body {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.75;
}

.article-modal-body .article-lead {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.8;
  color: #f1f5f9;
  margin-bottom: 24px;
}

.article-modal-body h3 {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.article-modal-body h3:first-child {
  margin-top: 0;
}

.article-modal-body h4 {
  font-family: var(--font-sans), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 24px;
  margin-bottom: 10px;
}

.article-modal-body p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 16px 0;
}

.article-modal-body strong,
.article-modal-body b {
  color: #ffffff;
  font-weight: 600;
}

.article-modal-body em,
.article-modal-body i {
  color: #cbd5e1;
  font-style: italic;
}

/* Editorial List Items */
.article-modal-body ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.article-modal-body li {
  position: relative;
  padding-left: 18px;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.7;
}

.article-modal-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #ff3b5c;
  font-weight: 700;
}

.article-modal-body li strong {
  color: #ffffff;
  font-weight: 700;
}

/* Editorial Blockquote */
.article-modal-body blockquote {
  position: relative;
  margin: 28px 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #ff3b5c;
  border-radius: 0 8px 8px 0;
  color: #e2e8f0;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.7;
}

.article-modal-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  color: #ff3b5c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Editorial Inline Figures & Artwork */
.article-inline-figure {
  margin: 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-inline-figure img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.article-inline-figure img:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.008);
}

.article-inline-figure figcaption {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  font-style: italic;
  padding: 0 4px;
}

body.theme-light .article-inline-figure img {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.theme-light .article-inline-figure figcaption {
  color: #64748b;
}

/* Article Reader Footer */
.article-reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.btn-article-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-article-share:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-article-close-bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff3b5c;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-article-close-bottom:hover {
  background: #ff5271;
}

/* Light Theme Overrides */
body.theme-light .article-reader-container {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .article-modal-title {
  color: #0f172a;
}

body.theme-light .article-modal-body {
  color: #475569;
}

body.theme-light .article-modal-body .article-lead {
  color: #0f172a;
}

body.theme-light .article-modal-body h3 {
  color: #0f172a;
}

body.theme-light .article-modal-body p,
body.theme-light .article-modal-body li {
  color: #475569;
}

body.theme-light .article-modal-body strong {
  color: #0f172a;
}

body.theme-light .article-modal-body blockquote {
  background: #f8fafc;
  color: #1e293b;
}

body.theme-light .btn-article-share {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

/* Footer Sequential Navigation */
.story-reader-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}

body.theme-light .story-reader-footer-nav {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.btn-story-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-story-nav-btn:hover:not(:disabled) {
  background: #ff3b5c;
  border-color: #ff3b5c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 92, 0.35);
}

body.theme-light .btn-story-nav-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.theme-light .btn-story-nav-btn:hover:not(:disabled) {
  background: #ff3b5c;
  color: #ffffff;
  border-color: #ff3b5c;
}

.story-footer-tracker {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .story-footer-tracker {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

/* Light theme overrides for article modal */
body.theme-light .article-reader-container {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .article-modal-body p,
body.theme-light .article-modal-body li {
  color: #334155;
}

body.theme-light .article-modal-body li {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.theme-light .article-modal-body li strong {
  color: #0f172a;
}

body.theme-light .article-modal-body h3 {
  color: #0f172a;
}

body.theme-light .article-modal-body blockquote {
  background: #fff1f2;
  border-color: rgba(255, 59, 92, 0.3);
  color: #0f172a;
}

body.theme-light .btn-article-share {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* Mobile Media Queries for Reading Modal & Story Hub */
@media (max-width: 640px) {
  .modal-box-reading {
    padding: 20px 16px !important;
    max-height: 94vh;
    border-radius: 18px !important;
  }

  .story-hero-wrap,
  .article-hero-wrap {
    height: 180px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .story-modal-title,
  .article-modal-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .story-modal-meta,
  .article-modal-meta {
    font-size: 0.76rem;
    gap: 6px;
    margin-bottom: 14px;
  }

  .story-modal-summary-card {
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .story-modal-summary-card p {
    font-size: 0.84rem;
  }

  .chapter-reader-body {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .story-reader-footer-nav {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .btn-story-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }

  .story-footer-tracker {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .story-universe-header-banner {
    padding: 22px 18px;
    min-height: auto;
  }

  .story-universe-banner-title {
    font-size: 1.8rem;
  }

  .admin-fmt-toolbar {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .admin-fmt-toolbar::-webkit-scrollbar {
    display: none;
  }

  .admin-fmt-btn {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   1. SHOWCASE / WALLPAPER TRIGGER BUTTONS
   ========================================================================== */
.marvel-showcase-float-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 20, 32, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.marvel-showcase-float-btn:hover {
  background: rgba(255, 59, 92, 0.22);
  border-color: #ff3b5c;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 59, 92, 0.35);
  transform: translateY(-2px);
}

.marvel-showcase-float-btn svg {
  color: #ff3b5c;
}

@media (max-width: 768px) {
  .marvel-showcase-float-btn {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   2. CINEMATIC SHOWCASE / WALLPAPER KIOSK MODE
   ========================================================================== */
.cinematic-showcase-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999 !important;
  background: #040508;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  overflow: hidden;
  user-select: none;
}

.cinematic-showcase-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

.cinematic-backdrop-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cinematic-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75vw;
  height: 75vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 92, 0.22) 0%, rgba(20, 24, 38, 0.05) 60%, transparent 80%);
  filter: blur(80px);
  transition: background 0.8s ease;
}

.cinematic-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinematic-big-title-wrap {
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.cinematic-big-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 15rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.08em;
  line-height: 0.85;
  margin: 0;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.02);
}

.cinematic-element-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.cinematic-stage-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.cinematic-character-img {
  max-height: 88vh;
  max-width: 88vw;
  object-fit: contain;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.85));
  animation: cinematicBreathingFloat 7s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

@keyframes cinematicBreathingFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

/* Floating Glass HUD Controls */
.cinematic-hud-bottom {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 18px;
  border-radius: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cinematic-hud-bottom.idle-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.cinematic-hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cinematic-hud-btn:hover {
  background: rgba(255, 59, 92, 0.2);
  border-color: #ff3b5c;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.4);
}

.cinematic-hud-btn.btn-cinematic-exit {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ff6b81;
}

.cinematic-hud-btn.btn-cinematic-exit:hover {
  background: #ef4444;
  color: #ffffff;
}

.cinematic-char-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  min-width: 140px;
}

.cinematic-meta-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.cinematic-meta-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #94a3b8;
}

.cinematic-hud-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
}

.cinematic-tip-pill {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.74rem;
  color: #94a3b8;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.cinematic-tip-pill.idle-hidden {
  opacity: 0;
}

/* ==========================================================================
   3. FLOATING MINI OST & AMBIENT PLAYER WIDGET
   ========================================================================== */
.floating-ost-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9980;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
  user-select: none;
}

.ost-player-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 16, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 6px 14px 6px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 59, 92, 0.1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ost-player-pill:hover {
  border-color: rgba(255, 59, 92, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 59, 92, 0.25);
  transform: translateY(-2px);
}

.floating-ost-player.is-playing .ost-player-pill {
  border-color: rgba(255, 59, 92, 0.5);
  background: rgba(15, 20, 32, 0.92);
}

.ost-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ost-action-btn:hover {
  background: #ff3b5c;
  transform: scale(1.08);
}

.ost-action-btn.ost-play-btn {
  background: #ff3b5c;
}

.ost-action-btn.ost-play-btn:hover {
  background: #ff5270;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.5);
}

.ost-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  padding: 0 2px;
}

.ost-eq-bar {
  width: 3px;
  height: 4px;
  background: #ff3b5c;
  border-radius: 2px;
  transition: height 0.12s ease;
}

.floating-ost-player:not(.is-playing) .ost-eq-bar {
  background: #64748b;
  height: 4px !important;
}

.ost-info-col {
  display: flex;
  flex-direction: column;
  max-width: 150px;
}

.ost-badge-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #ff3b5c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ost-track-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ost-action-btn.ost-mute-btn {
  background: transparent;
  color: #94a3b8;
  width: 24px;
  height: 24px;
}

.ost-action-btn.ost-mute-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ost-action-btn.ost-mute-btn.muted {
  color: #ef4444;
}

/* ==========================================================================
   SOLARIS-3 GAME JUKEBOX & AUDIO TERMINAL
   ========================================================================== */
.ost-flyout-panel {
  width: 310px;
  background: linear-gradient(180deg, #111420 0%, #0a0c12 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid #ff3b5c;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.15);
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: ostFlyoutFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.floating-ost-player.expanded .ost-flyout-panel {
  display: flex;
}

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

/* Terminal Header */
.ost-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.ost-terminal-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ost-terminal-icon {
  color: #ff3b5c;
}

.ost-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ost-terminal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ost-terminal-status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  letter-spacing: 0.06em;
}

.ost-terminal-status.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.ost-terminal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ost-terminal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Now Playing Deck (Vinyl + Info + Controls) */
.ost-deck-showcase {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
}

/* Spinning Vinyl Record */
.ost-vinyl-container {
  position: relative;
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ost-vinyl-disc {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2d3d 0%, #151821 50%, #0d0f17 100%);
  border: 2px solid #2d3345;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ost-vinyl-disc.spinning {
  animation: spinVinyl 5s linear infinite;
}

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

.ost-vinyl-grooves {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.ost-vinyl-center {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff3b5c;
  border: 2px solid #111420;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ost-vinyl-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

/* Deck Meta & Controls */
.ost-deck-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ost-deck-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ost-deck-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: #ff3b5c;
  letter-spacing: 0.08em;
}

.ost-deck-name {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

.ost-deck-author {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Integrated Controls */
.ost-deck-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.ost-deck-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ost-deck-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.ost-deck-btn.ost-deck-play-btn {
  background: #ff3b5c;
  border-color: #ff3b5c;
  color: #ffffff;
  width: 28px;
  height: 24px;
}

.ost-deck-btn.ost-deck-play-btn:hover {
  background: #ff5271;
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.5);
}

.ost-deck-btn.muted {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Audio Spectrum Visualizer Bar */
.ost-spectrum-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  overflow: hidden;
}

.ost-spectrum-bar span {
  flex: 1;
  background: #334155;
  height: 2px;
  border-radius: 1px;
  transition: height 0.15s ease, background 0.15s ease;
}

.ost-spectrum-bar.active span {
  background: #ff3b5c;
}

.ost-spectrum-bar.active span:nth-child(2n) {
  animation: spectrumPulse 0.6s ease-in-out infinite alternate;
}
.ost-spectrum-bar.active span:nth-child(3n) {
  animation: spectrumPulse 0.8s ease-in-out infinite 0.2s alternate;
}
.ost-spectrum-bar.active span:nth-child(5n) {
  animation: spectrumPulse 0.5s ease-in-out infinite 0.4s alternate;
}

@keyframes spectrumPulse {
  0% { height: 2px; }
  100% { height: 9px; }
}

/* Playlist Section */
.ost-playlist-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ost-playlist-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.ost-playlist-heading {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.ost-playlist-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
}

/* Tracklist */
.ost-tracklist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 145px;
  overflow-y: auto;
  padding-right: 2px;
}

.ost-tracklist-list::-webkit-scrollbar {
  width: 3px;
}

.ost-tracklist-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.ost-tracklist-list::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 2px;
}

/* Track row */
.ost-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ost-track-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.ost-track-row.active {
  background: rgba(255, 59, 92, 0.08);
  border-color: rgba(255, 59, 92, 0.35);
}

.ost-track-num-box {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ost-track-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
}

.ost-track-row.active .ost-track-index {
  color: #ff3b5c;
}

.ost-track-play-glyph {
  display: none;
  color: #ffffff;
}

.ost-track-row:hover .ost-track-index {
  display: none;
}
.ost-track-row:hover .ost-track-play-glyph {
  display: block;
}

.ost-track-info-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ost-track-name-text {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ost-track-row.active .ost-track-name-text {
  color: #ffffff;
  font-weight: 700;
}

.ost-track-author-text {
  font-size: 0.64rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ost-track-end-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ost-type-pill {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.ost-row-wave {
  display: none;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.ost-row-wave.active {
  display: flex;
}

.ost-row-wave span {
  width: 2px;
  background: #ff3b5c;
  border-radius: 1px;
  height: 2px;
}

.ost-row-wave.active span:nth-child(1) { animation: eqBounce 0.6s ease infinite alternate; }
.ost-row-wave.active span:nth-child(2) { animation: eqBounce 0.4s ease infinite 0.15s alternate; }
.ost-row-wave.active span:nth-child(3) { animation: eqBounce 0.7s ease infinite 0.3s alternate; }

/* Volume Bar */
.ost-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ost-vol-icon {
  color: #64748b;
}

.ost-vol-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.ost-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.ost-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 5px rgba(255, 59, 92, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ost-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.ost-vol-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff3b5c;
  min-width: 26px;
  text-align: right;
}

@media (max-width: 768px) {
  .floating-ost-player {
    bottom: 80px;
    right: 14px;
  }
  .ost-info-col {
    max-width: 110px;
  }
}

/* ==========================================================================
   4. DISCREET LEGAL & KURO GAMES COPYRIGHT FOOTER
   ========================================================================== */
.alcateia-mini-legal-footer {
  width: 100%;
  margin-top: 40px;
  padding: 24px 20px 28px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 5, 8, 0.6);
  text-align: center;
  position: relative;
  z-index: 10;
}

.mini-footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mini-footer-kuro-text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.mini-footer-kuro-text strong {
  color: #38bdf8;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.mini-footer-sub-text {
  margin: 0;
  font-size: 0.70rem;
  color: #64748b;
  line-height: 1.4;
}

/* ==========================================================================
   14. ASSET LIBRARY & MEDIA PICKER MODAL (SOLARIS ASSET REPOSITORY)
   ========================================================================== */
.asset-library-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 5, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: assetModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes assetModalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.asset-library-modal-card {
  width: 100%;
  max-width: 1140px;
  height: 88vh;
  max-height: 860px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 59, 92, 0.08);
  overflow: hidden;
  position: relative;
}

/* Header */
.asset-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #0d121f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.asset-library-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-library-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff3b5c;
  letter-spacing: 0.14em;
}

.asset-library-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.asset-library-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-asset-upload {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 59, 92, 0.15);
  border: 1px solid rgba(255, 59, 92, 0.35);
  color: #ff6b84;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-asset-upload:hover {
  background: #ff3b5c;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.4);
  transform: translateY(-1px);
}

.btn-close-asset-modal {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-close-asset-modal:hover {
  background: rgba(255, 59, 92, 0.2);
  border-color: rgba(255, 59, 92, 0.4);
  color: #ff3b5c;
}

/* Controls */
.asset-library-controls {
  padding: 14px 24px;
  background: #0a0e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-search-wrap {
  position: relative;
  width: 100%;
}

.asset-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.asset-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 38px 10px 38px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--trans-fast);
}

.asset-search-input:focus {
  border-color: #ff3b5c;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.2);
}

.btn-asset-clear-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

.btn-asset-clear-search:hover {
  color: #ff3b5c;
}

.asset-category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.asset-category-pills::-webkit-scrollbar {
  height: 4px;
}

.asset-category-pills::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.asset-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.asset-cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.asset-cat-btn.active {
  background: rgba(255, 59, 92, 0.15);
  border-color: #ff3b5c;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.25);
}

.asset-cat-btn .cat-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.7;
}

/* Content & Grid */
.asset-library-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  background: #070a12;
}

.asset-library-content::-webkit-scrollbar {
  width: 6px;
}

.asset-library-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 14px;
}

.asset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--trans-fast);
  position: relative;
}

.asset-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.asset-card.selected {
  background: rgba(255, 59, 92, 0.16) !important;
  border-color: #ff3b5c !important;
  box-shadow: 0 0 0 2px #ff3b5c, 0 8px 24px rgba(255, 59, 92, 0.45) !important;
  transform: translateY(-2px);
}

.asset-card.selected .asset-thumb-box {
  border-color: #ff3b5c;
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.35) inset, 0 0 10px rgba(255, 59, 92, 0.3);
}

.asset-thumb-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.asset-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform var(--trans-fast);
  image-rendering: -webkit-optimize-contrast;
}

.asset-card:hover .asset-thumb-box img {
  transform: scale(1.08);
}

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

.asset-card-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-card-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.asset-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b5c, #e11d48);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.85), 0 2px 8px rgba(0, 0, 0, 0.7);
  border: 2px solid #ffffff;
  z-index: 25;
  pointer-events: none;
  animation: assetCheckPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes assetCheckPop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.asset-card.selected .asset-card-check {
  display: flex;
}

.asset-empty-state {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.asset-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.asset-empty-state h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
}

.asset-empty-state p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}

/* Footer */
.asset-library-footer {
  padding: 14px 24px;
  background: #0d121f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.asset-selected-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.asset-preview-thumb-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asset-preview-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.asset-preview-placeholder {
  font-size: 0.65rem;
  color: #64748b;
}

.asset-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.asset-preview-filename {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-preview-path {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Button in Admin Fields */
.btn-browse-assets {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.btn-browse-assets:hover {
  background: #38bdf8;
  color: #0b111e;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   UPLOAD DRAWER & CATEGORY SELECTOR MODAL
   ========================================================================== */
.asset-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: assetDrawerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes assetDrawerFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.asset-upload-card {
  width: 100%;
  max-width: 580px;
  background: #0d121f;
  border: 1px solid rgba(255, 59, 92, 0.3);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 59, 92, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.asset-upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.asset-upload-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.asset-dropzone {
  width: 100%;
  height: 180px;
  border: 2px dashed rgba(255, 59, 92, 0.4);
  border-radius: 12px;
  background: rgba(255, 59, 92, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.asset-dropzone:hover, .asset-dropzone.dragover {
  border-color: #ff3b5c;
  background: rgba(255, 59, 92, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 59, 92, 0.15);
}

.asset-dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  pointer-events: none;
}

.asset-dropzone-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-dropzone-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.btn-dropzone-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.9);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-dropzone-remove:hover {
  background: #ff1f44;
  transform: scale(1.1);
}

.asset-upload-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-asset-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-fast);
}

.btn-asset-delete:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.asset-card-delete-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: all var(--trans-fast);
  z-index: 5;
}

.asset-card:hover .asset-card-delete-btn {
  opacity: 1;
}

.asset-card-delete-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: scale(1.15);
}

/* ==========================================================================
   BATCH SELECTION & MULTI-UPLOAD STYLES
   ========================================================================== */
.asset-controls-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-asset-batch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-asset-batch-toggle:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.btn-asset-batch-toggle.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

/* Batch Selection Toolbar */
.asset-batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(13, 22, 38, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.12);
  animation: assetDrawerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: wrap;
}

.asset-batch-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-batch-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.btn-batch-sub {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-batch-sub:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.asset-batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Checkbox on Cards - Only visible when Batch Mode is active */
.asset-card-batch-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-size: 0.8rem;
  font-weight: 800;
  color: transparent;
  transition: all var(--trans-fast);
}

.asset-library-modal-overlay.batch-mode-active .asset-card-batch-checkbox,
.batch-mode-active .asset-card-batch-checkbox {
  display: flex;
}

/* When both batch mode and single selection are active, place single checkmark on top left */
.asset-library-modal-overlay.batch-mode-active .asset-card.selected .asset-card-check,
.batch-mode-active .asset-card.selected .asset-card-check {
  right: auto;
  left: 8px;
}

.asset-card.batch-selected .asset-card-batch-checkbox,
.asset-card-batch-checkbox.checked {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #090d16;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.asset-card.batch-selected {
  border-color: rgba(0, 240, 255, 0.7) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) !important;
  background: rgba(0, 240, 255, 0.06) !important;
}

#btnConfirmAssetPick:not(:disabled) {
  background: linear-gradient(135deg, #ff3b5c, #e11d48) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 59, 92, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  border-color: #ff3b5c !important;
  animation: confirmPulse 2s infinite alternate;
  cursor: pointer !important;
}

@keyframes confirmPulse {
  0% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 59, 92, 0.4); }
  100% { transform: scale(1.03); box-shadow: 0 0 24px rgba(255, 59, 92, 0.85); }
}

/* Multi-dropzone info badge */
.asset-dropzone-multi-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(255, 59, 92, 0.15);
  border: 1px solid rgba(255, 59, 92, 0.4);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  gap: 4px;
}

/* Progress bar for multi-upload */
.asset-upload-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
}

.asset-upload-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.asset-upload-progress-info #assetUploadProgressPct {
  color: #00f0ff;
  font-family: var(--font-mono);
}

.asset-upload-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.asset-upload-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3b5c, #00f0ff);
  border-radius: 999px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}