/* ===== Pages-specific styles ===== */

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d061f 60%, #1a0a3d 100%);
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filters */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-select {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--primary);
}

.results-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Earn Banner */
.earn-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--gold-pale), #fff9ed);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 32px;
  font-size: 15px;
}

.earn-banner-icon {
  font-size: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.empty-state p { font-size: 15px; }

/* Points Summary Card */
.points-summary-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(26,10,61,0.3);
  color: var(--white);
}

.psc-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.psc-points {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.psc-tier {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.psc-right {
  flex: 1;
  min-width: 200px;
}

.psc-next-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.psc-next-pts {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.psc-bar {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.psc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.psc-next-name {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.psc-earn { margin-left: auto; }

/* Rewards Grid */
.rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.reward-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.reward-item.locked {
  opacity: 0.6;
}

.ri-emoji { font-size: 40px; flex-shrink: 0; }

.ri-info { flex: 1; }

.ri-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.ri-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ri-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 3px 10px;
  border-radius: 100px;
}

.ri-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.ri-points {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ri-pts-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.ri-pts-label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
}

.ri-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.ri-btn.redeemable {
  background: linear-gradient(135deg, var(--gold), #e8b824);
  color: var(--primary);
}

.ri-btn.redeemable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
}

.ri-btn.locked-btn {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  font-size: 12px;
}

/* Auth */
.auth-body { background: var(--gray-50); }

.auth-split {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), #0d061f);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--gray-50);
}

.auth-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  background: var(--white);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,10,61,0.08);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-check input { margin-top: 2px; flex-shrink: 0; }

.auth-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.auth-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.af-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.af-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.af-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.hidden { display: none !important; }

/* How It Works Page */
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.hiw-step-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 2px solid rgba(201,162,39,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.hiw-step-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, rgba(201,162,39,0.3), transparent);
  margin-top: 12px;
}

.hiw-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hiw-step-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.hiw-step-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.hiw-tip {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 8px;
  font-size: 14px;
  color: #166534;
}

.points-rate-table {
  margin-top: 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prt-header {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  letter-spacing: 0.05em;
}

.prt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.prt-row:last-child { border-bottom: none; }
.prt-bonus { background: var(--gold-pale); }

.prt-rate {
  font-weight: 700;
  color: var(--primary);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
}

.prt-rate.gold {
  background: var(--gold-pale);
  color: var(--gold);
}

.tier-progress-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tpd-tier {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
}

.tpd-tier.gold { border-color: var(--gold); background: var(--gold-pale); }
.tpd-tier.platinum { border-color: var(--silver); background: var(--gray-50); }

.tpd-icon { font-size: 28px; margin-bottom: 8px; }
.tpd-name { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.tpd-range { font-size: 12px; color: var(--text-muted); }
.tpd-arrow { font-size: 20px; color: var(--gray-400); }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.faq-q:hover { background: var(--gray-50); }

.faq-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* Brand Showcase */
.brand-showcase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.brand-showcase.reverse {
  direction: rtl;
}

.brand-showcase.reverse > * {
  direction: ltr;
}

.brand-showcase-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 16px;
}

.brand-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 28px;
}

.brand-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.bs-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.bs-label {
  font-size: 13px;
  color: var(--text-muted);
}

.brand-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

/* Showcase logo image box */
.showcase-logo-box {
  width: 220px;
  height: 160px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase-logo-img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Responsive for pages */
@media (max-width: 900px) {
  .auth-split { flex-direction: column; }
  .auth-left { padding: 40px 24px; }
  .auth-right { padding: 40px 24px; }
  .brand-showcase, .brand-showcase.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
    gap: 32px;
  }
  .brand-stats { justify-content: center; }
  .points-summary-card { flex-direction: column; text-align: center; }
  .psc-earn { margin-left: 0; }
  .hiw-step { grid-template-columns: 50px 1fr; gap: 20px; }
  .reward-item { flex-direction: column; align-items: flex-start; }
  .ri-right { align-items: flex-start; flex-direction: row; gap: 20px; }
}

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; align-items: flex-start; }
  .earn-banner { flex-direction: column; text-align: center; }
  .earn-banner .btn { align-self: center; }
  .tier-progress-display { flex-direction: column; }
  .tpd-arrow { transform: rotate(90deg); }
}
