:root {
  --bg1: #fff7fb;
  --bg2: #f4fbff;
  --bg3: #fff8ef;
  --pink: #ff5ca8;
  --rose: #ff6b6b;
  --orange: #ff9f43;
  --yellow: #ffd166;
  --mint: #7ae7c7;
  --teal: #49c6e5;
  --blue: #6c8cff;
  --purple: #9b6bff;
  --text: #1f2440;
  --muted: #5f6786;
  --white: rgba(255,255,255,0.78);
  --border: rgba(255,255,255,0.6);
  --shadow: 0 20px 60px rgba(94, 74, 163, 0.15);
  --danger: #ff5f7a;
  --drawer-width: 340px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,92,168,0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(73,198,229,0.18), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(255,159,67,0.18), transparent 28%),
    radial-gradient(circle at 18% 75%, rgba(155,107,255,0.16), transparent 24%),
    linear-gradient(135deg, var(--bg1), var(--bg2) 45%, var(--bg3));
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

.blur {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.blur.one {
  width: 260px;
  height: 260px;
  top: 70px;
  right: -60px;
  background: #ff8cc7;
}

.blur.two {
  width: 320px;
  height: 320px;
  top: 260px;
  left: -110px;
  background: #74dff8;
}

.blur.three {
  width: 260px;
  height: 260px;
  bottom: 80px;
  right: 12%;
  background: #ffc76b;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  padding: 6px;
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.btn,
.icon-btn,
.drawer-item,
.auth-tab {
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s ease;
}

.btn {
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-main {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  box-shadow: 0 14px 30px rgba(255, 92, 168, 0.28);
}

.btn-main:hover,
.profile-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-soft {
  background: rgba(255,255,255,0.68);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.profile-area {
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
}

.profile-area.active {
  display: flex;
}

.profile-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 2px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badge {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #27d07d;
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(39, 208, 125, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 30px 0 48px;
}

.hero-card,
.video-card,
.value-card,
.story-card,
.cta-box,
.stat,
.drawer,
.auth-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 34px;
  border-radius: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  color: #c23e86;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-bottom: 18px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange), var(--teal), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 220%;
  animation: flow 10s ease infinite;
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 690px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border-radius: 24px;
  text-align: center;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  min-height: 48px;
}

.video-card {
  border-radius: 36px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.52), rgba(255,255,255,0.18));
  pointer-events: none;
}

.video-wrap {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.7);
  background:
    radial-gradient(circle at 30% 20%, rgba(122,231,199,0.32), transparent 26%),
    radial-gradient(circle at 80% 25%, rgba(255,159,67,0.30), transparent 24%),
    radial-gradient(circle at 50% 75%, rgba(108,140,255,0.20), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.3));
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.video-wrap video,
.video-wrap iframe {
  width: 100%;
  min-height: 420px;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: rgba(255,255,255,0.3);
}

.video-caption {
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(22, 26, 48, 0.48);
  color: white;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.video-caption strong {
  font-size: 1rem;
}

.video-caption span {
  font-size: 0.92rem;
  opacity: 0.92;
}

section {
  padding: 20px 0 34px;
}

.section-title {
  text-align: center;
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-sub {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 950px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  border-radius: 30px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.value-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(10px);
}

.value-card.pink::after {
  background: var(--pink);
}

.value-card.orange::after {
  background: var(--orange);
}

.value-card.blue::after {
  background: var(--blue);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: white;
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

.icon.pink {
  background: linear-gradient(135deg, #ff6ab5, #ff7b7b);
}

.icon.orange {
  background: linear-gradient(135deg, #ff9f43, #ffd166);
}

.icon.blue {
  background: linear-gradient(135deg, #4cc9f0, #6c8cff);
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 20px;
}

.story-card {
  padding: 28px;
  border-radius: 30px;
}

.story-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.5rem;
  font-weight: 800;
}

.story-card p,
.story-card li {
  color: var(--muted);
  line-height: 1.95;
  font-size: 1rem;
}

.story-card ul {
  margin: 0;
  padding-right: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pill {
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #293050;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.68));
  border: 1px solid rgba(255,255,255,0.85);
}

.cta-box {
  margin: 16px 0 50px;
  border-radius: 34px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.52), transparent 28%),
    linear-gradient(135deg, rgba(255,92,168,0.92), rgba(255,159,67,0.90), rgba(73,198,229,0.88));
  color: white;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 22px 50px rgba(255, 112, 126, 0.28);
}

.cta-box h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
}

.cta-box p {
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.9;
  color: rgba(255,255,255,0.94);
  font-size: 1.02rem;
}

.cta-box .actions {
  justify-content: center;
}

.cta-box .btn-soft {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.34);
  color: white;
}

footer {
  padding: 6px 0 42px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 23, 41, 0.42);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 50;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 60;
}

.auth-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.auth-panel {
  width: min(100%, 520px);
  border-radius: 32px;
  padding: 28px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
}

.auth-close,
.drawer-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-size: 1.1rem;
  color: var(--text);
}

.auth-title {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 900;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.72);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
}

.auth-tab {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  box-shadow: 0 12px 24px rgba(255, 92, 168, 0.22);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.96rem;
}

.field input {
  width: 100%;
  border: 1px solid rgba(151, 163, 197, 0.28);
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.field input:focus {
  border-color: rgba(255, 92, 168, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 92, 168, 0.08);
}

.auth-message {
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--danger);
}

.auth-message.success {
  color: #18a861;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(var(--drawer-width), calc(100vw - 18px));
  height: 100vh;
  z-index: 70;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 22px 18px 24px;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px 18px;
  border-bottom: 1px solid rgba(151, 163, 197, 0.18);
  margin-bottom: 14px;
}

.drawer-header img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow);
}

.drawer-user h4 {
  margin: 0;
  font-size: 1.05rem;
}

.drawer-user p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.drawer-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.88);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: right;
}

.drawer-item:hover {
  transform: translateX(-3px);
  background: rgba(255,255,255,0.92);
}

.drawer-item .item-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.drawer-section-title {
  margin: 24px 10px 10px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 800;
}

.logout-btn {
  margin-top: 18px;
  width: 100%;
  background: rgba(255,95,122,0.12);
  border: 1px solid rgba(255,95,122,0.18);
  color: #d73359;
}

.hidden {
  display: none !important;
}

.avatar-picker-title {
  padding: 4px 4px 12px;
  font-weight: 800;
  color: var(--text);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.avatar-option {
  border: 2px solid transparent;
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.avatar-option:hover {
  transform: translateY(-2px);
}

.avatar-option.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 168, 0.12);
}

.avatar-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

@media (max-width: 960px) {
  .hero,
  .story-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }

  .nav {
    justify-content: center;
  }

  .video-wrap,
  .video-wrap video,
  .video-wrap iframe {
    min-height: 320px;
  }

  .hero-card,
  .auth-panel,
  .cta-box,
  .story-card,
  .value-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    align-items: flex-start;
  }

  .brand p {
    font-size: 0.88rem;
  }

  .btn {
    width: 100%;
  }

  .nav {
    width: 100%;
  }

  .nav a,
  .nav button {
    flex: 1 1 100%;
  }

  .header-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .profile-area.active {
    align-self: flex-end;
  }

  .hero h2 {
    line-height: 1.05;
  }

  .drawer {
    border-radius: 22px 0 0 22px;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.inline-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.inline-panel.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 8px;
  margin-bottom: 8px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.avatar-option {
  border: 2px solid transparent;
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.avatar-option:hover {
  transform: translateY(-2px);
}

.avatar-option.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 168, 0.12);
}

.avatar-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.inline-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.inline-panel.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 8px;
  margin-bottom: 8px;
}

.inline-panel-inner {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.settings-group {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(151, 163, 197, 0.18);
}

.settings-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-group-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.settings-save-btn {
  margin-top: 2px;
  width: 100%;
}

.settings-inline-message {
  margin-top: 6px;
}

.theme-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.theme-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  border-color: transparent;
}

.avatar-picker-title {
  padding: 0;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--text);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.avatar-option {
  border: 2px solid transparent;
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.avatar-option:hover {
  transform: translateY(-2px);
}

.avatar-option.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 168, 0.12);
}

.avatar-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

body.dark-mode {
  --bg1: #151826;
  --bg2: #1a2032;
  --bg3: #121625;
  --text: #f2f4ff;
  --muted: #c0c6e3;
  --white: rgba(28, 34, 55, 0.9);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body.dark-mode .drawer,
body.dark-mode .auth-panel,
body.dark-mode .hero-card,
body.dark-mode .video-card,
body.dark-mode .value-card,
body.dark-mode .story-card,
body.dark-mode .cta-box,
body.dark-mode .stat,
body.dark-mode .inline-panel-inner {
  background: rgba(28, 34, 55, 0.92);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .drawer-item,
body.dark-mode .btn-soft,
body.dark-mode .avatar-option,
body.dark-mode .field input,
body.dark-mode .auth-tabs,
body.dark-mode .auth-tab,
body.dark-mode .pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}

body.dark-mode .video-caption {
  background: rgba(12, 15, 26, 0.72);
}

body.dark-mode .drawer-item .item-meta,
body.dark-mode .brand p,
body.dark-mode .section-sub,
body.dark-mode .story-card p,
body.dark-mode .story-card li,
body.dark-mode .value-card p,
body.dark-mode footer,
body.dark-mode .stat span {
  color: var(--muted);
}

body.dark-mode .field input::placeholder {
  color: rgba(220, 225, 255, 0.45);
}

body.dark-mode .brand img {
  background: white;
  padding: 6px;
}

.video-intro{
  text-align:center;
  max-width:720px;
  margin:0 auto 18px;
}

.video-intro h3{
  margin:0 0 8px;
  font-size:1.5rem;
}

.video-intro p{
  margin:0;
  line-height:1.7;
  opacity:0.9;
}

body.dark-mode .video-card {
  position: relative;
  background: rgb(5, 22, 48);
  border-color: rgba(65, 54, 83, 0.986);
  overflow: hidden;
}

body.dark-mode .video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(31, 46, 68);
  z-index: 0;
}

body.dark-mode .video-card > * {
  position: relative;
  z-index: 1;
}

body.dark-mode .video-wrap {
  background: rgb(18, 2, 48);
}

body.dark-mode .drawer-close {
  background: rgb(60, 41, 97);
}

body.dark-mode .eyebrow {
  background: rgb(66, 39, 121);
  color: #bedee9;
}

.auth-forgot-password-btn {
  align-self: flex-start;
  margin-top: -4px;
  margin-right: 0;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: #7c63ff;
  font-size: 0.9rem;
  cursor: pointer;
  font: inherit;
}

.auth-forgot-password-btn:hover {
  text-decoration: underline;
  opacity: 0.9;
}

body.dark-mode .auth-close {
  color: #ebf0ff;
  background-color: #24315f;
}

#joinBtn {
  position: relative;
  z-index: 3000;
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

#joinBtn:disabled {
  opacity: 0.85;
  cursor: wait;
}

body.dark-mode .drawer {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 107, 255, 0.7) rgba(255, 255, 255, 0.05);
}

body.dark-mode .drawer::-webkit-scrollbar {
  width: 10px;
}

body.dark-mode .drawer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

body.dark-mode .drawer::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9b6bff, #6c8cff);
  border-radius: 999px;
  border: 2px solid rgba(21, 24, 38, 0.9);
}

body.dark-mode .drawer::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ac83ff, #83a1ff);
}

.nav .btn-soft,
#joinBtn {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.nav .btn-soft:hover,
#joinBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 28px rgba(94, 74, 163, 0.16);
}

.nav .btn-soft:active,
#joinBtn:active {
  transform: translateY(0);
}

.nav .btn-soft::after,
#joinBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 92, 168, 0.08), rgba(108, 140, 255, 0.08));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.nav .btn-soft:hover::after,
#joinBtn:hover::after {
  opacity: 1;
}

.nav .btn-soft:focus-visible,
#joinBtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(155, 107, 255, 0.16),
    0 14px 28px rgba(94, 74, 163, 0.16);
}

body.dark-mode .nav .btn-soft,
body.dark-mode #joinBtn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.dark-mode .nav .btn-soft:hover,
body.dark-mode #joinBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(155, 107, 255, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

body.dark-mode .nav .btn-soft:active,
body.dark-mode #joinBtn:active {
  transform: translateY(0);
}

body.dark-mode .nav .btn-soft::after,
body.dark-mode #joinBtn::after {
  background: linear-gradient(
    135deg,
    rgba(155, 107, 255, 0.16),
    rgba(108, 140, 255, 0.14)
  );
}

body.dark-mode .nav .btn-soft:hover::after,
body.dark-mode #joinBtn:hover::after {
  opacity: 1;
}

body.dark-mode .nav .btn-soft:focus-visible,
body.dark-mode #joinBtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(155, 107, 255, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.drawer-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.drawer-role.hidden {
  display: none;
}

.role-owner {
  background: rgba(255, 215, 0, 0.16);
  color: #c58a00;
  border: 1px solid rgba(255, 215, 0, 0.34);
}

.role-management {
  background: rgba(124, 92, 255, 0.14);
  color: #6d4aff;
  border: 1px solid rgba(124, 92, 255, 0.28);
}

.role-technical {
  background: rgba(0, 163, 255, 0.14);
  color: #0087d4;
  border: 1px solid rgba(0, 163, 255, 0.28);
}

.role-support {
  background: rgba(33, 181, 115, 0.14);
  color: #15935c;
  border: 1px solid rgba(33, 181, 115, 0.28);
}

body.dark-mode .role-owner {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd54a;
  border-color: rgba(255, 215, 0, 0.34);
}

body.dark-mode .role-management {
  background: rgba(140, 110, 255, 0.2);
  color: #b7a1ff;
  border-color: rgba(140, 110, 255, 0.34);
}

body.dark-mode .role-technical {
  background: rgba(0, 163, 255, 0.2);
  color: #7fd0ff;
  border-color: rgba(0, 163, 255, 0.34);
}

body.dark-mode .role-support {
  background: rgba(33, 181, 115, 0.2);
  color: #78e2b2;
  border-color: rgba(33, 181, 115, 0.34);
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-compact img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.brand-text p {
  margin: 6px 0 0;
  font-size: 0.96rem;
  opacity: 0.82;
}

.topbar-profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-nav .btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 18px;
}

.social-highlight {
  font-weight: 800;
  border: 1px solid rgba(255, 92, 168, 0.28);
  background: rgba(255, 92, 168, 0.08);
  box-shadow: 0 8px 20px rgba(255, 92, 168, 0.10);
}

.social-highlight:hover {
  transform: translateY(-1px);
}

.strong-cta {
  font-weight: 800;
  padding-inline: 22px;
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 16px;
    gap: 16px;
  }

  .topbar {
    justify-content: center;
    text-align: center;
  }

  .brand-compact {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .brand-compact img {
    width: 70px;
    height: 70px;
  }

  .brand-text h1 {
    font-size: 1.35rem;
  }

  .brand-text p {
    font-size: 0.92rem;
  }

  .top-nav {
    gap: 10px;
  }

  .top-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .topbar-profile {
    width: 100%;
  }
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand-inline img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.top-nav-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.top-nav-inline .btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 16px;
}

.social-btn {
  font-weight: 800;
  background: rgba(255, 92, 168, 0.08);
  border: 1px solid rgba(255, 92, 168, 0.25);
}

.social-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .top-header-single {
    justify-content: center;
  }

  .top-nav-inline {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .brand-inline {
    width: 100%;
    justify-content: center;
  }

  .top-header-single .profile-area {
    width: 100%;
  }

  .top-nav-inline .btn {
    width: 100%;
    justify-content: center;
  }
}

.top-header-single {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 20;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-header-single .top-nav-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.right-nav {
  justify-content: flex-start;
}

.left-nav {
  justify-content: flex-end;
}

.center-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 900;
  font-size: 1.15rem;
  white-space: nowrap;
  min-width: max-content;
}

.center-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px;
  box-shadow: 0 10px 24px rgba(94, 74, 163, 0.12);
}

.top-header-single .btn {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  width: auto;
  white-space: nowrap;
}

.top-header-single .btn-soft {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.top-header-single .btn-soft:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(94, 74, 163, 0.12);
}

.top-header-single .btn-main {
  box-shadow: 0 14px 30px rgba(255, 92, 168, 0.22);
}

.top-header-single .profile-area {
  display: none !important;
}

body.dark-mode .top-header-single {
  background: rgba(28, 34, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .center-brand img {
  background: rgba(255, 255, 255, 0.96);
}

body.dark-mode .top-header-single .btn-soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.dark-mode .top-header-single .btn-soft:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(155, 107, 255, 0.24);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

@media (max-width: 980px) {
  .top-header-single {
    flex-wrap: wrap;
    justify-content: center;
  }

  .center-brand {
    order: 1;
    width: 100%;
  }

  .right-nav {
    order: 2;
    justify-content: center;
    width: 100%;
    flex: unset;
  }

  .left-nav {
    order: 3;
    justify-content: center;
    width: 100%;
    flex: unset;
  }
}

@media (max-width: 640px) {
  .top-header-single {
    width: calc(100% - 20px);
    padding: 14px;
    gap: 12px;
  }

  .top-header-single .top-nav-inline {
    flex-direction: column;
    width: 100%;
  }

  .top-header-single .btn {
    width: 100%;
    justify-content: center;
  }

  .center-brand {
    font-size: 1.05rem;
  }

  .center-brand img {
    width: 44px;
    height: 44px;
  }
}