
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --muted: #f5f5f5;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --primary: #2f9fd6;
  --primary-hover: #2a90c2;
  --primary-foreground: #ffffff;
  --card: #ffffff;
  --radius: 10px;
  --max-width: 1100px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  display: flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 14px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
}
.brand-name span {
  font-weight: 400;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.top-nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}
.top-nav a:hover {
  color: var(--foreground);
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-right a,
.top-right span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.top-right a.link-primary {
  color: var(--primary);
}
.top-right a:hover {
  color: var(--foreground);
}

.main-nav {
  border-top: 1px solid var(--border);
}
.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: auto;
}
.main-nav-inner a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.main-nav-inner a:hover {
  color: var(--primary);
}
.main-nav-inner .nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 900px) {
  .top-nav,
  .top-right {
    display: none;
  }
}

/* ---------- Cards page ---------- */
.page {
  padding: 40px 0;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credit-card {
  border-radius: var(--radius);
  background: var(--muted);
  padding: 32px;
}

.credit-card .inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 640px) {
  .credit-card .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.credit-card .content {
  flex: 1;
}

.credit-card h2 {
  font-size: 24px;
  font-weight: 700;
  text-wrap: balance;
}
.credit-card.featured h2 {
  max-width: 28rem;
  font-size: 28px;
}

.specs {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.credit-card.featured .specs {
  margin-top: 28px;
  gap: 24px;
}
@media (min-width: 640px) {
  .credit-card.featured .specs {
    flex-direction: row;
    gap: 48px;
  }
}

.spec .label {
  font-size: 14px;
  color: var(--muted-foreground);
}
.spec .value {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  text-wrap: pretty;
}
.credit-card.featured .spec .value {
  font-size: 16px;
  font-weight: 600;
}
.credit-card.featured .spec .label {
  margin-top: 4px;
}

.actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-dark {
  background: var(--foreground);
  color: var(--background);
}
.btn-dark:hover {
  opacity: 0.9;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-block {
  width: 100%;
  margin-top: 8px;
}
.link-plain {
  font-size: 14px;
  font-weight: 500;
}
.link-plain:hover {
  text-decoration: underline;
}

.card-image {
  flex-shrink: 0;
}
.card-image img {
  height: auto;
  width: 208px;
}
.credit-card.featured .card-image img {
  width: 320px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  min-height: calc(100vh - 130px);
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  text-wrap: balance;
}
.auth-card .subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 500;
}
.field input {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder {
  color: var(--muted-foreground);
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 159, 214, 0.2);
}

/* ---------- OTP ---------- */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.otp-inputs input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 159, 214, 0.2);
}
@media (max-width: 420px) {
  .otp-inputs {
    gap: 6px;
  }
  .otp-inputs input {
    width: 42px;
    height: 50px;
    font-size: 18px;
  }
}

.view[hidden]{display:none;}
  