:root {
  --page-bg: #ebe6dc;
  --screen-bg: #f2f0eb;
  --card-bg: #fcfaf5;
  --card-soft-bg: #faf9f6;
  --text-main: #3a352d;
  --text-gold: rgba(139, 105, 20, 0.9);
  --text-gold-soft: rgba(139, 105, 20, 0.7);
  --text-muted: #99a1af;
  --gold: #d4af37;
  --gold-deep: #8b6914;
  --gold-border: rgba(212, 175, 55, 0.25);
  --gold-border-soft: rgba(212, 175, 55, 0.15);
  --line: rgba(212, 175, 55, 0.18);
  --button-disabled: #f2efe9;
  --button-disabled-border: #e8e2d5;
  --button-disabled-text: #c4bcb0;
  --star-stroke: #d7d9de;
  --switch-off: #cbced4;
  --shadow-card:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 14px 36px rgba(212, 175, 55, 0.08);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  align-items: center;
  background: radial-gradient(circle at top, #f7f3ea 0%, var(--page-bg) 70%);
  color: var(--text-main);
  display: flex;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  justify-content: center;
  padding: 24px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.phone-shell {
  background: var(--screen-bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  min-height: 851.835px;
  overflow: hidden;
  position: relative;
  width: min(100%, 393.511px);
}

.hero-backdrop {
  background:
    linear-gradient(180deg, rgba(242, 240, 235, 0.93) 0%, rgba(242, 240, 235, 0.88) 42%, rgba(242, 240, 235, 0.8) 62%, rgba(242, 240, 235, 1) 100%),
    url("https://www.figma.com/api/mcp/asset/39d4fd45-c41a-4524-b7b5-5d1e501e1ba6") center top / cover;
  box-shadow: inset 0 -32px 60px rgba(242, 240, 235, 0.78);
  filter: saturate(0.75) brightness(1.05);
  height: 360px;
  inset: 0 0 auto;
  opacity: 0.92;
  position: absolute;
}

.screen {
  min-height: 851.835px;
  padding: 39px 20px 20px;
  position: relative;
  z-index: 1;
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-left: 4px;
}

.brand-icon {
  height: 15.986px;
  width: 15.986px;
}

.brand-name {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 21px;
  margin: 0;
  text-transform: uppercase;
}

.profile-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.avatar-shell {
  height: 95.954px;
  position: relative;
  width: 95.954px;
}

.avatar-shell::before {
  background: #d4af37;
  border-radius: 999px;
  content: "";
  filter: blur(12px);
  inset: 0;
  opacity: 0.4;
  position: absolute;
  transform: scale(1.14);
}

.avatar-ring {
  background: linear-gradient(180deg, #fce38a 0%, #d4af37 100%);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  height: 83.983px;
  left: 50%;
  padding: 1.989px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 83.983px;
}

.avatar-image {
  border: 1.157px solid #fff;
  border-radius: 999px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.online-dot {
  background: #00c950;
  border: 2.315px solid #fff;
  border-radius: 999px;
  bottom: 6px;
  box-shadow: var(--shadow-card);
  height: 17.994px;
  position: absolute;
  right: 5px;
  width: 17.994px;
}

.profile-name {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 33px;
  margin: 10px 0 0;
}

.badge-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  align-items: center;
  background: var(--card-bg);
  border: 1.157px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
  color: var(--gold-deep);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  height: 32.298px;
  letter-spacing: 0.1em;
  padding: 0 15px;
}

.pill-icon {
  padding-right: 16px;
}

.pill-inline-icon {
  height: 11.99px;
  width: 11.99px;
}

.score-panel {
  margin-top: 30px;
}

.section-title {
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 21px;
  margin: 0;
  text-align: center;
}

.hero-rating-wrap {
  margin-top: 14px;
  min-height: 96px;
  position: relative;
}

.star-rating {
  display: flex;
  gap: 7px;
}

.star-rating-large {
  justify-content: center;
  padding-top: 4px;
}

.star-rating-small {
  justify-content: center;
  margin-top: 15px;
}

.star-rating .star-button {
  --star-size: 24px;
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  height: var(--star-size);
  justify-content: center;
  padding: 0;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
  width: var(--star-size);
}

.star-rating-large .star-button {
  --star-size: 40px;
}

.star-rating .star-button::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.72)' stroke='%23d7d9de' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.75l2.87 5.81 6.41.93-4.64 4.52 1.1 6.39L12 17.47 6.26 20.4l1.1-6.39-4.64-4.52 6.41-.93L12 2.75z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  content: "";
  display: block;
  height: 100%;
  width: 100%;
}

.star-rating .star-button.is-active::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37' stroke='%23bf8b12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.75l2.87 5.81 6.41.93-4.64 4.52 1.1 6.39L12 17.47 6.26 20.4l1.1-6.39-4.64-4.52 6.41-.93L12 2.75z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.22));
}

.star-rating .star-button:hover,
.star-rating .star-button:focus-visible {
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.2));
  outline: 0;
  transform: translateY(-1px);
}

.enter-store-button {
  align-items: center;
  background: linear-gradient(90deg, #d4af37 0%, #b8860b 100%);
  border: 1.157px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  height: 36.638px;
  justify-content: center;
  letter-spacing: 0.18em;
  padding: 0 17px;
  position: absolute;
  right: 2px;
  top: 47px;
}

.button-icon {
  display: block;
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.metrics-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.rating-card {
  background: var(--card-soft-bg);
  border: 1.157px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  min-height: 109.753px;
  padding: 13px 12px 14px;
}

.rating-card-title {
  align-items: center;
  color: var(--text-gold);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  letter-spacing: 0.1em;
}

.card-icon {
  height: 14px;
  width: 14px;
}

.feedback-card {
  background: var(--card-bg);
  border: 1.157px solid var(--gold-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  margin-top: 13px;
  min-height: 112.538px;
  padding: 17px 17px 12px;
}

.feedback-textarea-wrap {
  display: block;
}

.feedback-textarea {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-main);
  min-height: 50px;
  outline: 0;
  padding: 0;
  resize: none;
  width: 100%;
}

.feedback-textarea::placeholder {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 19.5px;
}

.feedback-toolbar {
  align-items: center;
  border-top: 1.157px solid var(--gold-border-soft);
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
}

.media-tools {
  display: flex;
  gap: 20px;
}

.media-tool,
.switch-row,
.footer-link {
  align-items: center;
  background: transparent;
  color: var(--text-gold-soft);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.025em;
  padding: 0;
}

.tool-icon {
  display: block;
  height: 16px;
  width: 16px;
}

.switch-row {
  color: var(--text-gold);
  gap: 12px;
}

.switch-track {
  align-items: center;
  background: var(--switch-off);
  border: 1.157px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  display: inline-flex;
  height: 14.4px;
  padding: 1px;
  transition: background 0.18s ease;
  width: 25.6px;
}

.switch-thumb {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  display: block;
  height: 12px;
  transition: transform 0.18s ease;
  width: 12px;
}

.switch-row.is-on .switch-track {
  background: linear-gradient(90deg, #d4af37 0%, #b8860b 100%);
}

.switch-row.is-on .switch-thumb {
  transform: translateX(10px);
}

.amount-card {
  background: var(--card-bg);
  border: 1.157px solid var(--gold-border);
  border-radius: 16px;
  box-shadow: inset 0 2px 8px rgba(212, 175, 55, 0.03);
  margin-top: 17px;
  padding: 13px 21px 14px;
}

.amount-row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.amount-title {
  color: var(--text-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 19.5px;
  margin: 0;
}

.amount-hint {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 15px;
  margin: 8px 0 0;
  max-width: 240px;
}

.amount-input-wrap {
  align-items: center;
  border-bottom: 1.157px solid rgba(212, 175, 55, 0.4);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 27px;
  padding-bottom: 2px;
}

.currency {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.amount-input {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: var(--button-disabled-text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  outline: 0;
  text-align: right;
  width: 60px;
}

.amount-input::placeholder {
  color: #d1d5dc;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.submit-section {
  margin-top: 27px;
}

.submit-button {
  align-items: center;
  background: var(--button-disabled);
  border: 1.157px solid var(--button-disabled-border);
  border-radius: 999px;
  color: var(--button-disabled-text);
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 8px;
  height: 54.307px;
  justify-content: center;
  letter-spacing: 0.25em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  width: 100%;
}

.submit-button:disabled {
  cursor: not-allowed;
}

.submit-button.is-ready {
  background: linear-gradient(90deg, #d4af37 0%, #b8860b 100%);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: var(--shadow-gold);
  color: #fff;
}

.submit-button.is-ready:hover,
.submit-button.is-ready:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.submit-icon {
  opacity: 0.72;
}

.submit-button.is-ready .submit-icon {
  opacity: 1;
}

.terms-copy {
  color: rgba(139, 105, 20, 0.6);
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  margin: 10px 0 0;
  text-align: center;
}

.terms-copy a {
  color: inherit;
  text-decoration: underline;
}

.footer-tools {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
}

.footer-dot {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  height: 3.997px;
  width: 3.997px;
}

.footer-link {
  letter-spacing: 0.1em;
}

.footer-link-icon {
  gap: 5px;
}

.theme-dark {
  --page-bg: #161310;
  --screen-bg: #1d1914;
  --card-bg: #28231d;
  --card-soft-bg: #241f1a;
  --text-main: #f2eee5;
  --text-gold: rgba(230, 194, 81, 0.95);
  --text-gold-soft: rgba(230, 194, 81, 0.78);
  --text-muted: #8d8f96;
  --gold-border: rgba(212, 175, 55, 0.32);
  --gold-border-soft: rgba(212, 175, 55, 0.2);
  --button-disabled: #332d26;
  --button-disabled-border: #4d4339;
  --button-disabled-text: #b8aa94;
  --switch-off: #6f7480;
}

.theme-dark body {
  background: radial-gradient(circle at top, #2b241c 0%, #120f0c 70%);
}

.theme-dark .hero-backdrop {
  filter: saturate(0.9) brightness(0.72);
}

.theme-dark .phone-shell {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.theme-dark .terms-copy a {
  color: rgba(230, 194, 81, 0.72);
}

@media (max-width: 430px) {
  body {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
  }
}
