/* ==========================================================================
   KIYZX.WEB.ID — NEO-BRUTALISM PASTEL & COSMIC DARK THEME (style.css)
   ========================================================================== */

:root {
  --bg-main: #f3efff;
  --bg-gradient: linear-gradient(160deg, #efe7ff 0%, #e7faf1 52%, #f6efff 100%);
  --card-bg: #ffffff;
  --subcard-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --welcome-accent: #7c3aed;
  --border-color: #111827;
  --shadow-hard: 4px 4px 0px #111827;
  --shadow-hard-sm: 3px 3px 0px #111827;
  --pill-blue: #bae6fd;
  --brand-lime: #d9f99d;
  --song-default: #bae6fd;
  --song-active: #bef264;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-active-bg: #e0e7ff;
  --saturn-opacity: 0;
  --light-deco-opacity: 1;
}

[data-theme="dark"] {
  --bg-main: #0b1124;
  --bg-gradient: radial-gradient(circle at 82% 14%, #203166 0%, #0d152e 48%, #070b18 100%);
  --card-bg: rgba(23, 34, 68, 0.85);
  --subcard-bg: rgba(16, 24, 50, 0.92);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --welcome-accent: #a78bfa;
  --border-color: rgba(165, 180, 252, 0.45);
  --shadow-hard: 0 10px 26px rgba(0, 0, 0, 0.45);
  --shadow-hard-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --pill-blue: #bae6fd;
  --brand-lime: #d9f99d;
  --song-default: rgba(30, 45, 88, 0.95);
  --song-active: #bef264;
  --nav-bg: rgba(18, 27, 56, 0.88);
  --nav-active-bg: rgba(99, 102, 241, 0.36);
  --saturn-opacity: 0.94;
  --light-deco-opacity: 0.15;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.3s ease;
}

.hidden {
  display: none !important;
}

/* ================= 1. INTRO / CONNECT LOADING SCREEN ================= */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #03050a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px 62px;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.65s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.loading-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%) contrast(1.18) brightness(0.78);
  animation: connectCinematic 8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes connectCinematic {
  0% { transform: scale(1.12); filter: grayscale(100%) contrast(1.25) brightness(0.55); }
  100% { transform: scale(1.0); filter: grayscale(100%) contrast(1.15) brightness(0.8); }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.65) 75%),
    linear-gradient(to top, rgba(0, 0, 0, 0.97) 15%, rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0.6) 100%);
}

.shooting-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.shooting-stars span {
  position: absolute;
  width: 110px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), transparent);
  transform: rotate(-35deg);
  opacity: 0;
  animation: shoot 2.8s infinite ease-in;
}

.shooting-stars span:nth-child(1) { top: 12%; right: 8%; animation-delay: 0.1s; }
.shooting-stars span:nth-child(2) { top: 26%; right: 25%; animation-delay: 1.1s; }
.shooting-stars span:nth-child(3) { top: 16%; left: 20%; animation-delay: 1.9s; }
.shooting-stars span:nth-child(4) { top: 34%; left: 10%; animation-delay: 2.4s; }

@keyframes shoot {
  0% { opacity: 0; transform: translate(45px, -45px) rotate(-35deg); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-200px, 200px) rotate(-35deg); }
}

.loading-top-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.net-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 1.2s infinite;
}

.loading-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.loading-crest {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
  animation: crestFloat 3s ease-in-out infinite alternate;
}

.loading-crest img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

@keyframes crestFloat {
  from { transform: translateY(0px); }
  to { transform: translateY(-5px); }
}

.loading-domain {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.72), 0 2px 10px rgba(0, 0, 0, 0.9);
  margin-bottom: 18px;
  filter: blur(6px);
  transition: filter 0.25s ease, letter-spacing 0.35s ease;
}

.loading-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.loading-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.loading-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #94a3b8 0%, #ffffff 65%, #e0f2fe 100%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  transition: width 0.18s ease-out;
}

.loading-percent {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 40px;
  text-align: right;
}

.loading-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

/* ================= 2. BACKGROUND DECORATIONS ================= */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco-stripes {
  position: absolute;
  top: 126px;
  left: 20px;
  width: 112px;
  height: 14px;
  opacity: var(--light-deco-opacity);
  background: repeating-linear-gradient(
    -55deg,
    #86efac,
    #86efac 4px,
    transparent 4px,
    transparent 11px
  );
  border-radius: 4px;
}

.deco-outline-circle {
  position: absolute;
  top: 132px;
  right: -28px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 2px solid rgba(156, 163, 175, 0.45);
  opacity: var(--light-deco-opacity);
}

.saturn-planet {
  position: absolute;
  top: 86px;
  right: -34px;
  width: 195px;
  height: 195px;
  opacity: var(--saturn-opacity);
  transition: opacity 0.4s ease;
  animation: floatPlanet 7s ease-in-out infinite alternate;
}

@keyframes floatPlanet {
  from { transform: translateY(0px) rotate(0deg); }
  to { transform: translateY(-10px) rotate(3deg); }
}

.planet-body {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d5a5 0%, #c89d6c 55%, #69503c 100%);
  position: absolute;
  top: 38px;
  left: 38px;
  box-shadow: inset -14px -14px 25px rgba(0, 0, 0, 0.45);
}

.planet-ring {
  position: absolute;
  top: 78px;
  left: -10px;
  width: 214px;
  height: 44px;
  border: 11px solid rgba(226, 203, 168, 0.56);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.sparkle {
  position: absolute;
  color: #a5b4fc;
  font-weight: 800;
  animation: twinkle 2.8s infinite alternate ease-in-out;
}

.sp-1 { top: 245px; left: 32px; font-size: 1.25rem; }
.sp-2 { top: 380px; right: 24px; font-size: 1.35rem; color: #c4b5fd; animation-delay: 0.7s; }
.sp-3 { top: 615px; left: 30px; font-size: 1.15rem; color: #6ee7b7; animation-delay: 1.3s; }
.sp-4 { bottom: 132px; left: 46%; font-size: 1.2rem; animation-delay: 1.8s; }

@keyframes twinkle {
  from { opacity: 0.3; transform: scale(0.85) rotate(0deg); }
  to { opacity: 0.95; transform: scale(1.2) rotate(15deg); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* ================= 3. APP CONTAINER & TOP HEADER ================= */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px calc(108px + env(safe-area-inset-bottom));
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-lime);
  color: #111827;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 6px 14px 6px 8px;
  border-radius: 13px;
  border: 2px solid #111827;
  box-shadow: var(--shadow-hard-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.brand-badge:active {
  transform: translate(2px, 2px);
}

.brand-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #111827;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-pill-btn {
  background: #fef08a;
  color: #111827;
  border: 2px solid #111827;
  box-shadow: var(--shadow-hard-sm);
  border-radius: 999px;
  height: 38px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.14s ease;
}

.lang-pill-btn:active {
  transform: scale(0.95);
}

.action-pill-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 999px;
  padding: 4px 6px;
  backdrop-filter: blur(10px);
}

.cluster-circle-btn {
  height: 32px;
  border-radius: 999px;
  border: 1.8px solid #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  position: relative;
  transition: transform 0.14s ease;
}

.cluster-circle-btn:active {
  transform: scale(0.93);
}

.music-circle {
  background: #bbf7d0;
  padding: 0 9px;
}

.theme-circle {
  background: #bae6fd;
  width: 32px;
}

.disc-spin-wrap.playing i {
  animation: spinDisc 2.2s linear infinite;
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

/* ================= 4. FLOATING AUDIO DROPDOWN ================= */
.music-dropdown {
  position: relative;
  z-index: 40;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
  animation: slideDownFade 0.22s ease;
}

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

.music-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--subcard-bg);
  border: 2px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
}

.music-search-box input {
  border: none;
  background: transparent;
  color: var(--text-main);
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
}

.music-filter-row {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.music-chip {
  background: var(--subcard-bg);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.music-chip.active {
  background: #bef264;
  color: #111827;
  border-color: #111827;
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  background: #fef9c3;
  color: #111827;
  border: 2px solid #111827;
  border-radius: 14px;
}

.mini-player img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  border: 1.5px solid #111827;
}

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

.player-title {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.7rem;
  color: #374151;
}

#player-seek {
  width: 100%;
  height: 4px;
  accent-color: #111827;
}

.player-ctrl-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #111827;
  background: #bef264;
  color: #111827;
  cursor: pointer;
  flex-shrink: 0;
}

.song-list {
  max-height: 295px;
  overflow-y: auto;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--song-default);
  color: var(--text-main);
  border: 2px solid #111827;
  border-radius: 12px;
  padding: 8px 11px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.song-item:active {
  transform: scale(0.98);
}

.song-item.active-song {
  background: var(--song-active);
  color: #111827;
  border-color: #111827;
}

.song-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.song-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #111827;
  font-size: 0.8rem;
}

.song-name {
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-right-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

.song-loading {
  text-align: center;
  font-size: 0.82rem;
  padding: 16px;
  color: var(--text-muted);
}

/* ================= 5. DYNAMIC EXPANDING WELCOME BOX & TOOLS CTA ================= */
.welcome-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 112px;
  margin-bottom: 16px;
}

.welcome-dynamic-box {
  display: inline-block;
  background: var(--card-bg);
  border: 2.2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  border-radius: 18px;
  padding: 16px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.18s ease;
  min-width: 56px;
  max-width: 100%;
}

.welcome-line-1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--welcome-accent);
  min-height: 1.2em;
}

.welcome-line-2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.58rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-main);
  min-height: 1.22em;
}

.cursor {
  display: inline-block;
  color: var(--welcome-accent);
  font-weight: 400;
  animation: blink 0.85s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

#quick-tools-btn {
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] #quick-tools-btn {
  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.35);
}

/* ================= 6. NEO-BRUTALIST CARDS & SECTION PILLS ================= */
.neo-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
}

.neo-subcard {
  background: var(--subcard-bg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 14px;
  padding: 12px 14px;
}

.section-pill-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

.section-pill {
  background: var(--pill-blue);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px solid #111827;
  box-shadow: var(--shadow-hard-sm);
}

/* ================= 7. INFORMATION GRID ================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.full-span {
  grid-column: span 2;
}

.info-box {
  padding: 14px;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.mono-val {
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.03em;
}

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

.eye-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.95rem;
}

/* ================= 8. LATEST NEWS (MULTI-SOURCE CAROUSEL) ================= */
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.news-header h3 {
  font-size: 1.08rem;
  font-weight: 800;
}

.news-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-count-badge {
  font-size: 0.66rem;
  font-weight: 800;
  background: #fef08a;
  color: #111827;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid #111827;
  white-space: nowrap;
}

.news-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #111827;
  background: var(--brand-lime);
  color: #111827;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease;
}

.news-arrow-btn:active {
  transform: scale(0.92);
}

.news-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 2px 6px;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

.news-slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 15px;
  border: 2px solid #111827;
  box-shadow: 3px 3px 0px #111827;
  color: #111827;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.news-slide:active {
  transform: scale(0.98);
}

.news-slide.pastel-0 { background: #fde047; }
.news-slide.pastel-1 { background: #bbf7d0; }
.news-slide.pastel-2 { background: #fbcfe8; }
.news-slide.pastel-3 { background: #ddd6fe; }
.news-slide.pastel-4 { background: #bae6fd; }

.news-slide img {
  width: 96px;
  height: 98px;
  border-radius: 11px;
  object-fit: cover;
  border: 1.5px solid #111827;
  flex-shrink: 0;
  background: #111827;
}

.news-slide-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex: 1;
}

.news-source-tag {
  display: inline-block;
  width: fit-content;
  background: #111827;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.news-slide-title {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slide-date {
  font-size: 0.66rem;
  font-weight: 700;
  color: #374151;
  margin-top: 6px;
  text-align: right;
}

.news-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-dot.active {
  width: 18px;
  border-radius: 99px;
  background: var(--text-main);
}

/* ================= 9. SOCIAL MEDIA & REALTIME MEMBERS / ONLINE ================= */
.creator-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.creator-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: #111827;
  flex-shrink: 0;
}

.creator-name {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.verified-badge {
  color: #3b82f6;
  font-size: 0.95rem;
}

.creator-quote {
  font-size: 0.78rem;
  font-weight: 700;
  background: #fef9c3;
  color: #713f12;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid #111827;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  text-align: center;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.stat-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  font-weight: 800;
}

.online-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseDot 1.6s infinite;
}

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.15s ease;
}

.social-link-item:active {
  transform: translate(2px, 2px);
}

.social-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: #ffffff;
  color: #111827;
}

.yt-ic { color: #ef4444; }
.wa-ic { color: #16a34a; }

.social-platform {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
}

.social-handle {
  font-size: 0.9rem;
  font-weight: 800;
}

.app-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-plus {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #93c5fd;
}

/* ================= 10. NEWS MODAL & TOAST ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.news-detail-box {
  max-width: 430px;
  width: 100%;
}

.news-detail-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1.5px solid var(--border-color);
  background: #111827;
}

.news-detail-box .news-slide-date {
  color: var(--text-muted);
  text-align: left;
  display: block;
}

.news-detail-box h3 {
  font-size: 1.05rem;
  margin: 6px 0 8px;
  line-height: 1.35;
}

.news-detail-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-news-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pill-btn {
  background: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toast-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: #111827;
  color: #ffffff;
  border: 2px solid #bef264;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 11. BOTTOM FLOATING GLASS NAVIGATION ================= */
.bottom-nav {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 28px);
  max-width: 452px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  border-radius: 22px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-around;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 1.05rem;
}

.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--text-main);
}

/* ================= 12. TOOLS / SEARCH FEATURES PAGE (tools.html) ================= */
.tools-hero-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 18px;
}

.tools-title-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
  color: #111827;
  border: 2.2px solid #111827;
  box-shadow: 4px 4px 0px #111827;
  border-radius: 18px;
  padding: 12px 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .tools-title-banner {
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.3);
}

.tools-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #111827;
  color: #e9d5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.tools-search-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card-bg);
  border: 2.2px solid var(--border-color);
  box-shadow: var(--shadow-hard);
  border-radius: 16px;
  padding: 13px 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tools-search-card:focus-within {
  transform: translate(-1px, -1px);
}

.tools-search-card i.search-lead {
  font-size: 1rem;
  color: var(--text-muted);
}

.tools-search-card input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}

.tools-search-card input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.tools-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
}

.tools-count-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tools-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fef08a;
  color: #111827;
  border: 1.8px solid #111827;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.tools-cat-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.tools-cat-scroll::-webkit-scrollbar {
  display: none;
}

.tools-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 14px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.2s ease;
}

.tools-cat-pill:active {
  transform: translate(2px, 2px);
}

.tools-cat-pill.active {
  background: #fef08a;
  color: #111827;
  border-color: #111827;
}

.cat-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

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

.mecha-tool-card {
  position: relative;
  background: linear-gradient(135deg, #67e8f9 0%, #7dd3fc 55%, #a5f3fc 100%);
  color: #111827;
  border: 2.2px solid #111827;
  box-shadow: 4px 4px 0px #111827;
  border-radius: 18px;
  padding: 18px 16px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease;
}

[data-theme="dark"] .mecha-tool-card {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22) 0%, rgba(56, 189, 248, 0.18) 100%);
  color: #f8fafc;
  border-color: rgba(103, 232, 249, 0.6);
}

.mecha-tool-card:active {
  transform: translate(2px, 2px);
}

.mecha-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  opacity: 0.55;
}

.mecha-notch {
  width: 34px;
  height: 5px;
  border-radius: 99px;
  background: currentColor;
}

.mecha-dash {
  flex: 1;
  height: 1.5px;
  margin: 0 10px;
  background: repeating-linear-gradient(
    90deg,
    currentColor,
    currentColor 5px,
    transparent 5px,
    transparent 9px
  );
}

.mecha-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mecha-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.mecha-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: #ffffff;
  border: 2px solid #111827;
  box-shadow: 2px 2px 0px #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.mecha-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mecha-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mecha-hot-badge {
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #111827;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.mecha-desc {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.35;
}

.mecha-reticle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.mecha-bottom-bar {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.mecha-bottom-pill {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.45;
}

.tools-empty-state {
  text-align: center;
  padding: 32px 20px;
}

.tools-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #fef08a;
  color: #111827;
  border: 2px solid #111827;
  box-shadow: 3px 3px 0px #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.tools-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tools-empty-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}
