:root {
  --teal: #00C896;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
}

/* PAGE LOADER */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060608;
  transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ecg {
  width: 380px;
  height: 100px;
}

.ecg-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecg-track {
  fill: none;
  stroke: rgba(248, 246, 241, 0.1);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ecg-pulse {
  fill: none;
  stroke: url(#ecgFade);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 78;
  stroke-dashoffset: 0;
  animation: ecgSweep 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 200, 150, 0.6));
}

@keyframes ecgSweep {
  to {
    stroke-dashoffset: -100;
  }
}

/* USER DASHBOARD */
.dash-shell {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 98px);
  background: #F6F9F8;
}

.dash-sidebar {
  width: 76px;
  flex-shrink: 0;
  background: #142C3C;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 0;
  position: sticky;
  top: 0;
  align-self: stretch;
}

.dash-side-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(207, 227, 223, 0.65);
  font-size: 19px;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.dash-side-btn i {
  display: flex;
}

.dash-side-btn:hover,
.dash-side-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dash-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(6, 6, 8, 0.12);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: #060608;
  cursor: pointer;
  margin-bottom: 10px;
}

.dash-side-btn[data-soon]:hover::after {
  content: attr(data-soon);
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #060608;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 20;
}

.dash-main {
  flex: 1;
  margin-left: 76px;
  padding: 28px 3rem 60px;
}

.dash-content {
  max-width: 1440px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.75rem;
}

.dash-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #060608;
}

.dash-profile-line {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dash-profile-field {
  font-size: 0.85rem;
  color: rgba(6, 6, 8, 0.6);
  cursor: pointer;
  border-bottom: 1px dashed rgba(6, 6, 8, 0.25);
  padding-bottom: 1px;
}

.dash-profile-field strong {
  color: #060608;
  font-weight: 700;
}

.dash-plan-field {
  cursor: default;
  border-bottom: none;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.06);
}

.dash-plan-field strong {
  font-size: 0.8rem;
}

.dash-plan-field.is-premium {
  background: rgba(217, 164, 6, 0.15);
}

.dash-plan-field.is-premium strong {
  color: #a8790a;
}

.dash-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(6, 6, 8, 0.1);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060608;
  font-size: 15px;
  cursor: pointer;
  position: relative;
}

.dash-icon-btn:hover {
  border-color: #00C896;
  color: #0E5D4F;
}

.dash-icon-btn[data-soon]:hover::after {
  content: attr(data-soon);
  position: absolute;
  top: 46px;
  right: 0;
  background: #060608;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  z-index: 20;
}

.dash-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F5A623;
  color: #060608;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}

.dash-stat-grid[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .dash-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-stat-card {
  background: #fff;
  border: 1px solid rgba(6, 6, 8, 0.08);
  border-radius: 16px;
  padding: 1.4rem;
}

.dash-stat-grid .dash-stat-card:last-child {
  opacity: 0.6;
}

.dash-stat-grid .dash-stat-card:last-child:hover {
  cursor: not-allowed;
}

.dash-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dash-stat-label {
  font-size: 0.85rem;
  color: rgba(6, 6, 8, 0.55);
  font-weight: 600;
}

.dash-stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 200, 150, 0.1);
  color: #0E5D4F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.dash-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #060608;
  margin-top: 0.6rem;
}

.dash-stat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.12);
  color: #8A5A0E;
  margin-top: 0.5rem;
}

.dash-stat-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0E5D4F;
  gap: 5px;
  text-decoration: none;
}

.dash-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dash-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #060608;
}

.dash-section-soon {
  font-size: 0.75rem;
  color: rgba(6, 6, 8, 0.4);
  font-style: italic;
}

.dash-course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .dash-course-grid {
    grid-template-columns: 1fr;
  }
}

.dash-course-card {
  background: #fff;
  border: 1px solid rgba(6, 6, 8, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
}

.dash-course-card:hover {
  border-color: #00C896;
}

.dash-course-card-soon {
  cursor: not-allowed;
  opacity: 0.6;
}

.dash-course-card-soon:hover {
  border-color: rgba(6, 6, 8, 0.08);
}

.dash-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: #060608;
  margin-bottom: 0.3rem;
}

.dash-course-price {
  font-size: 0.7rem;
  font-weight: 700;
  color: #00875A;
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.dash-course-meta {
  font-size: 0.8rem;
  color: rgba(6, 6, 8, 0.5);
  margin-bottom: 0.75rem;
}

.dash-progress-track {
  height: 7px;
  background: #EFF8F4;
  border-radius: 99px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: #00C896;
  border-radius: 99px;
}

@media (max-width: 640px) {
  .dash-sidebar-toggle {
    display: flex;
  }

  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .favorite-course-row {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: fixed;
    top: 70px;
    left: -100px;
    height: 100vh;
    z-index: 300;
    box-shadow: 4px 0 24px rgba(6, 6, 8, 0.2);
    transition: left 0.25s ease;
  }

  .dash-sidebar.open {
    left: 0;
  }

  .dash-main {
    margin-left: 0;
    width: 100%;
    padding: 20px 1.25rem 50px;
  }
}

/* FOOTER (dark, matches contact.css/join-team.css/home.css) */
footer {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4.5rem 3rem 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8F6F1;
}

.footer-logo span {
  color: #00C896;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  line-height: 1.7;
  margin-top: 0.9rem;
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00C896;
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.5);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #00C896;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(248, 246, 241, 0.25);
}

.footer-paypal-form {
  display: inline-block;
}

.footer-paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8F6F1;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #060608;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-paypal-btn img {
  height: 16px;
  width: auto;
  display: block;
}

.footer-paypal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

.footer-paypal-btn-pro {
  background: #00C896;
  color: #060608;
}

.footer-paypal-btn-pro:hover {
  background: #00b085;
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.25);
}

.footer-paypal-btn-pro.is-unlocked {
  background: rgba(0, 200, 150, 0.15);
  color: #00C896;
  cursor: default;
  box-shadow: none;
}

.footer-paypal-btn-pro.is-unlocked:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  footer {
    padding: 3.5rem 1.5rem 0;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    justify-content: center;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
