/* Redelo · Fase 5: planos, teste grátis, fim do teste e convite para mudar de plano */

/* cartões de plano */
.plans { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); display: grid; gap: var(--s3); }
.plan-star { border: 2px solid var(--tinta); }
:root[data-theme="dark"] .plan-star { border-color: var(--girassol); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-star { border-color: var(--girassol); } }
.plan-on { background: var(--soft); }
.plan-badge { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: var(--r-pill); background: var(--girassol); color: var(--tinta); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.plan-head h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.plan-range { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-price { margin: 0; display: grid; }
.plan-price b { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.plan-price span { font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: 15px; }
.plan-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok-text); }
.plan-current { display: flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; font-weight: 600; color: var(--ok-text); }
.plan-current svg { width: 18px; height: 18px; }
.plan .btn { width: 100%; }

/* plano atual */
.plan-now .panel-head { align-items: flex-start; }
.trial { display: grid; gap: var(--s2); }
.trial-top { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.trial-top b { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.trial-top span { color: var(--muted); }
.trial-bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.trial-bar i { display: block; height: 100%; background: var(--ouro); border-radius: 99px; }
.usage { display: flex; gap: 6px; flex-wrap: wrap; }
.usage i { width: 28px; height: 10px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.usage i.on { background: var(--anil); border-color: var(--anil); }
:root[data-theme="dark"] .usage i.on { background: var(--link); border-color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .usage i.on { background: var(--link); border-color: var(--link); } }

/* seu teste terminou / convite */
.ended, .upsell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s6) var(--s5); display: grid; gap: var(--s4); }
.ended h1, .upsell h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.ended > p, .upsell > p { color: var(--muted); }
.ended-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-bg); }
.ended-ico svg { width: 28px; height: 28px; color: var(--warn-text); }
.ended-keep { display: flex; gap: var(--s3); align-items: flex-start; background: var(--soft); border-radius: var(--r-btn); padding: var(--s3) var(--s4); font-size: 15px; }
.ended-keep p { margin: 0; }
.ended-keep svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ouro); }
.ended-sent { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; color: var(--ok-text); }
.ended-sent svg { width: 18px; height: 18px; }

/* limite de lojas */
.limit { padding: var(--s5); display: grid; gap: var(--s3); border: 2px solid var(--ouro); }

/* item do menu que é do plano Rede */
.tag-plan { margin-left: auto; font-size: 12px; background: var(--warn-bg); color: var(--warn-text); }
.sidebar .tag-plan { background: rgba(255, 184, 28, .16); color: var(--girassol); }

/* Fase 6: acesso, quem entrou e logo */
.who-user { display: grid; gap: 2px; }
.who-user b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-user span { font-size: 13px; color: var(--muted); }
.who-user .btn { justify-self: start; margin-top: 6px; padding: 0 12px; }
.sidebar .who-user b { color: var(--nav-fg); }
.sidebar .who-user span { color: var(--nav-muted); }
.sidebar .who-user .btn { color: var(--nav-fg); }
.sidebar .who-user .btn:hover { background: rgba(255, 249, 232, .08); }
.seg-access { display: flex; flex-wrap: wrap; justify-self: start; }
.center { text-align: center; }
.spin-lg { width: 32px; height: 32px; border-width: 3px; color: var(--ouro); }
.logo-preview { max-width: 200px; max-height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-btn); padding: var(--s2); background: #FFFFFF; }
.person-main .tag { justify-self: start; margin-top: 4px; }
