:root {
  --black:#090c0e;
  --surface:#14191c;
  --surface-2:#1a2024;
  --yellow:#ffc400;
  --yellow-2:#ffdc5b;
  --white:#f7f7f5;
  --muted:#aeb5b9;
  --border:rgba(255,196,0,.27);
}
* { box-sizing:border-box; }
html { min-width:320px; background:var(--black); }
body { margin:0; color:var(--white); background:radial-gradient(circle at 14% 8%,rgba(255,196,0,.1),transparent 27%),#090c0e; font-family:Inter,Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
.referral-header { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:12px clamp(20px,5vw,72px); border-bottom:1px solid rgba(255,255,255,.08); background:#090c0e; }
.referral-brand img { display:block; width:170px; height:58px; object-fit:contain; }
.back-link { min-height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 18px; border:1px solid rgba(255,255,255,.25); border-radius:8px; font-size:12px; font-weight:800; }
.back-link:hover { color:#111; background:var(--yellow); border-color:var(--yellow); }
.referral-hero { min-height:calc(100vh - 82px); display:grid; grid-template-columns:minmax(0,1fr) minmax(380px,520px); align-items:center; gap:clamp(38px,7vw,100px); width:min(1180px,calc(100% - 40px)); margin:auto; padding:70px 0 80px; }
.referral-intro > span,.panel-kicker { color:var(--yellow); font-size:11px; font-weight:900; letter-spacing:1.3px; text-transform:uppercase; }
.referral-intro h1 { max-width:650px; margin:15px 0 20px; font-size:clamp(48px,7vw,86px); line-height:.92; letter-spacing:-4px; }
.referral-intro h1 em { color:var(--yellow); font-style:normal; }
.referral-intro > p { max-width:570px; margin:0; color:#c3c8ca; font-size:16px; line-height:1.7; }
.referral-intro ol { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:38px 0 0; padding:0; list-style:none; }
.referral-intro li { min-height:90px; display:flex; align-items:center; gap:12px; padding:14px; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:rgba(255,255,255,.035); }
.referral-intro li b { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:#111; background:var(--yellow); font-size:13px; }
.referral-intro li span { font-size:11px; font-weight:800; line-height:1.35; }
.referral-panel { padding:34px; border:1px solid var(--border); border-radius:18px; background:linear-gradient(145deg,rgba(27,33,37,.98),rgba(12,16,18,.98)); box-shadow:0 25px 65px rgba(0,0,0,.36); }
.referral-tabs { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:27px; padding:5px; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:#0b0f11; }
.referral-tab { min-height:42px; padding:8px 10px; border:0; border-radius:7px; color:#aeb5b9; background:transparent; cursor:pointer; font-size:10px; font-weight:900; text-transform:uppercase; }
.referral-tab.is-active { color:#111; background:var(--yellow); }
.referral-panel h2 { margin:9px 0 8px; font-size:30px; }
.referral-panel p { margin:0 0 24px; color:var(--muted); font-size:13px; line-height:1.6; }
#referral-form,#received-form { display:flex; flex-direction:column; }
#referral-form > label:not(.consent),#received-form > label { margin:14px 0 7px; color:#e9ebec; font-size:11px; font-weight:800; }
#referral-form input[type="text"],#referral-form input[type="tel"],#received-form input,.generated-link input { width:100%; min-height:50px; padding:0 14px; border:1px solid rgba(255,255,255,.16); border-radius:9px; color:#fff; background:#0c1012; outline:none; }
#referral-form input:focus,#received-form input:focus,.generated-link input:focus { border-color:var(--yellow); box-shadow:0 0 0 3px rgba(255,196,0,.13); }
.consent { display:flex; align-items:flex-start; gap:10px; margin:19px 0 0; color:#c8cdcf; font-size:10px; line-height:1.5; cursor:pointer; }
.consent input { flex:0 0 auto; width:17px; height:17px; margin:0; accent-color:var(--yellow); }
.field-error { min-height:15px; margin-top:4px; color:#ff8e83; font-size:9px; }
.primary-button,.secondary-button { min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:0 20px; border-radius:9px; cursor:pointer; font-size:11px; font-weight:900; text-align:center; text-transform:uppercase; letter-spacing:.2px; }
.primary-button { border:1px solid var(--yellow); color:#111; background:var(--yellow); }
.primary-button:hover { background:var(--yellow-2); }
#referral-form .primary-button,#received-form .primary-button { width:100%; margin-top:9px; }
.secondary-button { border:1px solid rgba(255,255,255,.26); color:#fff; background:transparent; }
.secondary-button:hover { border-color:var(--yellow); color:var(--yellow); }
.share-result { margin-top:25px; padding-top:23px; border-top:1px solid rgba(255,255,255,.1); }
.share-result > span { display:block; margin-bottom:8px; color:var(--yellow); font-size:11px; font-weight:900; text-transform:uppercase; }
.generated-link input { color:#c8cdcf; font-size:10px; }
.share-actions { display:grid; grid-template-columns:1.35fr .8fr; gap:10px; margin-top:12px; }
.copy-status { min-height:18px; margin:9px 0 0; color:var(--yellow); font-size:10px; }
.received-content .catalog-link { width:100%; margin-top:10px; }
.referral-footer { display:flex; justify-content:space-between; gap:30px; padding:25px clamp(20px,5vw,72px); border-top:1px solid rgba(255,255,255,.08); color:#81898d; background:#07090a; font-size:9px; }
.referral-footer p { margin:0; }
[hidden] { display:none !important; }
@media (max-width:850px) {
  .referral-hero { grid-template-columns:1fr; width:min(680px,calc(100% - 32px)); padding:55px 0 65px; }
  .referral-intro { text-align:center; }
  .referral-intro h1,.referral-intro > p { margin-left:auto; margin-right:auto; }
  .referral-intro h1 { letter-spacing:-2.5px; }
}
@media (max-width:560px) {
  .referral-header { min-height:70px; padding:9px 16px; }
  .referral-brand img { width:128px; height:46px; }
  .back-link { min-height:38px; padding:0 12px; font-size:9px; }
  .referral-hero { min-height:0; width:calc(100% - 24px); padding:38px 0 48px; gap:30px; }
  .referral-intro h1 { margin:12px 0 15px; font-size:47px; line-height:.96; }
  .referral-intro > p { font-size:12px; }
  .referral-intro ol { grid-template-columns:1fr; gap:7px; margin-top:26px; }
  .referral-intro li { min-height:58px; justify-content:flex-start; padding:10px 14px; }
  .referral-panel { padding:24px 18px; border-radius:14px; }
  .referral-panel h2 { font-size:25px; }
  .share-actions { grid-template-columns:1fr; }
  .referral-footer { align-items:center; flex-direction:column; text-align:center; }
}
/* Reflexo luminoso nos botões — v89 */
.primary-button,
.secondary-button,
.back-link {
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.primary-button::before,
.secondary-button::before,
.back-link::before {
  content:"";
  position:absolute;
  z-index:2;
  top:-45%;
  bottom:-45%;
  left:-70%;
  width:34%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),rgba(255,255,255,.82),rgba(255,255,255,.18),transparent);
  filter:blur(.3px);
  transform:skewX(-21deg) translateX(0);
}

@media (hover:hover) and (pointer:fine) {
  .primary-button:hover::before,
  .secondary-button:hover::before,
  .back-link:hover::before { animation:referral-button-light-sweep .72s cubic-bezier(.2,.65,.35,1) both; }
}

@keyframes referral-button-light-sweep {
  from { transform:skewX(-21deg) translateX(0); }
  to { transform:skewX(-21deg) translateX(520%); }
}

@media (prefers-reduced-motion:reduce) {
  .primary-button::before,
  .secondary-button::before,
  .back-link::before { display:none; }
}
