/* ========== CSS RESET & VARIABLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  /* === EXISTING COLOR === */
  --bg-primary: #00100B;
  --bg-secondary: #1A1B41;
  --accent-teal: #037171;
  --accent-blue: #8EA4D2;
  --highlight: #41EAD4;
  --text-primary: #41EAD4;
  --text-secondary: #62b6cb;
  --border-glow: rgba(65, 234, 212, 0.3);
  --purple: #9b5de5;
  --purple-shadow: #2f184b;
  --purple-highlight: #ead9ff;
  --pink: #f15bb5;

  /* === EXPANDED TEAL FAMILY === */
  --teal-primary: #00f5d4;
  --teal-shadow: #004d42;
  --teal-highlight: #80fae9;
  --teal-dark: #00332b;
  --teal-light: #b3fcf1;

  /* === EXPANDED BLUE FAMILY === */
  --blue-primary: #00bbf9;
  --blue-shadow: #003d52;
  --blue-highlight: #66d4ff;
  --blue-dark: #002633;
  --blue-light: #b3e9ff;

  /* === EXPANDED ACCENT-TEAL FAMILY === */
  --accent-teal-shadow: #01403f;
  --accent-teal-highlight: #4da8a8;
  --accent-teal-dark: #012020;
  --accent-teal-light: #a6d4d4;

  /* === EXPANDED ACCENT-BLUE FAMILY === */
  --accent-blue-shadow: #5a7099;
  --accent-blue-highlight: #b8c8e5;
  --accent-blue-dark: #3d4d66;
  --accent-blue-light: #d4ddf0;

  /* === EXPANDED PURPLE FAMILY === */
  --purple-dark: #1a0f29;
  --purple-light: #d9c7f5;
  --purple-bright: #c084f5;

  /* === EXPANDED PINK FAMILY === */
  --pink-shadow: #8a1c5c;
  --pink-highlight: #f99dd1;
  --pink-dark: #4a0e30;
  --pink-light: #fce6f3;

  /* === EXPANDED TEXT SECONDARY FAMILY === */
  --text-secondary-shadow: #2d5461;
  --text-secondary-highlight: #95d3e2;
  --text-secondary-dark: #1a3238;
  --text-secondary-light: #e1f4f8;

  /* === NEW COMPLEMENTARY COLORS === */
  
  /* Orange Family */
  --orange-primary: #ff6b35;
  --orange-shadow: #cc3300;
  --orange-highlight: #ff9966;
  --orange-dark: #802200;
  --orange-light: #ffccb3;

  /* Green Family */
  --green-primary: #06d6a0;
  --green-shadow: #048060;
  --green-highlight: #4de6bb;
  --green-dark: #024030;
  --green-light: #b3f5e6;

  /* Yellow Family */
  --yellow-primary: #ffd23f;
  --yellow-shadow: #cc9900;
  --yellow-highlight: #ffe066;
  --yellow-dark: #664d00;
  --yellow-light: #fff2b3;

  /* Red Family */
  --red-primary: #ee4266;
  --red-shadow: #cc1a3d;
  --red-highlight: #f57a94;
  --red-dark: #660d1f;
  --red-light: #fbb3c7;

  /* === NEUTRAL GRAYS === */
  --gray-darkest: #0d1117;
  --gray-darker: #21262d;
  --gray-dark: #30363d;
  --gray-medium: #484f58;
  --gray-light: #656d76;
  --gray-lighter: #8b949e;
  --gray-lightest: #f0f6fc;

  /* === BACKGROUND VARIANTS === */
  --bg-tertiary: #0f1419;
  --bg-quaternary: #161b22;
  --bg-surface: #21262d;
  --bg-elevated: #30363d;

  /* === UTILITY COLORS === */
  --success: #238636;
  --success-shadow: #0d2818;
  --success-highlight: #4fb566;
  
  --warning: #d29922;
  --warning-shadow: #7c5c15;
  --warning-highlight: #e8c547;
  
  --error: #da3633;
  --error-shadow: #a21e1c;
  --error-highlight: #e85d5a;
  
  --info: #316dca;
  --info-shadow: #1e4280;
  --info-highlight: #5d8bd9;

  /* === ALPHA VARIANTS === */
  --teal-alpha-10: rgba(0, 245, 212, 0.1);
  --teal-alpha-20: rgba(0, 245, 212, 0.2);
  --teal-alpha-30: rgba(0, 245, 212, 0.3);
  --teal-alpha-50: rgba(0, 245, 212, 0.5);
  
  --blue-alpha-10: rgba(0, 187, 249, 0.1);
  --blue-alpha-20: rgba(0, 187, 249, 0.2);
  --blue-alpha-30: rgba(0, 187, 249, 0.3);
  --blue-alpha-50: rgba(0, 187, 249, 0.5);
  
  --purple-alpha-10: rgba(155, 93, 229, 0.1);
  --purple-alpha-20: rgba(155, 93, 229, 0.2);
  --purple-alpha-30: rgba(155, 93, 229, 0.3);
  --purple-alpha-50: rgba(155, 93, 229, 0.5);
  
  --pink-alpha-10: rgba(241, 91, 181, 0.1);
  --pink-alpha-20: rgba(241, 91, 181, 0.2);
  --pink-alpha-30: rgba(241, 91, 181, 0.3);
  --pink-alpha-50: rgba(241, 91, 181, 0.5);
}

/* ========== BASE STYLES ========== */
body {
  font-family: "Underdog", system-ui, sans-serif;
  background-image: url("../images/tiles/bck-bluewave.jpg");
  background-repeat: repeat;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
}


/* ========== LAYOUT SYSTEM ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background-image: url("../images/tiles/chess.gif");
  background-repeat: repeat;
  border-bottom: 2px solid var(--accent-teal);
  padding: 1rem 0;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--border-glow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: "Rock Salt", cursive;
  color: var(--highlight);
  font-size: 1.2rem;
  text-shadow: 0 0 8px var(--highlight);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--accent-blue);
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--accent-teal);
  background: rgba(0, 0, 0, 0.836);
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--highlight);
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--highlight);
  transform: translateY(-2px);
}

/* ========== MAIN CONTENT ========== */
.main {
  padding: 2rem 0 1rem 0; 
  background: 
    radial-gradient(circle at 20% 80%, rgba(3, 113, 113, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(65, 234, 212, 0.05) 0%, transparent 50%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem; 
}

.grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* ========== TEXT OVERLAY CONTAINER ========== */
.text-overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  margin: 0.5rem 0;
  backdrop-filter: blur(2px);
}

.text-overlay-light {
  background: rgba(0, 16, 11, 0.8);
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(65, 234, 212, 0.2);
}

.text-overlay-compact {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  margin: 0.25rem 0;
  display: inline-block;
}

/* ========== STICKERS ========== */

/* Corner Sticker Styles */
.container-with-stickers {
  position: relative;
}

.corner-sticker {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

/* Position variations */
.corner-sticker.top-left {
  top: 5px;
  left: 5px;
  transform: scaleX(-1);
}

.corner-sticker.top-right {
  top: 5px;
  right: 5px;
}

.corner-sticker.bottom-left {
  bottom: 5px;
  left: 5px;
}

.corner-sticker.bottom-right {
  bottom: 5px;
  right: 5px;
    transform: scaleX(-1);
}

/* Dorito sticker size */
.corner-sticker.dorito img {
  width: 50px;
  height: auto;
}

.corner-sticker.dorito-large img {
  width: 100px;
  height: auto;
}

.corner-sticker.dorito-medium img {
  width: 75px;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .corner-sticker.dorito-medium img, .corner-sticker.dorito-large img {
    width: 50px;
    height: auto;
  }
}

/* ========== MUSIC PLAYER ================ */

#niuplayer {
    border: solid 5px black;
    padding: 1em;
    border-radius:20px;
    background-color: #c2c2c2;
}
#niuplayer button {
    background-color: #fff;
    border: solid 5px black;
    padding: 0.5em;
    border-radius:20px;
}

/* ========== BACKGROUND PATTERNS ========== */
.pattern-dots {
  background-image: radial-gradient(circle, var(--accent-teal) 2px, transparent 2px);
  background-size: 20px 20px;
  background-repeat: repeat;
}

.pattern-grid {
  background-image: 
    linear-gradient(var(--accent-teal) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-teal) 1px, transparent 1px);
  background-size: 20px 20px;
  background-repeat: repeat;
}

.pattern-diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--accent-teal) 10px,
    var(--accent-teal) 12px
  );
}

.pattern-circuit {
  background-image: 
    linear-gradient(90deg, var(--accent-teal) 1px, transparent 1px),
    linear-gradient(var(--accent-teal) 1px, transparent 1px),
    radial-gradient(circle at 10px 10px, var(--highlight) 2px, transparent 2px);
  background-size: 20px 20px, 20px 20px, 20px 20px;
}

.pattern-pixel {
  background-image: 
    linear-gradient(45deg, transparent 25%, var(--accent-teal) 25%, var(--accent-teal) 50%, transparent 50%),
    linear-gradient(-45deg, transparent 25%, var(--accent-blue) 25%, var(--accent-blue) 50%, transparent 50%);
  background-size: 8px 8px, 8px 8px;
  background-position: 0 0, 4px 4px;
}

.pattern-matrix {
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(65, 234, 212, 0.1) 2px,
      rgba(65, 234, 212, 0.1) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(65, 234, 212, 0.05) 2px,
      rgba(65, 234, 212, 0.05) 4px
    );
}

.pattern-stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--highlight), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--text-secondary), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent-blue), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--highlight), transparent);
  background-size: 150px 100px;
  background-repeat: repeat;
}

/* ========== PATTERN OVERLAYS ========== */
.overlay-subtle-dots {
  position: relative;
}

.overlay-subtle-dots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(65, 234, 212, 0.1) 1px, transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
  z-index: 1;
}

.overlay-grid {
  position: relative;
}

.overlay-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(65, 234, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 234, 212, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

/* ========== CARD SYSTEM ========== */
.card {
  background: var(--bg-secondary);
  border: 2px solid var(--accent-teal);
  border-radius: 2px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(65, 234, 212, 0.05) 0%, 
    rgba(3, 113, 113, 0.1) 50%, 
    rgba(65, 234, 212, 0.05) 100%);
  z-index: -1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--border-glow);
}

.card h2 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.card h3 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ========== SPECIAL CARDS ========== */
.welcome-card {
  text-align: center;
  grid-column: 1 / -1;
  background-image:
    linear-gradient(to bottom right, rgba(85, 87, 211, 0.4), rgba(147, 112, 219, 0.4)),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    url('../images/tiles/skulls_neon.gif');
  background-size: auto;
  background-repeat: repeat;
  background-position: center;
  border: 2px solid rgb(119, 85, 211);
  animation: glowPurple 2s ease-in-out infinite alternate;
  z-index: 1;
}

.welcome-card h1 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--highlight);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--highlight);
}

.status-card {
  background-image:
    linear-gradient(to bottom right, rgba(0, 240, 255, 0.4), rgba(170, 0, 255, 0.4)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(155, 93, 229, 0.1) 10px, rgba(155, 93, 229, 0.1) 12px),
    url('../images/containers/fonv_01_the_strip.gif');
  background-size: cover, auto, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center;
  border: 2px solid #9b5de5;
  animation: glowPurple 2s ease-in-out infinite alternate;
}

.featured-card {
  background-image:
    linear-gradient(to bottom right, rgba(76, 255, 72, 0.3), rgba(0, 128, 0, 0.3)),
    radial-gradient(circle, rgba(0, 255, 0, 0.1) 1px, transparent 1px),
    url('../images/containers/rct_2_01.gif');
  background-size: cover, 15px 15px, cover;
  background-repeat: no-repeat, repeat, repeat;
  border: 2px solid green;
  animation: glowGreen 2s ease-in-out infinite alternate;
  align-items: center;
  text-align: center;
}

.marquee-card {
  background-image:
    linear-gradient(to bottom right, rgba(72, 197, 255, 0.3), rgba(34, 83, 139, 0.3)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(72, 197, 255, 0.1) 2px,
      rgba(72, 197, 255, 0.1) 4px
    ),
    url('../images/containers/minecraft_rain_01.gif');
  background-size: cover, auto, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center;
  border: 2px solid rgb(36, 157, 255);
  animation: glowBlue 2s ease-in-out infinite alternate;
}

.about-card {
  background-image:
    linear-gradient(to bottom right, rgba(72, 197, 255, 0.3), rgba(34, 83, 139, 0.3)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(72, 197, 255, 0.1) 2px,
      rgba(72, 197, 255, 0.1) 4px
    ),
    url('../images/containers/Container_Swamp.gif');
  background-size: cover, auto, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: top;
  border: 2px solid rgb(36, 157, 255);
  animation: glowBlue 2s ease-in-out infinite alternate;
  text-align: center;
}

.twitch-card {
  background-image:
    linear-gradient(to bottom right, rgba(72, 197, 255, 0.3), rgba(34, 83, 139, 0.3)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(72, 197, 255, 0.1) 2px,
      rgba(72, 197, 255, 0.1) 4px
    ),
    url('../images/containers/Container_Night_02.webp');
  background-size: cover, auto, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: top;
  border: 2px solid rgb(36, 157, 255);
  animation: glowBlue 2s ease-in-out infinite alternate;
  text-align: center;
}

.show-log-header-card {
  border: 2px solid var(--purple);
  text-align: center;
  grid-column: 1 / -1;
  background-image:
    linear-gradient(to bottom right, rgba(85, 87, 211, 0.3), rgba(147, 112, 219, 0.3)),
    radial-gradient(2px 2px at 20px 30px, rgba(155, 93, 229, 0.2), transparent),
    url('../images/containers/City_02.webp');
  background-size: cover, 50px 50px, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center-left;
}

.show-log-header-card h1 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--purple);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--purple-shadow);
}

.show-log-header-card p {
  color: var(--purple-highlight);
  text-shadow: 0 0 10px var(--purple-shadow);
}

.show-log-header-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--purple);
}

.graphix-header-card {
  border: 2px solid var(--highlight);
  text-align: center;
  grid-column: 1 / -1;
  background-image:
    linear-gradient(to bottom right, rgba(85, 87, 211, 0.3), rgba(147, 112, 219, 0.3)),
    radial-gradient(2px 2px at 20px 30px, rgba(155, 93, 229, 0.2), transparent),
    url('../images/containers/water_01.webp');
  background-size: cover, 50px 50px, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center;
}

.graphix-header-card h1 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--blue-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--blue-shadow);
}

.graphix-header-card p {
  color: var(--blue-highlight);
  text-shadow: 0 0 10px var(--blue-shadow);
}

.graphix-header-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--blue-primary);
}

.resources-log-header-card {
  border: 2px solid var(--green-primary);
  text-align: center;
  grid-column: 1 / -1;
  background-image:
    linear-gradient(to bottom right, rgba(85, 87, 211, 0.3), rgba(147, 112, 219, 0.3)),
    radial-gradient(2px 2px at 20px 30px, rgba(155, 93, 229, 0.2), transparent),
    url('../images/containers/animal_crossing_03.webp');
  background-size: cover, 50px 50px, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center;
}

.resources-log-header-card h1 {
  font-family: "Lacquer", system-ui;
  font-weight: 400;
  font-style: normal;
  color: var(--green-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--green-shadow);
}

.resources-log-header-card p {
  color: var(--green-highlight);
  text-shadow: 0 0 10px var(--green-shadow);
}

.resources-log-header-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--green-primary);
}

/* ========== CONTENT STYLING ========== */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: rgba(65, 234, 212, 0.1);
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.shrine-gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.shrine-link {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.shrine-link:hover {
  transform: scale(1.1) rotate(2deg);
}

.shrine-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shrine-link span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: var(--highlight);
  text-align: center;
  padding: 0.25rem;
  font-size: 0.8rem;
  font-weight: bold;
}

/* =========== iPod ========= */

.ipod-screen {
            width: 130px;
            height: 160px;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            border-radius: 1px;
            border: 2px solid #333;
            position: relative;
            overflow: scroll;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 4px 15px rgba(0,0,0,0.3);
        }

        .screen-content {
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, #87CEEB 0%, #4682B4 100%);
            position: relative;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .header {
            background: rgba(0,0,0,0.3);
            padding: 8px;
            text-align: center;
            font-size: 14px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .menu-container {
            height: calc(100% - 45px);
            overflow-y: auto;
            padding: 0;
        }

        .menu-item {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            position: relative;
        }

        .menu-item:hover {
            background: rgba(255,255,255,0.1);
        }

        .menu-item.selected {
            background: rgba(255,255,255,0.2);
            box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
        }

        .menu-item::after {
            content: '▶';
            position: absolute;
            right: 12px;
            font-size: 10px;
            opacity: 0.7;
        }

        .playlist-view {
            display: none;
        }

        .playlist-view.active {
            display: block;
        }

        .back-button {
            padding: 8px 16px;
            background: rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.2);
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s ease;
        }

        .back-button:hover {
            background: rgba(0,0,0,0.3);
        }

        .back-button::before {
            content: '◀ ';
        }

        .track-item {
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 11px;
        }

        .track-item:hover {
            background: rgba(255,255,255,0.1);
        }

        .track-item.selected {
            background: rgba(255,255,255,0.2);
        }

        .track-title {
            font-weight: bold;
            margin-bottom: 2px;
        }

        .track-duration {
            opacity: 0.7;
            font-size: 10px;
        }

        .now-playing {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.8);
            padding: 6px 12px;
            font-size: 10px;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.2);
        }

        .playing-indicator {
            display: inline-block;
            margin-right: 5px;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .youtube-player {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            z-index: 100;
            display: flex;
            flex-direction: column;
        }

        .player-header {
            background: rgba(0,0,0,0.8);
            padding: 8px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .close-player {
            background: none;
            border: none;
            color: white;
            font-size: 16px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s ease;
        }

        .close-player:hover {
            background: rgba(255,255,255,0.1);
        }

        .player-title {
            font-size: 12px;
            color: white;
            flex-grow: 1;
            text-align: center;
            margin: 0 10px;
        }

        .video-container {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        /* Custom scrollbar */
        .menu-container::-webkit-scrollbar {
            width: 3px;
        }

        .menu-container::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
        }

        .menu-container::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
        }

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  border: 2px solid var(--accent-teal);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  max-width: 200px;
  z-index: 99;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateY(-50%) translateX(calc(100% + 1rem));
}

.sidebar img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.sidebar-toggle {
  position: absolute;
  left: -30px;
  top: 10px;
  background: var(--accent-teal);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 0.8rem;
  z-index: 100;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: var(--highlight);
  transform: scale(1.1);
}

/* Music Player Phone Widget Styles */
    .music-toggle {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: var(--purple, #8b5cf6);
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      cursor: pointer;
      font-size: 1.5rem;
      z-index: 1000;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .music-toggle:hover {
      background: var(--highlight, #00ffee);
      transform: scale(1.1);
      box-shadow: 0 0 20px var(--highlight, #00ffee);
    }

    .music-widget {
      position: fixed;
      bottom: 0;
      right: 2rem;
      transform: translateX(0) translateY(100%);
      width: 400px;
      max-width: 90vw;
      height: 500px;
      z-index: 999;
      transition: transform 0.4s ease;
    }

    .music-widget.visible {
      transform: translateX(0) translateY(0);
    }

    .music-phone-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .music-phone-frame {
      width: 120%;
      height: 120%;
      object-fit: contain;
      z-index: 2;
      pointer-events: none;
    }

    .music-player-container {
      position: absolute;
      top: 18%;
      left: 42%;
      width: 39%;
      height: 39%;
      z-index: 1;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
      padding: 1rem;
      color: white;
    }

    .music-player-container #niuplayer {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .music-controls {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      margin: 0.5rem 0;
    }

    .music-controls button {
      background: var(--accent-teal, #00ffee);
      color: black;
      border: none;
      padding: 0.3rem 0.6rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.7rem;
      transition: all 0.3s ease;
    }

    .music-controls button:hover {
      background: var(--highlight, #00ffee);
      transform: scale(1.05);
    }

    #nowplaying, #nextup {
      font-size: 0.6rem;
      text-align: center;
      margin: 0.2rem 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #nowplaying {
      color: var(--accent-teal, #00ffee);
      font-weight: bold;
    }

    #nextup {
      color: #aaa;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
      .music-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
      }
      
      .music-widget {
        width: 90vw;
        max-width: 350px;
        height: 450px;
      }
    }

/* ========== CHAT WIDGET ========== */
.chat-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent-teal);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-toggle:hover {
  background: var(--highlight);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--highlight);
}

.chat-widget {
  position: fixed;
  bottom: 0;
  left: 2rem;
  transform: translateX(0) translateY(100%);
  width: 400px;
  max-width: 90vw;
  height: 500px;
  z-index: 999;
  transition: transform 0.4s ease;
}

.chat-widget.visible {
  transform: translateX(0) translateY(0);
}

.phone-wrapper {
  position: relative;
  width: 150%;
  height: 150%;
}

.phone-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.chatbox-container {
  position: absolute;
  top: 22%;
  left: 25%;
  width: 52%;
  height: 25%;
  z-index: 1;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.chatbox-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


  /* ======== WIDGETS ======== */

    /* Container for all widgets */
      .widgets-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 5px; /* Space between widgets */
        align-items: start; /* Align to top */
      }

    /* For three columns instead */
      .widgets-container.three-col {
        grid-template-columns: 1fr 1fr 1fr;
      }

    /* For responsive layout */
      @media (max-width: 768px) {
      .widgets-container {
      grid-template-columns: 1fr; /* Single column on mobile */
        }
      }

    /* Individual widget styling */
      .widget {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid #9b5de5;
        padding: 5px;
        border-radius: 8px;
         text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .widget h3 {
        margin-top: 0;
        color: #9b5de5;
      }

      .widget-cyan {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid #00f5d4;
        padding: 5px;
        border-radius: 8px;
        text-align: center;
        flex-direction: column;
        align-items: center;
      }

      .widget-cyan h3 {
        margin-top: 0;
        color: #00f5d4;
      }

      .widget-cyan a {
        color: #00bbf9;
      }

      .widget-cyan a:hover {
        color: #9b5de5;
      }

    /* Ensure iframes and ../images fit properly */
      .widget iframe,
      .widget img   {
        max-width: 100%;
        height: auto;
      }

/* ========== FOOTER ========== */
.footer {
  background-repeat: repeat;
  background-color: black;
  color: var(--text-secondary);
  opacity: 0.7;
  border-top: 2px solid var(--accent-teal); /* Changed to border-top since it's a footer */
  padding: 0.8rem 0;
  bottom: 0; 
  z-index: 100;
  box-shadow: 0 -2px 10px var(--border-glow); /* Inverted shadow for footer */
  text-align: center;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .grid.two-col {
    grid-template-columns: 1fr;
  }
  
  .welcome-card h1 {
    font-size: 2rem;
  }
  
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-links {
    justify-content: center;
  }
  
  .sidebar {
    position: static;
    transform: none;
    margin: 2rem auto;
    max-width: none;
  }

  .sidebar.hidden {
    transform: none;
  }

  .sidebar-toggle {
    display: none;
  }
  
  .chat-toggle {
    bottom: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .chat-widget {
    width: 90vw;
    max-width: 350px;
    height: 450px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 0.5rem;
  }

  .nav-brand {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    gap: 0.25rem;
    width: 100%;
    justify-content: center;
  }

  .nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight-link {
  color: var(--highlight);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.highlight-link:hover {
  color: var(--text-secondary);
  text-shadow: 0 0 5px var(--highlight);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPurple {
  0% {
    box-shadow: 0 0 5px var(--purple);
  }
  100% {
    box-shadow: 0 0 20px var(--purple), 0 0 30px var(--purple);
  }
}

@keyframes glowGreen {
  0% {
    box-shadow: 0 0 5px green;
  }
  100% {
    box-shadow: 0 0 20px green, 0 0 30px green;
  }
}

@keyframes glowBlue {
  0% {
    box-shadow: 0 0 5px rgb(36, 157, 255);
  }
  100% {
    box-shadow: 0 0 20px rgb(36, 157, 255), 0 0 30px rgb(36, 157, 255);
  }
}

.card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }