:root {
  --color-bg: #0b0f12;
  --color-surface: rgba(20, 27, 31, 0.85);
  --color-surface-soft: rgba(20, 27, 31, 0.3);
  --color-primary: #81A1C1;
  --color-text: #e0e6ed;
  --color-text-muted: #94a3b8;
  --color-link: #d4cfcc;
  --color-highlight: #ffffff;
  --color-link-hover: var(--color-primary);
  --color-accent: #D8DEE9;
  --color-up: #a3be8c;
  --color-border: #141b1f;
  --color-down: #bf616a;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-transition: background-color 1s cubic-bezier(0.4, 0, 0.2, 1),
    color 1s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 1s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 1s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 1s cubic-bezier(0.4, 0, 0.2, 1),
    background-image 1s cubic-bezier(0.4, 0, 0.2, 1),
    fill 1s cubic-bezier(0.4, 0, 0.2, 1),
    stroke 1s cubic-bezier(0.4, 0, 0.2, 1);
  --sky-gradient: linear-gradient(to bottom, #0a111a 0%, #1a2a3a 100%);
  /* Deep Midnight blue */
  /* Rainbow Colors (Dark defaults) */
  --rb-1: #ffb3ba;
  --rb-2: #ffdfba;
  --rb-3: #ffffba;
  --rb-4: #baffc9;
  --rb-5: #bae1ff;
  --rb-shadow: transparent;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --radius-card: 14px;
}

[data-theme="light"] {
  --color-bg: #f4f0ed; /* 255-11, 255-15, 255-18 */
  --color-surface: rgba(235, 228, 224, 0.85); /* 255-20, 255-27, 255-31 */
  --color-surface-soft: rgba(235, 228, 224, 0.3);
  --color-primary: #7e5e3e; /* 255-129, 255-161, 255-193 */
  --color-text: #1f1912; /* 255-224, 255-230, 255-237 */
  --color-text-muted: #6b5c47; /* 255-148, 255-163, 255-184 */
  --color-link: #2b3033; /* 255-212, 255-207, 255-204 */
  --color-highlight: #000000; /* 255-255 */
  --color-accent: #272116; /* 255-216, 255-222, 255-233 */
  --color-border: #e1d9d3; /* 255-30, 255-38, 255-44 */
  --sky-gradient: linear-gradient(to bottom, #f5eee5 0%, #e5d5c5 100%);

  /* High-contrast candy rainbow for light mode legibility */
  --rb-1: #e06c75;
  --rb-2: #da8548;
  --rb-3: #b09a00;
  --rb-4: #4db33d;
  --rb-5: #3f88d0;
  --rb-shadow: rgba(0, 0, 0, 0.05);

  /* Warm Architectural Parchment Theme */
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.rainbow-active h1,
.rainbow-active h2,
.rainbow-active h3,
.rainbow-active h4,
.rainbow-active .platform-tag span,
.rainbow-active .identity-section p,
.rainbow-active .card-sub,
.rainbow-active .contact-mini a,
.rainbow-active .contact-mini span {
  background-image: linear-gradient(90deg, var(--rb-1), var(--rb-2), var(--rb-3), var(--rb-4), var(--rb-5), var(--rb-1));
  background-size: 200% auto;
  color: transparent !important;
  -webkit-background-clip: text;
  background-clip: text;
  animation: rainbow 4s linear infinite !important;
  text-shadow: 0 0 0 var(--rb-shadow); /* Subtle depth in light mode */
}

/* Icons and action buttons return to theme colors in rainbow mode */
.rainbow-active .coin-icon-bg,
.rainbow-active .service-icon {
  fill: currentColor !important;
  animation: none !important;
}


[data-theme="light"].rainbow-active .coin-icon-bg,
[data-theme="light"].rainbow-active .service-icon {
  animation: none !important;
}
/* --- Static Glowing Theme Orb --- */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  border: none;
  background: #FFF4D2;
  box-shadow: 0 0 15px #FFEBB7;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #FFEBB7;
}

[data-theme="dark"] .theme-toggle {
  background: #ecf0f1;
  box-shadow: 0 0 15px #ecf0f1;
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 25px #ecf0f1;
}

/* Celestial Transit Animation */
.theme-toggle.switching {
  transform-origin: -45vw 100vh;
  animation: celestial-transit 1.2s ease-in-out forwards !important;
  pointer-events: none;
}

@keyframes celestial-transit {

  49.9% {
    transform: rotate(-120deg);
    opacity: 0;
  }

  50.1% {
    transform: rotate(60deg);
    opacity: 0;
  }

  55% {
    transform: rotate(60deg);
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: rotate(0deg);
    opacity: 1;
  }
}

/* -------------------------------- */







.dc-icon-btn:hover {
  opacity: 1;
  color: var(--color-accent);
  transform: translateY(-1px);
}


@font-face {
  font-family: "Akkurat-Mono";
  src: url("/Akkurat-Mono.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  /* Desktop dashboard feel */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.preload,
.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Akkurat-Mono", monospace;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
  min-height: 100vh;
  margin: 0;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Sky Layer */
body::before {
  background: var(--sky-gradient);
  opacity: 1;
}

/* Light Sky Layer + Grid */
body::after {
  opacity: 0;
}

.premium-card {
  user-select: text;
  -webkit-user-select: text;
}

.resize-animation-stopper * {
  animation: none !important;
  transition: none !important;
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

main.no-scroll {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 0 !important;
}

.error-page main {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-page .container {
  height: 100vh;
}

.sidebar {
  width: 12vw;
  max-width: 200px;
  padding: 2.1rem 0.9rem;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  flex-shrink: 0;
  box-sizing: border-box;

  /* Stationary sidebar logic */
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow: visible;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    var(--theme-transition);
}

.sidebar:not(.collapsed) {
  box-shadow: none;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar nav {
  opacity: 1;
  transition: opacity 0.3s ease 0.3s;
}

.sidebar.collapsed nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.sidebar-toggle {
  position: absolute;
  right: -14px;
  top: 50%;
  width: 14px;
  height: 28px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  z-index: 1001;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease, var(--theme-transition);
  padding: 0;
}

.sidebar-toggle::before {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: -15px;
  right: -15px;
  border-radius: 50%;
}

.sidebar-toggle:hover {
  background: var(--color-surface);
  color: var(--color-highlight);
}

.sidebar.collapsed .sidebar-toggle {
  transform: translateY(-50%) rotate(180deg);
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  max-width: 1200px;
  box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .layout {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: flex !important;
  }

  body {
    overflow-y: auto !important;
  }

  /* Home page: never scrollable, even on mobile */
  body:has(.home-layout) {
    overflow: hidden !important;
    height: 100vh !important;
  }

  body:has(.home-layout) .layout {
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* Force navigation to show on mobile regardless of collapsed state */
  .sidebar,
  .sidebar.collapsed {
    position: sticky;
    top: 0;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem !important;
    padding-right: 4.5rem !important;
    /* Extra room for theme toggle */
    transform: none !important;
    background: var(--color-surface) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1000;
  }

  /* Ensure nav takes up the space */
  .sidebar nav,
  .sidebar.collapsed nav {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    width: 100%;
  }

  .sidebar-toggle {
    display: none;
  }

  nav ul {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  nav ul::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  nav li {
    margin-bottom: 0 !important;
  }

  .sidebar a {
    font-size: 1.1rem !important;
  }

  .container {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 1.5rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: visible !important;
    height: auto !important;
  }

  main.no-scroll {
    width: 100% !important;
    min-height: calc(100svh - 60px) !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .dashboard-container {
    padding: 0.5rem 1rem !important;
    gap: 0.5rem !important;
  }

  .home-hero {
    margin-bottom: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .hero-text h1 {
    font-size: 2.2rem !important;
  }

  .theme-toggle {
    position: fixed !important;
    top: 0.75rem !important;
    /* Half of header vertical padding/height roughly */
    right: 1rem !important;
    transform: none !important;
    scale: 0.8;
  }

  .home-layout {
    height: auto !important;
    padding: 0 !important;
  }
}



nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: var(--transition);
  display: block;
}

.sidebar a:hover,
.sidebar a.active {
  color: var(--color-highlight);
}

/* Active page indicator removed */



main {
  padding-bottom: 3rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

/* Global typography */
h1,
h2,
h3,
h4 {
  font-weight: normal;
  margin: 0;
}

h3 {
  color: var(--color-highlight);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

p {
  margin: 0 0 0.5rem 0;
  color: var(--color-text-muted);
  font-size: 1.8rem;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact page refinements */
.contact-section h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  /* ~200% scaling */
}

.contact-item .label {
  color: var(--color-text-muted);
  width: 120px;
  /* Proportionally wider */
  text-transform: lowercase;
  opacity: 0.7;
}

.contact-item a {
  color: var(--color-accent);
}

/* Sites page density */
.sites-section {
  margin-bottom: 2.5rem;
}


/* Consolidated Home Page Layout */
.bio {
  margin-bottom: 1.5rem;
}

.home-contact {
  margin-bottom: 2rem;
  border-top: 1px solid var(--color-surface);
  padding-top: 1.5rem;
}

/* Sites Dashboard Layout */
.sites-layout {
  overflow: visible;
  max-width: none !important;
  padding: 0 !important;
  margin-left: 0;
}

.sites-main {
  flex: 1;
  overflow-y: auto;
  padding-top: var(--space-5);
  padding-right: clamp(1rem, 2.8vw, 2.5rem);
  padding-bottom: calc(var(--space-5) + 1rem);
  padding-left: clamp(1rem, 1.8vw, 1.5rem);
}

.sites-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-3);
}

.sites-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--color-highlight);
}

/* Free-flowing grid */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.sites-grid-loading {
  opacity: 0.85;
}

.sites-column {
  padding: 0;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.sites-cat {
  color: var(--color-highlight);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  opacity: 0.92;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
}

.sites-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sites-column li {
  margin-bottom: var(--space-2);
}

.sites-column a {
  color: var(--color-primary);
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

/* Subtle Underline Hover Effect */
.sites-column a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.sites-column a:hover {
  color: var(--color-highlight);
  transform: translateX(4px);
}

.sites-column a:hover::after {
  width: 100%;
}

.sites-column-skeleton {
  pointer-events: none;
}

.skeleton-line {
  height: 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-border) 60%, transparent),
    color-mix(in srgb, var(--color-surface) 90%, transparent),
    color-mix(in srgb, var(--color-border) 60%, transparent)
  );
  background-size: 220% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
}

.skeleton-title {
  width: 52%;
  margin-bottom: var(--space-3);
}

.skeleton-short {
  width: 66%;
}

@keyframes skeleton-wave {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

@media (max-width: 800px) {
  .sites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sites-directory {
    padding: 1.5rem !important;
  }

  .sites-layout {
    margin-left: 0 !important;
    transition: none !important;
  }

  .sites-main {
    overflow: visible !important;
    height: auto !important;
    padding: var(--space-4) var(--space-3) !important;
  }

  .sites-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .sites-column {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-2);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sites-column a,
  .sites-column a::after,
  .skeleton-line {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Consolidated Home Page Layout Optimization */
.home-layout {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.home-layout > * {
  pointer-events: auto;
}

.container.home-layout {
  padding: 0;
  max-width: 100%;
}

.home-layout main {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100vh !important;
  width: 100% !important;
  padding: 0 !important;
}

.no-scroll {
  display: flex;
  flex-direction: column;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  perspective: 1000px;
}



.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-surface);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Mini Coin Styling for Cards */
.mini-coin-wrapper {
  position: relative;
  flex-shrink: 0;
  perspective: 1000px;
}

.mini-coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.mini-coin.is-held {
  transition: none !important;
}

.mini-coin .coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-coin .face-back {
  transform: rotateY(180deg);
}

.coin-icon-bg {
  width: 100%;
  height: 100%;
  background: var(--color-surface-soft);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

[data-performance="low"] .coin-icon-bg {
  backdrop-filter: none;
}

.coin-icon-bg svg {
  width: 60%;
  height: 60%;
  opacity: 0.8;
}

.dc-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.dc-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  background: #747f8d;
  transition: var(--theme-transition);
  z-index: 10;
}



.details-grid {
  display: none;
  /* Removed old grid */
}

/* GitHub Page High-End Styling */
.github-hub {
  padding-top: 2rem;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: min(1.5rem, 2vh);
  align-items: center;
  padding: 1rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 20;
}

/* Premium Card Base */
.premium-card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: min(1.15rem, 2.5vh);
  transition: transform 0.3s ease, var(--theme-transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform;
}

[data-performance="low"] .premium-card {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rainbow-active .premium-card {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none;
}

[data-theme="light"].rainbow-active .premium-card {
  color: var(--color-text) !important;
}

.premium-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.unified-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.card-section {
  padding: min(1.25rem, 2.5vh);
  width: 100%;
  transition: var(--theme-transition);
  position: relative;
  z-index: 1;
  background: transparent;
}

[data-theme="light"] .card-section {
  background: transparent;
}

.clickable-section {
  cursor: pointer;
}

.clickable-section:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 3px 0 0 var(--color-primary);
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  opacity: 0.5;
}


.contact-section-mini .contact-mini {
  margin-top: 0;
  max-width: none;
}

.identity-section {
  text-align: center;
  padding: 2rem 1.5rem;
}

.identity-section h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 3rem;
  color: var(--color-highlight);
  margin: 0;
  letter-spacing: 0.15em;
  line-height: 1;
  transition: color 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.identity-section p {
  font-size: 1.1rem;
  opacity: 0.4;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

[data-theme="dark"] .premium-card {
  background: rgba(10, 15, 18, 0.6);
}

.card-header {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: center;
  text-align: left;
  position: relative;
  width: 100%;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.card-top-right {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.platform-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  opacity: 0.8;
  background: rgba(129, 161, 193, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  transition: var(--theme-transition);
}

.service-icon {
  opacity: 0.3;
  color: var(--color-text-muted);
  transition: var(--theme-transition);
}

.clickable-card {
  cursor: pointer;
}

.card-avatar {
  width: min(64px, 8vh);
  height: min(64px, 8vh);
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background-color: var(--color-surface);
  transition: opacity 0.3s ease;
}

.card-avatar[src=""],
.card-avatar:not([src]) {
  opacity: 0;
}

.card-info h2 {
  font-size: 1.2rem;
  color: var(--color-highlight);
  margin: 0;
  line-height: 1.2;
  transition: color 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-sub {
  font-size: 0.85rem;
  opacity: 0.5;
  margin: 0;
}

/* Discord Specifics */


.dc-status-online {
  background: #3ba55d;
}

.dc-status-idle {
  background: #faa61a;
}

.dc-status-dnd {
  background: #ed4245;
}

/* Contact Mini Row */
.contact-mini {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, auto 1fr);
  justify-content: center;
  gap: 0.5rem 0.75rem;
  opacity: 0.75;
  font-size: clamp(0.7rem, 2vh, 0.85rem);
}

.contact-mini span {
  text-align: right;
  opacity: 0.7;
  font-weight: 500;
}

@media (max-width: 500px) {
  .contact-mini {
    grid-template-columns: repeat(2, auto 1fr);
    gap: 0.4rem 0.5rem;
    padding: 0 0.25rem;
    font-size: 0.72rem;
  }
}

.contact-mini a {
  color: var(--color-highlight);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  width: fit-content;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-mini a:hover {
  border-bottom-color: var(--color-accent);
}

/* Layout lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  margin: 0;
}

#toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  color: var(--color-highlight);
  padding: 0.5rem 1.6rem;
  border-radius: 24px;
  font-size: 0.9rem;
  border: 2px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  text-align: center;
  min-width: 140px;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s,
    var(--theme-transition);
  z-index: 9999;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: bold;
}

#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Final Sky Expansion System (Permanent Elements on Default Background) */
.sky-section {
  display: none;
}

#sidebar {
  position: relative;
  z-index: 10;
}

/* Procedural Sky Elements Container */
.sky-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}


.sky-layer .star {
  position: absolute;
  background: var(--color-highlight);
  border-radius: 50%;
  box-shadow: 0 0 calc(var(--raw-size) * 2px) var(--color-highlight);
  opacity: calc(var(--max-op) * 0.8);
  animation: twinkle var(--twinkle-dur) ease-in-out infinite alternate;
  animation-delay: var(--twinkle-del);
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

[data-performance="low"] .sky-layer .star {
  animation: none;
  box-shadow: none;
  opacity: calc(var(--max-op) * 0.7);
}

@keyframes twinkle {
  0% {
    opacity: calc(var(--max-op) * 0.8);
    transform: scale(1);
  }

  100% {
    opacity: var(--max-op);
    transform: scale(1.1);
  }
}
