
/* === Stella Hikari - Cosmic Glow Theme CSS === */

*, *::before, *::after {
  box-sizing: border-box;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
/* === Base & Typography === */
body {
  font-family: 'Comfortaa', cursive, sans-serif;
  background: linear-gradient(135deg, #2a2e75 0%, #4b49aa 70%, #5a6bff 100%);
  color: #e6e8f1; /* soft white */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace, sans-serif;
  letter-spacing: 0.1em;
  color: #cfd5ff; /* lighter cosmic blue */
  text-shadow:
    0 0 6px #5a6bff88,
    0 0 12px #9f90ffcc;
}

/* === Header === */
header#landing {
  position: relative;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #7c85ff, #2e2a7a 90%);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  animation: pulse-bg 10s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% {
    background: radial-gradient(circle at center, #7c85ff, #1a165a 90%);
  }
  50% {
    background: radial-gradient(circle at center, #7c85ff, #1a165a 90%);
  }
}

header#landing .background::before,
header#landing .background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #7e86f8b6 1px, transparent 0.1px),
    radial-gradient(circle, #7e86f8b6 2px, transparent 0.2px),
    radial-gradient(circle, #7e86f8b6 1.5px, transparent 0.1px),
    radial-gradient(circle, #7e86f8b6 1px, transparent 0.1px),
    radial-gradient(circle, #7e86f8b6 2px, transparent 0.2px),
    radial-gradient(circle, #7e86f8b6 1.5px, transparent 0.1px);
  background-size: 60px 60px, 80px 80px, 100px 100px, 70px 70px, 90px 90px, 120px 120px;
  animation: twinkle 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
header#landing .background::before {
  animation-delay: 0s;
}

header#landing .background::after {
  animation-delay: 2s;
}


@keyframes twinkle {
  0% {
    opacity: 0.6;
    transform: translate(0, 0) scale(1) rotate(0deg);
    filter: blur(0) hue-rotate(0deg) brightness(1);
  }
  20% {
    opacity: 0.75;
    transform: translate(-2px, -3px) scale(1.04) rotate(2deg);
    filter: blur(0.6px) hue-rotate(15deg) brightness(1.1);
  }
  40% {
    opacity: 1;
    transform: translate(2px, -6px) scale(1.1) rotate(-1deg);
    filter: blur(0.4px) hue-rotate(30deg) brightness(1.3);
  }
  60% {
    opacity: 0.85;
    transform: translate(-1px, -4px) scale(1.07) rotate(3deg);
    filter: blur(0.6px) hue-rotate(45deg) brightness(1.15);
  }
  80% {
    opacity: 0.7;
    transform: translate(1px, -2px) scale(1.03) rotate(-2deg);
    filter: blur(0.5px) hue-rotate(60deg) brightness(1.05);
  }
  100% {
    opacity: 0.6;
    transform: translate(0, 0) scale(1) rotate(0deg);
    filter: blur(0) hue-rotate(0deg) brightness(1);
  }
}



header#landing .title {
  font-size: 3.5rem;
  color: #e3e9ff;
  position: relative;
  z-index: 2;
  user-select: none;
  cursor: default;
  animation: float 6s ease-in-out infinite;
  text-shadow:
    0 0 10px #5a6bff,
    0 0 20px #9f90ff,
    0 0 30px #cfcfff;
}

header#landing .title span {
  color: #ffffff;
  text-shadow:
    0 0 8px #9aaaffcc,
    0 0 15px #cdd3ff;
  font-weight: 700;
  letter-spacing: 0.15em;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

header#landing .tagline {
  margin-top: 0.5rem;
  font-family: 'Comfortaa', cursive;
  font-size: 1.2rem;
  color: #dcdfffcc;
  text-shadow: 0 0 5px #7c85ff;
  z-index: 2;
  animation: shimmer 4s ease-in-out infinite;
}

/* Theme toggle placeholder */
#theme-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: #cfd5ff22;
  border-radius: 50%;
  box-shadow:
    0 0 8px #5a6bffbb,
    inset 0 0 6px #a8b1ffcc;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1001;
  background: #cfd5ff22;
  border-radius: 50%;
  box-shadow:
    0 0 8px #5a6bffbb,
    inset 0 0 6px #a8b1ffcc;
  cursor: pointer;
  transition: background 0.3s ease;
}
#theme-toggle:hover {
  background: #a9b5ff55;
}
#theme-toggle:hover {
  background: #a9b5ff55;
}

/* === Sections === */
section {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255 255 255 / 0.05);
  border-radius: 12px;
  box-shadow:
    0 0 15px #5a6bff44,
    inset 0 0 10px #bbc1ff33;
  margin-bottom: 3rem;
  color: #e4e9ff;
}

/* Headings */
section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #5a6bffaa;
  padding-bottom: 0.25rem;
  filter: drop-shadow(0 0 5px #7f8affcc);
}

/* About section image */
#about img {
  max-width: 160px;
  border-radius: 50%;
  border: 3px solid #5a6bffcc;
  box-shadow:
    0 0 15px #5a6bffbb,
    0 0 35px #7e8fffcc;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

#about img:hover {
  box-shadow:
    0 0 25px #8b9bffee,
    0 0 45px #a6b6ffff;
}

/* Lists styling */
.bio-details ul,
.links ul,
.commission-rules ul,
.tos-condensed ul,
.tos-full ul ,
.commission-types {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  color: #d0d7ffcc;
}

.bio-details ul li,
.links ul li,
.commission-rules ul li,
.tos-condensed ul li,
.tos-full ul li ,
.commission-types  {
  margin-bottom: 0.35rem;
  padding-left: 1.25rem;
  position: relative;
  font-weight: 500;
  font-size: 1.05rem;
}

.bio-details ul li::before,
.links ul li::before,
.commission-rules ul li::before, 
.tos-condensed ul li::before,
.tos-full ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #8e99ff;
  text-shadow: 0 0 5px #8e99ffaa;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

/* Links */
.links a {
  color: #c3caff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
  text-shadow:
    0 0 8px #7d8fffcc;
}

.links a:hover,
.links a:focus {
  color: #ffdaaa;
  text-shadow:
    0 0 10px #ffdaaaee,
    0 0 20px #ffc367ee;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-icons a img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 4px #5a6bffbb);
  transition: filter 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
  background: rgba(255 255 255 / 0.07);
  padding: 8px;
}

.social-icons a:hover img {
  filter:
    drop-shadow(0 0 8px #9f90ffee)
    drop-shadow(0 0 12px #a7a8ffee);
  transform: scale(1.1);
}

/* Gallery images */
.gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery img {
  max-width: 260px;
  border-radius: 10px;
  box-shadow:
    0 0 15px #5a6bffbb,
    inset 0 0 5px #a1a8ff88;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px #a7aaffdd,
    inset 0 0 12px #c9cfffbb;
}

/* Commission preview images */
.commission-preview img {
  max-width: 120px;
  border-radius: 8px;
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 6px #5a6bffaa);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.commission-preview img:hover {
  filter: drop-shadow(0 0 12px #9f90ffdd);
  transform: scale(1.1);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  color: #cfd5ff;
  box-shadow: 0 0 15px #5a6bff44;
  border-radius: 12px;
  overflow: hidden;
}

table th, table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #5a6bff55;
  text-align: left;
  font-weight: 500;
}

table th {
  background: #5a6bffaa;
  text-shadow: 0 0 6px #a9b7ffcc;
}

table tr:last-child td {
  border-bottom: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  color: #bec6ffcc;
  font-size: 0.9rem;
  text-shadow: 0 0 8px #5a6bffcc;
  background: linear-gradient(90deg, #2a2e75, #4b49aa);
  user-select: none;
}

/* Glowing star icon for blog "new" star */
.new {
  color: #a7b0ff;
  filter:
    drop-shadow(0 0 5px #a7b0ffcc)
    drop-shadow(0 0 10px #a7b0ff88);
  font-size: 1.3rem;
  margin-right: 0.3rem;
}

/* Audio player styling - hidden but present */
audio#bg-music {
  display: none;
}

/* Scrollbar with cosmic blue glow */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #2b2f7a;
  box-shadow: inset 0 0 10px #5a6bff44;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5a6bffcc, #9a92ffcc);
  border-radius: 6px;
  box-shadow:
    0 0 8px #9f90ffcc;
}

/* Utility glow class you can add anywhere */
.glow {
  color: #9a9fff;
  text-shadow:
    0 0 8px #5a6bffcc,
    0 0 18px #9f90ffcc,
    0 0 28px #b7baffcc;
}

/* Optional: soft shimmer animation for stars or outlines */
@keyframes shimmer {
  0% {
    opacity: 0.6;
    filter: drop-shadow(0 0 10px #9a9fffaa);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 20px #b7baffcc);
  }
  100% {
    opacity: 0.6;
    filter: drop-shadow(0 0 10px #9a9fffaa);
  }
}

.shimmer {
  animation: shimmer 3s ease-in-out infinite;
}

/* Sharp celestial line accents - example for sections or borders */
.celestial-line {
  border-top: 2px solid #5a6bffcc;
  box-shadow:
    0 2px 10px #5a6bffaa;
  margin: 2rem 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header#landing .title {
    font-size: 3rem;
  }

  .gallery img {
    max-width: 100%;
  }

  .commission-preview img {
    max-width: 80px;
  }
}

#socials {
  padding: 3rem 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  background: rgba(255 255 255 / 0.05);
  border-radius: 12px;
  box-shadow:
    0 0 15px #5a6bff44,
    inset 0 0 10px #bbc1ff33;
  color: #e4e9ff;
  text-align: center;
}

#socials h2 {
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #5a6bffaa;
  padding-bottom: 0.3rem;
  filter: drop-shadow(0 0 5px #7f8affcc);
  user-select: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.social-links a {
  font-family: 'Comfortaa', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #c3caff;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 9999px; /* pill shape */
  background: linear-gradient(135deg, #5a6bffcc 0%, #7c7dffcc 100%);
  box-shadow:
    0 0 10px #5a6bffbb,
    inset 0 0 6px #a8b1ffcc;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  user-select: none;
}

.social-links a:hover,
.social-links a:focus {
  background: linear-gradient(135deg, #9f90ff, #c8caff);
  color: #1a1a3a;
  box-shadow:
    0 0 15px #a8aaffee,
    inset 0 0 10px #e0e3ffcc;
  transform: scale(1.1);
  outline: none;
}
.social-links a:active {
  transform: scale(0.95);
  box-shadow:
    0 0 10px #7f8affbb,
    inset 0 0 5px #c1c6ff88;
}

/* Apply to body or a main wrapper */
body {
  font-family: 'Comfortaa', cursive, sans-serif;
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers all children horizontally */
  text-align: center;  /* centers inline text inside blocks */
  min-height: 100vh;
  box-sizing: border-box;
}

/* Limit max width so lines aren’t too wide */
header, section, footer {
  width: 100%;
  max-width: 700px;
  margin-bottom: 3rem;
}



/* Center lists inside bio-details and links */
.bio-details ul,
.links ul {
  list-style-position: inside;
  padding-left: 0;
  max-width: 500px;
  margin: 0 auto;
  text-align: left; /* keep lists left-aligned but container centered */
}

/* For links list, center parent */
.links p {
  margin-bottom: 0.5rem;
}

/* Center social links flex container */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* If you want tables centered in commissions */
table {
  margin: 1rem auto;
  border-collapse: collapse;
  color: #d8d9f2;
}

table th, table td {
  border: 1px solid #5a6bff88;
  padding: 0.5rem 1rem;
}

/* Footer text center */
footer p {
  margin: 0 auto;
}

/* Optional: center all h2 and h3 headings */
h2, h3 {
  user-select: none;
}
.payment {
  background: rgba(90, 107, 255, 0.15);
  border-radius: 12px;
  box-shadow:
    0 0 15px #5a6bff44,
    inset 0 0 10px #bbc1ff33;
  padding: 1.5rem 2rem;
  max-width: 400px;
  margin: 2rem auto 3rem;
  text-align: center;
  color: #cfd5ff;
  font-family: 'Orbitron', monospace, sans-serif;
  letter-spacing: 0.1em;
  user-select: none;
}

.payment h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow:
    0 0 10px #7a8fffdd,
    0 0 20px #a4afffbb;
}

.payment a {
  display: inline-block;
  margin: 0.4rem 0;
  font-family: 'Comfortaa', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #c3caff;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px; /* pill shape */
  background: linear-gradient(135deg, #5a6bffcc 0%, #7c7dffcc 100%);
  box-shadow:
    0 0 10px #5a6bffbb,
    inset 0 0 6px #a8b1ffcc;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  user-select: none;
}

.payment a:hover,
.payment a:focus {
  background: linear-gradient(135deg, #9f90ff, #c8caff);
  color: #1a1a3a;
  box-shadow:
    0 0 15px #a8aaffee,
    inset 0 0 10px #e0e3ffcc;
  transform: scale(1.1);
  outline: none;
}

.payment a:active {
  transform: scale(0.95);
  box-shadow:
    0 0 10px #7f8affbb,
    inset 0 0 5px #c1c6ff88;
}

.commission-types {
 padding: 3rem 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  background: rgba(255 255 255 / 0.05);
  border-radius: 12px;
  box-shadow:
    0 0 15px #5a6bff44,
    inset 0 0 10px #bbc1ff33;
  color: #e4e9ff;
  text-align: center;
}

/* Headings */
.commission-types h2,
.commission-types h3 {
   font-family: 'Orbitron', monospace, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #5a6bffaa;
  padding-bottom: 0.3rem;
  filter: drop-shadow(0 0 5px #7f8affcc);
  user-select: none;
}

.commission-types p {
  font-family: 'Comfortaa', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #c3caff;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 9999px; /* pill shape */
  background: linear-gradient(135deg, #5a6bffcc 0%, #7c7dffcc 100%);
  box-shadow:
    0 0 10px #5a6bffbb,
    inset 0 0 6px #a8b1ffcc;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  user-select: none;
}

/* Commission preview images */
.commission-preview {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.commission-preview img {
  max-width: 130px;
  border-radius: 10px;
  box-shadow:
    0 0 15px #5a6bffbb,
    inset 0 0 5px #a1a8ff88;
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.commission-preview img:hover {
  filter: drop-shadow(0 0 12px #9f90ffdd);
  transform: scale(1.1);
}

/* Tables styled consistent with your theme */
.commission-types table {
  width: 100%;
  max-width: 700px;
  margin: 1rem auto 3rem auto;
  border-collapse: collapse;
  box-shadow: 0 0 15px #5a6bff44;
  border-radius: 12px;
  overflow: hidden;
  color: #cfd5ff;
}

.commission-types table th,
.commission-types table td {
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid #5a6bff55;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.commission-types table th {
  background: #5a6bffaa;
  text-shadow: 0 0 6px #a9b7ffcc;
}

.commission-types table tr:last-child td {
  border-bottom: none;
}
.credits {
  background: rgba(90, 107, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  max-width: 600px;
  margin: 2rem auto 3rem;
  color: #cfd5ff;
  font-family: 'Comfortaa', cursive, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  box-shadow:
    0 0 12px #5a6bff55,
    inset 0 0 8px #bbc1ff33;
  user-select: none;
}

.credits strong {
  font-family: 'Orbitron', monospace, sans-serif;
  color: #a4afff;
  text-shadow:
    0 0 6px #7c85ffcc;
}

.credits a {
  color: #9fa8ff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.credits a:hover,
.credits a:focus {
  color: #ffc367;
  text-shadow:
    0 0 8px #ffc367cc;
  outline: none;
}

/* === Dark Mode / Nightlight === */
body.dark-mode {
  background: linear-gradient(135deg, #121331 0%, #1b1c48 70%, #252a62 100%);
  color: #bbbbff;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
  color: #d3d8ff;
  text-shadow:
    0 0 8px #8a8fffcc,
    0 0 18px #a7aaffcc;
}


body.dark-mode section {
  background: rgba(30 30 70 / 0.5);
  box-shadow:
    0 0 25px #6066ff88,
    inset 0 0 15px #9099ff55;
  color: #d0d5ffdd;
}

body.dark-mode section h2 {
  border-color: #7c7cffcc;
  filter: drop-shadow(0 0 10px #7c7cffcc);
}

body.dark-mode #about img {
  border-color: #7c7cffcc;
  box-shadow:
    0 0 25px #7c7cffcc,
    0 0 55px #a3aaffcc;
}

body.dark-mode .links a,
body.dark-mode .payment a,
body.dark-mode .credits a {
   background: rgba(50, 55, 120, 0.4);
  box-shadow:
    0 0 25px #6a7bffbb,
    inset 0 0 15px #a2b1ff77;
  color: #d0d5ffcc;
}

body.dark-mode .links a:hover,
body.dark-mode .payment a:hover,
body.dark-mode .credits a:hover {
  color: #ffcc70;
  background: linear-gradient(135deg, #dca44b, #ffc367);
  box-shadow:
    0 0 22px #ffcc70ee,
    inset 0 0 14px #ffd570cc;
}

body.dark-mode .payment {
  background: rgba(50, 55, 120, 0.4);
  box-shadow:
    0 0 25px #6a7bffbb,
    inset 0 0 15px #a2b1ff77;
  color: #d0d5ffcc;
}

body.dark-mode .credits {
  background: rgba(50, 55, 120, 0.35);
  box-shadow:
    0 0 18px #6a7bffbb,
    inset 0 0 14px #a1afff77;
  color: #d0d5ffcc;
}

body.dark-mode table {
    background: rgba(50, 55, 120, 0.4);
  box-shadow:
    0 0 25px #6a7bffbb,
    inset 0 0 15px #a2b1ff77;
  color: #d0d5ffcc;
}

body.dark-mode table th {
  background: #4b4b9b99;
  text-shadow: 0 0 10px #788affcc;
  border-color: #5c6bff99;
}

body.dark-mode table td {
  border-color: #4a53ab88;
}

/* Scrollbar dark mode */
body.dark-mode ::-webkit-scrollbar-track {
  background: rgba(50, 55, 120, 0.4);
  box-shadow:
    0 0 25px #6a7bffbb,
    inset 0 0 15px #a2b1ff77;
  color: #d0d5ffcc;;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6a7bffcc, #9aaaffcc);
  box-shadow: 0 0 10px #7c8bffcc;
}

/* Utility glow for dark mode */
body.dark-mode .glow {
  color: #a8afff;
  text-shadow:
    0 0 14px #7c8bffcc,
    0 0 28px #a7b3ffcc,
    0 0 42px #c7cfffcc;
}

/* === Navigation Menu === */
#main-nav {
  background: rgba(40, 45, 120, 0.4);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #5a6bff66;
  box-shadow: 0 0 12px #5a6bffaa;
  padding: 0.8rem 1.5rem;
  text-align: center;
  z-index: 10;
  position: sticky;
  top: 0;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

#main-nav li {
  display: inline;
}

#main-nav a {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: #cfd5ff;
  text-decoration: none;
  text-shadow: 0 0 6px #9f90ff;
  padding: 0.4rem 0.8rem;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

#main-nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #ffdaaa;
  transition: width 0.3s ease;
  margin-top: 4px;
}

#main-nav a:hover {
  color: #ffdaaa;
  text-shadow: 0 0 10px #ffdaaaee, 0 0 18px #ffc367ee;
  transform: scale(1.1);
}

#main-nav a:hover::after {
  width: 100%;
}

/* Responsive nav tweaks */
@media (max-width: 600px) {
  #main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}
/* --- Enhanced Mobile Compatibility --- */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.2rem;
  }
  header, section, footer, #socials, .commission-types, .credits, .payment {
    max-width: 100vw;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  header#landing {
    height: auto;
    min-height: 40vh;
    padding: 2rem 0.5rem 1rem 0.5rem;
  }
  header#landing .title {
    font-size: 2.1rem;
    word-break: break-word;
  }
  header#landing .tagline {
    font-size: 1rem;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  #main-nav {
    padding: 0.5rem 0.2rem;
  }
  .gallery {
    flex-direction: column;
    gap: 0.5rem;
  }
  .gallery img,
  .commission-preview img {
    max-width: 98vw;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .commission-preview {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .social-icons {
    gap: 0.7rem;
  }
  .social-icons a img {
    width: 36px;
    height: 36px;
    padding: 4px;
  }
  .social-links {
    gap: 0.7rem;
    flex-direction: column;
    align-items: stretch;
  }
  .social-links a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  table,
  .commission-types table {
    font-size: 0.95rem;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    display: block;
  }
  table th, table td,
  .commission-types table th, .commission-types table td {
    padding: 0.3rem 0.5rem;
    word-break: break-word;
  }
  .payment {
    padding: 1rem 0.5rem;
    max-width: 98vw;
  }
  .credits {
    padding: 0.7rem 0.3rem;
    max-width: 98vw;
  }
  .celestial-line {
    margin: 1rem 0;
  }
  .commission-preview video {
    width: 100%;
    max-width: 95vw;
    height: auto;
  }
} 


#nav-toggle {
  display: block;
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 1100;
  text-shadow: 0 0 5px #5a6bff, 0 0 10px #9f90ff;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(40, 45, 120, 0.97);
    box-shadow: 0 8px 24px #2a2e75cc;
    border-radius: 0 0 12px 12px;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
    padding: 0;
  }

  #main-nav.open {
    transform: translateY(0);
  }

  #main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    padding: 2.5rem 0 1.5rem 0;
    align-items: center;
    display: flex;
  }

  #main-nav li {
    display: block;
    width: 100%;
    text-align: center;
  }

  #main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    width: 100%;
  }
}

/* DESKTOP NAV */
@media (min-width: 769px) {
  #main-nav {
    position: sticky;
    transform: none !important;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 0 12px #5a6bffaa;
    background: rgba(40, 45, 120, 0.4);
    padding: 0.8rem 1.5rem;
  }
  #main-nav ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    align-items: center;
    display: flex;
  }
  #main-nav li {
    display: inline;
    width: auto;
    text-align: left;
  }
  #main-nav a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    width: auto;
  }
}

@media (max-width: 600px) {
  #theme-toggle {
    top: 0.5rem;
    left: 0.5rem;
    right: auto;
    width: 36px;
    height: 36px;
  }
}
.commission-types table {
  width: 100%;
  max-width: none;
  margin: 1rem auto 3rem auto;
  border-collapse: collapse;
  box-shadow: 0 0 15px #5a6bff44;
  border-radius: 12px;
  overflow: hidden;
  color: #cfd5ff;
}

.commission-types table th,
.commission-types table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #5a6bff55;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

/* Mobile fallback with horizontal scroll */
@media (max-width: 600px) {
  .commission-types table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .commission-types table thead,
  .commission-types table tbody,
  .commission-types table tr {
    display: table;
    width: 100%;
    table-layout: auto;
  }
}
.commission-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.commission-preview img {
  width: 100%;
  max-width: 130px;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 0 15px #5a6bffbb,
    inset 0 0 5px #a1a8ff88;
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

/* Mobile-friendly row layout with wrapping */
@media (max-width: 600px) {
  .commission-preview {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .commission-preview img {
    max-width: 30vw;
    height: auto;
  }
}
/* Default: hide nav toggle (desktop) */
#nav-toggle {
  display: none;
}

/* Mobile only: show nav toggle */
@media (max-width: 768px) {
  #nav-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1100;
    text-shadow: 0 0 5px #5a6bff, 0 0 10px #9f90ff;
  }
}

#blog-posts-container .blog-post {
  background: #1a1e3a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

#blog-posts-container h3 {
  color: #61dafb;
}

/* Full TOS Carrd Button - Cosmic Blue/Purple */
a[href*="systemcommisions.carrd.co"] {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;

  font-family: 'Comfortaa', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;

  color: #e6e8ff;
  background: linear-gradient(135deg, #5a6bffcc, #9f90ffcc);

  box-shadow:
    0 0 10px #5a6bffbb,
    0 0 20px #9f90ff88,
    inset 0 0 6px #a8b1ffcc;

  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* Hover */
a[href*="systemcommisions.carrd.co"]:hover {
  transform: scale(1.08);
  color: #ffffff;

  background: linear-gradient(135deg, #7c85ff, #c8caff);

  box-shadow:
    0 0 18px #8f9bffdd,
    0 0 30px #b7baffcc,
    inset 0 0 10px #e0e3ffcc;
}

/* Click */
a[href*="systemcommisions.carrd.co"]:active {
  transform: scale(0.95);

  box-shadow:
    0 0 10px #7f8affbb,
    inset 0 0 5px #c1c6ff88;
}
a[href*="systemcommisions.carrd.co"] {
  animation: shimmer 3s ease-in-out infinite;
}
.commission-preview video {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 0 15px #5a6bffbb,
    inset 0 0 5px #a1a8ff88;
  display: block;
  margin: 0 auto;
}

.music-player {
  position: fixed;
  bottom: 1rem;
  right: 1rem;

  width: 240px;

  background: rgba(40, 45, 120, 0.5);
  backdrop-filter: blur(10px);

  border-radius: 16px;
  padding: 0.8rem;

  box-shadow:
    0 0 18px #5a6bff66,
    inset 0 0 10px #a8b1ff33;

  color: #fff;
  font-family: 'Comfortaa', sans-serif;

  z-index: 1200;
}

.music-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.music-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6e8ff;
  text-shadow: 0 0 8px #9f90ff, 0 0 14px #5a6bff;
}

.music-artist {
  font-size: 0.75rem;
  opacity: 0.85;
  color: #cfd5ff;
  text-shadow: 0 0 6px #5a6bff66;
}

.music-artist::before {
  content: "by ";
  opacity: 0.7;
}

.music-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;

  cursor: pointer;

  background: rgba(90, 107, 255, 0.25);
  color: #fff;

  box-shadow:
    0 0 10px #5a6bff55,
    inset 0 0 6px #a8b1ff33;

  transition: 0.2s ease;
}

.toggle-btn:hover {
  transform: scale(1.1);
  background: rgba(159, 144, 255, 0.4);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #9f90ff, #5a6bff);
  box-shadow:
    0 0 15px #9f90ffcc,
    0 0 25px #5a6bff88;
}

#volume-slider {
  flex: 1;
  accent-color: #9f90ff;
}
