:root {
  --amo-accent: var(--thim-body-primary-color, #ffb606);
  --amo-dark: #172033;
  --amo-text: var(--thim-body-color, #5f6675);
  --amo-line: #e8eaf0;
  --amo-soft: #f6f7fb;
  --amo-white: #fff;
  --amo-radius: 14px;
  --amo-shadow: 0 16px 45px rgba(20, 31, 56, .09);
}

.amo-platform { color: var(--amo-text); font-size: 15px; line-height: 1.65; margin: 25px auto 50px; max-width: 1170px; }
.amo-platform *, .amo-platform *::before, .amo-platform *::after { box-sizing: border-box; }
.amo-platform h2, .amo-platform h3, .amo-platform h4 { color: var(--amo-dark); margin-top: 0; }
.amo-platform h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.amo-platform h3 { font-size: 23px; }
.amo-platform h4 { font-size: 17px; }
.amo-eyebrow, .amo-card-kicker { color: var(--amo-accent); display: block; font-size: 11px; font-weight: 800; letter-spacing: .15em; margin-bottom: 8px; }
.amo-button { align-items: center; background: var(--amo-accent); border: 0; border-radius: 6px; color: #161616 !important; cursor: pointer; display: inline-flex; font-weight: 700; justify-content: center; min-height: 46px; padding: 11px 22px; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.amo-button:hover { box-shadow: 0 10px 25px rgba(0,0,0,.13); transform: translateY(-2px); }
.amo-button-light { background: #fff; color: var(--amo-dark) !important; margin-left: auto; }
.amo-button-small { min-height: 38px; padding: 7px 14px; white-space: nowrap; }
.amo-text-link { color: var(--amo-dark); font-weight: 700; }
.amo-notice { border-radius: 8px; margin: 0 0 20px; padding: 13px 16px; }
.amo-notice-success { background: #eaf8ef; color: #196735; }
.amo-notice-error { background: #fff0f0; color: #9b2828; }

.amo-dashboard-hero { align-items: center; background: linear-gradient(135deg, #1b263d, #2c3e61); border-radius: var(--amo-radius); color: rgba(255,255,255,.8); display: flex; gap: 20px; margin-bottom: 22px; overflow: hidden; padding: 30px; position: relative; }
.amo-dashboard-hero::after { background: var(--amo-accent); border-radius: 50%; content: ''; height: 160px; opacity: .16; position: absolute; right: -50px; top: -80px; width: 160px; }
.amo-dashboard-hero img { border: 3px solid rgba(255,255,255,.35); border-radius: 50%; }
.amo-dashboard-hero h2 { color: #fff; font-size: clamp(25px, 3vw, 38px); margin: 0 0 4px; }
.amo-dashboard-hero p { margin: 0; }
.amo-dashboard-hero .amo-button { position: relative; z-index: 1; }
.amo-stats { display: grid; gap: 18px; grid-template-columns: 1fr 1fr 2fr; margin-bottom: 22px; }
.amo-stat { background: #fff; border: 1px solid var(--amo-line); border-radius: var(--amo-radius); box-shadow: 0 7px 24px rgba(20,31,56,.05); display: flex; flex-direction: column; padding: 22px; }
.amo-stat > span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.amo-stat strong { color: var(--amo-dark); font-size: 34px; line-height: 1.2; margin: 5px 0; }
.amo-stat strong.amo-stat-date { font-size: 23px; }
.amo-stat small { color: #89909d; }
.amo-dashboard-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); margin-bottom: 22px; }
.amo-panel { background: #fff; border: 1px solid var(--amo-line); border-radius: var(--amo-radius); box-shadow: 0 7px 24px rgba(20,31,56,.05); margin-bottom: 22px; padding: 24px; }
.amo-dashboard-grid .amo-panel { margin-bottom: 0; }
.amo-panel-heading { align-items: flex-start; border-bottom: 1px solid var(--amo-line); display: flex; justify-content: space-between; margin-bottom: 8px; padding-bottom: 16px; }
.amo-panel-heading h3 { margin-bottom: 0; }
.amo-empty { background: var(--amo-soft); border-radius: 10px; margin-top: 16px; padding: 24px; text-align: center; }
.amo-empty strong { color: var(--amo-dark); display: block; font-size: 17px; }
.amo-empty p { margin: 6px 0 0; }
.amo-lesson { align-items: center; border-bottom: 1px solid var(--amo-line); display: flex; gap: 16px; padding: 18px 0; }
.amo-lesson:last-child { border-bottom: 0; padding-bottom: 4px; }
.amo-date-badge { align-items: center; background: var(--amo-soft); border-radius: 9px; display: flex; flex: 0 0 58px; flex-direction: column; height: 62px; justify-content: center; }
.amo-date-badge strong { color: var(--amo-dark); font-size: 23px; line-height: 1; }
.amo-date-badge span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.amo-lesson-content { flex: 1; min-width: 0; }
.amo-lesson-content h4 { margin: 3px 0 0; }
.amo-lesson-content p { margin: 0; }
.amo-pill { border-radius: 20px; display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 8px; text-transform: uppercase; }
.amo-pill-trial { background: #fff3d0; color: #8a5f00; }
.amo-pill-paid { background: #e9efff; color: #3657a8; }
.amo-note, .amo-homework { background: var(--amo-soft); border-left: 3px solid var(--amo-accent); border-radius: 4px; margin-top: 10px; padding: 8px 10px; }
.amo-homework { border-left-color: #4669bc; }
.amo-calendar { display: grid; gap: 5px; grid-template-columns: repeat(7, 1fr); padding-top: 10px; text-align: center; }
.amo-calendar-label { color: #999faa; font-size: 10px; font-weight: 800; }
.amo-calendar-day { align-items: center; border-radius: 50%; display: flex; height: 34px; justify-content: center; margin: auto; position: relative; width: 34px; }
.amo-calendar-day.has-lesson { background: var(--amo-accent); color: #111; font-weight: 800; }
.amo-calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--amo-dark); }
.amo-calendar-key { align-items: center; display: flex; font-size: 12px; gap: 7px; margin-top: 16px; }
.amo-calendar-key span { background: var(--amo-accent); border-radius: 50%; height: 9px; width: 9px; }
.amo-course-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); padding-top: 8px; }
.amo-course-card { align-items: center; border: 1px solid var(--amo-line); border-radius: 10px; color: inherit !important; display: grid; gap: 13px; grid-template-columns: 82px 1fr; overflow: hidden; padding: 12px; text-decoration: none !important; }
.amo-course-card:hover { border-color: var(--amo-accent); }
.amo-course-card h4 { margin: 0 0 8px; }
.amo-course-image { background: var(--amo-soft); border-radius: 7px; height: 68px; overflow: hidden; }
.amo-course-image img { height: 100%; object-fit: cover; width: 100%; }
.amo-progress { background: #edf0f4; border-radius: 5px; height: 7px; overflow: hidden; }
.amo-progress span { background: var(--amo-accent); display: block; height: 100%; }

.amo-auth-wrap { background: #fff; border-radius: var(--amo-radius); box-shadow: var(--amo-shadow); display: grid; grid-template-columns: 1fr 1fr; min-height: 570px; overflow: hidden; }
.amo-auth-intro { background: linear-gradient(150deg, #152039, #2f466b); color: rgba(255,255,255,.78); padding: 65px 55px; position: relative; }
.amo-auth-intro::after { border: 45px solid var(--amo-accent); border-radius: 50%; bottom: -100px; content: ''; height: 240px; opacity: .13; position: absolute; right: -70px; width: 240px; }
.amo-auth-intro h2 { color: #fff; }
.amo-auth-intro ul { list-style: none; margin-top: 30px; padding: 0; }
.amo-auth-intro li { margin: 12px 0; padding-left: 26px; position: relative; }
.amo-auth-intro li::before { color: var(--amo-accent); content: '✓'; font-weight: 900; left: 0; position: absolute; }
.amo-auth-forms { padding: 55px; }
.amo-tab-buttons { border-bottom: 1px solid var(--amo-line); display: flex; gap: 28px; margin-bottom: 28px; }
.amo-tab-buttons button { background: transparent; border: 0; color: #7b8190; font-weight: 800; padding: 0 0 12px; position: relative; }
.amo-tab-buttons button.is-active { color: var(--amo-dark); }
.amo-tab-buttons button.is-active::after { background: var(--amo-accent); bottom: -1px; content: ''; height: 3px; left: 0; position: absolute; right: 0; }
.amo-form label, .amo-auth-forms .login-username label, .amo-auth-forms .login-password label { color: var(--amo-dark); display: block; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.amo-form input:not([type=radio]), .amo-form textarea, .amo-auth-forms input[type=text], .amo-auth-forms input[type=password] { background: #fff; border: 1px solid #d8dce5; border-radius: 6px; display: block; margin-top: 6px; min-height: 46px; padding: 10px 12px; width: 100%; }
.amo-form textarea { min-height: 120px; }
.amo-form input:focus, .amo-form textarea:focus, .amo-auth-forms input:focus { border-color: var(--amo-accent); box-shadow: 0 0 0 3px rgba(255,182,6,.14); outline: 0; }
.amo-form label small { color: #8c929e; display: block; font-weight: 400; margin-top: 4px; }

.amo-section-title { margin: 0 auto 35px; max-width: 700px; text-align: center; }
.amo-section-title h2 { margin-bottom: 12px; }
.amo-booking-options { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin: 0 auto 22px; max-width: 900px; }
.amo-booking-card { background: #fff; border: 2px solid var(--amo-line); border-radius: var(--amo-radius); color: var(--amo-text); display: flex; flex-direction: column; padding: 24px; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.amo-booking-card:hover, .amo-booking-card.is-active { border-color: var(--amo-accent); box-shadow: var(--amo-shadow); transform: translateY(-3px); }
.amo-booking-card strong { color: var(--amo-dark); font-size: 23px; }
.amo-booking-card .amo-duration { color: var(--amo-dark); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.amo-booking-card small { font-size: 14px; margin-bottom: 16px; }
.amo-booking-card b { color: var(--amo-dark); margin-top: auto; }
.amo-embed-panel { background: #fff; border: 1px solid var(--amo-line); border-radius: var(--amo-radius); box-shadow: var(--amo-shadow); margin: auto; max-width: 1100px; min-height: 690px; overflow: hidden; }
.amo-cal-frame { border: 0; display: block; height: 740px; width: 100%; }
.amo-booking-note { font-size: 13px; margin: 18px auto 0; max-width: 700px; text-align: center; }

.amo-review-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.amo-review-card { background: #fff; border: 1px solid var(--amo-line); border-left: 1px solid var(--amo-line) !important; border-radius: var(--amo-radius); box-shadow: 0 8px 28px rgba(20,31,56,.06); margin: 0; padding: 24px; }
.amo-stars { color: var(--amo-accent); font-size: 18px; letter-spacing: .1em; }
.amo-review-card > p { color: var(--amo-dark); font-size: 16px; }
.amo-review-card footer { align-items: center; color: var(--amo-text); display: flex; gap: 10px; }
.amo-review-card footer::before { content: none; }
.amo-review-card footer img { border-radius: 50%; }
.amo-review-card footer span { display: flex; flex-direction: column; }
.amo-review-card footer small { color: #9298a4; }
.amo-review-card footer small::before { content: none; }
.amo-review-form-wrap { background: var(--amo-soft); border-radius: var(--amo-radius); margin-top: 35px; padding: 30px; }
.amo-review-form-wrap .amo-form { max-width: 680px; }
.amo-rating { border: 0; display: inline-flex; flex-direction: row-reverse; margin: 0 0 15px; padding: 0; }
.amo-rating legend { border: 0; color: var(--amo-dark); font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.amo-rating input { left: -9999px; position: absolute; }
.amo-rating label { color: #cdd1d8; cursor: pointer; font-size: 30px; line-height: 1; margin: 0 3px 0 0; }
.amo-rating input:checked ~ label, .amo-rating label:hover, .amo-rating label:hover ~ label { color: var(--amo-accent); }

@media (max-width: 900px) {
  .amo-stats { grid-template-columns: 1fr 1fr; }
  .amo-stat-wide { grid-column: 1 / -1; }
  .amo-dashboard-grid, .amo-auth-wrap { grid-template-columns: 1fr; }
  .amo-course-grid, .amo-review-grid { grid-template-columns: 1fr 1fr; }
  .amo-auth-intro, .amo-auth-forms { padding: 40px; }
}

@media (max-width: 600px) {
  .amo-platform { margin-top: 10px; }
  .amo-dashboard-hero { align-items: flex-start; flex-wrap: wrap; padding: 22px; }
  .amo-dashboard-hero .amo-button { margin-left: 92px; }
  .amo-stats, .amo-booking-options, .amo-course-grid, .amo-review-grid { grid-template-columns: 1fr; }
  .amo-stat-wide { grid-column: auto; }
  .amo-panel { padding: 18px; }
  .amo-panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .amo-lesson { align-items: flex-start; flex-wrap: wrap; }
  .amo-lesson .amo-button { margin-left: 74px; }
  .amo-auth-intro, .amo-auth-forms { padding: 30px 22px; }
  .amo-embed-panel { min-height: 620px; }
  .amo-cal-frame { height: 680px; }
}
