/* BASTIEN Full-Stack Theme — Driven by Database CSS Variables */
:root {
  --b-bg: #050505;
  --b-primary: #ffffff;
  --b-secondary: #ff3333;
  --b-text: #ffffff;
  --b-soft: rgba(255, 255, 255, 0.62);
  --b-muted: rgba(255, 255, 255, 0.36);
  --b-line: rgba(255, 255, 255, 0.14);
  --b-line-hi: rgba(255, 255, 255, 0.32);
  --b-btn-bg: rgba(15, 15, 15, 0.65);
  --b-btn-text: #ffffff;
  --b-font-display: 'Orbitron', Arial, sans-serif;
  --b-font-body: 'Orbitron', Arial, sans-serif;
  --b-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(255, 255, 255, 0.22); color: #fff; }

html {
  scroll-behavior: smooth;
  background: var(--b-bg);
  overflow-y: auto;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--b-text);
  font-family: var(--b-font-body);
  background-color: var(--b-bg);
  background-image:
    radial-gradient(circle at 86% 84%, rgba(255, 48, 48, 0.12), rgba(255, 48, 48, 0.04) 16%, transparent 34%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.045), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.84));
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-font-smoothing: antialiased;
  animation: bastienPageIn 0.22s var(--b-ease) both;
}

body.has-bg-image {
  background-size: cover, cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes bastienPageIn {
  from { opacity: 0.9; }
  to { opacity: 1; }
}

@media (min-width: 701px) {
  body.home-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.home-page /* Top Pill Navigation */
.nav-wrap {
    margin-top: 14px;
    flex: none;
  }
  body.home-page .top-header-container {
    position: fixed;
    top: 37px;
    left: 48px;
    right: 48px;
    margin: 0;
    max-width: none;
    padding: 0;
    z-index: 15;
    pointer-events: none;
  }
  body.home-page .top-header-text {
    display: none;
  }
  body.home-page .main-content {
    flex: 1;
    min-height: 0;
    padding: 16px 20px 64px;
    justify-content: center;
  }
  body.home-page .logo-crest {
    width: min(500px, 78vw);
    max-height: 44vh;
    object-fit: contain;
    margin: -10px 0 1rem;
  }
  body.home-page .footer-container,
  body.login-page .footer-container {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 0 16px;
    z-index: 15;
  }
  body.login-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.login-page .nav-wrap {
    position: fixed;
    top: 14px;
    right: 22px;
    margin: 0;
    padding: 0;
    z-index: 45;
  }
  body.login-page .top-header-container {
    position: fixed;
    top: 30px;
    left: 55px;
    right: 55px;
    margin: 0;
    max-width: none;
    padding: 0;
    z-index: 15;
    pointer-events: none;
  }
}
/* Top Pill Navigation */
.nav-wrap {
  position: sticky;
  top: 18px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 14px;
  margin-top: 18px;
}

.nav {
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 5px;
  border: 1px solid var(--b-line);
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  height: 37px;
  min-width: 92px;
  padding: 0 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #888;
  text-decoration: none;
  font: 700 8px var(--b-font-display);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--b-ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.25s var(--b-ease);
}

.nav a:hover, .nav a.active {
  color: var(--b-primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav a:hover::after, .nav a.active::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.nav .nav-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 6px 12px;
  font: 700 9px var(--b-font-display);
  letter-spacing: 1.6px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .nav a.hide-mobile { display: none; }
  .nav a.hide-desktop { display: flex; }
  .nav a { min-width: 0; height: 34px; padding: 0 12px; font-size: 8px; letter-spacing: 1.2px; }
}
@media (min-width: 641px) {
  .nav a.hide-desktop { display: none; }
}

/* Top Header Line */
.top-header-container {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 0 36px;
  display: flex;
  align-items: center;
}
.top-header-line {
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.top-header-text {
  margin: 0 22px;
  font: 600 0.82rem var(--b-font-display);
  letter-spacing: 0.25em;
  color: #b8b8b8;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* Main Home Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 28px 20px 120px;
  text-align: center;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.header-title {
  font-family: var(--b-font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  margin: 0 0 0.1rem;
  text-transform: uppercase;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 255, 255, 0.35);
  padding-left: 0.35em;
}

.header-subtitle {
  font-family: var(--b-font-display);
  font-size: clamp(0.75rem, 2vw, 1.15rem);
  letter-spacing: 0.4em;
  color: #d0d0d0;
  margin: 0 0 1rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  padding-left: 0.4em;
}

.logo-crest {
  width: min(460px, 82vw);
  height: auto;
  margin: 4px 0 14px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.18));
  transition: transform 0.65s var(--b-ease);
}
.logo-crest:hover { transform: scale(1.04); }

/* Animations */
.anim-zoom-fade { animation: zoomFade 0.9s var(--b-ease) both; }
.anim-slide-up { animation: slideUp 0.8s var(--b-ease) both; }
.anim-fade { animation: fadeIn 0.8s var(--b-ease) both; }
.anim-none { animation: none; }
@keyframes zoomFade { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Featured Member Boxes */
.members-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 8px 0 18px;
}

.member-box {
  position: relative;
  overflow: hidden;
  width: 200px;
  min-width: 200px;
  height: 70px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(7, 7, 7, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  color: var(--b-btn-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s var(--b-ease), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.member-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.07) 50%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--b-ease);
}

.member-box:hover {
  transform: translateY(-5px);
  border-color: var(--b-line-hi);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 255, 255, 0.14);
}
.member-box:hover::before { transform: translateX(120%); }

.member-name {
  font-family: var(--b-font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  color: #f5f5f5;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.12);
}
.member-role {
  font-family: var(--b-font-display);
  font-size: 10px;
  color: #8a8a8a;
  letter-spacing: 1.5px;
  margin-top: 7px;
  text-transform: uppercase;
}

/* Supervised By */
.supervised-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 24px;
}
.supervised-title {
  font-family: var(--b-font-display);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.25em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.supervised-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.supervised-item {
  padding: 6px 15px;
  border: 1px solid var(--b-line);
  border-radius: 6px;
  font-family: var(--b-font-display);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--b-btn-text);
  background: var(--b-btn-bg);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform 0.28s var(--b-ease), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}
.supervised-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

/* Social Buttons & Footer */
.social-buttons {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 10px;
  z-index: 25;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid var(--b-line);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ccc;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: all 0.3s var(--b-ease);
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-3px);
}
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }

.footer-container {
  width: 100%;
  padding: 20px 16px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-line {
  width: min(640px, 84%);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
}
.footer {
  font-family: var(--b-font-display);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Member Directory & Profile */
.directory-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 220px;
}
.directory-header {
  text-align: center;
  margin-bottom: 28px;
}
.directory-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75));
}
.directory-title {
  font-family: var(--b-font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 9px;
  margin: 0 0 8px;
  text-shadow: 0 6px 25px #000;
}
.directory-sub {
  font-family: var(--b-font-display);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.55);
}

.toolbar {
  max-width: 780px;
  margin: 0 auto 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.search-wrap { width: 100%; }
.search {
  width: 100%;
  height: 43px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(5, 5, 5, 0.62);
  color: #fff;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-family: var(--b-font-display);
  backdrop-filter: blur(15px);
}
.search:focus { outline: none; border-color: rgba(255, 255, 255, 0.38); }

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 18px;
}
.filter {
  height: 36px;
  min-width: 104px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.58);
  color: #777;
  font-family: var(--b-font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(15px);
  transition: all 0.22s ease;
}
.filter:hover, .filter.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
@media (max-width: 820px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .member-grid { grid-template-columns: 1fr; }
}

.roster-section { margin-top: 26px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--b-font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
}
.section-head::before,
.section-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14));
}
.section-head::after { transform: scaleX(-1); }
.section-head span { font-size: 8px; color: #777; letter-spacing: 1.2px; }

.roster-card {
  position: relative;
  min-height: 91px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.66), rgba(5, 5, 5, 0.52));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.27);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s var(--b-ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.roster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.72), rgba(7, 7, 7, 0.58));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.rank-mark {
  position: absolute;
  right: 10px;
  top: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  opacity: 0;
  transform: translateY(3px);
  transition: 0.3s var(--b-ease);
}
.roster-card:hover .rank-mark { opacity: 1; transform: none; color: rgba(255, 255, 255, 0.7); }
.roster-avatar {
  position: relative;
  flex: none;
  width: 57px;
  height: 57px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  font-family: var(--b-font-display);
  font-weight: 800;
  font-size: 1rem;
}
.roster-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.12));
  transition: transform 0.35s var(--b-ease);
}
.roster-card:hover .roster-avatar img { transform: scale(1.06); }
.online-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eee;
  border: 2px solid #111;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}
.roster-info { min-width: 0; flex: 1; text-align: left; }
.roster-name {
  font-family: var(--b-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-role {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #999;
  font-family: var(--b-font-display);
  font-size: 7px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.roster-social {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #888;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--b-font-display);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
}
.roster-social:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.roster-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.roster-socials {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.roster-card:hover .roster-social { color: #ccc; border-color: rgba(255, 255, 255, 0.24); }
.card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--b-line);
  background: linear-gradient(135deg, rgba(24, 24, 28, 0.65), rgba(6, 6, 8, 0.75));
  backdrop-filter: blur(18px);
  padding: 20px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s var(--b-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--b-line-hi);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}
.card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #141418;
  margin-bottom: 14px;
}
.card-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #1b1b20, #0c0c0f);
  display: grid;
  place-items: center;
  font-family: var(--b-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ddd;
  margin-bottom: 14px;
}
.card-badge {
  font-family: var(--b-font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--b-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.card-name {
  font-family: var(--b-font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.card-role {
  font-family: var(--b-font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--b-soft);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Profile Detail View */
.profile-card {
  max-width: 760px;
  margin: 24px auto 0;
  border-radius: 18px;
  border: 1px solid var(--b-line);
  background: linear-gradient(145deg, rgba(20, 20, 24, 0.82), rgba(7, 7, 9, 0.9));
  backdrop-filter: blur(22px);
  padding: 36px 28px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}
.profile-name {
  font-family: var(--b-font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 8px;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--b-font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #ddd;
}
.profile-desc {
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--b-line-hi);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-family: var(--b-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.back-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

/* Music Player Dock */
#bastienMusicDock, #bastienMusicDock * { box-sizing: border-box; }
#bastienMusicDock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 224px;
  max-width: calc(100vw - 24px);
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(7, 7, 9, 0.94);
  color: #fafafa;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: Inter, Arial, sans-serif;
}
#bastienMusicDock .music-video-shell {
  width: 200px;
  height: 200px;
  flex: 0 0 200px;
  align-self: center;
  border-radius: 5px;
  overflow: hidden;
  background: #050505;
  border: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13);
  position: relative;
}
#bastienMusicDock #bastienMusicFrame,
#bastienMusicDock iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#bastienMusicDock .music-track {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
#bastienMusicDock .music-vinyl {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 3px solid #191919;
  position: relative;
  overflow: hidden;
  background: #222;
}
#bastienMusicDock .music-vinyl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
#bastienMusicDock[data-playing="true"] .music-vinyl img {
  animation: bastienVinylSpin 9s linear infinite;
}
@keyframes bastienVinylSpin { to { transform: rotate(360deg); } }
#bastienMusicDock .music-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
#bastienMusicDock .music-overline {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #888;
  font-weight: 800;
}
#bastienMusicDock .music-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: #777;
}
#bastienMusicDock[data-playing="true"] .music-live-dot {
  background: var(--b-secondary);
  box-shadow: 0 0 8px var(--b-secondary);
}
#bastienMusicDock .music-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bastienMusicDock .music-artist {
  font-size: 9px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bastienMusicDock .music-select {
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d0d10;
  color: #eee;
  font-size: 10px;
}
#bastienMusicDock .music-progress-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
#bastienMusicDock .music-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--b-secondary);
  transition: width 0.25s linear;
}
#bastienMusicDock .music-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#bastienMusicDock .music-button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b5b5b5;
  cursor: pointer;
}
#bastienMusicDock .music-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bastienMusicDock .music-button.music-main-button {
  background: #f2f2f2;
  color: #050505;
}
#bastienMusicDock .music-button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
#bastienMusicDock .music-button.music-main-button:hover:not(:disabled) {
  background: #d8d8d8;
  color: #050505;
}
#bastienMusicDock .music-volume-label { flex: 1; display: flex; align-items: center; }
#bastienMusicDock input[type="range"] { width: 100%; accent-color: var(--b-secondary); cursor: pointer; }
#bastienMusicDock .music-external {
  font-size: 9px;
  letter-spacing: 1px;
  color: #ddd;
  text-decoration: none;
  text-align: center;
  padding-top: 2px;
}
#bastienMusicDock .music-external:hover { color: #fff; text-decoration: underline; }
#bastienMusicDock .music-hint { margin: 0; font-size: 9px; color: #bbb; text-align: center; }

@media (max-width: 600px) {
  .social-buttons { left: 12px; bottom: 12px; }
  #bastienMusicDock { right: 12px; bottom: 12px; width: 215px; }
  #bastienMusicDock .music-video-shell { width: 191px; height: 120px; }
}

/* Welcome Gate Overlay (Click to Enter & Play Music) */
#bastienWelcomeGate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(20, 20, 24, 0.88), rgba(4, 4, 6, 0.97));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: opacity 0.45s var(--b-ease), visibility 0.45s ease;
}
#bastienWelcomeGate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#bastienWelcomeGate .wg-title {
  font-family: var(--b-font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.32em;
  color: #fff;
  margin: 0 0 10px;
  padding-left: 0.32em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.3);
}
#bastienWelcomeGate .wg-sub {
  font-family: var(--b-font-display);
  font-size: clamp(0.68rem, 1.8vw, 0.9rem);
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 28px;
  padding-left: 0.28em;
}
#bastienWelcomeGate .wg-btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--b-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s var(--b-ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
#bastienWelcomeGate .wg-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.22);
}
