:root {
  --ink: #173d37;
  --deep: #123a35;
  --paper: #fbf8f0;
  --cream: #f1eadb;
  --lime: #c9ec73;
  --orange: #ee845c;
  --muted: #6f7e76
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif
}

button,
a {
  font: inherit
}

button {
  cursor: pointer;
  border: 0
}

a {
  color: inherit;
  text-decoration: none
}

.announcement {
  height: 34px;
  background: #173e38;
  color: #e7f7cf;
  text-align: center;
  font: 500 11px/34px 'DM Mono', monospace;
  letter-spacing: .05em
}

.announcement span {
  margin-left: 9px;
  color: var(--lime)
}

.site-header {
  height: 82px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.logo {
  font-weight: 800;
  letter-spacing: -1.4px;
  font-size: 25px;
  display: flex;
  gap: 7px;
  align-items: center
}

.logo i {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-35deg)
}

nav {
  display: flex;
  gap: 33px;
  font-size: 13px;
  font-weight: 600
}

nav a {
  opacity: .78
}

nav a:hover {
  opacity: 1
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 21px
}

.text-button {
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700
}

.small-button,
.outline-button {
  padding: 11px 17px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 66px 28px 78px;
  min-height: 600px;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center
}

.eyebrow {
  font: 500 11px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #65756d;
  margin: 0 0 18px
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin: 0 8px 1px 0
}

.hero h1,
.section-intro h2,
.teacher-heading h2,
.cta h2,
.booking-box h2 {
  font: 600 clamp(48px, 5vw, 73px)/.97 Newsreader, Georgia, serif;
  letter-spacing: -.055em;
  margin: 0
}

.hero h1 em,
.teacher-heading h2 em,
.booking-box h2 em {
  font-weight: 500;
  color: var(--orange)
}

.hero-text {
  max-width: 485px;
  font-size: 16px;
  line-height: 1.72;
  color: #5b6d64;
  margin: 25px 0 30px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px
}

.primary-button {
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 19px #173d3720
}

.primary-button span {
  margin-left: 18px;
  color: var(--lime);
  font-size: 18px
}

.watch-link {
  font-size: 12px;
  font-weight: 700
}

.watch-link b {
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--orange);
  height: 24px;
  width: 24px;
  border-radius: 50%;
  font-size: 9px;
  margin-right: 8px
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 55px
}

.avatar-stack {
  display: flex
}

.avatar-stack img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  margin-right: -8px
}

.social-proof p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 0 6px;
  color: #697870
}

.social-proof strong {
  color: var(--ink)
}

.hero-art {
  height: 478px;
  background: #d9ebb9;
  border-radius: 180px 180px 13px 13px;
  position: relative;
  overflow: hidden;
  margin-left: 34px
}

.sun {
  position: absolute;
  width: 274px;
  height: 274px;
  top: 40px;
  left: calc(50% - 137px);
  border-radius: 50%;
  background: #f6bd54
}

.arch {
  position: absolute;
  border: 1px solid #efe27a;
  border-bottom: 0;
  border-radius: 160px 160px 0 0;
  width: 420px;
  height: 287px;
  left: 50%;
  transform: translateX(-50%);
  top: 106px
}

.arch-two {
  width: 325px;
  height: 232px;
  top: 161px
}

.hero-person {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -9px;
  width: 276px;
  height: 378px;
  border-radius: 137px 137px 0 0;
  overflow: hidden;
  background: #c97652
}

.hero-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply
}

.plant {
  position: absolute;
  font-size: 148px;
  color: #43896c;
  line-height: 1;
  opacity: .88
}

.plant-left {
  bottom: -51px;
  left: -26px;
  transform: rotate(-22deg)
}

.plant-right {
  top: 9px;
  right: -27px;
  color: #65935a;
  transform: rotate(24deg)
}

.lesson-card {
  position: absolute;
  right: 18px;
  top: 108px;
  width: 218px;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 14px 30px #234c3a27
}

.mini-label {
  font: 500 8px 'DM Mono', monospace;
  letter-spacing: .12em;
  color: var(--orange);
  margin: 0 0 10px
}

.lesson-head {
  display: flex;
  gap: 8px;
  align-items: center
}

.flag {
  font-size: 22px
}

.lesson-head b,
.hello-card b {
  font-size: 11px;
  display: block
}

.lesson-head small,
.hello-card small {
  display: block;
  font-size: 9px;
  color: #7d8983;
  margin-top: 2px
}

.dots {
  margin-left: auto;
  font-weight: bold;
  letter-spacing: 1px;
  color: #819087
}

.wave {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 10px 0;
  background: #f8f5ec;
  border-radius: 4px
}

.wave i {
  display: block;
  width: 2px;
  background: var(--orange);
  border-radius: 3px;
  height: 8px
}

.wave i:nth-child(2n) {
  height: 15px
}

.wave i:nth-child(3n) {
  height: 21px
}

.lesson-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700
}

.lesson-foot button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 8px
}

.hello-card {
  position: absolute;
  left: 22px;
  bottom: 76px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 23px #234c3a20
}

.hello-card>span {
  font-size: 21px;
  color: #f3a34b
}

.trust-row {
  border-top: 1px solid #d9d8ce;
  border-bottom: 1px solid #d9d8ce;
  max-width: 1184px;
  padding: 19px 0;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #68766e;
  font: 500 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .12em
}

.trust-row div {
  display: flex;
  gap: 23px;
  align-items: center
}

.trust-row div span:nth-child(even) {
  color: var(--orange);
  font-size: 9px
}

.steps {
  max-width: 1184px;
  margin: auto;
  padding: 120px 0 112px
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 55px
}

.section-intro h2 {
  font-size: 48px
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.step-list article {
  border-top: 1px solid #bec8c0;
  padding: 18px 24px 8px 0;
  position: relative
}

.step-number {
  position: absolute;
  right: 2px;
  color: #9aa79f;
  font: 11px 'DM Mono', monospace
}

.step-icon {
  font-family: Newsreader, serif;
  font-size: 36px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--orange);
  margin: 9px 0 22px
}

.step-list h3 {
  font-size: 16px;
  margin: 0 0 9px
}

.step-list p {
  font-size: 13px;
  line-height: 1.7;
  color: #6c7c73;
  max-width: 280px
}

.teacher-section {
  background: #e5efcf;
  padding: 100px max(28px, calc((100vw - 1184px)/2)) 105px
}

.teacher-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 47px
}

.teacher-heading h2 {
  font-size: 49px
}

.outline-button {
  background: transparent;
  border: 1px solid #36544b;
  color: var(--ink)
}

.outline-button span {
  margin-left: 18px
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px
}

.teacher-card {
  background: #fff;
  padding: 10px;
  border-radius: 5px
}

.photo-wrap {
  position: relative;
  height: 260px;
  border-radius: 3px;
  overflow: hidden;
  background: #aaa
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.teacher-card:hover .photo-wrap img {
  transform: scale(1.04)
}

.available {
  position: absolute;
  top: 11px;
  left: 11px;
  background: #f7fcdf;
  border-radius: 20px;
  padding: 6px 9px;
  font: 9px 'DM Mono', monospace;
  color: #48613d
}

.available:before {
  content: '●';
  color: #6ca74d;
  margin-right: 4px
}

.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 19px
}

.heart.saved {
  color: var(--orange)
}

.teacher-info {
  display: flex;
  justify-content: space-between;
  padding: 16px 4px 10px
}

.teacher-info h3 {
  font-size: 15px;
  margin: 0 0 4px
}

.teacher-info p {
  font-size: 10px;
  color: #76837b;
  margin: 0
}

.rating {
  font: 11px 'DM Mono', monospace
}

.rating:first-letter {
  color: #eaa44d
}

.tags {
  padding: 0 4px 14px;
  display: flex;
  gap: 6px
}

.tags span {
  background: #f2f3ed;
  border-radius: 15px;
  padding: 5px 8px;
  font-size: 9px;
  color: #65746c
}

.card-bottom {
  border-top: 1px solid #ecede9;
  padding: 13px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #66756c
}

.card-bottom b {
  font-size: 13px;
  color: var(--ink)
}

.book-teacher {
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800
}

.quote-section {
  background: #ec845d;
  color: #fff;
  text-align: center;
  min-height: 425px;
  padding: 70px 20px;
  position: relative;
  overflow: hidden
}

.quote-mark {
  font: 70px/.5 Newsreader, serif;
  color: #ffd3b7
}

.quote-section blockquote {
  font: 500 clamp(26px, 3vw, 39px)/1.16 Newsreader, Georgia, serif;
  letter-spacing: -.03em;
  max-width: 720px;
  margin: 22px auto
}

.quote-author {
  display: inline-flex;
  align-items: center;
  text-align: left;
  gap: 9px;
  margin-top: 12px
}

.quote-author img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover
}

.quote-author p {
  font-size: 10px;
  line-height: 1.5;
  margin: 0
}

.quote-decoration {
  position: absolute;
  right: 7%;
  bottom: -85px;
  font-size: 270px;
  color: #ed936f;
  transform: rotate(-20deg)
}

.cta {
  max-width: 1184px;
  margin: 0 auto;
  background: var(--deep);
  min-height: 390px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 76px 82px;
  margin-top: 107px;
  margin-bottom: 88px;
  overflow: hidden;
  position: relative
}

.cta h2 {
  font-size: 55px
}

.cta>div>p:not(.eyebrow) {
  color: #bdcec2;
  font-size: 13px;
  line-height: 1.65;
  margin: 18px 0 24px
}

.cta .eyebrow {
  color: #bad1a8
}

.primary-button.light {
  background: var(--lime);
  color: var(--ink)
}

.primary-button.light span {
  color: var(--ink)
}

.cta-art {
  width: 270px;
  height: 270px;
  border: 1px solid #7da56e;
  border-radius: 50%;
  position: relative;
  align-self: center;
  margin-right: 26px
}

.circle-word {
  font: 500 13px 'DM Mono', monospace;
  color: var(--lime);
  position: absolute;
  inset: 17px;
  display: flex;
  align-items: center;
  text-align: center;
  line-height: 1.8;
  transform: rotate(-24deg)
}

.cta-art span {
  position: absolute;
  color: var(--orange);
  font-size: 40px
}

.cta-art span:first-of-type {
  right: -19px;
  top: 30px
}

.cta-art span:last-of-type {
  left: -15px;
  bottom: 31px
}

footer {
  max-width: 1184px;
  margin: auto;
  border-top: 1px solid #d6d8d2;
  padding: 28px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

footer .logo {
  font-size: 20px
}

footer .logo i {
  width: 13px;
  height: 13px
}

footer p,
footer a {
  font-size: 10px;
  color: #6b7971
}

footer>div {
  display: flex;
  gap: 18px
}

.modal {
  display: none
}

.modal.show {
  display: block
}

.modal-backdrop {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: #0d2823a6;
  backdrop-filter: blur(3px)
}

.booking-box {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(450px, calc(100vw - 32px));
  padding: 44px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 20px 70px #0005
}

.booking-box h2 {
  font-size: 43px
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 27px
}

.booking-box form {
  margin-top: 25px;
  display: grid;
  gap: 15px
}

.booking-box label {
  font-size: 11px;
  font-weight: 800
}

.booking-box select {
  width: 100%;
  margin-top: 7px;
  padding: 13px;
  border: 1px solid #d8d8d0;
  background: white;
  color: var(--ink);
  border-radius: 3px;
  font-size: 12px
}

.booking-box .primary-button {
  margin-top: 4px
}

.form-note {
  text-align: center;
  color: #7b867f;
  font-size: 10px;
  margin: 17px 0 0
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 90px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 12px;
  box-shadow: 0 8px 20px #0003;
  transition: .35s
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

@media(max-width:760px) {
  .site-header {
    height: 70px;
    padding: 0 18px
  }

  .site-header nav,
  .text-button {
    display: none
  }

  .hero {
    display: block;
    padding: 50px 20px 58px
  }

  .hero h1 {
    font-size: 53px
  }

  .hero-art {
    margin: 43px 0 0;
    height: 390px
  }

  .lesson-card {
    right: 9px;
    top: 72px;
    transform: scale(.87);
    transform-origin: top right
  }

  .trust-row {
    margin: 0 20px;
    padding: 16px 0
  }

  .trust-row div {
    display: none
  }

  .steps {
    padding: 78px 20px
  }

  .section-intro {
    display: block;
    margin-bottom: 32px
  }

  .section-intro h2 {
    font-size: 39px
  }

  .step-list,
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .step-list article {
    padding-right: 35px
  }

  .teacher-section {
    padding: 70px 20px
  }

  .teacher-heading {
    display: block
  }

  .teacher-heading h2 {
    font-size: 42px
  }

  .outline-button {
    margin-top: 24px
  }

  .teacher-grid {
    margin-top: 35px
  }

  .teacher-card:nth-child(3) {
    display: none
  }

  .quote-section {
    min-height: 350px
  }

  .cta {
    margin: 65px 20px;
    padding: 54px 28px;
    min-height: 370px
  }

  .cta h2 {
    font-size: 45px
  }

  .cta-art {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -52px;
    bottom: -73px;
    opacity: .8
  }

  footer {
    margin: 0 20px;
    padding-bottom: 30px;
    flex-wrap: wrap;
    gap: 18px
  }

  footer p {
    order: 3;
    width: 100%
  }

  .hero-person {
    width: 235px;
    height: 323px
  }

  .plant {
    font-size: 105px
  }

  .hello-card {
    left: 11px
  }

  .header-actions {
    gap: 0
  }

  .small-button {
    padding: 10px 12px
  }

  .social-proof {
    margin-top: 36px
  }
}

.auth-page {
  min-height: 100vh;
  background: #e8f1d3
}

.auth-logo {
  position: absolute;
  top: 28px;
  left: clamp(22px, 5vw, 70px);
  z-index: 2
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr
}

.auth-promo {
  background: #d7eab4;
  padding: 190px clamp(28px, 9vw, 145px) 70px;
  position: relative;
  overflow: hidden
}

.auth-promo:after {
  content: '';
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: #f3bd55;
  right: -125px;
  bottom: -93px;
  box-shadow: 0 0 0 38px #c7df9b, 0 0 0 77px #dfeec1
}

.auth-promo h1 {
  font: 600 clamp(43px, 4.3vw, 66px)/.98 Newsreader, serif;
  letter-spacing: -.055em;
  margin: 0
}

.auth-promo h1 em {
  color: var(--orange);
  font-weight: 500
}

.auth-promo>p:not(.eyebrow) {
  max-width: 330px;
  font-size: 14px;
  line-height: 1.75;
  color: #587168;
  margin: 25px 0
}

.auth-words {
  position: absolute;
  z-index: 1;
  bottom: 80px;
  left: clamp(28px, 9vw, 145px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.auth-words span {
  padding: 9px 13px;
  border: 1px solid #6b9871;
  border-radius: 18px;
  background: #eff6dc;
  color: #335d4f;
  font: 11px Manrope, sans-serif;
  font-weight: 700
}

.auth-card {
  align-self: center;
  width: min(420px, calc(100% - 48px));
  justify-self: center;
  background: var(--paper);
  padding: 39px;
  border-radius: 6px;
  box-shadow: 0 20px 45px #173d3718
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d6d9cf;
  margin-bottom: 29px
}

.tab {
  background: transparent;
  padding: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #76847b;
  position: relative
}

.tab.active {
  color: var(--ink)
}

.tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange)
}

.auth-card h2 {
  font: 600 35px/1 Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 0 8px
}

.auth-card #auth-copy p {
  margin: 0;
  color: #738078;
  font-size: 12px
}

.auth-card form {
  display: grid;
  gap: 15px;
  margin-top: 27px
}

.auth-card label {
  font-size: 11px;
  font-weight: 800
}

.auth-card input,
.auth-card select {
  display: block;
  width: 100%;
  border: 1px solid #d8ddd3;
  border-radius: 3px;
  background: #fff;
  padding: 13px;
  margin-top: 7px;
  font: 12px Manrope, sans-serif;
  color: var(--ink)
}

.auth-card input:focus,
.auth-card select:focus {
  outline: 2px solid #c9ec73;
  border-color: #75a45f
}

.auth-submit {
  margin-top: 5px;
  width: 100%
}

.auth-submit:disabled {
  opacity: .65
}

.auth-error {
  font-size: 11px;
  color: #bd4b36;
  margin: 0;
  min-height: 0
}

.auth-small {
  font-size: 9px;
  color: #7c877f;
  text-align: center;
  line-height: 1.55;
  margin: 18px 0 0
}

@media(max-width:720px) {
  .auth-layout {
    display: block
  }

  .auth-promo {
    min-height: 275px;
    padding: 120px 28px 50px
  }

  .auth-promo h1 {
    font-size: 45px
  }

  .auth-promo>p:not(.eyebrow),
  .auth-words {
    display: none
  }

  .auth-card {
    width: calc(100% - 32px);
    margin: -21px auto 35px;
    position: relative
  }

  .auth-logo {
    top: 22px;
    left: 25px
  }

  .auth-promo:after {
    width: 190px;
    height: 190px;
    right: -30px;
    bottom: -75px;
    box-shadow: 0 0 0 19px #c7df9b, 0 0 0 39px #dfeec1
  }
}

.checkout-page {
  background: #eef4dd;
  min-height: 100vh
}

.checkout-header {
  height: 82px;
  max-width: 1160px;
  padding: 0 20px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.checkout-header>span {
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #62736a
}

.checkout-header>span b {
  color: #6eac52;
  margin-left: 6px
}

.checkout-layout {
  max-width: 1000px;
  margin: 34px auto 80px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 70px;
  align-items: start
}

.back-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 53px
}

.checkout-main h1 {
  font: 600 52px/.98 Newsreader, serif;
  letter-spacing: -.055em;
  margin: 0
}

.checkout-main h1 em {
  font-weight: 500;
  color: var(--orange)
}

.payment-options {
  display: grid;
  gap: 10px;
  margin-top: 37px
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 14px;
  border: 1px solid #d6dfcf;
  border-radius: 4px;
  background: #fbfcf6;
  color: var(--ink)
}

.pay-option.selected {
  border: 2px solid #719d5e;
  background: #fff
}

.provider-logo {
  width: 35px;
  height: 35px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: white
}

.mpesa {
  background: #4e9d49
}

.airtel {
  background: #d52929
}

.card {
  background: #1b4f69
}

.pay-option b {
  font-size: 12px;
  display: block
}

.pay-option small {
  font-size: 10px;
  color: #78857d;
  display: block;
  margin-top: 3px
}

.pay-option i {
  font-style: normal;
  margin-left: auto;
  width: 19px;
  height: 19px;
  border: 1px solid #c7d0c6;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
  color: transparent
}

.pay-option.selected i {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime)
}

.pay-button {
  margin-top: 19px;
  width: 100%
}

.payment-message {
  min-height: 16px;
  margin: 13px 0 0;
  font-size: 11px;
  color: #41774b
}

.checkout-note {
  font-size: 10px;
  text-align: center;
  color: #728077;
  line-height: 1.55;
  margin: 15px auto;
  width: 80%
}

.phone-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 28px
}

.phone-hint {
  display: block;
  font-weight: 500;
  color: #788079;
  font-size: 10px;
  margin-top: 4px
}

.phone-input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid #d0d9ca;
  border-radius: 4px;
  background: #fff;
  font: 14px 'DM Mono', monospace;
  color: var(--ink);
  letter-spacing: .06em
}

.phone-input:focus {
  outline: 2px solid var(--lime);
  border-color: #75a45f
}

.secondary-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid #bec8b8;
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  width: 100%;
  margin-top: 18px
}

.waiting-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 40px auto 28px;
  display: flex;
  align-items: center;
  justify-content: center
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite
}

.pulse-ring.delay1 {
  animation-delay: .5s
}

.pulse-ring.delay2 {
  animation-delay: 1s
}

@keyframes pulseRing {
  0% {
    transform: scale(.6);
    opacity: .9
  }

  80%,
  100% {
    transform: scale(1.4);
    opacity: 0
  }
}

.waiting-phone {
  font-size: 32px;
  position: relative;
  z-index: 2
}

.waiting-title {
  font: 600 32px/1.1 Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 0 12px
}

.waiting-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #67776e;
  margin: 0 0 16px
}

.waiting-status {
  font: 10px 'DM Mono', monospace;
  color: #788079;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 22px
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d9f0c8;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #43833b;
  margin: 40px auto 22px
}

.failed-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fce4dd;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #b03a24;
  margin: 40px auto 22px
}

.spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff8;
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  margin-left: 8px;
  vertical-align: middle
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.order-card {
  margin-top: 81px;
  background: #fff;
  padding: 28px;
  border-radius: 5px;
  box-shadow: 0 14px 35px #263e2411
}

.order-teacher {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #e3e7df
}

.order-avatar {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6bc58;
  color: #fff;
  font-size: 20px
}

.order-teacher h2 {
  font-size: 15px;
  margin: 0 0 4px
}

.order-teacher p {
  font-size: 10px;
  color: #748178;
  margin: 0
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 8px;
  font-size: 11px;
  color: #6c7c73
}

.order-line b {
  color: var(--ink)
}

.order-line.total {
  font-size: 13px;
  padding-top: 13px;
  border-top: 1px solid #e3e7df;
  color: var(--ink)
}

.payment-status {
  margin-top: 18px;
  padding: 10px;
  background: #f6f7f1;
  text-align: center;
  border-radius: 3px;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  color: #68786f
}

.payment-status.paid {
  background: #e9f5d4;
  color: #47783c
}

@media(max-width:720px) {
  .checkout-layout {
    display: block;
    margin: 20px 25px 50px
  }

  .checkout-main h1 {
    font-size: 45px
  }

  .back-link {
    margin-bottom: 36px
  }

  .order-card {
    margin-top: 35px
  }

  .checkout-header {
    height: 70px
  }
}

.dashboard-page {
  min-height: 100vh;
  background: #f7f6ef
}

.dashboard-header {
  height: 76px;
  padding: 0 max(25px, calc((100vw - 1180px)/2));
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e3e5de
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800
}

.user-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9c25b;
  display: grid;
  place-items: center;
  color: white
}

.dashboard-main {
  max-width: 1080px;
  margin: auto;
  padding: 67px 0
}

.dashboard-intro {
  display: flex;
  justify-content: space-between;
  align-items: end
}

.dashboard-intro h1 {
  font: 600 54px/.98 Newsreader, serif;
  letter-spacing: -.055em;
  margin: 0
}

.dashboard-intro h1 em {
  color: var(--orange);
  font-weight: 500
}

.earning-note {
  width: 156px;
  padding: 16px;
  background: #e6efcf
}

.earning-note span {
  display: block;
  font: 9px 'DM Mono', monospace;
  color: #647369;
  letter-spacing: .08em
}

.earning-note b {
  font: 600 24px Newsreader, serif;
  display: block;
  margin: 5px 0
}

.earning-note small {
  font-size: 9px;
  color: #647369
}

.dashboard-tabs {
  border-bottom: 1px solid #d8dcd4;
  display: flex;
  gap: 29px;
  margin: 62px 0 37px
}

.dashboard-tabs button {
  background: transparent;
  color: #738078;
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 13px;
  position: relative
}

.dashboard-tabs button.active {
  color: var(--ink)
}

.dashboard-tabs .active:after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--orange);
  bottom: -1px;
  left: 0;
  right: 0
}

.dashboard-tabs b {
  margin-left: 5px;
  background: #e7efcf;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 9px
}

.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px
}

.list-heading h2 {
  font: 600 28px Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 0 5px
}

.list-heading p {
  margin: 0;
  font-size: 11px;
  color: #718078
}

.list-heading>span {
  font: 10px 'DM Mono', monospace;
  color: #65825c
}

.requests-list {
  display: grid;
  gap: 10px
}

.request-card {
  background: #fff;
  border: 1px solid #e3e6de;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px
}

.request-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ec875f;
  color: #fff;
  display: grid;
  place-items: center;
  font: 22px Newsreader, serif
}

.request-copy {
  flex: 1
}

.request-copy>div {
  display: flex;
  align-items: center;
  gap: 8px
}

.request-copy h3 {
  font-size: 13px;
  margin: 0
}

.request-copy p {
  font-size: 10px;
  margin: 5px 0 0;
  color: #748178
}

.request-status {
  font: 9px 'DM Mono', monospace;
  text-transform: uppercase;
  padding: 3px 5px;
  background: #f0f2ed;
  color: #758078
}

.request-status.requested {
  background: #fff2d8;
  color: #a26f22
}

.request-status.accepted {
  background: #e9f5d7;
  color: #518143
}

.request-price {
  text-align: right;
  margin-right: 15px
}

.request-price b {
  display: block;
  font-size: 13px
}

.request-price small {
  font-size: 9px;
  color: #78847d
}

.accept-button,
.open-chat {
  background: var(--ink);
  color: #fff;
  padding: 11px 13px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800
}

.open-chat {
  background: #dceccb;
  color: var(--ink)
}

.empty-state {
  background: #fff;
  border: 1px dashed #cdd4c9;
  text-align: center;
  padding: 60px
}

.empty-state span {
  font-size: 28px;
  color: var(--orange)
}

.empty-state h3 {
  font: 600 24px Newsreader, serif;
  margin: 10px 0 4px
}

.empty-state p {
  font-size: 11px;
  color: #748178;
  margin: 0
}

.chat-page {
  height: 100vh;
  background: #f6f7ef;
  overflow: hidden
}

.chat-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #dde2d9;
  display: flex;
  align-items: center;
  padding: 0 max(20px, calc((100vw - 1180px)/2));
  position: relative
}

.chat-back {
  font-size: 11px;
  font-weight: 800
}

.chat-back span {
  margin-left: 7px
}

.chat-person {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5bd58;
  display: grid;
  place-items: center;
  color: white
}

.chat-person b {
  font-size: 11px;
  display: block
}

.chat-person small {
  font-size: 9px;
  color: #6c7b73
}

.chat-person small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #76ad57
}

.chat-timer {
  margin-left: auto;
  font: 12px 'DM Mono', monospace;
  color: #77847c
}

.chat-shell {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 265px 1fr;
  height: calc(100vh - 72px)
}

.chat-sidebar {
  border-right: 1px solid #dee3d9;
  padding: 40px 27px
}

.chat-sidebar h2 {
  font: 600 26px/1 Newsreader, serif;
  margin: 0 0 30px;
  letter-spacing: -.04em
}

.phrase-card {
  background: #e1efc7;
  padding: 17px
}

.phrase-card span {
  font: 9px 'DM Mono', monospace;
  color: #68806b
}

.phrase-card b {
  font: 600 21px Newsreader, serif;
  display: block;
  margin: 8px 0 3px
}

.phrase-card small {
  font-size: 10px;
  color: #68786f
}

.phrase-card button {
  margin-top: 15px;
  padding: 7px 9px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800
}

.sidebar-note {
  margin-top: 25px;
  font-size: 10px;
  color: #718078;
  line-height: 1.7
}

.chat-room {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.chat-waiting {
  margin: auto;
  text-align: center
}

.chat-waiting>span {
  font-size: 31px;
  color: var(--orange)
}

.chat-waiting h2 {
  font: 600 28px Newsreader, serif;
  margin: 10px 0 7px
}

.chat-waiting p {
  max-width: 280px;
  font-size: 11px;
  line-height: 1.6;
  color: #718078;
  margin: 0
}

.messages {
  overflow-y: auto;
  flex: 1;
  padding: 37px max(28px, 6vw);
  display: flex;
  flex-direction: column;
  gap: 12px
}

.message {
  align-self: flex-start;
  max-width: 65%
}

.message p {
  margin: 0;
  background: #fff;
  padding: 11px 13px;
  border-radius: 3px 12px 12px 12px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 12px #173d3708
}

.message small {
  font-size: 9px;
  color: #7b8780;
  margin: 4px 2px;
  display: block
}

.message.mine {
  align-self: flex-end
}

.message.mine p {
  background: #dbeec6;
  border-radius: 12px 3px 12px 12px
}

.message.mine small {
  text-align: right
}

.message-form {
  padding: 16px max(28px, 6vw);
  border-top: 1px solid #dde3d9;
  background: #fff;
  display: flex;
  gap: 8px
}

.message-form input {
  border: 1px solid #d6ddd2;
  border-radius: 3px;
  flex: 1;
  padding: 11px;
  font: 12px Manrope, sans-serif
}

.plus {
  background: #eef1e8;
  color: var(--ink);
  font-size: 20px;
  width: 38px
}

.send-message {
  background: var(--ink);
  color: #fff;
  padding: 0 15px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800
}

@media(max-width:720px) {
  .dashboard-main {
    padding: 45px 20px
  }

  .dashboard-intro h1 {
    font-size: 45px
  }

  .dashboard-intro {
    align-items: start
  }

  .earning-note {
    display: none
  }

  .dashboard-tabs {
    margin: 42px 0 29px
  }

  .list-heading {
    display: block
  }

  .list-heading>span {
    display: block;
    margin-top: 10px
  }

  .request-card {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .request-price {
    margin-left: auto;
    margin-right: 0
  }

  .accept-button,
  .open-chat {
    width: 100%;
    text-align: center
  }

  .chat-sidebar {
    display: none
  }

  .chat-shell {
    display: block
  }

  .chat-person {
    left: 55%
  }

  .messages {
    padding: 25px 18px
  }

  .message {
    max-width: 82%
  }

  .message-form {
    padding: 12px
  }

  .chat-back span {
    display: none
  }
}

.user-menu-wrap {
  position: relative;
  display: inline-block
}

.user-pill-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eef4df;
  color: var(--ink);
  padding: 7px 14px 7px 8px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d4dec8;
  transition: background .2s, border-color .2s
}

.user-pill-btn:hover {
  background: #e3ebd0;
  border-color: #b9c8ac
}

.user-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800
}

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

.user-pill-chevron {
  font-size: 9px;
  opacity: .65;
  transition: transform .2s
}

.user-menu-wrap.open .user-pill-chevron {
  transform: rotate(180deg)
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 36px #173d371f;
  border: 1px solid #e3e7df;
  padding: 12px 0;
  z-index: 100;
  animation: dropdownFade .15s ease-out
}

.user-menu-wrap.open .user-dropdown-menu {
  display: block
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.dropdown-header {
  padding: 8px 18px 12px;
  border-bottom: 1px solid #eef1ec
}

.dropdown-header strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dropdown-header small {
  display: block;
  font-size: 11px;
  color: #78867d;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.role-badge {
  display: inline-block;
  margin-top: 6px;
  font: 700 9px 'DM Mono', monospace;
  text-transform: uppercase;
  background: #e9f4d7;
  color: #45763b;
  padding: 3px 7px;
  border-radius: 12px
}

.role-badge.teacher {
  background: #fde8dc;
  color: #b24f2b
}

.dropdown-divider {
  height: 1px;
  background: #edf0ea;
  margin: 6px 0
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s
}

.dropdown-item:hover {
  background: #f7f9f2
}

.dropdown-icon {
  font-size: 14px;
  width: 18px;
  display: inline-block;
  text-align: center
}

.dropdown-item.logout-btn {
  color: #b63e26
}

.dropdown-item.logout-btn:hover {
  background: #fdf2ef
}

.sessions-box {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: 88vh;
  overflow-y: auto;
  padding: 38px 40px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 80px #0000003d
}

.sessions-box h2 {
  font: 600 36px/1 Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 0 6px
}

.sessions-box .modal-desc {
  color: #6c7d74;
  font-size: 12px;
  margin: 0 0 24px
}

.sessions-list {
  display: grid;
  gap: 12px
}

.learner-session-card {
  background: #fff;
  border: 1px solid #dce2d6;
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color .2s
}

.learner-session-card:hover {
  border-color: #b7c6ad
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 14px
}

.session-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f6be59;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700
}

.session-info h4 {
  margin: 0 0 4px;
  font-size: 14px
}

.session-info p {
  margin: 0;
  font-size: 11px;
  color: #708076
}

.session-date {
  font: 10px 'DM Mono', monospace;
  color: #89978e;
  margin-top: 3px
}

.session-right {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right
}

.session-status-tag {
  font: 700 9px 'DM Mono', monospace;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 12px;
  background: #edf0ea;
  color: #67776d
}

.session-status-tag.pending_payment {
  background: #fdebdc;
  color: #b2562b
}

.session-status-tag.requested {
  background: #fff4d4;
  color: #a47225
}

.session-status-tag.accepted {
  background: #e7f5d4;
  color: #47793b
}

.session-btn {
  padding: 9px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.session-btn.pay {
  background: var(--orange);
  color: #fff
}

.session-btn.chat {
  background: var(--ink);
  color: var(--lime)
}

.profile-box {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px 40px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 80px #0000003d
}

.profile-box h2 {
  font: 600 36px/1 Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 0 6px
}

.profile-box .modal-desc {
  color: #6c7d74;
  font-size: 12px;
  margin: 0 0 20px
}

.profile-box form {
  display: grid;
  gap: 14px
}

.profile-box label {
  font-size: 11px;
  font-weight: 800;
  display: block
}

.profile-box input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d5dbd0;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink)
}

.profile-box input:focus {
  outline: 2px solid var(--lime);
  border-color: #75a45f
}

.profile-box .password-toggle {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: none;
  border: none;
  padding: 0;
  margin: 6px 0 0;
  text-align: left;
  cursor: pointer
}

.password-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f3f6ec;
  border-radius: 5px;
  margin-top: 6px;
  border: 1px solid #e1e8d9
}

.profile-msg {
  min-height: 16px;
  font-size: 11px;
  margin: 4px 0 0
}

.profile-msg.error {
  color: #b33b24
}

.profile-msg.success {
  color: #3f7a45
}

.logged-out-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.sessions-loading {
  text-align: center;
  color: #78867d;
  font-size: 12px;
  padding: 30px 0
}

/* ────────────────────────────────────────────────────────────────────────────
   ChatPay "Chat na Ulipwe" — Design Elements & Components
   ──────────────────────────────────────────────────────────────────────────── */

/* Header live wallet pill & withdraw button */
.header-wallet {
  display: flex;
  align-items: center;
  gap: 10px
}

.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e9f5d5;
  border: 1px solid #c2e29e;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #285720;
  box-shadow: 0 2px 8px #28572014
}

.wallet-badge i {
  font-style: normal;
  font-size: 14px
}

.wallet-amount {
  color: #1e4c16;
  font-weight: 800
}

.withdraw-btn {
  background: #e87042;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px #e870423a;
  transition: transform .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.withdraw-btn:hover {
  background: #d85e30;
  transform: translateY(-1px)
}

.online-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #133c36;
  color: #c9ec73;
  padding: 4px 10px;
  border-radius: 12px;
  font: 700 10px 'DM Mono', monospace;
  letter-spacing: .03em
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee44e;
  display: inline-block;
  box-shadow: 0 0 8px #4ee44e;
  animation: pulseLive 1.5s infinite
}

@keyframes pulseLive {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(1.25)
  }
}

/* Malipo ya Hivi Punde (Live Payout Ticker) */
.payout-ticker-wrap {
  background: #11352f;
  color: #e3f5ce;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-top: 1px solid #1a4941;
  border-bottom: 1px solid #1a4941;
  position: relative
}

.payout-ticker-inner {
  display: inline-flex;
  gap: 36px;
  animation: tickerScroll 32s linear infinite
}

.payout-ticker-wrap:hover .payout-ticker-inner {
  animation-play-state: paused
}

.payout-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: 'DM Mono', monospace
}

.payout-dot {
  color: #4ee44e;
  font-size: 12px
}

.payout-name {
  font-weight: 700;
  color: #fff
}

.payout-sum {
  color: #f5bc54;
  font-weight: 800
}

.payout-provider {
  background: #1b4f46;
  padding: 2px 6px;
  border-radius: 4px;
  color: #a5d3b6;
  font-size: 10px
}

.payout-time {
  color: #8aa398;
  font-size: 10px
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* Partners Section Filter Tabs */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin: 24px 0 28px;
  scrollbar-width: none
}

.filter-bar::-webkit-scrollbar {
  display: none
}

.filter-btn {
  background: #fff;
  border: 1px solid #dbe2d5;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #5a6d63;
  white-space: nowrap;
  transition: all .15s
}

.filter-btn:hover {
  border-color: #b4c6aa;
  color: var(--ink)
}

.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink)
}

/* Live Partner Cards */
.partner-card {
  background: #fff;
  border: 1px solid #dbe2d5;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  box-shadow: 0 4px 16px #173d370a
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #173d3715;
  border-color: #bed1b4
}

.partner-card .photo-wrap {
  height: 200px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #cbd6c5
}

.partner-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.partner-card:hover .photo-wrap img {
  transform: scale(1.04)
}

.partner-online-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0d2e27d4;
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 5px 10px;
  border-radius: 16px;
  font: 700 9px 'DM Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px
}

.partner-country-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #ffffffeb;
  backdrop-filter: blur(4px);
  padding: 4px 9px;
  border-radius: 14px;
  font: 700 10px 'DM Mono', monospace;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px
}

.partner-head {
  padding: 14px 2px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start
}

.partner-head h3 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 800
}

.partner-topic {
  font-size: 11px;
  color: #67776d;
  margin: 0;
  font-weight: 600
}

.partner-payout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f9f0;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0 14px;
  border: 1px solid #e5ecd8
}

.partner-duration {
  font: 600 11px 'DM Mono', monospace;
  color: #5a6e61
}

.partner-rate {
  font-size: 13px;
  font-weight: 800;
  color: #23581c
}

.partner-rate small {
  display: block;
  font-size: 9px;
  color: #788b7f;
  font-weight: 500
}

.chat-now-btn {
  background: #173d37;
  color: #c9ec73;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s;
  text-align: center
}

.chat-now-btn:hover {
  background: #0e2a25;
  color: #fff
}

/* Quick Support & Channels ("Mtoa Huduma") */
.support-section {
  background: #e7f1d4;
  padding: 80px max(28px, calc((100vw - 1184px)/2));
  border-top: 1px solid #d5e2bf;
  border-bottom: 1px solid #d5e2bf
}

.support-grid {
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  text-align: center;
}

.support-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #d8e2cf;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.support-card h3 {
  font: 600 24px/1.2 Newsreader, serif;
  margin: 0 0 10px
}

.support-card p {
  font-size: 13px;
  color: #64756b;
  line-height: 1.65;
  margin: 0 0 20px
}

.support-btn-sms {
  background: #173d37;
  color: #fff;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content
}

.support-btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  box-shadow: 0 6px 18px #25d3663a
}

/* Withdraw Modal (Kutoa Pesa) */
.withdraw-box {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(490px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px 40px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 80px #00000045
}

.withdraw-box h2 {
  font: 600 36px/1 Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 0 6px
}

.withdraw-box .modal-desc {
  color: #6c7d74;
  font-size: 12px;
  margin: 0 0 22px
}

.withdraw-balance-banner {
  background: #e7f5d4;
  border: 1px solid #bcdca0;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.withdraw-balance-banner span {
  font: 600 11px 'DM Mono', monospace;
  color: #4c6e3b
}

.withdraw-balance-banner b {
  font-size: 18px;
  color: #1d4c14;
  font-family: 'DM Mono', monospace
}

.network-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 16px
}

.network-btn {
  background: #fff;
  border: 1px solid #d5ded0;
  border-radius: 6px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s
}

.network-btn.selected {
  border: 2px solid #235d20;
  background: #f3faec;
  color: #1b4a18
}

.network-badge-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff
}

.network-badge-logo.mpesa {
  background: #4e9d49
}

.network-badge-logo.tigo {
  background: #00377b
}

.network-badge-logo.airtel {
  background: #d52929
}

.network-badge-logo.halopesa {
  background: #e55302
}

.amount-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 14px
}

.preset-btn {
  background: #fff;
  border: 1px solid #d3dcd0;
  border-radius: 15px;
  padding: 5px 10px;
  font: 700 10px 'DM Mono', monospace;
  color: #55685d;
  cursor: pointer
}

.preset-btn:hover {
  background: #eaf2e3;
  color: var(--ink)
}

/* Modal info styles */
.info-modal-box {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 32px));
  max-height: 88vh;
  overflow-y: auto;
  padding: 38px 40px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 80px #00000045
}

.info-modal-box h2 {
  font: 600 36px/1 Newsreader, serif;
  margin: 0 0 10px
}

.info-modal-box p {
  font-size: 13px;
  line-height: 1.7;
  color: #5f7066
}

.info-tips-list {
  display: grid;
  gap: 14px;
  margin-top: 20px
}

.tip-item {
  background: #fff;
  border: 1px solid #dbe2d5;
  border-radius: 6px;
  padding: 16px 18px
}

.tip-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink)
}

.tip-item p {
  margin: 0;
  font-size: 12px;
  color: #67786e
}

/* Live Chat Page Enhancements */
.chat-earnings-meter {
  background: #113830;
  color: #c9ec73;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px #0002
}

.chat-earnings-meter b {
  color: #fff;
  font-size: 13px
}

.chat-action-finish {
  background: #e87042;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s
}

.chat-action-finish:hover {
  background: #d3592c
}

.partner-bio-card {
  background: #eff6e4;
  border: 1px solid #d5e5bf;
  border-radius: 6px;
  padding: 14px;
  margin-top: 16px
}

.partner-bio-card h4 {
  margin: 0 0 4px;
  font-size: 12px
}

.partner-bio-card p {
  margin: 0;
  font-size: 11px;
  color: #67786e;
  line-height: 1.5
}

@media(max-width:760px) {
  .support-grid {
    grid-template-columns: 1fr
  }

  .network-selector {
    grid-template-columns: repeat(2, 1fr)
  }

  .header-wallet {
    gap: 6px
  }

  .wallet-badge {
    padding: 4px 8px;
    font-size: 10px
  }

  .withdraw-btn {
    padding: 6px 10px;
    font-size: 10px
  }
}

/* Dark theme */
:root {
  --ink: #ecf6f1;
  --deep: #071d1a;
  --paper: #0d1716;
  --cream: #172622;
  --lime: #c9ec73;
  --orange: #ff956f;
  --muted: #9aaba4;
}

html {
  color-scheme: dark
}

body {
  background: var(--paper);
  color: var(--ink)
}

.announcement {
  background: #061512;
  color: #dff4c2
}

.site-header,
.dashboard-header,
.chat-header,
.message-form {
  background: #0f1c1a
}

.hero-text,
.social-proof p,
.eyebrow,
.lesson-head small,
.hello-card small,
.step-list p,
.teacher-info p,
.card-bottom,
.cta>div>p:not(.eyebrow),
footer p,
footer a,
.form-note,
.auth-card #auth-copy p,
.auth-small,
.pay-option small,
.phone-hint,
.waiting-desc,
.waiting-status,
.order-teacher p,
.order-line,
.list-heading p,
.request-copy p,
.request-price small,
.empty-state p,
.chat-person small,
.chat-timer,
.sidebar-note,
.chat-waiting p,
.message small,
.dropdown-header small,
.session-info p,
.session-date,
.sessions-loading,
.partner-topic,
.partner-duration,
.partner-rate small,
.support-card p,
.withdraw-box .modal-desc,
.info-modal-box p,
.tip-item p,
.partner-bio-card p {
  color: #9aaba4
}

.trust-row,
footer {
  border-color: #2b3c38;
  color: #9aaba4
}

.hero-art {
  background: #284636
}

.lesson-card,
.hello-card,
.teacher-card,
.auth-card,
.order-card,
.request-card,
.empty-state,
.message p,
.user-dropdown-menu,
.learner-session-card,
.partner-card,
.support-card,
.tip-item,
.pay-option,
.network-btn,
.preset-btn {
  background: #15231f;
  color: var(--ink);
  border-color: #31433d
}

.wave {
  background: #1b2b26
}

.teacher-section,
.auth-page,
.checkout-page,
.support-section {
  background: #15251f;
  border-color: #314a3f
}

.step-icon {
  background: #1d3029
}

.tags span,
.payment-status,
.request-status,
.plus {
  background: #1c2b27;
  color: #b3c3bc
}

.card-bottom,
.order-teacher,
.order-line.total {
  border-color: #31433d
}

.quote-section {
  background: #bb624d
}

.quote-decoration {
  color: #cb755d
}

.cta {
  background: #071d1a
}

.outline-button,
.secondary-button {
  border-color: #637b70;
  color: var(--ink)
}

.modal-backdrop {
  background: #020908c7
}

.booking-box,
.sessions-box,
.profile-box,
.withdraw-box,
.info-modal-box {
  background: #101c19;
  color: var(--ink)
}

.booking-box select,
.auth-card input,
.auth-card select,
.phone-input,
.profile-box input,
.message-form input {
  background: #0b1513;
  color: var(--ink);
  border-color: #40534c
}

.auth-promo {
  background: #244333
}

.auth-promo:after {
  box-shadow: 0 0 0 38px #1d362b, 0 0 0 77px #284835
}

.auth-words span {
  background: #193126;
  border-color: #51755d;
  color: #d7eadb
}

.checkout-main,
.dashboard-page,
.chat-page {
  background: #0d1716
}

.dashboard-header {
  border-color: #2b3d37
}

.earning-note,
.phrase-card {
  background: #203b2d
}

.dashboard-tabs,
.chat-sidebar,
.message-form {
  border-color: #2b3d37
}

.dashboard-tabs button {
  color: #9aaba4
}

.request-status.requested {
  background: #3a301d;
  color: #f1c66e
}

.request-status.accepted,
.payment-status.paid {
  background: #1d3828;
  color: #aee097
}

.payment-status {
  background: #1c2b27
}

.chat-sidebar {
  border-color: #2b3d37
}

.message.mine p {
  background: #294b37
}

.partner-payout-row,
.partner-bio-card {
  background: #192c25;
  border-color: #314a3f
}

.partner-country-chip {
  background: #e8f1eb;
  color: #10231d
}

.filter-btn {
  background: #15231f;
  border-color: #31433d;
  color: #b3c3bc
}

.filter-btn.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #11231d
}

.filter-btn:hover,
.learner-session-card:hover {
  border-color: #779b84
}

.withdraw-balance-banner {
  background: #1d3828;
  border-color: #4a754f
}

.withdraw-balance-banner span {
  color: #b6dca6
}

.withdraw-balance-banner b {
  color: #d2f2bd
}

.network-btn.selected {
  background: #1b3727;
  border-color: #8cbe76;
  color: #d3f4c7
}

.preset-btn:hover {
  background: #284536;
  color: var(--ink)
}

.success-icon {
  background: #1f4029;
  color: #a6e29b
}

.failed-icon {
  background: #45251f;
  color: #ffae95
}

.user-pill-btn {
  background: #182b24;
  border-color: #3a5549;
  color: var(--ink)
}

.user-pill-btn:hover {
  background: #223a30;
  border-color: #587563
}

.dropdown-divider {
  background: #2b3d37
}

.dropdown-item:hover {
  background: #1c2d27
}

.dropdown-item.logout-btn:hover {
  background: #3b211c
}

/* Responsive layout: phones, tablets, and desktop */
img {
  max-width: 100%
}

button,
input,
select,
textarea {
  max-width: 100%
}

@media (min-width:761px) and (max-width:1024px) {
  .site-header {
    padding: 0 32px
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 56px 32px 70px;
    min-height: auto
  }

  .hero-art {
    height: 410px;
    margin-left: 16px
  }

  .steps {
    padding: 88px 32px
  }

  .teacher-section {
    padding: 82px 32px
  }

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

  .teacher-card:nth-child(3) {
    grid-column: span 2;
    max-width: calc(50% - 12px)
  }

  .cta {
    margin: 78px 32px;
    padding: 60px 54px
  }

  footer {
    margin: 0 32px
  }

  .checkout-layout {
    margin: 30px 32px 65px;
    gap: 38px
  }

  .dashboard-main {
    padding: 56px 32px
  }

  .chat-shell {
    grid-template-columns: 225px minmax(0, 1fr)
  }

  .chat-sidebar {
    padding: 32px 20px
  }

  .messages {
    padding: 32px 40px
  }
}

@media (max-width:760px) {
  body {
    overflow-x: hidden
  }

  .announcement {
    height: auto;
    min-height: 34px;
    padding: 7px 16px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance
  }

  .announcement span {
    margin-left: 5px
  }

  .hero h1,
  .dashboard-intro h1,
  .checkout-main h1 {
    font-size: clamp(38px, 12vw, 53px)
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 14px
  }

  .primary-button {
    min-height: 44px
  }

  .hero-art {
    height: clamp(330px, 95vw, 390px)
  }

  .trust-row {
    gap: 12px;
    align-items: flex-start
  }

  .teacher-card:nth-child(3) {
    display: block
  }

  .photo-wrap {
    height: clamp(220px, 65vw, 320px)
  }

  .quote-section {
    padding: 58px 20px
  }

  .cta {
    margin-inline: 16px;
    padding: 45px 24px;
    min-height: 330px
  }

  .cta h2 {
    font-size: clamp(38px, 11vw, 45px)
  }

  footer {
    margin-inline: 20px
  }

  .booking-box,
  .sessions-box,
  .profile-box,
  .withdraw-box,
  .info-modal-box {
    width: calc(100vw - 24px);
    padding: 30px 22px;
    max-height: calc(100dvh - 24px)
  }

  .auth-card {
    padding: 28px 22px
  }

  .checkout-header {
    padding: 0 16px
  }

  .checkout-header>span {
    font-size: 9px;
    text-align: right
  }

  .checkout-layout {
    margin: 20px 16px 45px
  }

  .order-card {
    padding: 22px 18px
  }

  .pay-option {
    padding: 13px 11px
  }

  .dashboard-header {
    padding: 0 16px
  }

  .dashboard-user {
    max-width: 55%
  }

  .dashboard-main {
    padding-inline: 16px
  }

  .dashboard-tabs {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none
  }

  .dashboard-tabs::-webkit-scrollbar {
    display: none
  }

  .request-card {
    padding: 15px
  }

  .request-copy {
    min-width: calc(100% - 60px)
  }

  .request-price {
    width: calc(100% - 60px);
    text-align: left;
    margin-left: 59px
  }

  .chat-page {
    height: 100dvh
  }

  .chat-header {
    padding: 0 14px
  }

  .chat-person {
    left: 50%;
    max-width: 48%
  }

  .chat-person>div {
    min-width: 0
  }

  .chat-person b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .chat-timer {
    font-size: 10px
  }

  .messages {
    padding: 20px 14px
  }

  .message {
    max-width: 88%
  }

  .message-form {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom))
  }

  .message-form input {
    min-width: 0
  }

  .plus {
    flex: 0 0 38px
  }

  .send-message {
    padding-inline: 12px
  }

  .support-section {
    padding: 58px 20px
  }
}

@media (max-width:390px) {
  .logo {
    font-size: 21px
  }

  .small-button {
    padding: 9px 10px;
    font-size: 11px
  }

  .hero {
    padding-inline: 16px
  }

  .hero-art {
    margin-top: 34px
  }

  .lesson-card {
    transform: scale(.76)
  }

  .hello-card {
    transform: scale(.86);
    transform-origin: left bottom
  }

  .teacher-section,
  .steps {
    padding-inline: 16px
  }

  .checkout-header>span {
    display: none
  }

  .chat-person {
    left: 54%;
    max-width: 43%
  }

  .chat-person small {
    display: none
  }

  .send-message {
    font-size: 0;
    width: 40px;
    padding: 0
  }

  .send-message::after {
    content: '➜';
    font-size: 16px
  }
}

.role-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px
}

.role-field legend {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px
}

.role-field label {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px
}

.role-field input {
  width: auto !important;
  margin: 0 !important;
  accent-color: var(--orange)
}

.auth-card textarea {
  display: block;
  width: 100%;
  border: 1px solid #40534c;
  border-radius: 3px;
  background: #0b1513;
  padding: 13px;
  margin-top: 7px;
  font: 12px Manrope, sans-serif;
  color: var(--ink);
  resize: vertical
}

.auth-card textarea:focus {
  outline: 2px solid var(--lime);
  border-color: #75a45f
}

/* Keep actionable controls dark in dark mode; --ink is intentionally a light text colour. */
.primary-button,
.small-button,
.accept-button,
.send-message,
.phrase-card button,
.support-btn-sms {
  background: #183a31;
  color: #f4fbf7
}

.primary-button:hover,
.small-button:hover,
.accept-button:hover,
.send-message:hover,
.phrase-card button:hover,
.support-btn-sms:hover {
  background: #245244
}

.primary-button.light {
  background: var(--lime);
  color: #10241d
}

.primary-button.light span {
  color: #10241d
}

.small-button {
  background: #e8f6ce;
  color: #163128
}

.small-button:hover {
  background: #c9ec73;
  color: #10241d
}

.lesson-foot button {
  background: #183a31;
  color: var(--lime)
}

.heart {
  background: #1c2e28;
  color: var(--ink)
}

.available {
  background: #1e382b;
  color: #d8f4c4
}

/* ── Quick Test Accounts Banner on Auth Page ────────────────────────────── */
.test-accounts-box {
  background: rgba(232, 246, 206, 0.08);
  border: 1px dashed rgba(181, 230, 99, 0.4);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}

.test-accounts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.test-accounts-badge {
  font: 800 10px 'DM Mono', monospace;
  background: var(--lime);
  color: #10241d;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.test-accounts-hint {
  font-size: 11px;
  color: #8fa59c;
}

.test-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .test-accounts-grid {
    grid-template-columns: 1fr;
  }
}

.test-account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #112620;
  border: 1px solid #2d4c42;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  color: var(--ink);
}

.test-account-btn:hover {
  background: #19382f;
  border-color: var(--lime);
  transform: translateY(-1px);
}

.acc-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.acc-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.acc-meta b {
  font-size: 12px;
  color: #f4fbf7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-meta small {
  font-size: 10px;
  color: #8fa59c;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-arrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  flex-shrink: 0;
}

.test-creds-info {
  margin-top: 10px;
  font-size: 11px;
  color: #8fa59c;
  text-align: center;
}

.test-creds-info code {
  font-family: 'DM Mono', monospace;
  background: #112620;
  color: var(--lime);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #2d4c42;
}

/* ── Moxera Agencies Auth Banner ────────────────────────────────────────── */
.moxera-auth-box {
  background: linear-gradient(135deg, #132b24 0%, #1a3a30 100%);
  border: 1px solid #365b4f;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.moxera-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.moxera-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--lime);
  background: #0d221c;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #285444;
}

.moxera-partner-label {
  font-size: 11px;
  color: #9eb6aa;
  font-weight: 600;
}

.moxera-desc {
  font-size: 12px;
  color: #cad8d1;
  line-height: 1.5;
  margin: 0 0 14px;
}

.moxera-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c9ec73;
  color: #0b1f19;
  font-weight: 800;
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(201, 236, 115, 0.2);
}

.moxera-cta-button:hover {
  background: #dbfa8c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 236, 115, 0.35);
}

/* ── Chat Page Layout & Header ────────────────────────────────────────── */
.chat-page {
  height: 100vh;
  height: 100dvh;
  background: #0d1716;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-page .chat-header {
  height: 72px;
  background: #0f1c1a;
  border-bottom: 1px solid #2b3d37;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  position: relative;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.chat-header-left {
  display: flex;
  align-items: center;
  min-width: 130px;
  flex-shrink: 0;
}

.chat-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
  text-decoration: none;
}

.chat-back:hover {
  opacity: 0.8;
}

/* Partner person pill centered between left & right sections */
.chat-page .chat-person {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  z-index: 2;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5bd58;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-person b {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.chat-person small {
  font-size: 10px;
  color: #9aaba4;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Live status indicator dot */
.status-dot-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee44e;
  box-shadow: 0 0 6px #4ee44e;
  animation: pulseLive 1.5s infinite;
  vertical-align: middle;
}

/* Right-hand action group in chat header */
.chat-page .chat-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-width: 140px;
  z-index: 3;
}

.chat-earnings-meter {
  background: #113830;
  color: #c9ec73;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #1e4e42;
}

.chat-earnings-meter b {
  color: #fff;
  font-size: 13px;
}

.chat-page .chat-timer {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #c9ec73;
  background: #152723;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #2b3d37;
  white-space: nowrap;
  margin-left: 0 !important;
  flex-shrink: 0;
}

.chat-action-finish {
  background: #e87042;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.chat-action-finish:hover {
  background: #d3592c;
  transform: translateY(-1px);
}

/* Main chat shell */
.chat-page .chat-shell {
  flex: 1;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  height: calc(100vh - 72px) !important;
  height: calc(100dvh - 72px) !important;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.chat-page .chat-sidebar {
  border-right: 1px solid #2b3d37 !important;
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column;
  overflow-y: auto;
  background: #0f1c1a;
}

.chat-page .chat-sidebar h2 {
  font: 600 24px/1.1 Newsreader, serif;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.chat-page .partner-bio-card {
  background: #162621;
  border: 1px solid #283e35;
  border-radius: 8px;
  padding: 14px;
}

.chat-page .partner-bio-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink);
}

.chat-page .partner-bio-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #9aaba4;
}

.sidebar-rate-info {
  margin-top: 10px;
  font: 700 11px 'DM Mono', monospace;
  color: var(--lime);
}

.phrase-card-spaced {
  margin-top: 20px;
}

.chat-page .phrase-card {
  background: #172c24;
  border: 1px solid #294237;
  border-radius: 8px;
  padding: 16px;
}

.sidebar-note {
  margin-top: auto;
  padding-top: 20px;
  font-size: 11px;
  color: #798d84;
  line-height: 1.6;
}

/* Chat room area */
.chat-page .chat-room {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background: #0d1716;
}

/* Waiting overlay (hidden by default) */
.chat-waiting,
.chat-waiting-hidden {
  display: none !important;
}

.chat-waiting.active {
  display: flex !important;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(13, 23, 22, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.chat-waiting.active span {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 12px;
}

.chat-waiting.active h2 {
  font: 600 28px Newsreader, serif;
  margin: 0 0 8px;
  color: var(--ink);
}

.chat-waiting.active p {
  font-size: 13px;
  color: #9aaba4;
  margin: 0;
}

/* Messages feed */
.chat-page .messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 24px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  min-height: 0 !important;
}

.chat-page .message {
  align-self: flex-start;
  max-width: 68%;
}

.chat-page .message.mine {
  align-self: flex-end;
}

.chat-page .message p {
  margin: 0;
  background: #182824;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #283c34;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chat-page .message.mine p {
  background: #244b36;
  border-color: #35674a;
  border-radius: 16px 4px 16px 16px;
}

.chat-page .message small {
  font-size: 10px;
  color: #798d84;
  margin: 4px 2px;
  display: block;
}

.chat-page .message.mine small {
  text-align: right;
}

/* Message input form */
.chat-page .message-form {
  flex-shrink: 0 !important;
  padding: 14px 28px !important;
  border-top: 1px solid #2b3d37 !important;
  background: #0f1c1a !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.chat-page .message-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: #0b1513;
  color: var(--ink);
  border: 1px solid #2b3d37;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.chat-page .message-form input:focus {
  outline: 2px solid var(--lime);
  border-color: transparent;
}

.chat-page .plus {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #182824;
  color: var(--ink);
  border: 1px solid #2b3d37;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-page .send-message {
  padding: 0 20px;
  height: 40px;
  color: #10241d;
  background: var(--lime);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.chat-page .send-message:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Payout modal */
.payout-modal-box {
  text-align: center;
}

.payout-success-icon {
  margin: 10px auto 16px;
}

.payout-modal-title {
  font-size: 32px;
  margin: 0 0 10px;
}

.payout-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.chat-msg-counter {
  background: #102922;
  color: #a8d5ba;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #204d3f;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.chat-msg-counter b {
  color: var(--lime);
  font-size: 13px;
}

.chat-msg-counter.completed {
  background: #14462e;
  border-color: #2da467;
  color: #92f7b8;
  animation: pulseCompleted 2s infinite;
}

@keyframes pulseCompleted {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(45, 164, 103, 0.4);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 10px 2px rgba(45, 164, 103, 0.4);
  }
}

.chat-closed-bar {
  background: #142a23;
  border: 1px solid #2d5a49;
  border-radius: 8px;
  margin: 12px 28px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e8f5ec;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.35s ease-out;
}

.chat-closed-bar .closed-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.chat-closed-bar .closed-content b {
  display: block;
  font-size: 14px;
  color: var(--lime);
  margin-bottom: 2px;
}

.chat-closed-bar .closed-content p {
  margin: 0;
  font-size: 12px;
  color: #9bb0a5;
  line-height: 1.4;
}

.payout-amount-badge {
  display: inline-block;
  background: #123d32;
  color: var(--lime);
  border: 2px solid #2d735e;
  border-radius: 30px;
  padding: 8px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  margin: 10px auto 14px;
  box-shadow: 0 4px 20px rgba(78, 228, 78, 0.15);
  letter-spacing: -0.02em;
}

.locked-icon {
  background: #2f2210;
  color: #f5bd58;
  border: 2px solid #a37526;
}

/* Locked partner card in homepage grid */
.partner-card.is-locked {
  opacity: 0.82;
  border-color: #5c6e65;
  background: #fafbf9;
}

.partner-card.is-locked .partner-online-chip {
  background: #4a4030e6;
  color: #fedb98;
}

.partner-card.is-locked .partner-card-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #b5491de8;
  color: #fff;
  padding: 4px 9px;
  border-radius: 12px;
  font: 700 10px 'DM Mono', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
}

.locked-chat-btn {
  background: #506159 !important;
  color: #cbd8d1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.85;
}

.locked-chat-btn:hover {
  background: #506159 !important;
  transform: none !important;
}

.payout-withdraw-btn {
  background: #e87042;
}

.payout-withdraw-btn:hover {
  background: #d05c2a;
}

/* Responsive queries */
@media (max-width: 960px) {
  .chat-page .chat-person {
    position: static;
    transform: none;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .chat-page .chat-shell {
    grid-template-columns: 1fr !important;
  }

  .chat-page .chat-sidebar {
    display: none !important;
  }

  .chat-page .chat-header {
    padding: 0 14px;
    gap: 8px;
  }

  .chat-header-left {
    min-width: auto;
  }

  .chat-back span {
    display: none;
  }

  .chat-earnings-meter span {
    display: none;
  }

  .chat-page .messages {
    padding: 16px 14px !important;
  }

  .chat-page .message-form {
    padding: 10px 14px !important;
  }

  .chat-page .message {
    max-width: 86%;
  }
}

/* ── index.html de-inlined utility classes ──────────────────────────────── */

/* Support buttons wrapper (was inline flex div) */
.support-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Partners sub-heading count line */
.partners-subhead {
  color: #596d63;
  font-size: 13px;
  margin: 8px 0 0;
}

/* Section intro with no bottom margin (support section) */
.section-intro-flush {
  margin-bottom: 0;
}

/* Support section sub-paragraph */
.support-sub {
  color: #576b61;
  font-size: 13px;
  margin-top: 8px;
  max-width: 560px;
}

/* Withdraw form field label rows */
.form-field-label {
  font-size: 11px;
  font-weight: 800;
  display: block;
  color: inherit;
}

.form-field-label-mt {
  margin-top: 12px;
}

/* Withdraw text inputs */
.withdraw-input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d5dbd0;
  background: #fff;
  border-radius: 4px;
  font: 14px 'DM Mono', monospace;
  box-sizing: border-box;
  display: block;
}

/* Withdraw submit button full-width variant */
.withdraw-submit-fullwidth {
  width: 100%;
  margin-top: 10px;
}

/* Tips modal close button full-width */
.tips-close-btn {
  width: 100%;
  margin-top: 24px;
}