:root {
  --ink: #122019;
  --muted: #5d6f63;
  --line: rgba(25, 67, 41, 0.14);
  --leaf: #58cc02;
  --leaf-dark: #2b8c10;
  --sky: #1cb0f6;
  --cream: #fff8de;
  --paper: rgba(255, 255, 255, 0.88);
  --danger: #d92d20;
  --warn: #b86e00;
  --success: #087443;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(88, 204, 2, 0.22), transparent 24%),
    radial-gradient(circle at 90% 8%, rgba(28, 176, 246, 0.2), transparent 26%),
    linear-gradient(135deg, #f7ffe8 0%, #eef9ff 52%, #fff3d5 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.redeem-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.redeem-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 20px;
}

.redeem-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  animation: floaty 6s ease-in-out infinite;
}

.redeem-orb.one {
  width: 170px;
  height: 170px;
  top: -44px;
  left: -26px;
  background: rgba(88, 204, 2, 0.22);
}

.redeem-orb.two {
  width: 110px;
  height: 110px;
  right: 34px;
  bottom: 44px;
  background: rgba(255, 199, 44, 0.32);
  animation-delay: -2s;
}

.brand-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(88, 204, 2, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(42, 99, 63, 0.08);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--leaf);
  color: white;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  object-fit: cover;
}

.brand-photo {
  background: transparent;
}

.redeem-hero h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #122019;
}

.redeem-hero p {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-code {
  width: fit-content;
  padding: 12px 18px;
  border: 1.5px dashed rgba(43, 140, 16, 0.45);
  border-radius: 16px;
  background: rgba(255, 248, 222, 0.95);
  color: var(--leaf-dark);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #087443;
}

.redeem-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(21, 78, 45, 0.16);
  backdrop-filter: blur(18px);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 24px rgba(18, 32, 25, 0.18);
}

.redeem-form {
  display: grid;
  gap: 16px;
}

.panel {
  display: none;
  gap: 16px;
}

.panel.active {
  display: grid;
}

.channel-note {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.channel-note.warning {
  border: 1px solid rgba(184, 110, 0, 0.22);
  background: rgba(255, 246, 224, 0.88);
  color: var(--warn);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

label span {
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: rgba(88, 204, 2, 0.72);
  box-shadow: 0 0 0 4px rgba(88, 204, 2, 0.14);
  background: white;
}

.phone-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.phone-prefix {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  font-size: 14px;
}

.ghost-btn,
.primary-btn {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  transition: all 0.15s ease;
}

.ghost-btn {
  padding: 0 16px;
  background: #eaf8ff;
  color: #096aa0;
  white-space: nowrap;
  font-size: 13px;
}

.ghost-btn:hover:not(:disabled) {
  background: #daf0fd;
}

.primary-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--leaf) 0%, #7ee33a 100%);
  color: white;
  font-size: 15px;
  box-shadow: 0 16px 34px rgba(43, 140, 16, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.primary-btn:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(43, 140, 16, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.result-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
}

.result-box strong {
  font-size: 17px;
}

.result-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.result-box.success {
  border-color: rgba(8, 116, 67, 0.28);
  background: rgba(232, 249, 239, 0.86);
  color: var(--success);
}

.result-box.warning {
  border-color: rgba(184, 110, 0, 0.28);
  background: rgba(255, 246, 224, 0.88);
  color: var(--warn);
}

.result-box.error {
  border-color: rgba(217, 45, 32, 0.22);
  background: rgba(255, 235, 232, 0.86);
  color: var(--danger);
}

.result-box.loading {
  border-color: rgba(28, 176, 246, 0.3);
  background: rgba(234, 248, 255, 0.9);
  color: #096aa0;
}

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

.result-pill {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.result-pill b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.redeem-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 22, 34, 0.46);
  backdrop-filter: blur(10px);
}

.redeem-modal.hidden {
  display: none;
}

.redeem-modal-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(31, 44, 59, 0.26);
  text-align: center;
}

.redeem-modal-card h2 {
  margin: 0;
  color: var(--danger);
  font-size: 26px;
}

.redeem-modal-card p {
  margin: 14px 0 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.redeem-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.secondary-modal-btn,
.primary-modal-btn {
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  font-weight: 900;
  cursor: pointer;
  font-size: 14px;
}

.secondary-modal-btn {
  background: #eef3f7;
  color: var(--muted);
}

.primary-modal-btn {
  background: linear-gradient(135deg, var(--leaf), #7ee33a);
  color: white;
}

.hidden {
  display: none !important;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@media (max-width: 860px) {
  .redeem-shell {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 28px;
  }

  .redeem-hero {
    text-align: left;
    gap: 14px;
  }
  
  .redeem-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .phone-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ghost-btn {
    grid-column: 1 / -1;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════
   多邻国同款 Super 会员激活祝贺动效 (Super Duolingo Celebration)
   ════════════════════════════════════════════════════════ */
.super-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 18, 30, 0.78);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.super-modal-card {
  position: relative;
  width: min(460px, 94vw);
  padding: 32px 24px 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4), 0 0 50px rgba(88, 204, 2, 0.35);
  border: 2px solid rgba(88, 204, 2, 0.4);
  text-align: center;
  overflow: hidden;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.7) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* 背后旋转放射状七彩光芒 */
.super-ray-container {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
}

.super-sunburst {
  width: 100%;
  height: 100%;
  background: conic-gradient(
    from 0deg,
    rgba(88, 204, 2, 0.35),
    rgba(28, 176, 246, 0.35),
    rgba(168, 85, 247, 0.35),
    rgba(255, 199, 44, 0.35),
    rgba(88, 204, 2, 0.35)
  );
  border-radius: 50%;
  animation: spinRay 10s linear infinite;
  filter: blur(14px);
}

@keyframes spinRay {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Super 专属猫头鹰徽章 */
.super-badge-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

.super-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(88, 204, 2, 0.4), inset 0 0 0 3px #58cc02;
  animation: superFloat 2.4s ease-in-out infinite;
  object-fit: cover;
}

@keyframes superFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

.super-title-gradient {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1cb0f6 0%, #a855f7 40%, #ffc72c 80%, #58cc02 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 18px rgba(88, 204, 2, 0.2);
}

.super-subtitle {
  margin: 6px 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #122019;
}

/* 三大核心特权图标栏 */
.super-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.super-perk-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(88, 204, 2, 0.2);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.super-perk-item i {
  font-size: 20px;
  margin-bottom: 4px;
  display: block;
}

.super-perk-item .perk-label {
  font-size: 11px;
  font-weight: 800;
  color: #122019;
}

.super-info-banner {
  background: rgba(88, 204, 2, 0.12);
  border: 1px dashed rgba(88, 204, 2, 0.4);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #087443;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.super-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--leaf) 0%, #7ee33a 100%);
  color: white;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(43, 140, 16, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: all 0.15s ease;
}

.super-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.super-btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(43, 140, 16, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.tab-badge {
  font-size: 11px;
  background: #ff9600;
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
}

.field-hint-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.field-hint-box i {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.field-hint-box.info-hint {
  background: rgba(28, 176, 246, 0.08);
  border: 1px solid rgba(28, 176, 246, 0.25);
  color: #0c82b9;
}

.field-hint-box.info-hint i {
  color: #1cb0f6;
}

.field-hint-box.success-hint {
  background: rgba(88, 204, 2, 0.08);
  border: 1px solid rgba(88, 204, 2, 0.25);
  color: #2b8c10;
}

.field-hint-box.success-hint i {
  color: #58cc02;
}
