* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100dvh;
  background: #17171a;
  color: #faf8f0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: #a89fd4;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.split-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  padding: 0;
  align-items: stretch;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  background: #121214;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 18% auto auto 8%;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(120, 86, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.auth-cards {
  position: absolute;
  top: 16%;
  left: 8%;
  width: min(460px, 78%);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.auth-hero-copy {
  position: relative;
  z-index: 1;
}

.auth-hero-copy p {
  margin: 0 0 0.75rem;
  color: #c9a86a;
  font-size: 0.95rem;
}

.auth-hero-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 12ch;
  color: #faf8f0;
}

.split-page .auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 2.5rem 2rem;
  background: #17171a;
}

.auth-shell {
  width: min(420px, 100%);
  text-align: center;
}

.split-page .auth-shell > * {
  width: min(420px, 100%);
}

.split-page .auth-shell-wide > * {
  width: min(520px, 100%);
}

.auth-shell-wide {
  width: min(560px, 100%);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.auth-title {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.auth-sub {
  margin: 0 0 1.75rem;
  color: rgba(250, 248, 240, 0.72);
  font-size: 0.95rem;
}

.auth-form {
  margin-bottom: 1.25rem;
}

.auth-input {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(201, 168, 106, 0.55);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #faf8f0;
  font-size: 1rem;
  outline: none;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-continue {
  width: 100%;
  border: 0;
  border-radius: 9999px;
  padding: 0.95rem 1.25rem;
  background: #c9a86a;
  color: #17171a;
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.auth-divider {
  margin: 0 0 0.85rem;
  color: rgba(250, 248, 240, 0.55);
  font-size: 0.875rem;
}

.auth-google {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid rgba(250, 248, 240, 0.18);
  border-radius: 9999px;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  color: #faf8f0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.auth-google:hover { text-decoration: none; opacity: 0.92; }

.auth-skip {
  display: block;
  margin-top: 1.75rem;
  color: rgba(250, 248, 240, 0.72);
  font-size: 0.95rem;
}

.auth-wallet {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  border: 0;
  background: none;
  color: #a89fd4;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.auth-wallet:hover { text-decoration: underline; }

.account-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.account-card {
  border: 1px solid rgba(250, 248, 240, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 1rem;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.account-card:hover {
  text-decoration: none;
  border-color: rgba(250, 248, 240, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.account-card h2 {
  margin: 0.65rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #faf8f0;
}

.account-card p {
  margin: 0;
  color: rgba(250, 248, 240, 0.6);
  font-size: 0.8rem;
  line-height: 1.4;
}

.account-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

.reown-rabby { cursor: pointer; }

@media (max-width: 900px) {
  .split-page {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    min-height: 42vh;
    padding: 2rem;
  }
  .auth-cards {
    width: min(280px, 60%);
    top: 12%;
  }
}

@media (max-width: 520px) {
  .account-types { grid-template-columns: 1fr; }
}

.earn-page {
  min-height: 100dvh;
  padding: 2rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.earn-title {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  color: #c9a86a;
}

.earn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.earn-filter {
  border: 1px solid rgba(250, 248, 240, 0.12);
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 248, 240, 0.72);
  font-size: 0.875rem;
  text-decoration: none;
}
.earn-filter:hover {
  text-decoration: none;
  color: #faf8f0;
  background: rgba(255, 255, 255, 0.08);
}

.earn-filter.active {
  background: rgba(250, 248, 240, 0.12);
  color: #faf8f0;
}

.earn-section-title {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #c9a86a;
}

.earn-section-sub {
  margin: 0 0 1.25rem;
  color: rgba(250, 248, 240, 0.65);
  font-size: 0.95rem;
}

.earn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.vault-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(250, 248, 240, 0.08);
  padding: 1.5rem 1.25rem 1.25rem;
  min-height: 220px;
  background: #1e1e22;
  color: inherit;
  text-decoration: none;
  display: block;
}
.vault-card:hover { text-decoration: none; }

.vault-card::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 9999px;
  filter: blur(2px);
  opacity: 0.55;
}

.vault-card.green::before { background: radial-gradient(circle, #1f6b45, transparent 70%); }
.vault-card.purple::before { background: radial-gradient(circle, #6b2d5c, transparent 70%); }
.vault-card.blue::before { background: radial-gradient(circle, #2d4a8a, transparent 70%); }

.vault-icon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #17171a;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.vault-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #faf8f0;
}

.vault-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(250, 248, 240, 0.72);
}

.vault-meta strong {
  display: block;
  margin-top: 0.2rem;
  color: #faf8f0;
  font-size: 0.95rem;
}

.vault-unavailable {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(250, 248, 240, 0.45);
}

.vault-card.dim h3,
.vault-card.dim .vault-meta {
  color: rgba(250, 248, 240, 0.45);
}

.earn-connect {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 900px) {
  .earn-grid { grid-template-columns: 1fr; }
}
