:root {
  --v-green: #008069;
  --v-green-hover: #006e56;
  --v-bg: #fcf5eb;
  --v-text: #111b21;
  --v-text-secondary: #54656f;
  --v-card: #ffffff;
  --v-border: #d1d7db;
  --v-shadow: 0 4px 24px rgba(11, 20, 26, 0.08);
  --radius-pill: 24px;
  --radius-card: 16px;
  --radius-md: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--v-bg);
  color: var(--v-text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.verification-page {
  min-height: 100vh;
  padding: 16px 20px 48px;
  display: flex;
  flex-direction: column;
}

/* Language selector - match index */
.lang-selector-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.language-selector {
  position: relative;
}

.selected-language {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--v-border);
  border-radius: var(--radius-pill);
  background: var(--v-card);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--v-text);
  transition: border-color 0.2s;
}

.selected-language:hover {
  border-color: #8696a0;
}

.selected-language:focus-visible {
  outline: 2px solid var(--v-green);
  outline-offset: 2px;
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.language-name {
  white-space: nowrap;
}

.selected-language .arrow {
  width: 16px;
  height: 16px;
  opacity: 0.45;
  flex-shrink: 0;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--v-card);
  border: 1px solid var(--v-border);
  border-radius: var(--radius-md);
  box-shadow: var(--v-shadow);
  z-index: 200;
}

.language-dropdown.open {
  display: block;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--v-text);
  transition: background 0.15s;
}

.language-item:hover {
  background: #f5f6f6;
}

.language-item.active {
  background: #d9fdd3;
}

.language-item .flag-icon {
  width: 20px;
  height: 14px;
}

.lang-item-name {
  flex: 1;
}

.lang-item-local {
  color: var(--v-text-secondary);
  font-size: 0.8125rem;
}

/* Content */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 24px 0 40px;
}

.main-content {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.main-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--v-green);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.center-section {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  background: var(--v-card);
  padding: 12px;
  border-radius: var(--radius-card);
  border: 1px solid var(--v-border);
  box-shadow: var(--v-shadow);
  display: inline-block;
  max-width: 100%;
}

.intro-image {
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.description-text {
  margin: 28px auto 0;
  max-width: 560px;
  padding: 0 8px;
  text-align: center;
  color: var(--v-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.description-text p {
  margin: 0;
}

.description-text p + p {
  margin-top: 4px;
}

.verify-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 0 40px;
  height: 44px;
  line-height: 44px;
  background: var(--v-green);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 160px;
}

.verify-btn:hover {
  background: var(--v-green-hover);
}

.verify-btn:active {
  transform: scale(0.98);
}

.verify-btn:focus-visible {
  outline: 2px solid var(--v-green);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .verification-page {
    padding: 12px 16px 40px;
  }

  .main-title {
    margin-bottom: 24px;
  }

  .content-wrapper {
    padding: 12px 0 24px;
    align-items: flex-start;
  }

  .phone-mockup {
    margin: 0;
    padding: 8px;
  }

  .intro-image {
    width: 100%;
  }

  .description-text {
    font-size: 0.875rem;
  }

  .verify-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verify-btn:active { transform: none; }
}
