/* Benefits Points Club Styling overrides and additions */

/* 1. Hero overrides for inner pages */
.hero-club {
  padding: 160px 0 60px;
  position: relative;
  background: radial-gradient(circle at top left, var(--secondary-glow) 0%, transparent 40%),
              radial-gradient(circle at bottom right, var(--primary-glow) 0%, transparent 40%);
}

.hero-club-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-club h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-club p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 2. Query Form Section */
.query-section {
  padding: 40px 0 80px;
  position: relative;
}

.query-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background: var(--calc-wrapper-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.query-wrapper:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.query-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .query-wrapper {
    padding: 2rem 1.5rem;
  }
  .hero-club h1 {
    font-size: 2.2rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.form-input {
  background: var(--row-bg);
  border: 1px solid var(--row-border);
  color: var(--text-primary);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(134, 72, 150, 0.15);
}

body.light-theme .form-input:focus {
  background: rgba(0, 0, 0, 0.02);
}

.btn-query {
  width: 100%;
  justify-content: center;
  padding: 0.95rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* 3. Rewards Grid Section */
.rewards-section {
  padding: 80px 0;
  position: relative;
  background: rgba(134, 72, 150, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.reward-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 30px rgba(134, 72, 150, 0.12);
}

.reward-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.reward-badge.free {
  background: linear-gradient(135deg, #00a8ff 0%, #00d2ff 100%);
}

.reward-img-container {
  height: 200px;
  background: radial-gradient(circle at center, rgba(134, 72, 150, 0.08) 0%, transparent 65%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.reward-img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
  transition: var(--transition);
}

.reward-card:hover .reward-img {
  transform: scale(1.05) translateY(-3px);
}

.reward-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.8rem;
}

.reward-content h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.reward-points-required {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.points-num {
  font-size: 1.8rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
}

.points-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.reward-value-real {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--row-border);
  padding-top: 0.8rem;
  margin-top: 0.2rem;
}

.reward-value-real strong {
  color: var(--text-secondary);
}

.reward-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.reward-footer .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.7rem;
}

/* 4. Steps & Explanation */
.steps-section {
  padding: 80px 0;
}

/* 5. Custom Modal Dialog Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 19, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--calc-wrapper-bg);
  border: 1px solid var(--border-color);
  max-width: 550px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  padding: 1.8rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--row-border);
}

.modal-header h3 {
  font-size: 1.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

body.light-theme .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Success View inside Modal */
.points-summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--row-border);
  border-radius: 20px;
  padding: 1.8rem;
}

.summary-header {
  text-align: center;
  border-bottom: 1px solid var(--row-border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.summary-points-val {
  font-size: 3rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  text-shadow: 0 0 20px var(--secondary-glow);
}

.summary-points-lbl {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.detail-row .label {
  color: var(--text-muted);
}

.detail-row .value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.detail-row .value.active-badge {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.2);
  color: var(--accent);
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Failure View inside Modal */
.not-found-view {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.not-found-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.not-found-view h4 {
  font-size: 1.25rem;
}

.not-found-view p {
  font-size: 0.95rem;
  max-width: 400px;
}

.modal-footer {
  padding: 1rem 2rem 1.8rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid var(--row-border);
}

.modal-footer .btn {
  padding: 0.75rem 1.5rem;
}

@media (max-width: 480px) {
  .modal-footer {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}
