/* StarPay Cash — referidos.css
   Invitar, referidos, niveles y pestañas de invitación.
   Reglas separadas del CSS original; conserva los nombres de clases existentes.
*/

/* Invite y Tasks: el mismo lenguaje visual de PayPal, sin tocar navegación ni acciones */

/* SOLO INVITAR: libera el ancho limitado de 760px sin cambiar la sección Tareas. */

.starpay-tab-layout.starpay-paypal-section.starpay-invite-wide{
  width:100%!important;max-width:1600px!important;margin:0 auto!important;
  padding:0 0 18px!important;box-sizing:border-box!important;
}

.starpay-invite-wide>.starpay-tab-heading{width:100%!important;max-width:none!important;}

.starpay-invite-wide>.spr-referral{width:100%!important;max-width:1600px!important;margin:0 auto!important;}

@media (min-width:1200px) {
.starpay-invite-wide>.spr-referral{padding-left:18px!important;padding-right:18px!important;}
.starpay-invite-wide .spr-ref-hero-grid{gap:24px!important;}
.starpay-invite-wide .spr-ref-user,.starpay-invite-wide .spr-ref-stats{padding:30px!important;}
}

@media (max-width:900px) {
.starpay-tab-layout.starpay-paypal-section.starpay-invite-wide{max-width:100%!important;padding-left:0!important;padding-right:0!important;}
.starpay-invite-wide>.spr-referral{padding-left:10px!important;padding-right:10px!important;}
}

/* Cajas de enlace, estados vacíos y filas de referidos */

/* FLECHAS: replica en TODAS las secciones el encabezado PayPal que ya se usa
   en Invitar y Tareas: barra blanca con contorno/sombra + botón celeste pequeño. */

@media (max-width:700px) {
html body .invite-tabs{flex-direction:row!important; flex-wrap:nowrap!important; overflow-x:auto!important; -webkit-overflow-scrolling:touch!important; scrollbar-width:none!important}
html body .invite-tabs::-webkit-scrollbar{display:none!important}
html body .invite-tabs button{flex:0 0 auto!important; min-width:110px!important; padding:10px 14px!important; font-size:12px!important; white-space:nowrap!important}
}

/* ENCUESTAS DISPONIBLES AMPLIAS EN COMPU COMO NIVELES, EN CELULAR NO SE TOCA */

/* TABS INVITAR CON SVG - 3 DE LADO EN CELULAR SIN DESLIZAR */

html body .invite-tabs{
  display:flex!important; gap:6px!important; flex-wrap:nowrap!important;
  overflow:visible!important; overflow-x:visible!important;
  padding:6px!important;
}

html body .invite-tabs button{
  flex:1 1 0!important; min-width:0!important; max-width:none!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  gap:4px!important; white-space:nowrap!important;
  padding:10px 4px!important; font-size:12px!important; line-height:1.1!important;
}

html body .invite-tabs button svg{flex-shrink:0!important; width:15px!important; height:15px!important}

html body .invite-tabs button span{overflow:hidden!important; text-overflow:ellipsis!important; white-space:nowrap!important}

@media (max-width:700px) {
html body .invite-tabs{overflow:visible!important; overflow-x:visible!important; flex-wrap:nowrap!important; gap:5px!important; padding:5px!important}
html body .invite-tabs button{
    flex:1 1 0!important; min-width:0!important;
    padding:9px 3px!important; font-size:11px!important; gap:3px!important;
  }
html body .invite-tabs button svg{width:14px!important; height:14px!important}
/* En celular el texto de Niveles es largo, lo acortamos visualmente con ellipsis si no cabe */
html body .invite-tabs button:nth-child(2) span{font-size:11px!important}
}

@media (max-width:380px) {
html body .invite-tabs button{font-size:10px!important; padding:8px 2px!important}
html body .invite-tabs button svg{width:13px!important; height:13px!important}
}

/* Ajuste final móvil: estadísticas compactas sin comprimir el contenido del enlace. */
@media(max-width:700px){html body .spr-summary-value{font-size:15px!important}html body .spr-summary-label{font-size:8.5px!important}html body .spr-summary-tile{min-height:58px!important}html body .spr-referral{max-width:100%!important;box-sizing:border-box!important}}


/* StarPay: móvil Invitar — bloques compactos, legibles y sin apretar el contenido. */
@media(max-width:650px){
  .spr-referral{padding:8px 8px 28px!important}
  .spr-ref-hero-grid{grid-template-columns:1fr!important;gap:12px!important}
  .spr-ref-user,.spr-ref-stats,.spr-link-panel,.spr-affiliate-panel,.spr-chart-panel{padding:14px!important}
  .spr-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:14px!important}
  .spr-summary-tile{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;column-gap:8px!important;align-items:center!important;padding:9px!important;min-height:60px!important}
  .spr-summary-icon{grid-row:span 2!important;width:28px!important;height:28px!important;border-radius:9px!important}
  .spr-summary-icon svg{width:15px!important;height:15px!important}
  .spr-summary-value{margin:0!important;font-size:15px!important;line-height:1.05!important;overflow-wrap:anywhere!important}
  .spr-summary-label{margin-top:3px!important;font-size:8px!important;line-height:1.2!important;overflow-wrap:anywhere!important}
  .spr-link-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  .spr-link-row{flex-direction:column!important;gap:8px!important}
  .spr-copy-btn{width:100%!important}
  .spr-share-block{border-left:0!important;border-top:2px dashed var(--spr-ink)!important;padding:14px 0 0!important}
  .spr-ref-tabs{max-width:100%!important;overflow-x:auto!important}
}
@media(max-width:360px){.spr-summary-grid{grid-template-columns:1fr!important}.spr-summary-tile{min-height:54px!important}}


/* Barras de progreso: contraste PayPal, celeste StarPay y avance animado. */
.spr-progress-track{height:12px!important;border:2px solid #0F172A!important;border-radius:999px!important;background:#fff!important;box-shadow:2px 2px 0 #0F172A!important;overflow:hidden!important}
.spr-progress-fill{border-radius:999px!important;background:linear-gradient(90deg,#7dd3fc 0%,#00a8d6 55%,#087fa8 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)!important;transition:width .9s cubic-bezier(.2,.75,.25,1)!important;position:relative!important}
.spr-progress-fill:after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.52) 50%,transparent 65%);transform:translateX(-110%);animation:spInviteProgressShine 2.8s ease-in-out infinite}
@keyframes spInviteProgressShine{0%,35%{transform:translateX(-110%)}75%,100%{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){.spr-progress-fill:after{animation:none!important}}
