﻿:root {
  --bg-1: #eef4ff;
  --bg-2: #ffffff;
  --ink: #112b54;
  --muted: #3f5d88;
  --brand: #1a4f9a;
  --brand-2: #ea2e1f;
  --brand-accent: #f59b1d;
  --brand-cyan: #35c9ee;
  --brand-green: #5fbf42;
  --ok: #2f8e46;
  --error: #d72a1f;
  --line: #d2deef;
  --card-shadow: 0 18px 38px rgba(22, 61, 127, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(234, 46, 31, 0.17), transparent 36%),
    radial-gradient(circle at 92% 10%, rgba(53, 201, 238, 0.24), transparent 34%),
    radial-gradient(circle at 52% 112%, rgba(245, 155, 29, 0.2), transparent 43%),
    linear-gradient(180deg, #fcfdff 0%, #f1f6ff 72%);
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.18;
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

small {
  display: block;
  color: var(--muted);
}

main {
  padding-bottom: 3rem;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.container.narrow {
  width: min(780px, 92%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(210, 222, 239, 0.88);
}

.nav-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  width: 164px;
  max-width: 46vw;
  height: auto;
  display: block;
}

.brand-text {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-accent) 32%, var(--brand) 65%, #1f67c3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  position: relative;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.main-nav a:hover {
  background: rgba(26, 79, 154, 0.11);
  text-decoration: none;
}

.nav-user-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.nav-user-name {
  max-width: 200px;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-metric {
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-user-metric b {
  color: inherit;
}

.logout-form {
  margin: 0;
}

.notification-bell-wrap {
  position: relative;
}

.notification-bell-btn {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  width: 40px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notification-bell-btn:hover {
  background: rgba(26, 79, 154, 0.08);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d72a1f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--card-shadow);
  display: none;
  z-index: 20;
}

.notification-panel.is-open {
  display: block;
}

.notification-panel-head {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.notification-panel-list {
  max-height: 70vh;
  overflow: auto;
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.notification-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.55rem 0.6rem;
  background: #fff;
}

.notification-item.is-unread {
  border-color: rgba(26, 79, 154, 0.45);
  background: #f3f8ff;
}

.notification-item h4 {
  margin-bottom: 0.3rem;
}

.notification-item p {
  margin-bottom: 0.4rem;
}

.notification-empty {
  margin: 0;
  padding: 0.6rem;
}

.club-strip {
  border-top: 1px solid rgba(210, 222, 239, 0.84);
  background: linear-gradient(90deg, rgba(26, 79, 154, 0.12), rgba(53, 201, 238, 0.15), rgba(245, 155, 29, 0.14));
}

.club-strip-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.hero {
  margin-top: 1.7rem;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card-stack {
  display: grid;
  gap: 1rem;
}

.hero-marketing,
.hero-club {
  padding: 1.4rem 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
}

.hero-card,
.section-card,
.feature-card {
  background: var(--bg-2);
  border: 1px solid rgba(210, 222, 239, 0.9);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.hero-card {
  padding: 1.2rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-card li {
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.8rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-accent));
  color: #fff;
  padding: 0.72rem 1.05rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(234, 46, 31, 0.25);
}

.btn:hover {
  filter: brightness(1.04);
  text-decoration: none;
}

.btn-small {
  padding: 0.55rem 0.82rem;
  font-size: 0.84rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(26, 79, 154, 0.08);
}

.small-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.stats-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-strip article {
  background: #fff;
  border: 1px solid rgba(210, 222, 239, 0.88);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stats-strip h3 {
  margin-bottom: 0.25rem;
  color: var(--brand);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stats-strip p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-stats {
  margin-top: 1rem;
}

.birthday-highlight-card {
  margin-bottom: 1rem;
  border: 1px solid rgba(245, 155, 29, 0.45);
  background:
    radial-gradient(circle at top right, rgba(245, 155, 29, 0.2), transparent 55%),
    radial-gradient(circle at bottom left, rgba(234, 46, 31, 0.14), transparent 48%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 238, 0.97));
}

.birthday-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.birthday-highlight-head h2 {
  margin: 0;
}

.birthday-highlight-window {
  border-radius: 999px;
  border: 1px solid rgba(26, 79, 154, 0.24);
  background: rgba(26, 79, 154, 0.12);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.birthday-today-banner {
  border: 1px solid rgba(47, 142, 70, 0.45);
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(47, 142, 70, 0.15), rgba(95, 191, 66, 0.11));
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.7rem;
}

.birthday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.birthday-item {
  border: 1px solid rgba(26, 79, 154, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.58rem 0.68rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.birthday-item small {
  margin-top: 0.2rem;
}

.birthday-item.is-today {
  border-color: rgba(47, 142, 70, 0.55);
  background: rgba(232, 251, 238, 0.88);
}

.birthday-date-pill {
  border-radius: 999px;
  border: 1px solid rgba(245, 155, 29, 0.4);
  background: rgba(245, 155, 29, 0.2);
  color: #6a3c00;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-grid.two-columns-fixed {
  grid-template-columns: 1.2fr 0.8fr;
}

.feature-card,
.section-card {
  padding: 1.1rem;
  min-width: 0;
}

.section-card h1,
.section-card h2,
.section-card h3,
.section-card p,
.section-card small,
.section-card li,
.section-card td,
.section-card th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-card canvas {
  margin-top: 0.6rem;
}

.plans-page {
  display: grid;
  gap: 1rem;
}

.plans-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
  background:
    radial-gradient(circle at right top, rgba(53, 201, 238, 0.22), transparent 55%),
    linear-gradient(120deg, rgba(26, 79, 154, 0.08), rgba(234, 46, 31, 0.08));
}

.plans-hero-main h1 {
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
}

.plans-hero-main p {
  max-width: 62ch;
}

.plans-status-box {
  border: 1px solid rgba(26, 79, 154, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.95rem;
}

.plans-status-box h2 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.plans-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plans-status-pill.is-pro {
  background: rgba(47, 142, 70, 0.14);
  color: #1f6a34;
}

.plans-status-pill.is-free {
  background: rgba(26, 79, 154, 0.12);
  color: #15468d;
}

.plans-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  justify-items: center;
}

.plans-card-grid .plan-card {
  width: min(760px, 100%);
}

.plan-card {
  display: grid;
  gap: 0.85rem;
}

.plan-card-head h2 {
  margin-bottom: 0.2rem;
}

.plan-price {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--brand);
}

.plan-price span {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.25rem;
}

.plan-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.plan-feature-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink);
}

.plan-feature-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-2);
  font-weight: 700;
}

.plan-card-free {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.94));
}

.plan-card-pro {
  border-color: rgba(234, 46, 31, 0.34);
  background:
    radial-gradient(circle at top right, rgba(234, 46, 31, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 245, 0.96));
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.3rem;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #8f2219;
  background: rgba(234, 46, 31, 0.14);
}

.plan-cta-form {
  display: grid;
  gap: 0.35rem;
}

.plan-cta-btn {
  width: 100%;
  min-height: 44px;
}

.plan-note-success {
  color: #1f6a34;
  font-weight: 600;
}

.plans-compare {
  margin-bottom: 4.6rem;
}

.plan-mobile-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid rgba(26, 79, 154, 0.26);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 0.65rem 0.75rem;
}

.plan-mobile-cta strong {
  display: block;
  font-size: 0.86rem;
}

.plan-mobile-cta small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.plan-mobile-cta .btn {
  white-space: nowrap;
}

.plan-mobile-cta form {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.65rem 0.72rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(53, 201, 238, 0.25);
  border-color: var(--brand);
}

.input-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.slug-preview {
  color: var(--brand-2);
  font-weight: 700;
}

.dashboard-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1rem auto;
}

.dashboard-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.dashboard-tabs a.active {
  background: rgba(26, 79, 154, 0.14);
  border-color: rgba(26, 79, 154, 0.43);
}

.alert {
  margin: 0.95rem auto;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-success {
  background: rgba(47, 142, 70, 0.12);
  border-color: rgba(47, 142, 70, 0.3);
  color: #1f6a34;
}

.alert-error {
  background: rgba(215, 42, 31, 0.12);
  border-color: rgba(215, 42, 31, 0.3);
  color: #8f2219;
}

.alert-info {
  background: rgba(53, 201, 238, 0.16);
  border-color: rgba(26, 79, 154, 0.28);
  color: #14407f;
}

.top-list,
.ranking-list,
.simple-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.top-list li,
.ranking-list li,
.simple-list li {
  margin-bottom: 0.65rem;
}

.ranking-list li,
.top-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pill {
  background: rgba(53, 201, 238, 0.22);
  color: #144892;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.79rem;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(210, 222, 239, 0.84);
  text-align: left;
  padding: 0.62rem 0.5rem;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inline-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
}

.admin-club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.admin-club-card {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  overflow: hidden;
}

.admin-club-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
}

.admin-club-card-head h2 {
  margin: 0 0 0.2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-club-meta {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.admin-club-meta p {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-club-card small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-club-grid > * {
  min-width: 0;
}

.copy-box {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.password-rule {
  line-height: 1.45;
  font-size: 0.82rem;
}

.field-status {
  min-height: 1.1rem;
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.field-status.is-ok {
  color: #1f7a43;
  font-weight: 600;
}

.field-status.is-error {
  color: #b32828;
  font-weight: 600;
}

.field-status.is-info {
  color: var(--muted);
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.class-task-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.class-task-progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(26, 79, 154, 0.15);
  border: 1px solid rgba(26, 79, 154, 0.2);
  overflow: hidden;
}

.class-task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-accent), var(--brand));
}

.the-game-progress-card .small-note {
  margin: 0.2rem 0 0.5rem;
}

.the-game-stages-wrap {
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.the-game-stages {
  --the-game-progress: 0%;
  list-style: none;
  margin: 0;
  padding: 0.95rem 0.35rem 0.15rem;
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(13, minmax(50px, 1fr));
  gap: 0.42rem;
  position: relative;
}

.the-game-stages::before,
.the-game-stages::after {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 35px;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
}

.the-game-stages::before {
  background: rgba(26, 79, 154, 0.18);
}

.the-game-stages::after {
  right: auto;
  width: calc((100% - 60px) * var(--the-game-progress, 0) / 100);
  background: linear-gradient(90deg, var(--brand-2), var(--brand-accent), var(--brand));
}

.the-game-stage {
  position: relative;
  z-index: 1;
  text-align: center;
}

.the-game-stage-rocket {
  display: block;
  min-height: 1.05rem;
  line-height: 1;
}

.the-game-stage-rocket::before {
  content: '';
  display: inline-block;
}

.the-game-stage-rocket.is-active::before {
  content: '\01F680';
  font-size: 1rem;
  transform: translateY(-1px);
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', Helvetica, Arial, sans-serif;
}

.the-game-stage-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin: 0 auto 0.28rem;
  border: 1px solid rgba(26, 79, 154, 0.35);
  background: #f2f7ff;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.the-game-stage-label {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.1;
}

.the-game-stage.is-completed .the-game-stage-dot {
  background: #dff7eb;
  border-color: rgba(47, 142, 70, 0.45);
  color: #176233;
}

.the-game-stage.is-current .the-game-stage-dot {
  background: #fff1dd;
  border-color: rgba(245, 155, 29, 0.5);
  color: #8d4c00;
  transform: scale(1.06);
}

.the-game-stage.is-locked .the-game-stage-dot {
  background: #f3f4f6;
  border-color: rgba(139, 155, 179, 0.45);
  color: #66758f;
}

.class-task-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.specialty-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.specialty-area-card {
  border-width: 1px;
  border-color: var(--line);
  position: relative;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}

.specialty-area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--specialty-color, #5b5b5b);
}

.specialty-area-card header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 0;
}

.specialty-area-card strong {
  display: inline-flex;
  min-width: 2.1rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  border-radius: 9px;
  font-size: 0.82rem;
  color: #fff;
  background: var(--specialty-color, #5b5b5b);
}

.specialty-area-card span {
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.specialty-area-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.specialty-area-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.specialty-area-link.is-active {
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.35);
}

.specialty-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.specialty-item-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 0.6rem;
  min-height: 130px;
  align-content: space-between;
  min-width: 0;
}

.specialty-item-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.specialty-item-card .small-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.specialty-item-card.is-active {
  box-shadow: 0 0 0 2px rgba(53, 201, 238, 0.45);
}

.specialty-requirement-list {
  display: grid;
  gap: 0.8rem;
}

.specialty-requirement-item {
  border: 1px solid rgba(210, 222, 239, 0.95);
  min-width: 0;
}

.specialty-requirement-item h3 {
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.specialty-requirement-item p {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.specialty-requirement-item small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.class-task-card {
  border-width: 1px;
}

.class-task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.class-task-status-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.2rem 0.56rem;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.class-task-status-pill.is-open,
.class-task-card.is-open .class-task-status-pill {
  background: #f4f8ff;
  color: #174d98;
}

.class-task-status-pill.is-rework,
.class-task-card.is-rework .class-task-status-pill {
  background: #fff3dd;
  color: #9a5d00;
  border-color: rgba(245, 155, 29, 0.45);
}

.class-task-status-pill.is-pending,
.class-task-card.is-pending .class-task-status-pill {
  background: #e7f6ff;
  color: #0f5f95;
  border-color: rgba(53, 201, 238, 0.58);
}

.class-task-status-pill.is-approved,
.class-task-card.is-approved .class-task-status-pill {
  background: #e6f7eb;
  color: #1b7a3c;
  border-color: rgba(47, 142, 70, 0.4);
}

.class-task-note-box {
  margin: 0.55rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
  padding: 0.6rem 0.72rem;
}

.class-task-note-box p {
  margin: 0.22rem 0 0;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.class-task-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
  margin: 0.65rem 0 0.8rem;
}

.class-task-file {
  border: 1px solid rgba(210, 222, 239, 0.88);
  border-radius: 12px;
  overflow: hidden;
  background: #f7faff;
  min-height: 140px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.class-task-file img,
.class-task-file iframe {
  width: 100%;
  height: 160px;
  border: 0;
  display: block;
  object-fit: cover;
}

.class-task-file a {
  display: inline-flex;
  padding: 0.6rem;
}

.class-task-submit-form {
  display: grid;
  gap: 0.6rem;
}

.class-task-submit-form textarea {
  min-height: 84px;
}

.the-game-quiz {
  border: 1px solid rgba(26, 79, 154, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(243, 248, 255, 0.95));
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.the-game-quiz-instruction {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.the-game-quiz-fill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem;
}

.the-game-quiz-inline-wrap {
  border: 1px solid rgba(26, 79, 154, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.62rem;
}

.the-game-quiz-inline {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.7;
}

.the-game-inline-blank {
  display: inline-block;
  vertical-align: baseline;
  width: clamp(110px, 26vw, 210px);
  min-height: 34px;
  margin: 0 0.28rem;
  padding: 0.25rem 0.45rem;
  border: 0;
  border-bottom: 2px solid rgba(26, 79, 154, 0.55);
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  color: var(--ink);
}

.the-game-inline-blank:focus {
  outline: none;
  border-bottom-color: var(--brand);
  box-shadow: 0 2px 0 rgba(22, 120, 255, 0.25);
}

.the-game-quiz-vf-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: var(--ink);
}

.the-game-quiz-vf-list {
  display: grid;
  gap: 0.45rem;
}

.the-game-quiz-vf-item {
  border: 1px solid rgba(26, 79, 154, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.48rem 0.6rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
}

.the-game-quiz-vf-label {
  font-weight: 600;
  color: var(--ink);
}

.the-game-quiz-vf-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.the-game-quiz-vf-choice input {
  width: auto;
  margin: 0;
}

.the-game-quiz-refs {
  border: 1px dashed rgba(26, 79, 154, 0.26);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 0.35rem;
}

.the-game-quiz-refs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.the-game-quiz-choice-list {
  display: grid;
  gap: 0.4rem;
}

.the-game-quiz-choice-item {
  border: 1px solid rgba(26, 79, 154, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.the-game-quiz-choice-item input {
  width: auto;
  margin-top: 0.2rem;
}

.the-game-quiz-paired-list {
  display: grid;
  gap: 0.55rem;
}

.the-game-quiz-paired-group {
  border: 1px solid rgba(26, 79, 154, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.the-game-quiz-matching-list {
  display: grid;
  gap: 0.5rem;
}

.the-game-quiz-matching-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  border: 1px solid rgba(26, 79, 154, 0.2);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.6rem;
}

.the-game-quiz-matching-source {
  font-weight: 600;
}

.the-game-quiz-matching-item select {
  width: 100%;
}

.the-game-verse-modal-card {
  width: min(920px, 98%);
}

.the-game-verse-modal-body {
  max-height: 62vh;
  overflow: auto;
  line-height: 1.6;
}

.class-task-member-list {
  display: grid;
  gap: 0.45rem;
}

.class-task-member-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.56rem 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  min-width: 0;
}

.class-task-member-link:hover {
  text-decoration: none;
  border-color: rgba(26, 79, 154, 0.45);
}

.class-task-member-link.is-active {
  border-color: rgba(26, 79, 154, 0.5);
  background: #f3f8ff;
}

.class-task-member-link > div {
  flex: 1 1 auto;
  min-width: 0;
}

.class-task-member-link strong,
.class-task-member-link small {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.class-task-pending-count {
  color: #d72a1f;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.class-task-review-card {
  border: 1px solid rgba(210, 222, 239, 0.9);
  border-radius: 14px;
  padding: 0.7rem;
  margin-top: 0.7rem;
  background: #fff;
}

.chat-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
  max-height: 420px;
  overflow: auto;
}

.chat-message {
  border: 1px solid rgba(210, 222, 239, 0.8);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.65rem 0.7rem;
}

.chat-message.mine {
  border-color: rgba(26, 79, 154, 0.35);
  background: linear-gradient(180deg, #f4f8ff, #eaf3ff);
}

.chat-message p {
  margin: 0;
  color: var(--ink);
}

.chat-message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.chat-private-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.private-conversation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  display: grid;
  gap: 0.35rem;
}

.treasury-stats {
  margin-top: 0.8rem;
}

.treasury-list {
  display: grid;
  gap: 0.5rem;
}

.treasury-list-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.58rem 0.68rem;
  background: #fff;
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
}

.treasury-list-item:hover {
  text-decoration: none;
  border-color: rgba(26, 79, 154, 0.45);
}

.treasury-list-item.is-active {
  border-color: rgba(26, 79, 154, 0.55);
  background: #f2f7ff;
}

.private-conversation-card small {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.photo-tile {
  display: block;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f8ff;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chat-group-open {
  min-height: 42px;
  padding: 0.5rem 0.78rem;
}

.chat-floating-layer {
  position: relative;
  min-height: 24px;
}

.floating-chat-window {
  position: fixed;
  width: min(760px, 94vw);
  height: min(560px, 72vh);
  min-width: 320px;
  min-height: 260px;
  max-height: 86vh;
  border: 1px solid rgba(26, 79, 154, 0.35);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(14, 43, 90, 0.26);
  overflow: hidden;
  resize: both;
}

.floating-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.65rem;
  cursor: move;
  touch-action: none;
  user-select: none;
  background: linear-gradient(90deg, rgba(26, 79, 154, 0.95), rgba(53, 201, 238, 0.86));
  color: #fff;
}

html.copy-protected body * {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html.copy-protected body input,
html.copy-protected body textarea,
html.copy-protected body [contenteditable="true"],
html.copy-protected body [data-allow-copy],
html.copy-protected body .allow-copy,
html.copy-protected body .copy-box,
html.copy-protected body .copy-box *,
html.copy-protected body .allow-copy * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.floating-chat-header strong {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}

.floating-chat-title {
  display: grid;
  gap: 0.12rem;
}

.floating-active-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 600;
}

.floating-enter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-size: 0.78rem;
}

.floating-enter-toggle input {
  width: 16px;
  height: 16px;
}

.floating-chat-content {
  display: grid;
  grid-template-columns: 1fr 210px;
  min-height: 220px;
  height: calc(100% - 44px);
}

.floating-chat-main {
  display: grid;
  grid-template-rows: 1fr auto;
  border-right: 1px solid var(--line);
}

.floating-chat-messages {
  padding: 0.75rem;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  justify-items: start;
  background: linear-gradient(180deg, #f8fbff, #ffffff 42%);
}

.floating-chat-messages .chat-message {
  display: inline-flex;
  width: fit-content;
  max-width: 86%;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
}

.floating-chat-messages .chat-message.mine {
  justify-self: end;
}

.floating-chat-messages .chat-message-head {
  display: none;
}

.floating-chat-messages .chat-message p {
  margin: 0;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-system-event {
  text-align: center;
}

.chat-system-event span {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  background: rgba(26, 79, 154, 0.12);
  color: var(--brand);
}

.floating-chat-inputs {
  border-top: 1px solid var(--line);
  padding: 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.floating-chat-inputs textarea {
  min-height: 40px;
  max-height: 160px;
  resize: none;
  overflow: auto;
}

.floating-chat-participants {
  padding: 0.7rem;
  background: #f5f9ff;
  overflow: auto;
}

.floating-chat-participants h4 {
  margin-bottom: 0.55rem;
}

.floating-participants-list {
  display: grid;
  gap: 0.4rem;
}

.floating-participant {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.42rem 0.5rem;
  background: #fff;
  display: block;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-participant small {
  margin: 0;
  font-size: 0.74rem;
}

.floating-chat-window.is-fullscreen {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: none;
  border-radius: 0;
  resize: none;
}

.floating-chat-window.is-minimized {
  left: auto !important;
  top: auto !important;
  right: 12px;
  bottom: 12px;
  width: 340px !important;
  height: auto !important;
  min-height: unset;
  max-height: none;
  resize: none;
}

.floating-chat-window.is-minimized .floating-chat-content {
  display: none;
}

.floating-chat-window.is-minimized .floating-chat-header {
  cursor: default;
}

.rede-menu {
  --rede-accent: #1a4f9a;
  --rede-soft: rgba(26, 79, 154, 0.13);
  --rede-strong: #245cae;
  --rede-ink: #0f2b57;
  --rede-bg-soft: rgba(26, 79, 154, 0.14);
  --rede-on-accent: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--rede-bg-soft), rgba(255, 255, 255, 0.64));
  border: 1px solid var(--rede-soft);
}

.rede-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 10px;
  border: 1px solid var(--rede-soft);
  color: var(--rede-ink);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
}

.rede-menu a.active {
  background: linear-gradient(120deg, var(--rede-accent), var(--rede-strong));
  color: var(--rede-on-accent);
  border-color: transparent;
}

.rede-shell {
  --rede-accent: #1a4f9a;
  --rede-soft: rgba(26, 79, 154, 0.13);
  --rede-strong: #245cae;
  --rede-ink: #0f2b57;
  --rede-bg-soft: rgba(26, 79, 154, 0.14);
  --rede-on-accent: #ffffff;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, var(--rede-bg-soft), transparent 38%),
    radial-gradient(circle at 100% 14%, var(--rede-soft), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(251, 253, 255, 0.95));
  border: 1px solid var(--rede-soft);
}

.rede-menu[data-rede-theme='VERMELHO'], .rede-shell[data-rede-theme='VERMELHO'] { --rede-accent: #ba2323; --rede-strong: #7f0f0f; --rede-soft: rgba(186, 35, 35, 0.3); --rede-bg-soft: rgba(186, 35, 35, 0.2); --rede-ink: #5e1414; }
.rede-menu[data-rede-theme='ROSA'], .rede-shell[data-rede-theme='ROSA'] { --rede-accent: #bf3e82; --rede-strong: #7a1d4e; --rede-soft: rgba(191, 62, 130, 0.28); --rede-bg-soft: rgba(191, 62, 130, 0.18); --rede-ink: #601a3f; }
.rede-menu[data-rede-theme='VERDE'], .rede-shell[data-rede-theme='VERDE'] { --rede-accent: #28924d; --rede-strong: #166030; --rede-soft: rgba(40, 146, 77, 0.28); --rede-bg-soft: rgba(40, 146, 77, 0.18); --rede-ink: #12462a; }
.rede-menu[data-rede-theme='AZUL'], .rede-shell[data-rede-theme='AZUL'] { --rede-accent: #1b59aa; --rede-strong: #123c70; --rede-soft: rgba(27, 89, 170, 0.28); --rede-bg-soft: rgba(27, 89, 170, 0.18); --rede-ink: #102f5f; }
.rede-menu[data-rede-theme='LARANJADO'], .rede-shell[data-rede-theme='LARANJADO'] { --rede-accent: #cf6f1d; --rede-strong: #874611; --rede-soft: rgba(207, 111, 29, 0.29); --rede-bg-soft: rgba(207, 111, 29, 0.2); --rede-ink: #67350e; }
.rede-menu[data-rede-theme='AMARELO'], .rede-shell[data-rede-theme='AMARELO'] { --rede-accent: #b38b00; --rede-strong: #7a5f00; --rede-soft: rgba(179, 139, 0, 0.32); --rede-bg-soft: rgba(179, 139, 0, 0.2); --rede-ink: #5b4500; }
.rede-menu[data-rede-theme='ROXO'], .rede-shell[data-rede-theme='ROXO'] { --rede-accent: #7445bb; --rede-strong: #482a76; --rede-soft: rgba(116, 69, 187, 0.3); --rede-bg-soft: rgba(116, 69, 187, 0.2); --rede-ink: #3a1f63; }
.rede-menu[data-rede-theme='PRETO'], .rede-shell[data-rede-theme='PRETO'] { --rede-accent: #2f2f33; --rede-strong: #141418; --rede-soft: rgba(47, 47, 51, 0.36); --rede-bg-soft: rgba(47, 47, 51, 0.22); --rede-ink: #18181a; }

.rede-shell .section-card {
  border-color: var(--rede-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86));
}

.rede-shell h2,
.rede-shell h3,
.rede-shell strong {
  color: var(--rede-ink);
}

.rede-shell p,
.rede-shell small,
.rede-shell label,
.rede-shell li,
.rede-shell span {
  color: var(--rede-ink);
}

.username-link {
  color: var(--rede-accent);
  font-weight: 700;
  text-decoration: none;
}

.username-link:hover {
  text-decoration: underline;
}

.search-users-list {
  margin-top: 0.35rem;
}

.search-users-cards {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.5rem;
}

.search-user-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.5rem;
  padding: 0.45rem;
  border: 1px solid var(--rede-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.search-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--rede-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--rede-ink);
  font-weight: 700;
  text-decoration: none;
}

.search-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-user-meta {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.search-user-meta strong,
.search-user-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shield-card {
  margin: 0.8rem 0;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--rede-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
}

.shield-stack {
  position: relative;
  width: 154px;
  height: 170px;
  margin: 0 auto 0.55rem;
}

.shield-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shield-image-bw {
  filter: none;
  opacity: 0.84;
}

.shield-color-mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shield-image-color {
  filter: saturate(1.08);
  clip-path: inset(calc(100% - var(--shield-fill, 0%)) 0 0 0);
  -webkit-clip-path: inset(calc(100% - var(--shield-fill, 0%)) 0 0 0);
  transition: clip-path 220ms ease;
}

.shield-stars {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  color: #f2aa00;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shield-stars .small-star {
  font-size: 0.95rem;
}

.shield-stars .big-star {
  font-size: 1.35rem;
}

.shield-stars small {
  color: var(--rede-ink);
  font-weight: 700;
}

.shield-card p {
  margin-bottom: 0.3rem;
}

.shield-card small {
  margin: 0.18rem 0;
}

.community-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.community-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  background: #fff;
}

.community-cover-mini {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f4f8ff;
  color: var(--muted);
  font-size: 0.72rem;
}

.community-cover-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-content p {
  margin: 0.25rem 0 0.45rem;
}

.rede-right {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.rede-side-block {
  border: 1px solid var(--rede-soft);
  border-radius: 12px;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
}

.rede-side-block h3 {
  margin-bottom: 0.48rem;
}

.social-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.social-preview-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.84rem;
}

.social-preview-card {
  display: grid;
  gap: 0.26rem;
  text-decoration: none;
}

.social-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid var(--rede-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rede-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.social-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-preview-name {
  display: block;
  color: var(--rede-ink);
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-preview-more {
  display: inline-block;
  margin-top: 0.44rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: lowercase;
}

.community-room-layout {
  --rede-accent: #1a4f9a;
  --rede-soft: rgba(26, 79, 154, 0.2);
  --rede-ink: #0f2b57;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0.9rem;
  margin-top: 0.95rem;
  border-color: var(--rede-soft);
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 79, 154, 0.1), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.95));
}

.community-room-layout[data-rede-theme='VERMELHO'] { --rede-accent: #ba2323; --rede-soft: rgba(186, 35, 35, 0.25); --rede-ink: #5e1414; }
.community-room-layout[data-rede-theme='ROSA'] { --rede-accent: #bf3e82; --rede-soft: rgba(191, 62, 130, 0.24); --rede-ink: #601a3f; }
.community-room-layout[data-rede-theme='VERDE'] { --rede-accent: #28924d; --rede-soft: rgba(40, 146, 77, 0.24); --rede-ink: #12462a; }
.community-room-layout[data-rede-theme='AZUL'] { --rede-accent: #1b59aa; --rede-soft: rgba(27, 89, 170, 0.24); --rede-ink: #102f5f; }
.community-room-layout[data-rede-theme='LARANJADO'] { --rede-accent: #cf6f1d; --rede-soft: rgba(207, 111, 29, 0.24); --rede-ink: #67350e; }
.community-room-layout[data-rede-theme='AMARELO'] { --rede-accent: #b38b00; --rede-soft: rgba(179, 139, 0, 0.26); --rede-ink: #5b4500; }
.community-room-layout[data-rede-theme='ROXO'] { --rede-accent: #7445bb; --rede-soft: rgba(116, 69, 187, 0.26); --rede-ink: #3a1f63; }
.community-room-layout[data-rede-theme='PRETO'] { --rede-accent: #2f2f33; --rede-soft: rgba(47, 47, 51, 0.28); --rede-ink: #18181a; }

.community-room-left {
  border: 1px solid var(--rede-soft);
  border-radius: 12px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.93);
}

.community-room-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--rede-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: var(--rede-ink);
  font-size: 1.5rem;
  font-weight: 800;
}

.community-room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-room-side-title {
  margin: 0.58rem 0 0.5rem;
  color: var(--rede-ink);
}

.community-room-side-actions {
  display: grid;
  gap: 0.48rem;
}

.community-room-side-actions .btn {
  width: 100%;
}

.community-room-members {
  margin-top: 0.74rem;
}

.community-room-members h4 {
  margin-bottom: 0.45rem;
  color: var(--rede-ink);
}

.community-room-members-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.34rem;
}

.community-room-members-list li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.community-room-member-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rede-soft);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--rede-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.community-room-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-room-member-name {
  font-size: 0.84rem;
  color: var(--rede-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-room-main-panel {
  border: 1px solid var(--rede-soft);
  border-radius: 12px;
  padding: 0.86rem;
  background: rgba(255, 255, 255, 0.94);
}

.community-room-top-actions {
  display: flex;
  justify-content: flex-end;
}

.community-room-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 0.5rem;
  margin-bottom: 0.46rem;
  color: var(--rede-ink);
}

.community-room-description {
  margin-bottom: 0.36rem;
  color: var(--rede-ink);
}

.community-room-creator {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--rede-ink);
}

.community-room-forum {
  border-top: 1px solid var(--rede-soft);
  padding-top: 0.64rem;
}

.community-room-forum h3 {
  margin-bottom: 0.52rem;
}

.community-room-box {
  max-height: 52vh;
}

.report-profile-card {
  margin-top: 0.75rem;
}

.report-profile-card small {
  display: block;
  margin-top: 0.45rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 43, 84, 0.54);
  z-index: 99;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(480px, 96%);
  border-radius: 16px;
  background: #fff;
  padding: 1.1rem;
  box-shadow: var(--card-shadow);
}

.community-room-modal-card {
  width: min(860px, 98%);
  max-height: min(82vh, 760px);
  overflow: auto;
}

.community-room-box {
  max-height: 52vh;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(210, 222, 239, 0.85);
  background: rgba(255, 255, 255, 0.88);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .section-grid,
  .section-grid.two-columns-fixed,
  .admin-club-grid,
  .stats-strip,
  .stats-grid,
  .form-grid.two-columns,
  .form-grid.three-columns,
  .rede-shell,
  .floating-chat-content,
  .plans-hero,
  .plans-card-grid {
    grid-template-columns: 1fr;
  }

  .community-room-layout {
    grid-template-columns: 1fr;
  }

  .rede-shell {
    gap: 0.7rem;
    padding: 0.62rem;
  }

  .rede-main {
    order: 1;
  }

  .rede-left {
    order: 2;
  }

  .rede-right {
    order: 3;
  }

  .rede-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .rede-menu a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .community-room-modal-card {
    width: min(96vw, 860px);
    max-height: calc(100vh - 18px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .main-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .nav-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0;
  }

  .brand-logo {
    width: 138px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .main-nav {
    width: 100%;
  }

  .nav-user-summary {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    order: 98;
  }

  .birthday-highlight-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .birthday-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-panel {
    position: fixed;
    top: 78px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 92px);
  }

  .input-inline {
    grid-template-columns: 1fr;
  }

  .floating-chat-window {
    width: calc(100vw - 12px);
    left: 6px !important;
    top: 72px !important;
    height: calc(100vh - 84px);
    max-height: calc(100vh - 84px);
    border-radius: 12px;
    resize: none;
  }

  .chat-group-open {
    min-height: 46px;
    padding: 0.56rem 0.74rem;
    font-size: 0.92rem;
    border-radius: 12px;
  }

  .floating-chat-header {
    align-items: flex-start;
    padding: 0.48rem 0.5rem;
  }

  .floating-chat-header .inline-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.32rem;
  }

  .floating-chat-header .inline-actions .btn {
    min-height: 38px;
    min-width: 82px;
    padding: 0.38rem 0.6rem;
  }

  .floating-enter-toggle {
    font-size: 0.72rem;
  }

  .floating-chat-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: calc(100% - 74px);
  }

  .floating-chat-main {
    border-right: 0;
  }

  .floating-chat-messages {
    padding: 0.55rem;
  }

  .floating-chat-messages .chat-message {
    max-width: 92%;
  }

  .floating-chat-participants {
    border-top: 1px solid var(--line);
    padding: 0.5rem;
    max-height: 128px;
  }

  .floating-participants-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
  }

  .floating-chat-window.is-minimized {
    left: 6px !important;
    right: 6px;
    bottom: 6px;
    width: auto !important;
  }

  .rede-shell {
    padding: 0.55rem;
    gap: 0.55rem;
    border-radius: 12px;
  }

  .rede-left.section-card,
  .rede-main.section-card,
  .rede-right.section-card,
  .rede-side-block {
    padding: 0.56rem;
  }

  .community-item {
    grid-template-columns: 68px 1fr;
    gap: 0.5rem;
  }

  .community-cover-mini {
    width: 68px;
    height: 68px;
  }

  .social-preview-grid {
    gap: 0.34rem;
  }

  .social-preview-name {
    font-size: 0.68rem;
  }

  .community-room-modal-card {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
    padding: 0.65rem;
    border-radius: 12px;
  }

  .community-room-layout {
    gap: 0.6rem;
    margin-top: 0.5rem;
  }

  .community-room-main-panel {
    padding: 0.65rem;
  }

  .community-room-title {
    font-size: 1.35rem;
  }

  .community-room-box {
    max-height: 48vh;
  }

  .plans-compare {
    margin-bottom: 5.7rem;
  }

  .plan-mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .plan-mobile-cta form {
    width: 100%;
  }

  .plan-mobile-cta .btn {
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 120;
  width: min(680px, calc(100vw - 24px));
  border: 1px solid rgba(25, 84, 180, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 34px rgba(7, 26, 72, 0.22);
  padding: 1rem;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-title {
  margin-bottom: 0.55rem;
  color: #131c2f;
  font-size: 1.02rem;
}

.cookie-consent-text {
  margin-bottom: 0.9rem;
  color: #232f46;
  font-size: 0.98rem;
  line-height: 1.42;
}

.cookie-consent-text a {
  color: #5b3ff5;
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-consent-settings {
  margin-top: 0.72rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(79, 111, 255, 0.24);
  display: grid;
  gap: 0.5rem;
}

.cookie-consent-settings.is-open {
  display: grid;
}

.cookie-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #1d315d;
  font-size: 0.93rem;
}

.cookie-consent-row input[type='checkbox'] {
  margin: 0.12rem 0 0;
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.cookie-consent-settings-actions {
  margin-top: 0.3rem;
}

/* WhatsApp floating button */
.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #27d66e, #18a851);
  box-shadow: 0 14px 24px rgba(14, 87, 45, 0.35);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  display: block;
}

.floating-whatsapp:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

/* Sales website style direction across portal */
:root {
  --bg-1: #f2f6ff;
  --bg-2: #ffffff;
  --ink: #0f234e;
  --muted: #4f628f;
  --brand: #3366ff;
  --brand-2: #6a52ff;
  --brand-accent: #5aa8ff;
  --line: #d6e1f7;
  --card-shadow: 0 16px 30px rgba(18, 38, 83, 0.14);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(106, 82, 255, 0.15), transparent 35%),
    radial-gradient(circle at 95% 15%, rgba(90, 168, 255, 0.16), transparent 36%),
    linear-gradient(160deg, #f6f8ff 0%, #edf3ff 55%, #f8faff 100%);
}

.site-header {
  background:
    linear-gradient(112deg, rgba(23, 41, 98, 0.9), rgba(43, 64, 140, 0.86)),
    rgba(255, 255, 255, 0.08);
}

.hero-card,
.section-card,
.feature-card {
  border-radius: 20px;
  border-color: rgba(51, 102, 255, 0.2);
}

.btn {
  background: linear-gradient(135deg, #6a52ff 0%, #4c7dff 48%, #5aa8ff 100%);
  box-shadow: 0 10px 20px rgba(53, 84, 201, 0.3);
}

.btn-ghost {
  color: #284c9a;
  border-color: rgba(51, 102, 255, 0.3);
}

.dashboard-tabs a.active {
  background: linear-gradient(130deg, rgba(106, 82, 255, 0.15), rgba(90, 168, 255, 0.17));
  border-color: rgba(106, 82, 255, 0.34);
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 0.82rem;
  }

  .cookie-consent-actions .btn {
    width: 100%;
  }

  .floating-whatsapp {
    right: 10px;
    bottom: 10px;
    width: 54px;
    height: 54px;
  }
}

/* Landing page model - Biblioteca style */
.leaderlp {
  --lp-bg-dark: #152943;
  --lp-bg-dark-2: #1d3558;
  --lp-accent-yellow: #f3c13a;
  --lp-accent-red: #c62828;
  --lp-accent-blue: #274f84;
  --lp-gray: #f2f4f7;
  --lp-text-muted: #6b768a;
  --lp-shadow: 0 20px 38px rgba(12, 32, 63, 0.16);
  background: #ffffff;
}

.leaderlp-container {
  width: min(1120px, 94%);
  margin: 0 auto;
}

.leaderlp-narrow {
  width: min(860px, 94%);
}

.leaderlp-section {
  padding: 5.2rem 0;
}

.leaderlp-section-head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.leaderlp-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.85rem);
  color: var(--lp-accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.leaderlp-section-head p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--lp-text-muted);
  font-size: 1.05rem;
}

.leaderlp-section-head-light h2,
.leaderlp-section-head-light p {
  color: #ffffff;
}

.leaderlp-badge,
.leaderlp-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderlp-badge {
  background: rgba(243, 193, 58, 0.22);
  color: var(--lp-accent-yellow);
  font-size: 0.76rem;
  margin-bottom: 1rem;
}

.leaderlp-mini-badge {
  background: rgba(39, 79, 132, 0.12);
  color: var(--lp-accent-blue);
  font-size: 0.72rem;
  margin-bottom: 0.95rem;
}

.leaderlp-divider {
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: var(--lp-accent-yellow);
  margin: 0.4rem auto 1rem;
}

.leaderlp-hero {
  background:
    radial-gradient(circle at right top, rgba(198, 40, 40, 0.25), transparent 38%),
    radial-gradient(circle at left bottom, rgba(243, 193, 58, 0.14), transparent 40%),
    linear-gradient(140deg, var(--lp-bg-dark), var(--lp-bg-dark-2));
  color: #ffffff;
  padding: 4.2rem 0 3.4rem;
  position: relative;
  overflow: hidden;
}

.leaderlp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
}

.leaderlp-hero-visual {
  display: grid;
  justify-items: center;
}

.leaderlp-hero-media {
  width: min(100%, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(8, 18, 40, 0.34));
}

.leaderlp-hero-content {
  text-align: left;
}

.leaderlp-hero h1 {
  max-width: 860px;
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.65vw, 2.46rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.leaderlp-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.8rem;
  max-width: 780px;
}

.leaderlp-hero-sub strong {
  color: var(--lp-accent-yellow);
}

.leaderlp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.leaderlp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0.74rem 1.15rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.leaderlp-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.leaderlp-btn-primary {
  background: var(--lp-accent-red);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(198, 40, 40, 0.34);
}

.leaderlp-btn-primary:hover {
  filter: brightness(1.04);
}

.leaderlp-btn-ghost,
.leaderlp-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.leaderlp-btn-outline {
  background: #f3f5f8;
  color: var(--lp-accent-blue);
  border: 1px solid #cfd8e7;
}

.leaderlp-safe {
  margin-top: 0.9rem;
  color: #cfd8eb;
  font-size: 0.9rem;
}

.leaderlp-payment-window-note {
  margin-top: 0.4rem;
  color: #b8c7e7;
  font-size: 0.82rem;
  line-height: 1.35;
}

.leaderlp-payment-window-note.is-light {
  margin-top: 0.25rem;
  color: #5d6f93;
}

.leaderlp-section-video {
  background: #ffffff;
}

.leaderlp-video-grid {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}

.leaderlp-video-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--lp-shadow);
  border: 4px solid #ffffff;
  background: #111;
  width: 100%;
  max-width: 760px;
}

.leaderlp-video-box iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.leaderlp-cover-box {
  background:
    radial-gradient(circle at 20% 18%, rgba(101, 139, 255, 0.28), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(255, 123, 82, 0.22), transparent 30%),
    linear-gradient(135deg, #0f2343 0%, #173461 52%, #1f4e84 100%);
  min-height: 520px;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 1.5rem 1.5rem 0;
}

.leaderlp-cover-box-clean {
  background:
    radial-gradient(circle at 20% 18%, rgba(101, 139, 255, 0.16), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(255, 123, 82, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 245, 255, 0.96));
  border-color: rgba(39, 79, 132, 0.1);
}

.leaderlp-cover-media {
  width: min(100%, 760px);
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.leaderlp-video-list h3 {
  margin-bottom: 0.7rem;
  color: #1f2a3f;
  text-align: center;
}

.leaderlp-video-list ul {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.leaderlp-video-list li {
  position: relative;
  padding-left: 1.2rem;
  color: #44506a;
}

.leaderlp-video-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lp-accent-red);
}

.leaderlp-video-list p {
  font-weight: 700;
  color: var(--lp-accent-blue);
  text-align: center;
}

.leaderlp-video-fallback {
  margin: 0.38rem 0 0;
  font-size: 0.78rem;
  color: #5b6d90;
  text-align: center;
}

.club-home-video-wrap {
  margin-top: 1rem;
  display: grid;
  justify-items: center;
}

.club-home-hero-visual {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.club-home-video-box {
  max-width: 640px;
  border-radius: 16px;
  border-width: 3px;
  box-shadow: 0 12px 24px rgba(15, 38, 77, 0.14);
  min-height: 420px;
}

.club-home-video-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #5b6d90;
  text-align: center;
}

.leaderlp-section-story {
  background: var(--lp-gray);
}

.leaderlp-story-card {
  background: #ffffff;
  border: 1px solid #dce3ef;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(16, 37, 77, 0.08);
}

.leaderlp-story-card p {
  font-size: 1.08rem;
  color: #4a5670;
  line-height: 1.68;
}

.leaderlp-story-highlight {
  margin: 1.1rem 0;
  border-left: 4px solid var(--lp-accent-red);
  background: rgba(198, 40, 40, 0.08);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 1.15rem;
  color: var(--lp-accent-red);
  font-size: 1.26rem;
}

.leaderlp-story-end {
  color: var(--lp-accent-blue) !important;
  font-weight: 800;
  text-align: center;
}

.leaderlp-section-dark {
  background: var(--lp-bg-dark);
}

.leaderlp-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.leaderlp-dark-feature {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.leaderlp-dark-feature h3 {
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.leaderlp-dark-feature p {
  color: #ced7ea;
  margin: 0;
}

.leaderlp-section-features {
  background: #ffffff;
}

.leaderlp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.leaderlp-feature-card {
  border: 1px solid #d9e2f1;
  border-radius: 18px;
  padding: 1.05rem;
  background: #f8fafc;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.leaderlp-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 79, 132, 0.35);
  box-shadow: 0 14px 24px rgba(22, 44, 86, 0.12);
}

.leaderlp-feature-card h3 {
  font-size: 1.2rem;
  color: #1f2f52;
  margin-bottom: 0.3rem;
}

.leaderlp-feature-card p {
  color: #5d6d8b;
  margin: 0;
}

.leaderlp-section-testimonials {
  background: var(--lp-gray);
}

.leaderlp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.leaderlp-testimonial-card {
  border: 1px solid #d8dfeb;
  border-radius: 16px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 38, 77, 0.08);
}

.leaderlp-testimonial-card p {
  color: #44516b;
  margin-bottom: 0.7rem;
  line-height: 1.52;
}

.leaderlp-testimonial-card strong {
  color: var(--lp-accent-blue);
}

.leaderlp-section-plans {
  background: var(--lp-gray);
}

.leaderlp-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.leaderlp-plan-grid.leaderlp-plan-grid-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.leaderlp-plan-grid.leaderlp-plan-grid-single .leaderlp-plan-card {
  width: min(560px, 100%);
}

.leaderlp-plan-card {
  position: relative;
  border: 1px solid #d3dceb;
  border-radius: 20px;
  background: #ffffff;
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(18, 39, 82, 0.08);
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.leaderlp-plan-card h3 {
  margin: 0;
  color: #1f2f52;
}

.leaderlp-plan-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--lp-accent-blue);
  margin: 0;
  line-height: 1;
}

.leaderlp-plan-price small {
  font-size: 0.9rem;
  color: #7a879f;
}

.leaderlp-plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.46rem;
  color: #495874;
}

.leaderlp-plan-card ul li {
  position: relative;
  padding-left: 1.1rem;
}

.leaderlp-plan-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4a65a5;
}

.leaderlp-plan-card .leaderlp-btn {
  margin-top: 0.5rem;
}

.leaderlp-plan-card-featured {
  background: var(--lp-bg-dark);
  border: 2px solid var(--lp-accent-yellow);
  color: #ffffff;
  transform: translateY(-12px);
  box-shadow: 0 18px 30px rgba(15, 36, 78, 0.26);
}

.leaderlp-plan-card-featured h3,
.leaderlp-plan-card-featured .leaderlp-plan-price {
  color: #ffffff;
}

.leaderlp-plan-card-featured .leaderlp-plan-price small {
  color: #b8c8eb;
}

.leaderlp-plan-card-featured ul li {
  color: #e8efff;
}

.leaderlp-plan-card-featured ul li::before {
  background: var(--lp-accent-yellow);
}

.leaderlp-plan-card-featured .leaderlp-btn-primary {
  background: var(--lp-accent-red);
}

.leaderlp-plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 0.24rem 0.8rem;
  background: var(--lp-accent-yellow);
  color: var(--lp-accent-blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderlp-section-faq {
  background: var(--lp-bg-dark);
}

.leaderlp-faq-list {
  display: grid;
  gap: 0.6rem;
}

.leaderlp-faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.leaderlp-faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1rem;
  color: #ffffff;
  font-weight: 700;
}

.leaderlp-faq-list summary::-webkit-details-marker {
  display: none;
}

.leaderlp-faq-list p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #d0d8ea;
}

.leaderlp-section-final {
  background: #ffffff;
  padding-top: 4rem;
  padding-bottom: 3.2rem;
}

.leaderlp-final-card {
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(243, 193, 58, 0.22), transparent 38%),
    linear-gradient(145deg, var(--lp-bg-dark), var(--lp-bg-dark-2));
  color: #ffffff;
  text-align: center;
  padding: 2rem 1.2rem;
  box-shadow: 0 20px 36px rgba(19, 43, 86, 0.24);
}

.leaderlp-final-card h2 {
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.leaderlp-final-card p {
  color: #d8e1f2;
  margin-bottom: 1rem;
}

.leaderlp-final-card .leaderlp-btn {
  min-width: 280px;
}

.leaderlp .landing-social-links {
  margin-top: 1rem;
  justify-content: center;
}

.leaderlp .landing-social-links a {
  border-color: rgba(39, 79, 132, 0.28);
  color: #1d427d;
}

@media (max-width: 1024px) {
  .leaderlp-hero-grid,
  .leaderlp-video-grid,
  .leaderlp-dark-grid,
  .leaderlp-testimonial-grid,
  .leaderlp-plan-grid {
    grid-template-columns: 1fr;
  }

  .leaderlp-hero-content {
    text-align: center;
  }

  .leaderlp-divider,
  .leaderlp-actions {
    justify-content: center;
  }

  .leaderlp-feature-grid {
    grid-template-columns: 1fr;
  }

  .leaderlp-plan-card-featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .leaderlp-section {
    padding: 3.6rem 0;
  }

  .leaderlp-hero {
    padding: 3.1rem 0 2.6rem;
  }

  .leaderlp-hero-media {
    width: min(100%, 380px);
  }

  .leaderlp-hero h1 {
    font-size: clamp(1.05rem, 5.4vw, 1.5rem);
  }

  .leaderlp-story-card {
    padding: 1.2rem;
  }

  .leaderlp-story-highlight {
    font-size: 1.08rem;
  }

  .leaderlp-btn,
  .leaderlp-btn-primary,
  .leaderlp-btn-ghost,
  .leaderlp-btn-outline {
    width: 100%;
  }

  .leaderlp-final-card .leaderlp-btn {
    min-width: 0;
    width: 100%;
  }
}

/* Sales template inspired global overhaul */
:root {
  --bg-1: #f5f8ff;
  --bg-2: #ffffff;
  --ink: #10254d;
  --muted: #5a6d92;
  --brand: #4f6fff;
  --brand-2: #735bff;
  --brand-accent: #4fb8ff;
  --line: #dce5fb;
  --card-shadow: 0 22px 40px rgba(17, 45, 99, 0.12);
}

body {
  background:
    radial-gradient(circle at 9% 0%, rgba(114, 94, 255, 0.18), transparent 35%),
    radial-gradient(circle at 90% 12%, rgba(79, 184, 255, 0.2), transparent 38%),
    linear-gradient(170deg, #f8faff 0%, #eef3ff 55%, #f9fbff 100%) !important;
}

.site-header {
  background:
    linear-gradient(110deg, rgba(21, 36, 84, 0.9), rgba(40, 61, 138, 0.84)),
    rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(110, 132, 255, 0.28) !important;
  backdrop-filter: blur(12px);
}

.main-nav a {
  color: #eef2ff !important;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
}

.main-nav a:hover {
  background: rgba(126, 166, 255, 0.22) !important;
}

.nav-user-summary {
  border-color: rgba(126, 166, 255, 0.42) !important;
  background: rgba(18, 35, 83, 0.58) !important;
}

.club-strip {
  background: linear-gradient(90deg, rgba(114, 94, 255, 0.3), rgba(79, 184, 255, 0.26), rgba(132, 105, 255, 0.3)) !important;
}

.hero-card,
.section-card,
.feature-card,
.stats-strip article {
  border: 1px solid rgba(79, 111, 255, 0.2) !important;
  border-radius: 24px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)) !important;
  box-shadow: var(--card-shadow) !important;
}

.btn {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #6c59ff 0%, #4f7dff 46%, #4fb8ff 100%) !important;
  box-shadow: 0 12px 24px rgba(56, 83, 199, 0.3) !important;
}

.btn-ghost {
  border: 1px solid rgba(79, 111, 255, 0.32) !important;
  color: #2f4fa8 !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.btn-ghost:hover {
  background: rgba(79, 111, 255, 0.1) !important;
}

.dashboard-tabs {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(79, 111, 255, 0.18);
  border-radius: 16px;
  padding: 0.4rem;
}

.dashboard-tabs a {
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  min-height: 40px;
}

.dashboard-tabs a.active {
  background: linear-gradient(130deg, rgba(114, 94, 255, 0.18), rgba(79, 184, 255, 0.2)) !important;
  border-color: rgba(114, 94, 255, 0.34) !important;
  color: #173b82 !important;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(79, 111, 255, 0.18) !important;
}

.landing-hero {
  padding-top: 2.2rem !important;
}

.landing-hero-grid {
  gap: 1.2rem !important;
}

.landing-hero-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 184, 255, 0.18), transparent 40%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96)) !important;
}

.landing-urgency-card {
  border-color: rgba(114, 94, 255, 0.35) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(114, 94, 255, 0.16), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(79, 184, 255, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96)) !important;
}

/* Quiz DBV - tab highlight */
.dashboard-tabs a.dashboard-tab-quiz {
  border-color: rgba(255, 59, 106, 0.42);
  background: linear-gradient(120deg, rgba(255, 59, 106, 0.16), rgba(255, 159, 28, 0.14));
  color: #7a1334;
}

.dashboard-tabs a.dashboard-tab-quiz.active {
  border-color: rgba(255, 59, 106, 0.62);
  background: linear-gradient(125deg, rgba(255, 59, 106, 0.28), rgba(255, 159, 28, 0.26), rgba(39, 214, 255, 0.2));
  color: #5f0e28;
}

/* Quiz DBV - vivid page */
.quiz-dbv-shell {
  position: relative;
}

.quiz-dbv-focus-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.quiz-dbv-focus-card {
  width: min(760px, 100%);
  margin: 0 auto;
  border-color: rgba(39, 214, 255, 0.34);
  background:
    radial-gradient(circle at right top, rgba(39, 214, 255, 0.16), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.97));
  box-shadow: 0 18px 44px rgba(12, 32, 76, 0.12);
}

.quiz-dbv-hero-card {
  border-color: rgba(255, 59, 106, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 59, 106, 0.18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(39, 214, 255, 0.18), transparent 36%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
}

.quiz-dbv-start-card {
  border-color: rgba(255, 159, 28, 0.34);
  background: linear-gradient(140deg, rgba(255, 245, 232, 0.95), rgba(255, 255, 255, 0.96));
}

.quiz-dbv-open-start {
  min-height: 46px;
}

.quiz-dbv-question-card {
  border-color: rgba(39, 214, 255, 0.34);
  background:
    radial-gradient(circle at right top, rgba(39, 214, 255, 0.16), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
}

.quiz-dbv-question-head {
  align-items: center;
}

.quiz-dbv-timer-number {
  min-width: 64px;
  min-height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 59, 106, 0.5);
  background: linear-gradient(140deg, rgba(255, 59, 106, 0.18), rgba(255, 159, 28, 0.2));
}

.quiz-dbv-timer-number strong {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.62rem;
  line-height: 1;
  color: #8b1a36;
}

.quiz-dbv-options {
  margin-top: 0.8rem;
}

.quiz-dbv-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid rgba(20, 77, 164, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 0.74rem 0.84rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 600;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.quiz-dbv-option-btn:hover,
.quiz-dbv-option-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 59, 106, 0.52);
  box-shadow: 0 10px 20px rgba(19, 43, 96, 0.14);
}

.quiz-dbv-option-btn.is-selected {
  border-color: rgba(39, 214, 255, 0.62);
  background: linear-gradient(120deg, rgba(39, 214, 255, 0.16), rgba(255, 255, 255, 0.96));
}

.quiz-dbv-option-key {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff3b6a, #ff9f1c);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

.quiz-dbv-ranking-table .quiz-dbv-current-user td {
  background: linear-gradient(100deg, rgba(39, 214, 255, 0.14), rgba(255, 159, 28, 0.14));
}

.quiz-dbv-start-modal .quiz-dbv-start-modal-card {
  width: min(420px, 95%);
  text-align: center;
  border: 1px solid rgba(255, 59, 106, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 214, 255, 0.2), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.98));
}

.quiz-dbv-close-modal {
  justify-self: end;
  margin-left: auto;
}

.quiz-dbv-start-main-btn {
  min-height: 54px;
  font-size: 1.24rem;
  width: min(260px, 100%);
}

/* Public landing page */
.landing-main {
  padding-bottom: 0;
}

.landing-hero {
  position: relative;
  padding: 2rem 0 1.1rem;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 20%, rgba(40, 110, 62, 0.22), transparent 31%),
    radial-gradient(circle at 85% 12%, rgba(18, 78, 164, 0.2), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(188, 117, 32, 0.2), transparent 34%);
}

.landing-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.landing-hero-content h1 {
  max-width: 22ch;
}

.landing-lead {
  max-width: 62ch;
}

.landing-secondary {
  font-weight: 700;
  color: #0e3f7c;
}

.landing-hero-panel {
  border-color: rgba(18, 78, 164, 0.26);
  background:
    linear-gradient(165deg, rgba(245, 252, 248, 0.98), rgba(247, 250, 255, 0.96));
}

.landing-hero-panel h3 {
  margin-bottom: 0.55rem;
}

.landing-hero-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.landing-hero-panel li {
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.landing-section {
  padding: 0.9rem 0 1.3rem;
}

.landing-section-head {
  margin-bottom: 0.8rem;
}

.landing-feature-grid,
.landing-dual-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-feature-card {
  border-color: rgba(18, 78, 164, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.landing-section-highlight .landing-feature-card {
  border-color: rgba(40, 110, 62, 0.26);
  background:
    linear-gradient(155deg, rgba(248, 255, 250, 0.97), rgba(245, 250, 255, 0.96));
}

.landing-urgency-card {
  border: 1px solid rgba(255, 59, 106, 0.3);
  border-radius: 18px;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 59, 106, 0.16), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 159, 28, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.96));
  box-shadow: var(--card-shadow);
}

.landing-cta-primary {
  min-height: 46px;
}

.landing-faq-section {
  padding-bottom: 2.2rem;
}

.landing-faq-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-faq-item summary {
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.landing-faq-item[open] summary {
  color: #0f4f98;
}

.landing-social-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.landing-social-links a {
  border: 1px solid rgba(18, 78, 164, 0.24);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: #114b95;
  font-weight: 700;
}

.landing-social-links a:hover {
  background: rgba(39, 214, 255, 0.14);
}

@media (max-width: 960px) {
  .landing-hero-grid,
  .landing-feature-grid,
  .landing-dual-grid,
  .landing-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .quiz-dbv-question-head {
    flex-direction: row;
    justify-content: space-between;
  }

  .quiz-dbv-timer-number {
    min-width: 52px;
    min-height: 52px;
  }

  .quiz-dbv-timer-number strong {
    font-size: 1.32rem;
  }

  .quiz-dbv-option-btn {
    padding: 0.64rem 0.68rem;
  }
}

/* 2026 Vibrant Theme Overrides */
:root {
  --bg-1: #080f2d;
  --bg-2: #ffffff;
  --ink: #0d2048;
  --muted: #425f8e;
  --brand: #1678ff;
  --brand-2: #ff3b6a;
  --brand-accent: #ff9f1c;
  --brand-cyan: #27d6ff;
  --brand-green: #35d07f;
  --ok: #23935f;
  --error: #df2f44;
  --line: #c8daf5;
  --card-shadow: 0 20px 44px rgba(4, 16, 53, 0.18);
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 59, 106, 0.24), transparent 34%),
    radial-gradient(circle at 96% 10%, rgba(39, 214, 255, 0.26), transparent 35%),
    radial-gradient(circle at 50% 112%, rgba(255, 159, 28, 0.22), transparent 44%),
    linear-gradient(165deg, #f6f8ff 0%, #e8f0ff 45%, #f8fbff 100%);
}

h1,
h2,
h3,
.brand-text,
.btn {
  font-family: Helvetica, Arial, sans-serif;
}

.site-header {
  background:
    linear-gradient(120deg, rgba(9, 17, 47, 0.86), rgba(31, 50, 113, 0.78)),
    rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(39, 214, 255, 0.28);
}

.main-nav a {
  color: #eaf1ff;
}

.main-nav a:hover {
  background: rgba(39, 214, 255, 0.2);
}

.notification-bell-btn {
  border: 1px solid rgba(39, 214, 255, 0.45);
  background: rgba(9, 20, 54, 0.66);
  color: #eaf1ff;
}

.notification-bell-btn:hover {
  background: rgba(39, 214, 255, 0.24);
}

.nav-user-summary {
  border-color: rgba(39, 214, 255, 0.42);
  background: rgba(9, 20, 54, 0.58);
  color: #eaf1ff;
}

.club-strip {
  border-top: 1px solid rgba(39, 214, 255, 0.24);
  background: linear-gradient(90deg, rgba(255, 59, 106, 0.22), rgba(39, 214, 255, 0.2), rgba(255, 159, 28, 0.24));
}

.club-strip-inner,
.club-strip-inner strong,
.club-strip-inner span {
  color: #ffffff;
}

.hero-card,
.section-card,
.feature-card {
  border: 1px solid rgba(26, 92, 188, 0.24);
}

.btn {
  background: linear-gradient(135deg, #ff3b6a 0%, #ff6f3a 40%, #ff9f1c 100%);
}

.btn-ghost {
  border: 1px solid rgba(24, 102, 216, 0.34);
  color: #1b4f99;
}

.btn-ghost:hover {
  background: rgba(22, 115, 247, 0.08);
}

.site-header .btn-ghost {
  color: #eaf1ff;
  border-color: rgba(39, 214, 255, 0.42);
  background: rgba(9, 20, 54, 0.58);
}

.site-header .btn-ghost:hover {
  background: rgba(39, 214, 255, 0.2);
}

.dashboard-tabs a {
  border: 1px solid rgba(25, 107, 223, 0.24);
  background: rgba(255, 255, 255, 0.88);
}

.dashboard-tabs a.active {
  background: linear-gradient(120deg, rgba(39, 214, 255, 0.2), rgba(255, 59, 106, 0.16));
  border-color: rgba(255, 59, 106, 0.4);
  color: #0f3270;
}

.knight-manifesto {
  position: relative;
  overflow: hidden;
  border-color: rgba(22, 120, 255, 0.34);
  background:
    radial-gradient(circle at 0% 10%, rgba(39, 214, 255, 0.16), transparent 34%),
    radial-gradient(circle at 100% 90%, rgba(255, 59, 106, 0.14), transparent 36%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.95));
}

.knight-manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.knight-manifesto-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
}

.knight-categories {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.knight-category {
  border: 1px solid rgba(22, 120, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.72rem;
}

.knight-category h4 {
  margin-bottom: 0.4rem;
  color: #0d3573;
}

.knight-manifesto-visual {
  border: 1px solid rgba(22, 120, 255, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 10%, rgba(39, 214, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(9, 20, 54, 0.95), rgba(17, 36, 88, 0.96));
  padding: 0.6rem;
}

.knight-manifesto-visual img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 960px) {
  .knight-manifesto-grid {
    grid-template-columns: 1fr;
  }
}

.bible-year-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
}

.bible-year-toolbar label {
  display: grid;
  gap: 0.3rem;
  min-width: 160px;
}

.bible-year-leadership-grid {
  align-items: start;
}

.bible-year-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bible-year-month-card h3 {
  margin-bottom: 0.6rem;
}

.bible-year-reading-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.bible-year-reading-item {
  border: 1px solid rgba(24, 102, 216, 0.24);
  border-radius: 12px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.84);
}

.bible-year-reading-item.is-checked {
  border-color: rgba(27, 163, 88, 0.42);
  background: rgba(225, 248, 235, 0.78);
}

.bible-year-check-form {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.bible-year-check-form.is-readonly {
  opacity: 0.92;
}

.bible-year-reading-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  min-width: 88px;
}

.bible-year-reading-mark input {
  width: auto;
  margin: 0;
}

.bible-year-reference-button {
  flex: 1;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}

.bible-year-reference-button.is-read {
  background: linear-gradient(120deg, #f6f9ff, #ffffff);
  border-color: rgba(107, 132, 176, 0.28);
  color: #8aa0be;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  opacity: 0.72;
}

.bible-year-completed-note {
  color: #0f6b38;
  font-weight: 700;
}

.quiz-dbv-layout {
  align-items: start;
}

.quiz-dbv-state-card {
  margin-top: 0.8rem;
  border: 1px dashed rgba(17, 43, 84, 0.22);
  background: rgba(250, 253, 255, 0.88);
}

.quiz-dbv-question-card {
  margin-top: 0.8rem;
}

.quiz-dbv-question-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.quiz-dbv-question-text {
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 600;
}

.quiz-dbv-timer {
  min-width: 120px;
  text-align: right;
}

.quiz-dbv-timer strong {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--brand-2);
}

.quiz-dbv-timer-track {
  margin-top: 0.4rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 43, 84, 0.14);
  overflow: hidden;
}

.quiz-dbv-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-2));
  transition: width 0.2s linear;
}

.quiz-dbv-options {
  display: grid;
  gap: 0.58rem;
}

.quiz-dbv-option {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.78rem;
  background: #fff;
  cursor: pointer;
}

.quiz-dbv-option:hover {
  border-color: rgba(17, 43, 84, 0.42);
}

.quiz-dbv-option input {
  margin-right: 0.55rem;
  vertical-align: middle;
  min-height: auto;
}

.quiz-dbv-option span {
  display: inline;
  color: var(--ink);
}

.quiz-dbv-ranking-table .quiz-dbv-current-user td {
  background: rgba(53, 201, 238, 0.11);
}

@media (max-width: 720px) {
  .quiz-dbv-focus-shell {
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .quiz-dbv-focus-card {
    padding: 1rem;
  }

  .bible-year-month-grid {
    grid-template-columns: 1fr;
  }

  .bible-year-check-form {
    flex-direction: column;
    align-items: stretch;
  }

  .bible-year-reference-button {
    width: 100%;
  }

  .quiz-dbv-question-head {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-dbv-timer {
    text-align: left;
  }

  .quiz-dbv-question-text {
    font-size: 1rem;
  }

  .quiz-dbv-option {
    padding: 0.62rem 0.68rem;
  }
}

@media (max-width: 960px) {
  .specialty-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .specialty-list-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile-first navigation and lightweight rendering */
img {
  max-width: 100%;
  height: auto;
}

.main-nav-toggle {
  display: none;
  border: 1px solid rgba(39, 214, 255, 0.42);
  background: rgba(9, 20, 54, 0.58);
  color: #eaf1ff;
  border-radius: 12px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.main-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  display: block;
}

.dashboard-tabs {
  scroll-padding-inline: 0.6rem;
}

.dashboard-tabs::-webkit-scrollbar {
  height: 7px;
}

.dashboard-tabs::-webkit-scrollbar-thumb {
  background: rgba(26, 79, 154, 0.32);
  border-radius: 999px;
}

@media (max-width: 960px) {
  .container {
    width: min(1160px, 94%);
  }

  .nav-row {
    flex-wrap: wrap;
    align-items: center;
    min-height: 64px;
    padding: 0.45rem 0;
    gap: 0.65rem;
  }

  .brand-logo {
    width: clamp(120px, 30vw, 148px);
  }

  .main-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav.main-nav-enhanced {
    display: none;
    width: 100%;
    order: 20;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.55rem;
    border: 1px solid rgba(39, 214, 255, 0.34);
    border-radius: 14px;
    background: rgba(9, 20, 54, 0.84);
    box-shadow: 0 14px 24px rgba(4, 16, 53, 0.3);
  }

  .main-nav.main-nav-enhanced.is-open {
    display: flex;
  }

  .main-nav.main-nav-enhanced > a,
  .main-nav.main-nav-enhanced .btn,
  .main-nav.main-nav-enhanced .nav-user-summary,
  .main-nav.main-nav-enhanced .notification-bell-wrap,
  .main-nav.main-nav-enhanced .logout-form {
    width: 100%;
    min-height: 44px;
  }

  .main-nav.main-nav-enhanced > a {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgba(39, 214, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
  }

  .main-nav.main-nav-enhanced .nav-user-summary {
    justify-content: space-between;
    gap: 0.4rem;
  }

  .main-nav.main-nav-enhanced .logout-form .btn {
    width: 100%;
  }

  .main-nav.main-nav-enhanced .notification-bell-btn {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 0.7rem;
  }

  .notification-panel {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0px));
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 90px);
  }

  .dashboard-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.42rem;
    margin: 0.7rem auto 0.9rem;
    padding-bottom: 0.3rem;
    scroll-snap-type: x proximity;
  }

  .dashboard-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 42px;
    padding: 0.5rem 0.8rem;
    scroll-snap-align: start;
  }

  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, 95%);
  }

  .nav-row {
    flex-direction: row;
    align-items: center;
  }

  .main-nav.main-nav-enhanced {
    padding: 0.46rem;
  }

  .main-nav.main-nav-enhanced > a,
  .main-nav.main-nav-enhanced .btn,
  .main-nav.main-nav-enhanced .nav-user-summary {
    font-size: 0.93rem;
  }

  .section-card,
  .hero-card,
  .feature-card {
    padding: 0.82rem;
    border-radius: 14px;
  }

  .btn,
  .btn-small,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .notification-panel-list {
    max-height: 64vh;
  }
}

