﻿:root {
  --font-family: "Roboto", sans-serif;
  --app-bg: #d7d7d7;
  --page-bg: #f4f4f4;
  --card-bg: #ffffff;
  --text-primary: #111111;
  --text-secondary: #717171;
  --text-muted: #8f8f8f;
  --input-bg: #eeeeee;
  --input-border: #c9c9c9;
  --primary: #7e57c2;
  --primary-text: #ffffff;
  --link-color: #295ab7;
  --card-max-width: 420px;
  --mobile-width: 375px;
  --input-height: 56px;
  --input-font-size: 15px;
  --subtitle-font-size: 12px;
  --heading-font-size: 20px;
  --btn-font-size: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;
}

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-family);
  background: var(--app-bg);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.mobile-frame {
  width: min(100%, var(--mobile-width));
  min-height: 100dvh;
  background: var(--page-bg);
  box-shadow: 0 0 0 1px #cccccc, 0 16px 34px rgba(0, 0, 0, 0.09);
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 48px 20px 28px;
}

.auth-card {
  width: 100%;
  max-width: var(--card-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid #e8e8e8;
  border-radius: 24px;
  padding: 18px 18px 26px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.signup-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.brand-wrap {
  text-align: center;
  margin-top: 18px;
}

.brand-title {
  margin: 0;
  font-size: 46px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.brand-subtitle {
  margin: 8px 0 0;
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 400;
}

.welcome-wrap {
  text-align: center;
  margin-top: 72px;
}

.welcome-title {
  margin: 0;
  font-size: var(--heading-font-size);
  font-weight: 700;
}

.welcome-subtitle {
  margin: 12px 0 0;
  font-size: var(--subtitle-font-size);
  color: var(--text-secondary);
}

.auth-form {
  width: 100%;
  margin-top: 94px;
}

.auth-form input {
  width: 100%;
  height: var(--input-height);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  padding: 0 18px;
  font-size: var(--input-font-size);
  color: #2e2e2e;
  outline: none;
  margin-bottom: 18px;
}

.auth-form input::placeholder {
  color: #9f9f9f;
}

.auth-form input:focus {
  border-color: var(--primary);
}

.form-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 14px;
}

.forgot-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 14px;
}

.primary-btn {
  width: 100%;
  height: var(--input-height);
  border: 1px solid #6f4db1;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: var(--primary-text);
  font-size: var(--btn-font-size);
  font-weight: 700;
  cursor: pointer;
}

.switch-auth {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.switch-auth a,
.terms-text a {
  margin-left: 8px;
  color: var(--link-color);
  font-weight: 500;
  text-decoration: none;
}

.terms-text {
  margin-top: auto;
  padding-top: 140px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.signup-form {
  margin-top: 86px;
}

.signup-switch {
  margin-top: 2px;
}

.signup-terms {
  padding-top: 52px;
}

.forgot-form {
  margin-top: 86px;
}

.back-login-link {
  margin-top: 30px;
  color: var(--link-color);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.otp-form {
  margin-top: 90px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.otp-input {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  text-align: center;
  font-size: var(--input-font-size) !important;
  font-weight: 500;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.otp-link {
  margin-top: 8px;
  color: var(--link-color);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.otp-help-text {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.otp-link-strong {
  margin-top: 6px;
}

.reset-form {
  margin-top: 86px;
}

.terms-text a {
  margin-left: 0;
  display: inline-block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.error {
  border-color: #d63f3f !important;
}

.auth-clean {
  background: #ffffff;
}

.auth-clean .mobile-frame {
  background: #ffffff;
  box-shadow: none;
}

.auth-clean .auth-page {
  background: #ffffff;
  padding: 20px 18px;
  align-items: center;
  justify-content: center;
}

.auth-clean .auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 340px;
  min-height: auto;
}

.auth-clean .brand-wrap {
  margin-top: 14px;
}

.auth-clean .login-brand-top .brand-wrap {
  margin-top: 0;
}

.auth-clean .forgot-brand-top .brand-wrap {
  margin-top: -86px;
}

.auth-clean .brand-title {
  font-size: 34px;
  font-weight: 700;
}

.auth-clean .welcome-wrap {
  margin-top: 20px;
}

.auth-clean .welcome-title {
  font-size: 30px;
}

.auth-clean .welcome-subtitle {
  margin-top: 8px;
  font-size: 13px;
}

.auth-clean .auth-form {
  margin-top: 28px;
}

.auth-clean .auth-form input {
  height: 50px;
  font-size: 14px;
  margin-bottom: 14px;
}

.auth-clean .primary-btn {
  height: 50px;
  font-size: 15px;
}

.auth-clean .switch-auth,
.auth-clean .terms-text,
.auth-clean .otp-help-text,
.auth-clean .otp-link {
  font-size: 14px;
}

.auth-clean .otp-input {
  width: 48px !important;
  height: 48px !important;
  font-size: 20px !important;
}

body.user-service-login {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 45%);
}

.login-container {
  max-width: 375px;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  background: #ffffff;
}

.login-container > main {
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  font-size: 32px;
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.28);
}

.login-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #333333;
}

.login-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
}

.login-form {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.login-container .form-group {
  margin-bottom: 18px;
}

.login-container .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

.phone-input,
.password-input {
  width: 100%;
  height: auto;
  padding: 15px;
  margin-bottom: 0;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: #ffffff;
  color: #333333;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.phone-input::placeholder,
.password-input::placeholder {
  color: #999999;
}

.phone-input:focus,
.password-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.login-container .form-links {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
}

.login-container .forgot-link,
.login-container .register-link a,
.login-container .terms-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.login-container .forgot-link {
  font-size: 14px;
}

.login-container .forgot-link:hover,
.login-container .register-link a:hover,
.login-container .terms-text a:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: auto;
  padding: 15px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #667eea;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-btn:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.24);
}

.login-container .register-link {
  margin-top: 24px;
  text-align: center;
  color: #666666;
  font-size: 14px;
}

.login-container .terms-text {
  margin: 18px 0 0;
  text-align: center;
  color: #999999;
  font-size: 12px;
  line-height: 1.6;
}

body.user-login-reference {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
}

.user-login-reference .login-reference-frame {
  width: min(100%, var(--mobile-width));
  min-height: 100dvh;
  background: #ffffff;
  box-shadow: none;
}

.user-login-reference .login-reference-page {
  min-height: 100dvh;
  padding: 48px 40px 34px;
  display: flex;
  flex-direction: column;
}

.user-login-reference .login-reference-card {
  padding: 34px 24px 26px;
  border-radius: 28px;
  background: #ffffff;
  border: 1.5px solid #cfd8ee;
  box-shadow:
    0 22px 44px rgba(43, 47, 87, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.92) inset;
}

.user-login-reference .login-reference-brand,
.user-login-reference .login-reference-copy {
  text-align: center;
}

.user-login-reference .login-reference-logo {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0;
}

.user-login-reference .login-reference-company {
  margin: 6px 0 0;
  font-size: 14px;
  color: #7a7a7a;
}

.user-login-reference .login-reference-copy {
  margin-top: 46px;
}

.user-login-reference .login-reference-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

.user-login-reference .login-reference-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #8a8a8a;
}

.user-login-reference .login-reference-form {
  margin-top: 46px;
}

.user-login-reference .login-reference-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #fafafa;
  color: #2b2b2b;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.user-login-reference .login-reference-input + .login-reference-input {
  margin-top: 18px;
}

.user-login-reference .login-reference-input::placeholder {
  color: #9a9a9a;
}

.user-login-reference .login-reference-input:focus {
  border-color: #8a62d2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(130, 88, 205, 0.12);
}

.user-login-reference .login-reference-links {
  margin-top: 10px;
  text-align: right;
}

.user-login-reference .login-reference-link,
.user-login-reference .login-reference-signup a,
.user-login-reference .login-reference-footer a {
  color: #2b63c8;
  text-decoration: none;
}

.user-login-reference .login-reference-link {
  font-size: 14px;
}

.user-login-reference .login-reference-btn {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  background: #7f59c7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(127, 89, 199, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.user-login-reference .login-reference-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 28px rgba(127, 89, 199, 0.26);
}

.user-login-reference .login-reference-meta {
  margin-top: 14px;
  text-align: center;
}

.user-login-reference .login-reference-signup {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
}

.user-login-reference .login-reference-signup a {
  margin-left: 10px;
  font-weight: 700;
}

.user-login-reference .login-reference-footer {
  margin-top: auto;
  padding-top: 64px;
  text-align: center;
}

.user-login-reference .login-reference-footer p {
  margin: 0;
  font-size: 12px;
  color: #9a9a9a;
}

.user-login-reference .login-reference-footer a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}

.user-login-reference .login-reference-link:hover,
.user-login-reference .login-reference-signup a:hover,
.user-login-reference .login-reference-footer a:hover {
  text-decoration: underline;
}

body.user-auth-page {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(126, 87, 194, 0.16), transparent 36%),
    radial-gradient(circle at top right, rgba(102, 126, 234, 0.18), transparent 32%),
    linear-gradient(180deg, #f6f8ff 0%, #eef2fb 100%);
}

.user-auth-page .auth-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  padding: 32px 16px;
  display: flex;
  align-items: center;
}

.user-auth-page .auth-layout {
  width: 100%;
}

.user-auth-page .auth-panel {
  position: relative;
  width: 100%;
  min-height: 760px;
  padding: 34px 26px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
  border: 1px solid #e5eaf5;
  box-shadow: 0 24px 50px rgba(44, 62, 110, 0.14);
  overflow: hidden;
}

.user-auth-page .signup-auth-panel {
  border: 1.5px solid #cfd8ee;
  box-shadow:
    0 22px 46px rgba(44, 62, 110, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.92) inset;
}

.user-auth-page .auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(126, 87, 194, 0.16));
  pointer-events: none;
}

.user-auth-page .auth-icon-circle,
.user-auth-page .auth-brand,
.user-auth-page .auth-heading,
.user-auth-page .auth-subheading,
.user-auth-page .auth-unified-form,
.user-auth-page .auth-meta {
  position: relative;
  z-index: 1;
}

.user-auth-page .auth-icon-circle {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #7e57c2);
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 14px 32px rgba(102, 126, 234, 0.28);
}

.user-auth-page .auth-logo-mark {
  position: relative;
  gap: 0;
}

.user-auth-page .auth-logo-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(31, 41, 70, 0.14);
  font-size: 15px;
}

.user-auth-page .auth-logo-badge-user {
  left: 13px;
  top: 19px;
}

.user-auth-page .auth-logo-badge-provider {
  right: 13px;
  bottom: 19px;
}

.user-auth-page .auth-brand {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #667eea;
}

.user-auth-page .auth-heading {
  margin: 14px 0 0;
  text-align: center;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #20263a;
}

.user-auth-page .auth-subheading {
  max-width: 310px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  color: #667085;
}

.user-auth-page .auth-unified-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-auth-page .auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.user-auth-page #sharedUserSignupFields,
.user-auth-page #sharedProviderSignupPanel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-auth-page .auth-status {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.user-auth-page .auth-status.is-visible {
  display: block;
}

.user-auth-page .auth-status.auth-status-error {
  border: 1px solid #f1c7cd;
  background: #fff4f5;
  color: #b42318;
}

.user-auth-page .auth-status.auth-status-success {
  border: 1px solid #b7e4c7;
  background: #f2fff6;
  color: #0f7a34;
}

.user-auth-page .auth-label {
  font-size: 13px;
  font-weight: 600;
  color: #30384f;
}

.user-auth-page .auth-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1.5px solid #d9dfef;
  background: #f8faff;
  color: #24304a;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.user-auth-page .auth-input::placeholder {
  color: #8c93a7;
}

.user-auth-page .auth-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.user-auth-page .auth-role-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin: 0 auto 28px;
  width: 100%;
  max-width: 320px;
  border-radius: 999px;
  background: #f3f4f6;
}

.user-auth-page .auth-role-toggle-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 12px 18px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.user-auth-page .auth-role-toggle-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.user-auth-page .auth-helper-row.auth-helper-row-end {
  justify-content: flex-end;
}

.user-auth-page .auth-helper-copy {
  font-size: 12px;
  color: #7f879a;
}

.user-auth-page .auth-submit-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea, #7e57c2);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(102, 126, 234, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.user-auth-page .auth-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 18px 34px rgba(102, 126, 234, 0.3);
}

.user-auth-page .auth-submit-btn:active {
  transform: translateY(0);
}

.user-auth-page .auth-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf1f7;
  text-align: center;
}

.user-auth-page .auth-footnote {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #677087;
}

.user-auth-page .auth-footnote + .auth-footnote {
  margin-top: 10px;
}

.user-auth-page .auth-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #8d95a8;
}

.user-auth-page .auth-page-link,
.user-auth-page .auth-footnote a,
.user-auth-page .auth-legal a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.user-auth-page .auth-page-link:hover,
.user-auth-page .auth-footnote a:hover,
.user-auth-page .auth-legal a:hover {
  text-decoration: underline;
}

.user-auth-page .otp-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-auth-page .otp-inputs.otp-inputs-six {
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  gap: 8px;
}

.user-auth-page .otp-input {
  width: 100% !important;
  min-width: 0;
  height: 56px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  border: 1.5px solid #d9dfef !important;
  background: #f8faff !important;
  box-sizing: border-box;
  text-align: center;
  font-size: 22px !important;
  font-weight: 700;
  color: #24304a;
}

.user-auth-page .otp-input:focus {
  border-color: #667eea !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

@media (max-width: 420px) {
  .user-auth-page .auth-role-toggle {
    max-width: none;
  }

  .user-auth-page .otp-inputs.otp-inputs-six {
    gap: 6px;
  }

  .user-auth-page .otp-input {
    height: 50px !important;
    border-radius: 14px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 768px) {
  body.user-service-login {
    background: #ffffff;
  }

  .login-container {
    padding: 20px 16px;
  }

  .user-login-reference .login-reference-page {
    padding: 50px 38px 30px;
  }

  .user-login-reference .login-reference-card {
    padding: 30px 22px 24px;
    border-radius: 24px;
  }

  .user-login-reference .login-reference-copy {
    margin-top: 42px;
  }

  .user-login-reference .login-reference-form {
    margin-top: 42px;
  }

  body.user-auth-page {
    background:
      radial-gradient(circle at top left, rgba(126, 87, 194, 0.12), transparent 34%),
      linear-gradient(180deg, #f8faff 0%, #eef2fb 100%);
  }

  .user-auth-page .auth-shell {
    width: 100%;
    padding: 18px 16px;
  }

  .user-auth-page .auth-panel {
    min-height: auto;
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .user-auth-page .auth-heading {
    font-size: 26px;
  }

  .user-auth-page .auth-subheading {
    font-size: 13px;
  }

  .user-auth-page .auth-input,
  .user-auth-page .auth-submit-btn {
    height: 52px;
  }

  .user-auth-page .auth-helper-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    background: var(--page-bg);
  }

  .mobile-frame {
    width: 100%;
    box-shadow: none;
  }

  .auth-page {
    padding: 40px 20px 24px;
  }

  .brand-title {
    font-size: 44px;
  }

  .brand-subtitle {
    font-size: 30px;
  }

  .welcome-wrap {
    margin-top: 62px;
  }

  .welcome-title {
    font-size: var(--heading-font-size);
  }

  .welcome-subtitle {
    font-size: var(--subtitle-font-size);
  }

  .auth-form {
    margin-top: 80px;
  }

  .auth-form input,
  .primary-btn {
    height: 54px;
  }

  .primary-btn {
    font-size: var(--btn-font-size);
  }

  .terms-text {
    padding-top: 120px;
  }
}

/* Home page */
.home-frame {
  position: relative;
}

.home-page {
  min-height: 100dvh;
  padding: 16px 14px 78px;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.location-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.location-subtitle {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #202020;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.home-header .profile-notify-btn {
  position: relative;
  right: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e5e8ee;
  border-radius: 12px;
  padding: 8px 6px 10px;
  box-shadow: 0 4px 10px rgba(20, 28, 40, 0.06);
  min-height: 126px;
}

.category-card[hidden] {
  display: none !important;
}

.category-icon {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  background: linear-gradient(145deg, #f8fafc 0%, #e9edf3 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(23, 30, 45, 0.08);
  margin-bottom: 6px;
}

.category-icon i {
  width: 34px;
  font-size: 34px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.16));
}

.icon-salon .category-icon { color: #d13e7a; }
.icon-kids .category-icon { color: #4e67d8; }
.icon-cleaning .category-icon { color: #2b8b62; }
.icon-ac .category-icon { color: #2f7cc2; }
.icon-water .category-icon { color: #168aa6; }
.icon-plumber .category-icon { color: #8a5a2e; }

.category-name {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  width: 100%;
  padding: 0 2px;
}

.category-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: -6px 0 18px;
}

.category-toggle-wrap[hidden] {
  display: none !important;
}

.category-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5dce6;
  border-radius: 999px;
  background: #ffffff;
  color: #1d3557;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  box-shadow: 0 4px 10px rgba(20, 28, 40, 0.06);
}

.category-more-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.category-more-btn.is-expanded i {
  transform: rotate(180deg);
}

.promo-wrap {
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  padding: 12px 0;
  margin: 0 -14px 14px;
}

.promo-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #ffffff;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(14, 18, 26, 0.72) 0%, rgba(14, 18, 26, 0.36) 44%, rgba(14, 18, 26, 0.06) 100%);
}

.promo-content h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
  max-width: 55%;
}

.promo-content button {
  margin-top: auto;
  width: fit-content;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #141821;
  padding: 8px 14px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.promo-slider {
  min-height: 210px;
  position: relative;
  padding-bottom: 18px;
}

.promo-slide {
  position: absolute;
  inset: 0 0 18px 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.promo-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.promo-banner {
  display: block;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.promo-banner-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4c95d 0%, #f28c5b 48%, #d95d39 100%);
}

.promo-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.promo-dot {
  width: 8px;
  height: 6px;
  border-radius: 999px;
  background: #b9b9b9;
}

.promo-dot.active {
  width: 16px;
  background: #4e4e4e;
}

.services-section {
  margin: 0 -14px;
  padding: 16px 14px 0;
}

.services-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  position: relative;
}

.service-card[hidden] {
  display: none !important;
}

.service-card img {
  width: 100%;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
}

.off-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #24a148;
  color: #fff;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 0 0 6px 0;
  font-weight: 700;
}

.service-card h3 {
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 500;
}

.rating {
  margin: 0 0 2px;
  font-size: 11px;
  color: #1b1b1b;
}

.price {
  margin: 0;
  font-size: 11px;
  color: #1b1b1b;
}

.service-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
}

.service-toggle-wrap[hidden] {
  display: none !important;
}

.category-more-btn,
.service-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5dce6;
  border-radius: 999px;
  background: #ffffff;
  color: #1d3557;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  box-shadow: 0 4px 10px rgba(20, 28, 40, 0.06);
}

.category-more-btn i,
.service-more-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.category-more-btn.is-expanded i,
.service-more-btn.is-expanded i {
  transform: rotate(180deg);
}

.bottom-nav {
  position: sticky;
  left: 0;
  right: 0;
  width: 100%;
  bottom: 0;
  height: 78px;
  border-top: 1px solid #d4d4d4;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 40;
}

.bottom-nav a {
  color: #1a1a1a;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 19px;
  font-weight: 500;
}

.bottom-nav a span {
  font-size: 12px;
}

.nav-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bottom-nav a.active {
  color: #000;
  font-weight: 700;
}

.popup-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--mobile-width));
  transform: translateX(-50%);
  background: rgba(16, 18, 24, 0.34);
  display: none;
  z-index: 120;
}

.popup-overlay.show {
  display: block;
}

.popup-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--page-bg);
  border-radius: 0;
  padding: 14px 16px 18px;
  overflow-y: auto;
  animation: popupSlideFromTop 0.24s ease;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.popup-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@keyframes popupSlideFromTop {
  from {
    transform: translateY(-26px);
    opacity: 0.94;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #ececec;
  font-size: 20px;
  line-height: 1;
}

.popup-title {
  margin: 18px 0 14px;
  font-size: 20px;
  font-weight: 700;
}

.popup-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #d5d5d5;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #151515;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.select-chip {
  position: relative;
  justify-content: space-between;
  gap: 10px;
}

.select-chip span {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

.select-chip select {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #151515;
  width: 100%;
  outline: none;
  font-family: var(--font-family);
}

.filter-chip.active {
  background: #7e57c2;
  color: #fff;
  border-color: #7e57c2;
}

.popup-subtitle {
  margin: 14px 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.popup-empty {
  display: none;
  margin: 18px 0 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.popup-empty.show {
  display: block;
}

.popup-service-card img {
  width: 100%;
  height: 104px;
  border-radius: 10px;
  object-fit: cover;
}

.popup-service-card h4 {
  margin: 6px 0 2px;
  font-size: 13px;
  font-weight: 500;
}

.popup-service-card p {
  margin: 0;
  color: #666;
  font-size: 11px;
}

.popup-service-card strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.popup-service-card button {
  margin-top: 8px;
  width: 74px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #7e57c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Service detail page */
.service-detail-frame {
  position: relative;
}

.service-detail-page {
  min-height: 100dvh;
  padding: 16px 16px 104px;
}

.service-detail-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.service-detail-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.detail-back-btn {
  position: absolute;
  left: 0;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: #2d2d2d;
}

.page-back-btn {
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
}

.detail-main-card {
  margin-top: 20px;
}

.detail-media {
  display: block;
}

.detail-hero-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #ebeef7 0%, #d7ddf0 100%);
  box-shadow: 0 14px 34px rgba(28, 36, 64, 0.14);
}

.detail-hero-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(9, 16, 31, 0) 0%, rgba(9, 16, 31, 0.4) 100%);
  pointer-events: none;
}

.detail-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  background: #e7e8f2;
}

.detail-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.detail-hero-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.detail-hero-nav.prev {
  left: 10px;
}

.detail-hero-nav.next {
  right: 10px;
}

.detail-gallery-rail {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.detail-gallery-rail[hidden] {
  display: none !important;
}

.detail-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.detail-dot:hover {
  transform: scale(1.08);
}

.detail-dot.active {
  width: 22px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

@media (max-width: 420px) {
  .detail-hero-image {
    aspect-ratio: 16 / 9;
  }
}

.detail-service-name {
  margin: 14px 0 2px;
  font-size: 18px;
  font-weight: 700;
}

.detail-rating {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.detail-price {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.detail-description {
  margin: 10px 0 0;
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.45;
}

.provider-section {
  margin-top: 16px;
}

.provider-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #d6d8ea;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.provider-card.selected {
  border-color: #7e57c2;
}

.provider-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.provider-info {
  flex: 1;
  min-width: 0;
}

.provider-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.provider-info p {
  margin: 3px 0 0;
  color: #555;
  font-size: 12px;
}

.provider-select-btn {
  height: 34px;
  min-width: 92px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 500;
  font-size: 14px;
}

.provider-select-btn.selected {
  background: #7e57c2;
  color: #fff;
  font-weight: 700;
}

.detail-book-bar {
  position: sticky;
  bottom: 78px;
  margin-top: 12px;
  padding: 10px 0 12px;
  background: var(--page-bg);
  border-top: 1px solid #e1e1e1;
  z-index: 4;
}

.detail-book-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.detail-book-btn:disabled,
.booking-continue-btn:disabled,
.place-booking-btn:disabled {
  background: #d5d9e1;
  color: #7b8390;
  cursor: not-allowed;
}

/* Booking page */
.booking-frame {
  position: relative;
}

.booking-page {
  min-height: 100dvh;
  padding: 16px 16px 104px;
}

.booking-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.booking-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.booking-back-btn {
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  color: #2d2d2d;
}

.booking-service-card {
  margin-top: 16px;
  background: #cfd0e4;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.booking-service-card img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
}

.booking-service-info {
  flex: 1;
  min-width: 0;
}

.booking-service-card h2 {
  margin: 0;
  font-size: 18px;
}

.booking-service-card p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #444;
}

.booking-service-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.booking-section {
  margin-top: 14px;
}

.booking-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.booking-section input {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #d0d0d0;
  background: #f6f6f6;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font-family);
}

.booking-address-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-section select,
.booking-section textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d0d0d0;
  background: #f6f6f6;
  padding: 14px;
  font-size: 14px;
  font-family: var(--font-family);
  color: #1f1f1f;
}

.booking-section select {
  height: 52px;
  padding-right: 42px;
}

.booking-section textarea {
  min-height: 96px;
  resize: vertical;
}

.booking-section textarea[readonly] {
  background: #efeff7;
  color: #54546a;
}

.booking-address-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

.booking-date-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #d0d0d0;
  background: #f6f6f6;
  padding: 0 12px;
}

.booking-date-field input {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0;
}

.booking-date-field i {
  color: #7e7e7e;
}

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

.booking-slot-note {
  margin: 8px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

.slot-btn {
  height: 40px;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  background: #f5f5f5;
  font-size: 13px;
  font-weight: 500;
}

.slot-btn[aria-disabled="true"] {
  opacity: 0.55;
}

.slot-btn.active {
  background: #7e57c2;
  border-color: #7e57c2;
  color: #fff;
  font-weight: 700;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.coupon-apply-btn {
  border: 0;
  border-radius: 12px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.coupon-reference {
  margin-top: 12px;
  border: 1px dashed #b5b7ca;
  border-radius: 12px;
  padding: 10px;
  background: #f7f8ff;
}

.coupon-ref-header {
  font-size: 13px;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 8px;
}

.booking-coupon-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.booking-coupon-card {
  border: 1px solid #d9dbef;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  min-width: 230px;
  scroll-snap-align: start;
}

.booking-coupon-card:hover {
  border-color: #7e57c2;
  box-shadow: 0 6px 16px rgba(126, 87, 194, 0.12);
}

.booking-coupon-card.is-disabled {
  cursor: default;
  filter: grayscale(1);
  opacity: 0.88;
  border-color: #b8b8b8;
  background: linear-gradient(180deg, #f4f4f4 0%, #e3e3e3 100%);
  box-shadow: none;
}

.booking-coupon-card.is-disabled:hover {
  border-color: #b8b8b8;
  box-shadow: none;
}

.booking-coupon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.booking-coupon-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.booking-coupon-code {
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #1c1c1c;
}

.booking-coupon-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.booking-coupon-status {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  background: #fff;
  color: #1d1d1d;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.booking-coupon-card.is-disabled .booking-coupon-tag {
  background: #3a3a3a;
}

.booking-coupon-desc {
  margin: 6px 0;
  font-size: 12px;
  color: #3e3e3e;
  line-height: 1.4;
}

.booking-coupon-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #595959;
}

.booking-coupon-empty {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.bill-card {
  margin-top: 14px;
  background: #cfd0e4;
  border-radius: 14px;
  padding: 12px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 16px;
}

.bill-row strong {
  font-size: 18px;
}

.bill-row.total strong {
  font-size: 18px;
}

.bill-card hr {
  border: 0;
  border-top: 1px solid #b5b7ca;
  margin: 8px 0;
}

.booking-footer-bar {
  position: sticky;
  bottom: 78px;
  margin-top: 12px;
  padding: 10px 0 12px;
  background: var(--page-bg);
  border-top: 1px solid #e1e1e1;
  z-index: 4;
}

.booking-continue-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* Checkout page */
.checkout-frame {
  position: relative;
}

.checkout-page {
  min-height: 100dvh;
  padding: 16px 14px 92px;
}

.checkout-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d3d3d3;
}

.checkout-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.checkout-back-btn {
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  color: #2d2d2d;
}

.checkout-card {
  margin-top: 14px;
  background: #c7c8da;
  border-radius: 16px;
  padding: 12px;
}

.checkout-service-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: flex-start;
}

.checkout-service-row img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
}

.checkout-service-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.checkout-provider {
  margin: 6px 0 0;
  font-size: 14px;
  color: #4b4b4b;
}

.checkout-service-price {
  margin: 0 0 0 auto;
  font-size: 16px;
  font-weight: 700;
}

.checkout-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.checkout-address {
  margin: 6px 0 0;
  font-size: 14px;
  color: #4b4b4b;
}

.checkout-date,
.checkout-time {
  margin: 0;
  font-size: 14px;
  color: #262626;
}

.checkout-time {
  margin-top: 8px;
}

.checkout-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 14px;
}

.checkout-bill-row strong {
  font-size: 16px;
}

.checkout-bill-row.discount strong {
  color: #368b35;
}

.checkout-bill-row.total {
  margin-top: 8px;
}

.checkout-bill-row.total span,
.checkout-bill-row.total strong {
  font-size: 16px;
  font-weight: 700;
}

.checkout-card hr {
  border: 0;
  border-top: 1px solid #9fa2b9;
  margin: 8px 0;
}

.payment-section {
  margin-top: 14px;
}

.payment-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.payment-option {
  width: 100%;
  margin: 0 0 10px;
  border: 1.8px solid #1b1b1b;
  border-radius: 18px;
  background: #f5f5f5;
  min-height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family);
  font-size: 14px;
  color: #111;
}

.payment-option .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c8c8c8;
  border: 2px solid #c8c8c8;
}

.payment-option.active .dot {
  background: #121212;
  border-color: #121212;
}

.payment-option:not(.active) {
  border-color: #bebebe;
}

.upi-partner-row {
  margin: -2px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 6px;
}

.upi-partner-label {
  font-size: 12px;
  color: #6a6a6a;
  font-weight: 600;
}

.upi-partner-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.upi-partner-logos img {
  width: 34px;
  height: 22px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 2px 6px;
}

.upi-id-input {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-family);
}

.upi-pay-btn {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.upi-popup-overlay[hidden] {
  display: none;
}

.upi-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 90;
}

.upi-popup-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.upi-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 16px;
  line-height: 1;
}

.upi-popup-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.upi-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upi-app-btn {
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  background: #fafafa;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upi-app-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.upi-app-btn span {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1d;
}

.upi-app-btn.active {
  border-color: #7e57c2;
  background: #f1ebff;
}

.card-popup-overlay[hidden] {
  display: none;
}

.card-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 95;
}

.card-popup-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
  max-height: 92dvh;
  overflow-y: auto;
}

.card-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  line-height: 1;
}

.card-popup-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.card-brand-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-brand-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.card-preview {
  margin-top: 12px;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #2f356d 0%, #1a1f45 100%);
  color: #ffffff;
  min-height: 148px;
}

.card-preview-chip {
  margin: 0;
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f2d899 0%, #d7ae48 100%);
}

.card-preview-number {
  margin: 20px 0 0;
  font-size: 20px;
  letter-spacing: 1.6px;
  font-weight: 700;
}

.card-preview-bottom {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-preview-name,
.card-preview-expiry {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-form-grid {
  margin-top: 12px;
}

.card-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #434343;
}

.card-input {
  width: 100%;
  height: 42px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-family);
}

.card-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card-pay-btn {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.wallet-popup-overlay[hidden],
.success-popup-overlay[hidden] {
  display: none;
}

.wallet-popup-overlay,
.success-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 96;
}

.wallet-popup-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.wallet-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  line-height: 1;
}

.wallet-popup-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.wallet-balance-text,
.wallet-shortfall-text {
  margin: 4px 0;
  font-size: 14px;
  color: #303030;
}

.wallet-shortfall-text {
  color: #bb3a3a;
}

.wallet-quick-add {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-chip {
  min-height: 38px;
  border: 1px solid #c7c7c7;
  border-radius: 999px;
  background: #f7f7f7;
  font-size: 14px;
  font-weight: 600;
}

.wallet-input-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.wallet-input {
  width: 100%;
  height: 42px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-family);
}

.wallet-add-btn {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #2b8b62;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.success-popup-overlay {
  align-items: center;
  justify-content: center;
}

.success-popup-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
}

.success-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  line-height: 1;
}

.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #2b8b62;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}

.success-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.success-message {
  margin: 8px 0 0;
  font-size: 14px;
  color: #555;
}

.success-done-btn {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.checkout-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 16px;
  border-top: 1px solid #d3d3d3;
  background: var(--page-bg);
}

.place-booking-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* Booking confirmation page */
.confirmation-frame {
  position: relative;
}

.confirmation-page {
  min-height: 100dvh;
  padding: 18px 16px 110px;
}

.confirmation-top {
  text-align: center;
  margin-top: 62px;
}

.confirmation-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto;
  background: #2b8b35;
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-top h1 {
  margin: 14px 0 0;
  font-size: 32px;
  font-weight: 700;
}

.confirmation-top p {
  margin: 10px 0 0;
  color: #6a6a6a;
  font-size: 14px;
}

.confirmation-summary {
  margin-top: 28px;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.confirmation-row span {
  color: #4a4a4a;
}

.confirmation-row strong {
  text-align: right;
  font-weight: 500;
}

.confirmation-summary hr {
  border: 0;
  border-top: 1px solid #bfbfbf;
  margin: 10px 0;
}

.confirmation-row.total span,
.confirmation-row.total strong {
  color: #111;
  font-size: 23px;
  font-weight: 700;
}

.confirmation-actions {
  margin-top: 28px;
}

.download-invoice-btn,
.goto-booking-btn {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.download-invoice-btn {
  border: 0;
  background: #7e57c2;
  color: #fff;
}

.goto-booking-btn {
  margin-top: 14px;
  border: 1.5px solid #a0a0a0;
  background: #fff;
  color: #1c1c1c;
}

/* My bookings page */
.my-bookings-frame {
  position: relative;
}

.my-bookings-page {
  min-height: 100dvh;
  padding: 0 0 110px;
}

.my-bookings-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  border-bottom: 1px solid #d6d6d6;
}

.my-bookings-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.my-bookings-back-btn {
  position: absolute;
  left: 10px;
  border: 0;
  background: transparent;
  color: #2a2a2a;
}

.my-bookings-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 10px;
  border-bottom: 1px solid #dedede;
}

.booking-filter-btn {
  border: 1px solid #bdbdbd;
  background: #ffffff;
  border-radius: 999px;
  min-width: 0;
  height: 38px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
}

.booking-filter-btn.active {
  background: #7e57c2;
  color: #fff;
  border-color: #7e57c2;
}

.my-bookings-list {
  padding: 14px;
}

.my-booking-card {
  background: #cfd0e4;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}

.my-booking-card.upcoming {
  background: #ffffff;
  border: 1px solid #dddddd;
}

.my-booking-card.refunded {
  background: #f4f8ff;
  border: 1px solid #d6e3fb;
}

.my-booking-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.my-booking-title-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.my-booking-status {
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
}

.my-booking-status.upcoming {
  background: #f3e8bc;
  color: #766114;
}

.my-booking-status.progress {
  background: #dde8ff;
  color: #365b98;
}

.my-booking-status.completed {
  background: #cee7cc;
  color: #256638;
}

.my-booking-status.cancelled {
  background: #f3d8d8;
  color: #812f2f;
}

.my-booking-status.rejected {
  background: #ffd7d7;
  color: #b42318;
}

.my-booking-status.refunded {
  background: #d8e6ff;
  color: #2b4f87;
}

.my-refund-summary {
  margin-top: 10px;
  border: 1px solid #d8e5ff;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.my-refund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px dashed #d9e1f2;
  font-size: 13px;
  color: #50617c;
}

.my-refund-row:last-child {
  border-bottom: 0;
}

.my-refund-row strong {
  color: #24344d;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.my-refund-reference {
  margin: 10px 0 0;
  font-size: 12px;
  color: #45608a;
}

.my-refund-reference i {
  margin-right: 4px;
}

.my-booking-provider {
  margin: 4px 0 0;
  font-size: 14px;
  color: #333;
}

.my-booking-meta {
  margin: 5px 0 0;
  color: #555;
  font-size: 13px;
}

.my-booking-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
  padding: 4px 0;
}

.my-booking-track .booking-step {
  position: relative;
  padding: 26px 4px 0;
  text-align: center;
  font-size: 11px;
  color: #707070;
  min-width: 0;
  line-height: 1.25;
  word-break: break-word;
}

.my-booking-track .booking-step::before {
  content: none;
}

.my-booking-track .booking-step::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #d7d7d7;
  z-index: 1;
}

.my-booking-track .booking-step-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #b3b3b3;
  z-index: 3;
  pointer-events: none;
}

.my-booking-track .booking-step-label {
  display: block;
}

.my-booking-track .booking-step:first-child::after {
  display: none;
}

.my-booking-track .booking-step.completed,
.my-booking-track .booking-step.current {
  color: #1f355f;
  font-weight: 600;
}

.my-booking-track .booking-step.completed::before {
  content: none;
}

.my-booking-track .booking-step.current::before {
  content: none;
}

.my-booking-track .booking-step.completed .booking-step-icon,
.my-booking-track .booking-step.current .booking-step-icon {
  color: #2d5ca8;
}

.my-booking-track .booking-step.completed::after,
.my-booking-track .booking-step.current::after {
  background: #2d5ca8;
}

.my-booking-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.my-booking-otp-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #efd490;
  background: linear-gradient(135deg, #fffaf0 0%, #fff2c9 100%);
}

.my-booking-otp-card.verified {
  border-color: #a9d4b8;
  background: linear-gradient(135deg, #f2fdf6 0%, #dff4e7 100%);
}

.my-booking-otp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.my-booking-otp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #815b00;
}

.my-booking-otp-card.verified .my-booking-otp-label {
  color: #226946;
}

.my-booking-otp-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(129, 91, 0, 0.12);
  color: #815b00;
  font-size: 10px;
  font-weight: 700;
}

.my-booking-otp-badge.success {
  background: rgba(34, 105, 70, 0.12);
  color: #226946;
}

.my-booking-otp-code {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #1f2937;
  font-family: "Courier New", monospace;
}

.my-booking-otp-help {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5d5d5d;
}

.my-booking-otp-meta {
  margin: 6px 0 0;
  font-size: 11px;
  color: #7a6844;
}

.my-booking-outline-btn,
.my-booking-primary-btn {
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.my-booking-outline-btn {
  border: 1px solid #c8c8c8;
  background: #fff;
}

.my-booking-primary-btn {
  border: 0;
  background: #7e57c2;
  color: #fff;
  font-weight: 600;
}

.my-booking-primary-btn.full {
  width: 100%;
  margin-top: 12px;
}

.my-booking-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #737373;
}

.my-booking-card[hidden] {
  display: none;
}

.reschedule-popup-overlay[hidden] {
  display: none;
}

.reschedule-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 96;
}

.reschedule-popup-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.reschedule-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  line-height: 1;
}

.reschedule-popup-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.reschedule-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.reschedule-input {
  width: 100%;
  height: 42px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-family);
}

.reschedule-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reschedule-slot-btn {
  min-height: 38px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  background: #f8f8f8;
  font-size: 12px;
  font-weight: 500;
}

.reschedule-slot-btn.active {
  border-color: #7e57c2;
  background: #f1ebff;
  color: #4a3572;
  font-weight: 700;
}

.reschedule-confirm-btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.cancel-popup-overlay[hidden] {
  display: none;
}

.cancel-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 97;
}

.cancel-popup-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.cancel-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  line-height: 1;
}

.cancel-popup-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.cancel-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.cancel-textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-family);
  background: #fff;
  color: #222;
}

.cancel-reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cancel-reason-btn {
  min-height: 36px;
  border: 1px solid #cfd3dd;
  border-radius: 999px;
  background: #f8f9fc;
  color: #333f55;
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
}

.cancel-reason-btn.active {
  border-color: #7e57c2;
  background: #f1ebff;
  color: #4b3473;
  font-weight: 700;
}

.cancel-textarea {
  resize: none;
}

.cancel-submit-btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.rating-popup-overlay[hidden] {
  display: none;
}

.rating-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 97;
}

.rating-popup-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.rating-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  font-size: 22px;
  line-height: 1;
}

.rating-popup-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.rating-service-name {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.rating-stars {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.rating-star-btn {
  border: 0;
  background: transparent;
  font-size: 32px;
  color: #c8c8c8;
  line-height: 1;
  padding: 0;
}

.rating-star-btn.active {
  color: #f3b400;
}

.rating-comment-input {
  width: 100%;
  margin-top: 12px;
  min-height: 86px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  font-size: 14px;
  font-family: var(--font-family);
}

.rating-submit-btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.invoice-popup-overlay[hidden] {
  display: none;
}

.invoice-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 98;
}

.invoice-popup-card {
  width: 100%;
  max-width: 360px;
  max-height: 94dvh;
  overflow-y: auto;
  background: #f4f4f4;
  border-radius: 16px;
  padding: 10px;
}

.invoice-popup-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #d8d8d8;
}

.invoice-popup-header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.invoice-popup-back {
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  font-size: 30px;
  color: #222;
}

.invoice-box {
  margin-top: 10px;
  background: #eeeeee;
  border-radius: 14px;
  padding: 12px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.invoice-row span {
  color: #505050;
}

.invoice-row strong {
  text-align: right;
  font-weight: 500;
}

.invoice-row.total span,
.invoice-row.total strong {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.invoice-box hr {
  border: 0;
  border-top: 1px solid #bcbcbc;
  margin: 10px 0;
}

.invoice-address-title {
  margin: 8px 0 4px;
  color: #5a5a5a;
  font-size: 14px;
}

.invoice-address-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1f1f1f;
}

.invoice-discount {
  color: #33803e;
}

.invoice-paid-pill {
  margin: 10px 0 0;
  display: inline-flex;
  width: auto;
  min-width: 88px;
  padding: 0 14px;
  height: 28px;
  border-radius: 999px;
  background: #d2ead6;
  color: #2f7f3b;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.invoice-paid-pill.is-unpaid,
.invoice-paid-pill.is-pending {
  background: #ffe7cc;
  color: #9a5a00;
}

.invoice-paid-pill.is-refunded {
  background: #e9def8;
  color: #5a3c8a;
}

.invoice-paid-pill.is-failed {
  background: #ffe2e2;
  color: #b23f3f;
}

.invoice-footer-title {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.invoice-footer-mail {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}

.invoice-download-btn {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.invoice-share-btn {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: 1.5px solid #b2b2b2;
  border-radius: 999px;
  background: #fff;
  color: #232323;
  font-size: 15px;
  font-weight: 500;
}

.upi-popup-overlay,
.card-popup-overlay,
.wallet-popup-overlay,
.wallet-add-popup-overlay,
.success-popup-overlay,
.reschedule-popup-overlay,
.cancel-popup-overlay,
.rating-popup-overlay,
.invoice-popup-overlay,
.profile-popup-overlay {
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.upi-popup-overlay.is-open,
.card-popup-overlay.is-open,
.wallet-popup-overlay.is-open,
.wallet-add-popup-overlay.is-open,
.success-popup-overlay.is-open,
.reschedule-popup-overlay.is-open,
.cancel-popup-overlay.is-open,
.rating-popup-overlay.is-open,
.invoice-popup-overlay.is-open,
.profile-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.upi-popup-card,
.card-popup-card,
.wallet-popup-card,
.wallet-add-popup-card,
.success-popup-card,
.reschedule-popup-card,
.cancel-popup-card,
.rating-popup-card,
.invoice-popup-card,
.profile-popup-card {
  transform: translateY(8px);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.22s ease;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.upi-popup-overlay.is-open .upi-popup-card,
.card-popup-overlay.is-open .card-popup-card,
.wallet-popup-overlay.is-open .wallet-popup-card,
.wallet-add-popup-overlay.is-open .wallet-add-popup-card,
.success-popup-overlay.is-open .success-popup-card,
.reschedule-popup-overlay.is-open .reschedule-popup-card,
.cancel-popup-overlay.is-open .cancel-popup-card,
.rating-popup-overlay.is-open .rating-popup-card,
.invoice-popup-overlay.is-open .invoice-popup-card,
.profile-popup-overlay.is-open .profile-popup-card {
  transform: translateY(0);
  opacity: 1;
}

/* Profile page */
.profile-frame {
  position: relative;
}

.profile-page {
  min-height: 100dvh;
  padding: 0 14px 110px;
}

.profile-header {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d8d8d8;
}

.profile-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.profile-back-btn {
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  color: #2a2a2a;
}

.profile-notify-btn {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #9a9a9a;
  background: #fff;
  font-size: 16px;
  color: #3a3a3a;
}

.profile-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d52b1e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-notify-badge[hidden] {
  display: none;
}

.profile-card {
  margin-top: 16px;
  background: #c7c8da;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card-info {
  flex: 1;
  min-width: 0;
}

.profile-card-info h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.profile-card-info p {
  margin: 2px 0 0;
  font-size: 14px;
  color: #4b4b4b;
}

.profile-card-actions {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.profile-card-actions > button {
  margin-top: 0;
  width: 136px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.profile-card-info button.profile-login-btn,
.profile-logout-btn.profile-login-btn {
  background: #7e57c2;
  color: #fff;
  border: 0;
}

.profile-menu-list {
  margin-top: 18px;
}

.profile-menu-item {
  width: 100%;
  height: 56px;
  border: 1px solid #b9b9b9;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #1f1f1f;
}

.profile-menu-item strong {
  font-size: 14px;
  color: #333;
}

.profile-logout-btn {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 1.5px solid #b5b5b5;
  border-radius: 999px;
  background: #fff;
  color: #cd3232;
  font-size: 16px;
  font-weight: 700;
}

.profile-change-password-btn {
  color: #1f1f1f;
}

.change-password-card {
  max-width: 420px;
  padding: 20px 18px 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.change-password-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.change-password-subtitle {
  margin: 0 0 16px;
  font-size: 12px;
  color: #4a4a4a;
}

.change-password-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e2ed;
  border-radius: 12px;
  background: #f8f8fc;
}

.change-password-step label {
  font-size: 12px;
  font-weight: 600;
  color: #2c2c2c;
}

.change-password-step .phone-input,
.change-password-step .password-input {
  margin-bottom: 0;
  height: 44px;
  font-size: 13px;
}

.change-password-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-popup-secondary-btn {
  flex: 1;
  height: 42px;
  border: 1.5px solid #b5b5b5;
  border-radius: 999px;
  background: #fff;
  color: #2b2b2b;
  font-size: 13px;
  font-weight: 600;
}

.change-password-status {
  display: none;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid transparent;
  text-align: left;
}

.change-password-status.is-success {
  display: block;
  background: #e9f8ef;
  color: #1e7e34;
  border-color: #b9e3c6;
}

.change-password-status.is-error {
  display: block;
  background: #ffecec;
  color: #c0392b;
  border-color: #f3b2ac;
}

.profile-popup-login-btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.change-password-card .profile-popup-login-btn {
  height: 44px;
  margin-top: 0;
}

.profile-popup-overlay[hidden] {
  display: none;
}

.profile-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 98;
}

.profile-popup-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.profile-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  color: #1f2937;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-popup-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

#profilePopupContent p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333;
}

#profilePopupContent ul {
  margin: 0;
  padding-left: 18px;
}

#profilePopupContent li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.saved-address-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
}

.saved-address-item {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  padding: 8px;
}

.saved-address-text-wrap {
  min-width: 0;
}

.saved-address-text-wrap strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.saved-address-text-wrap p {
  margin: 0;
  font-size: 13px;
  color: #444;
  line-height: 1.35;
}

.saved-address-delete {
  border: 0;
  background: #ffe8e8;
  color: #b53a3a;
  border-radius: 999px;
  min-width: 58px;
  height: 30px;
  font-size: 12px;
  font-weight: 600;
}

.saved-address-form {
  margin-top: 8px;
}

.saved-address-form input,
.saved-address-form select,
.saved-address-form textarea {
  width: 100%;
  box-sizing: border-box;
  display: block;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-family);
  margin-top: 8px;
  background: #fff;
  color: #222;
}

.saved-address-form select {
  height: 44px;
}

.saved-address-form textarea {
  min-height: 74px;
  max-width: 100%;
  resize: none;
}

.saved-address-form button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
}

.profile-notification-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.profile-notification-item {
  border: 1px solid #dfdfdf;
  border-radius: 12px;
  padding: 10px 12px;
  background: #faf8ff;
}

.profile-notification-image {
  display: block;
  width: 100%;
  max-height: 156px;
  margin-bottom: 10px;
  border-radius: 10px;
  object-fit: cover;
  background: #ece8f7;
}

.profile-notification-copy h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #242424;
}

.profile-notification-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4a4a4a;
}

.profile-notification-time,
.profile-notification-empty {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6a6a6a;
}

.profile-coupon-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.profile-coupon-card {
  border: 1px solid #dfdfdf;
  border-radius: 12px;
  padding: 12px;
  background: #f4f8ff;
  transition: filter 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.profile-coupon-card.is-disabled {
  filter: grayscale(1);
  opacity: 0.88;
  border-color: #b8b8b8;
  background: linear-gradient(180deg, #f2f2f2 0%, #e1e1e1 100%);
}

.profile-coupon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-coupon-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-coupon-code {
  font-size: 15px;
  letter-spacing: 0.6px;
  color: #1f1f1f;
}

.profile-coupon-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-coupon-status {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  background: #fff;
  color: #1d1d1d;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-coupon-card.is-disabled .profile-coupon-tag {
  background: #3a3a3a;
}

.profile-coupon-desc {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #3a3a3a;
}

.profile-coupon-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
}

.profile-coupon-meta span {
  display: block;
}

/* Edit profile page */
.edit-profile-frame {
  position: relative;
}

.edit-profile-page {
  min-height: 100dvh;
  padding: 0 14px 110px;
}

.edit-profile-header {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d8d8d8;
}

.edit-profile-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.edit-profile-back-btn {
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  color: #2a2a2a;
}

.edit-profile-photo-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.edit-profile-photo-wrap img {
  display: block;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  object-fit: cover;
  background: #d9d9d9;
}

.edit-profile-photo-wrap button {
  display: block;
  margin-top: 0;
  width: 120px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.edit-profile-photo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.edit-profile-photo-btn-secondary {
  background: #f3edf9;
  color: #7e57c2;
  border: 1px solid rgba(126, 87, 194, 0.26);
}

.edit-profile-form {
  margin-top: 12px;
}

.edit-profile-form label,
.edit-profile-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  color: #555;
}

.edit-profile-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #bdbdbd;
  border-radius: 14px;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-family);
}

.edit-gender-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.edit-gender-btn {
  height: 42px;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #333;
}

.edit-gender-btn.active {
  border-color: #7e57c2;
  background: #7e57c2;
  color: #fff;
  font-weight: 700;
}

.edit-profile-save-btn {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Wallet page */
.wallet-frame {
  position: relative;
}

.wallet-page {
  min-height: 100dvh;
  padding: 0 14px 110px;
}

.wallet-header {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d8d8d8;
}

.wallet-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.wallet-back-btn {
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  color: #2a2a2a;
}

.wallet-balance-card {
  margin-top: 16px;
  background: #c7c8da;
  border-radius: 16px;
  padding: 14px;
}

.wallet-balance-card p {
  margin: 0;
  font-size: 14px;
}

.wallet-balance-card h2 {
  margin: 8px 0 0;
  font-size: 25px;
  font-weight: 700;
}

.wallet-balance-card button {
  margin-top: 12px;
  width: 140px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.wallet-add-popup-overlay[hidden] {
  display: none;
}

.wallet-add-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 99;
}

.wallet-add-popup-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  position: relative;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.wallet-add-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  color: #222;
  font-size: 16px;
  line-height: 1;
}

.wallet-add-popup-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.wallet-add-popup-card p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #555;
}

.wallet-quick-amounts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-quick-amount-btn {
  min-height: 38px;
  border: 1px solid #c7c7c7;
  border-radius: 999px;
  background: #f7f7f7;
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1b;
}

.wallet-quick-amount-btn.active {
  border-color: #7e57c2;
  background: #f1ebff;
  color: #4a3572;
}

.wallet-popup-amount-input {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-family);
}

.wallet-add-method-label {
  margin-top: 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: #444 !important;
}

.wallet-add-methods {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-method-btn {
  min-height: 36px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  background: #f8f8f8;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.wallet-method-btn.active {
  border-color: #7e57c2;
  background: #7e57c2;
  color: #fff;
}

.wallet-add-proceed-btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.wallet-referral-section {
  margin-top: 14px;
}

.wallet-referral-section h3,
.wallet-history-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.wallet-referral-row {
  display: grid;
  grid-template-columns: 1fr 106px;
  gap: 10px;
}

.wallet-referral-row input {
  width: 100%;
  height: 42px;
  border: 1px solid #c4c4c4;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  font-family: var(--font-family);
}

.wallet-referral-row button {
  border: 0;
  border-radius: 12px;
  background: #7e57c2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.wallet-referral-card {
  margin-top: 12px;
  background: #c7c8da;
  border-radius: 14px;
  padding: 12px;
}

.wallet-ref-label {
  margin: 0;
  font-size: 13px;
  color: #333;
}

.wallet-ref-code-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-ref-code-row strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.wallet-ref-code-row span {
  font-size: 14px;
  color: #2f7f3b;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.wallet-history-section {
  margin-top: 14px;
}

.wallet-history-item {
  background: #c7c8da;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.wallet-history-item h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.wallet-history-item p {
  margin: 3px 0 0;
  font-size: 14px;
  color: #555;
}

.wallet-history-item strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wallet-history-item strong.credit {
  color: #2f7f3b;
}

.wallet-history-item strong.debit {
  color: #c53535;
}
