/* referral.html — refer a shop, earn ₹1,000. */
.rf-hero { padding: 120px 0 30px; }
.rf-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.rf-hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.025em; margin: 18px 0 16px; }
.rf-hero h1 .grad { background: linear-gradient(90deg, #10b981, #06b6d4 45%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-hero .lead { font-size: 18px; color: var(--text-muted); max-width: 560px; }
.rf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.rf-art { position: relative; height: 380px; border-radius: 32px; overflow: hidden; background: radial-gradient(120% 120% at 30% 10%, #4f46e5, #312e81 55%, #0f172a); box-shadow: 0 40px 90px -40px rgba(49,46,129,.8); }
.rf-art .gift { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; }
.rf-art .gift .amt { font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: clamp(54px, 8vw, 92px); line-height: 1; background: linear-gradient(90deg, #fde68a, #fbbf24, #fde68a); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rfShine 3s linear infinite, rfBeat 2.4s ease-in-out infinite; }
.rf-art .gift .per { margin-top: 8px; font-weight: 800; color: #c7d2fe; letter-spacing: .04em; }
.rf-art .gift .box { font-size: 64px; display: block; animation: rfBob 3s ease-in-out infinite; }
.rf-art .coin { position: absolute; top: -40px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #78350f; background: radial-gradient(circle at 30% 30%, #fef3c7, #f59e0b); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); animation: rfFall 5s linear infinite; }
.rf-art .coin:nth-child(1) { left: 10%; animation-delay: 0s; } .rf-art .coin:nth-child(2) { left: 26%; animation-delay: 1.4s; }
.rf-art .coin:nth-child(3) { left: 72%; animation-delay: .7s; } .rf-art .coin:nth-child(4) { left: 86%; animation-delay: 2.3s; }
.rf-art .coin:nth-child(5) { left: 55%; animation-delay: 3.2s; } .rf-art .coin:nth-child(6) { left: 40%; animation-delay: 4.1s; }

.rf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.rf-step { position: relative; background: #fff; border-radius: 22px; padding: 24px 22px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.rf-step .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: Sora, Inter, sans-serif; font-weight: 800; color: #fff; background: var(--g-hero); margin-bottom: 14px; }
.rf-step h3 { font-size: 18px; margin-bottom: 6px; }
.rf-step p { color: var(--text-muted); font-size: 14.5px; }

.rf-get { margin-top: 60px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(124,58,237,.08)), #fff; box-shadow: var(--card-shadow); border: 1px solid var(--border); scroll-margin-top: 80px; }
.rf-get h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
.rf-get .sub { color: var(--text-muted); margin-top: 10px; }
.rf-get ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-muted); font-size: 14.5px; }
.rf-get ul li::before { content: "✓ "; color: #16a34a; font-weight: 900; }
.rf-form { display: grid; gap: 12px; }
.rf-form label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.rf-form input { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: #fff; font: inherit; color: inherit; box-sizing: border-box; }
.rf-form input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.rf-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-form .err { color: #be123c; font-weight: 600; font-size: 13.5px; min-height: 1em; }
.rf-form button { justify-content: center; }
.rf-result { display: none; padding: 18px; border-radius: 18px; background: #fff; border: 2px dashed rgba(16,185,129,.6); }
.rf-result.show { display: block; animation: rfPop .5s cubic-bezier(.2,1.3,.4,1); }
.rf-result h3 { font-size: 18px; margin-bottom: 4px; }
.rf-result .link { display: flex; gap: 8px; margin: 12px 0; }
.rf-result .link input { flex: 1; font-weight: 700; color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.rf-result .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-result small { display: block; margin-top: 10px; color: var(--text-muted); }

.rf-faq { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rf-faq div { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.rf-faq h4 { font-size: 16px; margin-bottom: 6px; }
.rf-faq p { color: var(--text-muted); font-size: 14.5px; }

@keyframes rfShine { to { background-position: 200% center; } }
@keyframes rfBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes rfBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes rfFall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(460px) rotate(540deg); opacity: .9; } }
@keyframes rfPop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rf-art *, .rf-result { animation: none !important; } }
@media (max-width: 900px) {
  .rf-grid, .rf-get { grid-template-columns: 1fr; }
  .rf-art { height: 280px; }
  .rf-steps, .rf-faq { grid-template-columns: 1fr; }
  .rf-get { padding: 22px; }
}
@media (max-width: 520px) { .rf-form .row { grid-template-columns: 1fr; } .rf-hero { padding-top: 96px; } }
