/* Shared shell, sidebar, topbar, brand, navigation and button styles. */
.cpv-app-shell,
.application-shell,
.auth-layout {
  display: grid;
  grid-template-columns: var(--cpv-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.cpv-app-sidebar,
.application-sidebar,
.auth-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
}

.cpv-app-sidebar-card,
.application-sidebar-card,
.auth-side-card,
.sidebar-card,
.side-nav {
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.cpv-app-main,
.application-main,
.auth-main {
  min-width: 0;
  padding: 22px 28px 48px 4px;
}

.cpv-app-topbar,
.application-topbar,
.auth-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
}

.cpv-app-kicker,
.application-title-kicker,
.application-kicker,
.cpv-section-kicker {
  margin: 0 0 5px;
  color: var(--cpv-muted);
  font-family: var(--cpv-font-heading);
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.cpv-app-topbar h1,
.application-topbar h1,
.cpv-page-card h1,
.cpv-section-head h1,
.cpv-section-head h2 {
  margin: 0;
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.058em;
  line-height: 1.03;
}

.cpv-app-content,
.application-content,
.cpv-stack {
  display: grid;
  gap: 18px;
}

.cpv-mobile-toggle,
.application-mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--cpv-line);
  border-radius: 16px;
  background: #fff;
  color: var(--cpv-blue);
  box-shadow: 0 12px 30px rgba(23, 74, 156, .08);
  cursor: pointer;
}

.cpv-backdrop,
.application-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(10, 37, 71, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

body.cpv-sidebar-open .cpv-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.application-sidebar-open .application-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cpv-glass,
.cpv-page-card,
.cpv-card,
.page-card,
.tile,
.info-card,
.feature-card,
.team-card,
.contact-card,
.faq-card,
.rating-table-wrapper,
.impact-item,
.calendar-wrapper,
.event-item,
.auth-card {
  border: 1px solid var(--cpv-line);
  background: var(--cpv-card);
  box-shadow: var(--cpv-soft-shadow);
  backdrop-filter: blur(14px);
}

.cpv-page-card,
.cpv-card {
  border-radius: var(--cpv-radius-lg);
  padding: clamp(16px, 2.5vw, 24px);
}

.cpv-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cpv-section-head p {
  margin: 0;
}

.topbar {
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(23, 74, 156, .09);
  backdrop-filter: blur(18px);
}

.side-nav,
.cpv-sidebar-card,
.application-sidebar-card,
.cpv-app-sidebar-card {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--cpv-shadow);
  backdrop-filter: blur(18px);
}

.side-nav,
.auth-side-card,
.sidebar-card,
.application-sidebar-card,
.cpv-app-sidebar-card {
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--cpv-shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.side-brand,
.logo-area,
.cpv-brand {
  border-radius: 22px;
}

.side-brand,
.auth-brand-link,
.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
  border: 0;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.side-brand:hover,
.auth-brand-link:hover,
.dash-brand:hover {
  background: rgba(23, 74, 156, .06);
  transform: translateY(-1px);
}

.logo-icon,
.auth-brand-logo,
.dash-logo,
.cpv-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--cpv-gold);
  background: var(--cpv-blue);
  box-shadow: 0 12px 28px rgba(23, 74, 156, .16);
}

.logo-icon img,
.auth-brand-logo img,
.dash-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text h1,
.auth-brand-text strong,
.brand-text strong {
  display: block;
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-text,
.auth-brand-text,
.brand-text {
  min-width: 0;
}

.side-brand .logo-text span,
.auth-brand-text span,
.brand-text span,
.side-note,
.page-lead,
.hero-desc,
.section-subtitle,
.section p,
.content-section p,
.feature-card p,
.tile p,
.info-card p,
.faq-answer,
.faq-a {
  color: var(--cpv-muted);
  font-weight: 600;
}

.side-brand .logo-text span,
.auth-brand-text span,
.brand-text span {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 17px;
  text-transform: uppercase;
}

.side-brand .logo-text span {
  color: var(--cpv-muted);
  font-family: var(--cpv-font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 17px;
  text-transform: uppercase;
}

.side-nav-links,
.auth-side-nav,
.dash-nav {
  gap: 8px;
}

.dash-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: auto;
  padding-right: 2px;
}

.dash-nav::-webkit-scrollbar { width: 6px; }
.dash-nav::-webkit-scrollbar-thumb {
  background: rgba(23, 74, 156, .18);
  border-radius: 999px;
}

.dash-nav-label {
  margin: 2px 10px 4px;
  color: var(--cpv-muted);
  font-family: var(--cpv-font-heading);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 18px;
  text-transform: uppercase;
}

.side-link,
.auth-side-link,
.dash-nav-link,
.mini-link,
.mini-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: transparent;
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.dash-nav-link.disabled {
  opacity: .58;
  cursor: default;
}

.dash-nav-link.disabled:hover {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.cpv-main-nav .dash-nav-label {
  margin: 12px 10px 4px;
}

.cpv-main-nav .dash-nav-label:first-child {
  margin-top: 2px;
}

.cpv-nav-badge {
  margin-left: auto;
  max-width: 72px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 194, 26, .24);
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link i,
.auth-side-link i,
.dash-nav-link i,
.mini-link i,
.mini-button i {
  width: 22px;
  color: var(--cpv-blue-2);
  text-align: center;
  flex: 0 0 22px;
}

.side-link:hover,
.side-link.active,
.auth-side-link:hover,
.auth-side-link.active,
.dash-nav-link:hover,
.dash-nav-link.active,
.mini-link:hover,
.mini-button:hover {
  border-color: rgba(255, 194, 26, .68);
  background: linear-gradient(135deg, rgba(215, 237, 255, .9), rgba(255, 255, 255, .82));
  transform: translateX(2px);
  box-shadow: none;
}

.side-link-accent {
  margin-top: 4px;
  border-color: transparent;
  background: var(--cpv-blue);
  color: #fff;
  box-shadow: 0 16px 36px rgba(23, 74, 156, .16);
}

.side-link-accent i {
  color: #fff;
}

.side-link-accent:hover,
.side-link-accent.active {
  border-color: transparent;
  background: var(--cpv-blue);
  color: #fff;
  box-shadow: 0 16px 36px rgba(23, 74, 156, .16);
}

.side-link-accent:hover {
  background: var(--cpv-blue-2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(23, 74, 156, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: .92rem;
  font-weight: 740;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 74, 156, .08);
}

.topbar-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cpv-gold), #ffe27a);
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.topbar-avatar.has-photo {
  background: var(--cpv-sky);
}

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

.topbar-user-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-icon-form {
  display: inline-flex;
  margin: 0;
}

.logout-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 74, 156, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--cpv-blue);
  font-size: .98rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 74, 156, .08);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.logout-icon-button:hover {
  border-color: rgba(255, 194, 26, .72);
  background: rgba(255, 194, 26, .18);
  color: var(--cpv-blue);
  transform: translateY(-1px);
}

.side-nav-footer,
.sidebar-bottom {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--cpv-line);
}

.side-nav-footer .btn-lk,
.auth-back {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: var(--cpv-blue);
  color: #fff;
  font-family: var(--cpv-font-heading);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 16px 36px rgba(23, 74, 156, .16);
}

.side-nav-footer .btn-lk:hover,
.auth-back:hover {
  background: var(--cpv-blue-2);
  transform: translateX(2px);
}

.btn-primary,
.button.primary {
  background: var(--cpv-gold);
  color: var(--cpv-blue);
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(255, 194, 26, .24);
}

.btn-primary:hover,
.button.primary:hover {
  background: #ffd557;
  color: var(--cpv-blue);
}

.btn-outline,
.button,
.application-button-secondary {
  border-color: var(--cpv-gold);
  color: var(--cpv-blue);
  background: rgba(255, 255, 255, .74);
  font-weight: 750;
}

.btn-lk,
.auth-submit,
.application-button,
.cpv-submit {
  background: var(--cpv-blue);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 16px 36px rgba(23, 74, 156, .16);
}

.btn-lk:hover,
.auth-submit:hover,
.application-button:hover,
.cpv-submit:hover {
  background: var(--cpv-blue-2);
}

a.button,
button.button,
.application-button,
.application-button-secondary,
.auth-submit,
.cpv-submit,
.cpv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font: 750 .92rem var(--cpv-font-heading);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a.button:hover,
button.button:hover,
.application-button:hover,
.application-button-secondary:hover,
.cpv-button:hover,
.cpv-submit:hover {
  transform: translateY(-1px);
}

a.button.ghost,
button.button.ghost,
.cpv-button-ghost {
  border: 1px solid rgba(255, 194, 26, .76);
  background: rgba(255, 255, 255, .76);
  color: var(--cpv-blue);
  box-shadow: none;
}

/* Typography sync: make public pages, auth and dashboard feel like one product. */
body,
body.public-site,
.auth-layout {
  font-family: var(--cpv-font-body);
  font-weight: 500;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.logo-text h1,
.auth-brand-text strong,
.brand-text strong,
.side-link,
.auth-side-link,
.dash-nav-link,
.mini-link,
.mini-button,
.btn-primary,
.btn-outline,
.btn-lk,
.button,
.auth-submit,
.rating-tab,
.view-btn,
.filter-btn {
  font-family: var(--cpv-font-heading);
}

.hero-content h2,
.auth-copy h1,
.daily-summary h2,
.page-title {
  font-weight: 800;
  letter-spacing: -.058em;
  line-height: 1.03;
}

.section-title,
.section h2,
.content-section h2,
.section-heading h2,
.auth-card h2,
.join-card h2 {
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.feature-card h3,
.tile h3,
.info-card h3,
.team-card h3,
.contact-info h4,
.address-block h4,
.faq-question,
.faq-q,
.event-info h4,
.action-card h3,
.insight-card strong {
  font-weight: 780;
  letter-spacing: -.022em;
}

.hero-desc,
.page-lead,
.lead,
.section-subtitle,
.section p,
.content-section p,
.feature-card p,
.tile p,
.info-card p,
.faq-answer,
.faq-a,
.auth-copy p,
.auth-card p,
.daily-summary p,
.section-heading p,
.action-card p,
.insight-label,
.insight-hint {
  font-family: var(--cpv-font-body);
  font-weight: 560;
  line-height: 1.62;
  letter-spacing: -.004em;
}

.page-kicker,
.eyebrow,
.hero-badge,
.auth-kicker,
.auth-badge,
.daily-kicker,
.dash-nav-label,
.action-tag {
  font-weight: 720;
  letter-spacing: .095em;
}

.side-brand .logo-text span,
.auth-brand-text span,
.brand-text span {
  font-weight: 700;
  letter-spacing: .08em;
}

.stat-number,
.rating-avatar,
.topbar-avatar {
  font-family: var(--cpv-font-heading);
  font-weight: 800;
  letter-spacing: -.045em;
}

.rating-table th,
.calendar-day-name,
.event-date,
.auth-point strong,
.topbar-user,
.auth-submit {
  font-weight: 740;
}

@media (min-width: 1100px) {
  .side-nav { width: calc(var(--cpv-sidebar-width) - 36px); }
}

@media (max-width: 1100px) {
  .cpv-app-shell,
  .application-shell,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .cpv-app-sidebar,
  .application-sidebar,
  .auth-side {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(312px, calc(100vw - 34px));
    transform: translateX(-106%);
    transition: transform .2s ease;
  }

  body.cpv-sidebar-open .cpv-app-sidebar,
  body.cpv-sidebar-open .auth-side,
  body.application-sidebar-open .application-sidebar {
    transform: translateX(0);
  }

  .cpv-app-main,
  .application-main,
  .auth-main {
    padding: 14px 18px 42px;
  }

  .cpv-mobile-toggle,
  .application-mobile-toggle {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 780px) {
  .cpv-app-topbar,
  .application-topbar,
  .auth-topbar {
    align-items: flex-start;
  }

  .topbar-user-name {
    display: none;
  }

  .cpv-table {
    display: block;
    overflow-x: auto;
  }
}
