:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #16233a; background: #f3f7fd; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.page-shell { max-width: 580px; margin: 0 auto; padding: env(safe-area-inset-top) 20px 108px; }
.hero { padding: 38px 4px 28px; color: #fff; }
.language-picker { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 26px; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 500; }
.language-select { max-width: 190px; min-height: 36px; padding: 7px 30px 7px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; color: #fff; background: rgba(0,37,99,.22); font: inherit; outline: none; }
.language-select option { color: #16233a; background: #fff; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 310px; z-index: -1; background: linear-gradient(140deg, #0b55cb, #2585ee); border-radius: 0 0 40px 40px; }
.eyebrow { margin: 0 0 8px; opacity: .82; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { margin: 0 0 12px; color: #fff; font-size: clamp(34px, 9vw, 50px); font-weight: 950; letter-spacing: .14em; line-height: .95; text-shadow: 0 6px 18px rgba(0,45,124,.24); white-space: nowrap; }
h1 { margin: 0; color: rgba(255,255,255,.94); font-size: clamp(25px, 6.7vw, 34px); letter-spacing: .02em; line-height: 1.2; }
.hero > p:last-child { margin: 10px 0 0; font-size: 15px; opacity: .88; }
.card, .success { margin-top: 14px; padding: 24px 20px; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(22, 65, 122, .1); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
h2 { margin: 0; font-size: 20px; }
.section-heading span { padding: 4px 10px; border-radius: 99px; color: #1467dc; background: #eaf3ff; font-size: 12px; }
form { display: grid; gap: 9px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 0 0 18px; border-radius: 10px; background: #f2f6fb; }
.tab { min-height: 38px; margin: 0; border-radius: 7px; color: #718098; background: transparent; font-size: 14px; }
.tab.active { color: #1267e8; background: #fff; box-shadow: 0 1px 4px rgba(22, 65, 122, .12); }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 10px; align-items: end; }
.verification-row > div { min-width: 0; display: grid; gap: 9px; }
.test-code-hint { margin-top: -3px; color: #718098; font-size: 11px; }
.code-button { min-height: 46px; margin: 0; padding: 0 8px; color: #1267e8; background: #eaf3ff; font-size: 13px; }
.code-button:disabled { color: #9aa8bb; background: #f0f3f7; cursor: not-allowed; }
label { margin-top: 5px; font-size: 14px; font-weight: 600; }
input, textarea, select { width: 100%; appearance: none; padding: 13px 14px; border: 1px solid #d9e2ee; border-radius: 10px; color: inherit; background: #fff; font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, #718098 50%), linear-gradient(135deg, #718098 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus { border-color: #2479eb; box-shadow: 0 0 0 3px rgba(36, 121, 235, .12); }
button { margin-top: 10px; min-height: 48px; border: 0; border-radius: 10px; color: #fff; background: #1267e8; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
button:active { background: #0b55cb; }
.hint, .account-note { margin: 3px 0 0; color: #75839a; font-size: 12px; line-height: 1.6; }
.account-note { margin: -5px 0 16px; font-size: 14px; }
.form-message { min-height: 18px; margin: 0; color: #d63030; font-size: 13px; }
.hidden { display: none; }
.success { padding: 42px 24px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; color: #fff; background: #1dae6c; font-size: 30px; }
.success p { color: #718098; line-height: 1.7; }
.secondary { color: #1267e8; background: #eaf3ff; }
.text-button { min-height: auto; margin: 0; padding: 0; color: #1267e8; background: transparent; font-size: 13px; font-weight: 500; }
.link-button { display: block; min-height: auto; margin: 14px auto 0; padding: 0; color: #1267e8; background: transparent; font-size: 14px; font-weight: 500; }
.password-assist { display: flex; justify-content: flex-end; min-height: 14px; margin-top: -2px; }
#accountCard.register-mode .password-assist { display: none; }
.inline-link { min-height: auto; margin: 0; padding: 0; color: #537193; background: transparent; font-size: 13px; font-weight: 500; }
.inline-link:hover { color: #1267e8; }
.warranty-list { display: grid; gap: 12px; margin: 18px 0; }
.warranty-item { padding: 16px; border: 1px solid #dbe7f6; border-radius: 12px; background: #f8fbff; }
.warranty-item h3 { margin: 0 0 8px; font-size: 16px; }
.warranty-item p { margin: 4px 0; color: #62718a; font-size: 13px; line-height: 1.5; }
.warranty-status { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 99px; color: #138352; background: #e7f8ef; font-size: 12px; }
.empty-state { padding: 24px 12px; color: #75839a; text-align: center; }
.feedback-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e7edf5; }
.compact-heading { margin-bottom: 14px; }
.feedback-list-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.feedback-list-head h3 { margin: 0; font-size: 16px; }
.feedback-list { display: grid; gap: 10px; }
.ticket-item { width: 100%; min-height: auto; margin: 0; padding: 13px 14px; border: 1px solid #dce8f6; border-radius: 12px; color: #16233a; background: #f8fbff; text-align: left; font-weight: 500; }
.ticket-item strong { display: block; margin-bottom: 5px; font-size: 14px; }
.ticket-item span { display: inline-block; margin-right: 8px; color: #718098; font-size: 12px; }
.feedback-detail { margin-top: 14px; padding: 14px; border: 1px solid #dce8f6; border-radius: 12px; background: #fff; }
.feedback-detail h3 { margin: 0 0 10px; font-size: 16px; }
.feedback-thread { display: grid; gap: 9px; margin: 12px 0; }
.feedback-message { padding: 11px 12px; border-radius: 12px; background: #f4f7fb; }
.feedback-message.admin { background: #eaf3ff; }
.feedback-message b { display: block; margin-bottom: 5px; color: #1267e8; font-size: 12px; }
.feedback-message p { margin: 0; color: #324052; font-size: 13px; line-height: 1.6; }
.feedback-message time { display: block; margin-top: 6px; color: #8793a6; font-size: 11px; }
.mine-actions { display: grid; gap: 12px; margin-top: 20px; }
.mine-actions a { display: block; padding: 15px 16px; border: 1px solid #dbe7f6; border-radius: 12px; color: #1267e8; background: #f8fbff; text-decoration: none; font-weight: 700; }
.bottom-nav { position: fixed; z-index: 4; bottom: 0; left: 0; display: flex; width: 100%; padding: 10px max(18px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); border-top: 1px solid #d9dde4; background: rgba(255,255,255,.96); justify-content: space-around; backdrop-filter: blur(10px); }
.bottom-nav a { display: grid; gap: 2px; color: #99a4b4; text-align: center; text-decoration: none; font-size: 25px; line-height: 1; }
.bottom-nav span { font-size: 14px; }
.bottom-nav .active { color: #0875f7; }
@media (min-width: 600px) { .page-shell { padding-inline: 28px; } }
@media (max-width: 420px) {
  .page-shell { padding-inline: 16px; }
  .hero { padding-top: 32px; }
  .language-picker { margin-bottom: 22px; }
  .language-picker span { display: none; }
  .language-select { max-width: 128px; min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
  .brand-mark { margin-bottom: 10px; font-size: 33px; letter-spacing: .11em; }
}
@media (max-width: 350px) {
  .brand-mark { font-size: 29px; letter-spacing: .09em; }
  h1 { font-size: 23px; }
}
[dir="rtl"] .password-assist { justify-content: flex-start; }
