/* Match home-experience.css: shared surface, border, typography and accent palette. */
.tm-home .tm-referral-home { padding: clamp(1.5rem, 4vw, 3.5rem) 0 1rem; }
.tm-referral-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(1.5rem,5vw,4rem); align-items:center; padding:clamp(1.25rem,4vw,3rem); border:1px solid var(--tm-border); border-radius:28px; background:color-mix(in srgb,var(--tm-surface) 94%,#a58cfa); box-shadow:0 24px 70px #34265b12; }
.tm-referral-copy { min-width:0; }
.tm-referral-copy h2 { font-size:clamp(2rem,4vw,3.2rem); font-weight:800; letter-spacing:-.045em; margin:.8rem 0; }
.tm-referral-copy p { color:var(--tm-muted); line-height:1.8; }
.tm-referral-amount { display:flex; align-items:center; gap:1rem; margin:1.5rem 0; }
.tm-referral-amount>i,.tm-referral-step>i { display:grid; place-items:center; width:3rem; height:3rem; flex:none; border-radius:14px; font-size:1.4rem; }
.tm-referral-amount>i { background:#eee7ff; color:#7b57e4; }
.tm-referral-amount strong { display:block; font-size:2rem; line-height:1.1; }
.tm-referral-amount small,.tm-referral-step small { display:block; color:var(--tm-muted); }
/* No gray backing panel: use the same individual surfaces as homepage feature cards. */
.tm-referral-journey { display:grid; gap:.75rem; padding:.5rem; background:transparent; }
.tm-referral-step { display:flex; align-items:center; gap:1rem; padding:1rem; background:var(--tm-surface); border:1px solid var(--tm-border); border-radius:18px; animation:tm-ref-step 9s ease-in-out infinite; }
.tm-referral-step:nth-child(3) { animation-delay:3s; }
.tm-referral-step:nth-child(4) { animation-delay:6s; }
.tm-referral-orbit { position:relative; display:grid; place-items:center; width:5rem; height:5rem; margin:.5rem auto 1rem; border-radius:50%; background:#eee7ff; color:#7b57e4; font-size:2.4rem; animation:tm-ref-float 4s ease-in-out infinite; }
.tm-referral-orbit span { position:absolute; right:-.4rem; top:0; font-size:1rem; background:var(--tm-surface); border-radius:50%; padding:.35rem .5rem; box-shadow:0 4px 14px #34265b22; }
@keyframes tm-ref-float { 50% { transform:translateY(-7px); } }
@keyframes tm-ref-step { 0%,33%,100% { transform:translateY(0); } 16% { transform:translateY(-3px); border-color:#a58cf4; box-shadow:0 12px 30px #34265b15; } }
@media(max-width:767.98px) { .tm-referral-layout { grid-template-columns:minmax(0,1fr); border-radius:24px; } .tm-referral-journey { padding:0; } }
/* Respect system accessibility preferences. */
@media(prefers-reduced-motion:reduce) { .tm-referral-orbit,.tm-referral-step { animation:none; } }
