/* =========================================
   REFERRAL PROGRAM
   ========================================= */

/* Homepage teaser section */
.referral-teaser {
  padding: 100px 0;
  background: linear-gradient(135deg, #101820 0%, #1A242C 100%);
  position: relative;
  overflow: hidden;
}
.referral-teaser::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.referral-teaser-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.referral-teaser-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201, 162, 77, 0.15);
  border: 1px solid rgba(201, 162, 77, 0.4);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A24D;
  margin-bottom: 24px;
}
.referral-teaser h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  color: #FFFDF9;
  margin-bottom: 20px;
}
.referral-teaser h2 span {
  display: block;
  font-style: italic;
  color: #C9A24D;
}
.referral-teaser p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.referral-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #C9A24D;
  color: #1A1816;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.referral-teaser-cta:hover {
  background: #B8935A;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 77, 0.35);
}
.referral-teaser-perks {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.referral-teaser-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
}
.referral-teaser-perk-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 162, 77, 0.15);
  border: 1px solid rgba(201, 162, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* =========================================
   REFERRAL PAGE — Code Generator
   ========================================= */
.referral-hero {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, #0A1118 0%, #1A242C 100%);
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.referral-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.referral-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.referral-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: #FFFDF9;
  margin-bottom: 24px;
}
.referral-hero h1 span {
  display: block;
  font-style: italic;
  color: #C9A24D;
}
.referral-hero p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Code Generator Card */
.referral-generator {
  padding: 100px 0;
  background: #FFFDF9;
}
.referral-generator-inner {
  max-width: 780px;
  margin: 0 auto;
}
.referral-gen-card {
  background: linear-gradient(135deg, #FAF6F0 0%, #FFF9EE 100%);
  border: 2px solid #C9A24D;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 24px 56px rgba(201, 162, 77, 0.15);
  position: relative;
  overflow: hidden;
}
.referral-gen-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.referral-gen-step {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C9A24D;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.referral-gen-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #1A1816;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.referral-gen-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #5C554D;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* Input for name */
.referral-gen-input-wrap {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}
.referral-gen-input {
  flex: 1;
  padding: 16px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #1A1816;
  background: #FFFDF9;
  border: 2px solid #E5DCCF;
  border-radius: 10px;
  transition: border-color 0.3s ease;
}
.referral-gen-input:focus {
  outline: none;
  border-color: #C9A24D;
}
.referral-gen-btn {
  padding: 16px 28px;
  background: #1A1816;
  color: #FFFDF9;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.referral-gen-btn:hover {
  background: #C9A24D;
  color: #1A1816;
}

/* Generated code display */
.referral-code-display {
  display: none;
  position: relative;
  z-index: 2;
}
.referral-code-display.show { display: block; }
.referral-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: #1A1816;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(26, 24, 22, 0.2);
}
.referral-code-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  margin-bottom: 6px;
}
.referral-code-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #C9A24D;
  text-align: left;
  line-height: 1;
}
.referral-code-copy {
  padding: 12px 20px;
  background: rgba(201, 162, 77, 0.15);
  border: 1px solid #C9A24D;
  color: #C9A24D;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.referral-code-copy:hover {
  background: #C9A24D;
  color: #1A1816;
}
.referral-code-copy.copied {
  background: #2E7D32;
  border-color: #2E7D32;
  color: #fff;
}

/* Share buttons */
.referral-share-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5C554D;
  margin-bottom: 16px;
}
.referral-share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.referral-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #FFFDF9;
  color: #1A1816;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid #E5DCCF;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.referral-share-btn:hover {
  border-color: #C9A24D;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 77, 0.15);
}
.referral-share-btn.wa:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.referral-how {
  padding: 100px 0;
  background: #FAF6F0;
}
.referral-how-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.referral-how-head .eyebrow {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(201, 162, 77, 0.12);
  border: 1px solid rgba(201, 162, 77, 0.3);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A24D;
  margin-bottom: 24px;
}
.referral-how-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  color: #1A1816;
}
.referral-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.referral-how-step {
  background: #FFFDF9;
  border: 1px solid #E5DCCF;
  border-radius: 16px;
  padding: 40px 32px 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.referral-how-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(16, 24, 32, 0.08);
}
.referral-how-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 56px;
  font-weight: 600;
  color: #C9A24D;
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.referral-how-step h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #1A1816;
  margin-bottom: 10px;
}
.referral-how-step p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #5C554D;
}

/* Rewards Box */
.referral-rewards {
  padding: 100px 0;
  background: #FFFDF9;
}
.referral-rewards-box {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.referral-reward-card {
  background: linear-gradient(135deg, #101820 0%, #1A242C 100%);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  color: #FFFDF9;
  position: relative;
  overflow: hidden;
}
.referral-reward-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.referral-reward-card.you { background: linear-gradient(135deg, #C9A24D 0%, #B8935A 100%); color: #1A1816; }
.referral-reward-icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  z-index: 2;
}
.referral-reward-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.referral-reward-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  color: inherit;
}
.referral-reward-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.75;
  position: relative;
  z-index: 2;
}

/* FAQ */
.referral-faq {
  padding: 100px 0;
  background: #FAF6F0;
}
.referral-faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid #E5DCCF;
}
.referral-faq-item {
  border-bottom: 1px solid #E5DCCF;
}
.referral-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1816;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.3s ease;
}
.referral-faq-q:hover { color: #C9A24D; }
.referral-faq-q span {
  color: #C9A24D;
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.referral-faq-item.open .referral-faq-q span { transform: rotate(45deg); }
.referral-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.referral-faq-a p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #5C554D;
  padding-bottom: 24px;
}
.referral-faq-item.open .referral-faq-a { max-height: 300px; }

/* Responsive */
@media (max-width: 992px) {
  .referral-teaser h2 { font-size: 40px; }
  .referral-hero h1 { font-size: 48px; }
  .referral-how-head h2 { font-size: 36px; }
  .referral-how-grid { grid-template-columns: 1fr; }
  .referral-rewards-box { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .referral-teaser { padding: 72px 0; }
  .referral-teaser h2 { font-size: 30px; }
  .referral-teaser p { font-size: 15px; }
  .referral-teaser-perks { gap: 20px; flex-direction: column; align-items: center; }
  .referral-hero { padding: 100px 20px 60px; min-height: auto; }
  .referral-hero h1 { font-size: 32px; }
  .referral-hero p { font-size: 15px; }
  .referral-gen-card { padding: 32px 24px; }
  .referral-gen-title { font-size: 26px; }
  .referral-gen-input-wrap { flex-direction: column; }
  .referral-gen-btn { width: 100%; }
  .referral-code-box { flex-direction: column; text-align: center; padding: 20px; }
  .referral-code-label, .referral-code-value { text-align: center; }
  .referral-code-copy { width: 100%; }
  .referral-share-buttons { flex-direction: column; }
  .referral-share-btn { width: 100%; justify-content: center; }
  .referral-how, .referral-rewards, .referral-faq { padding: 72px 0; }
  .referral-how-head h2 { font-size: 28px; }
  .referral-reward-amount { font-size: 40px; }
  .referral-reward-icon { font-size: 34px; }
}