/* THE MAZON · panel de usuario (diseño de ingeniería: escala 4/8/12/16/24/32) */
:root { --hair: rgba(255, 107, 0, .18); --hair-soft: rgba(var(--ink), .06); --sp1: 4px; --sp2: 8px; --sp3: 12px; --sp4: 16px; --sp5: 24px; --sp6: 32px; --r: 16px; --r-sm: 12px; }
html, body { overflow-x: hidden; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--neon); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.card { border-color: var(--hair); }

/* ── Topbar ── */
.topbar { border-bottom-color: var(--hair); }
.top-right { display: flex; align-items: center; gap: var(--sp3); min-width: 0; }
.brand .brand-text strong { font-size: 15px; }
.role-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(var(--ink), .04); color: var(--muted); white-space: nowrap; }
.bal-pill { text-decoration: none; color: var(--text); border-color: var(--neon); }
.bal-pill:hover { background: rgba(255, 95, 31, .12); }
.wallet-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wallet-hero .big { font-family: 'Sora', 'Inter', sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.amt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.rc-list { padding: 0; overflow: hidden; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--hair); color: var(--text); text-decoration: none; }
.rc-row:hover { background: rgba(255, 95, 31, .08); }
.rc-row:last-child { border-bottom: 0; }
.neg { color: #f59e0b; } .pos { color: #34d399; }
.role-pill.is-dist { color: #ffb482; border-color: rgba(255, 107, 0, .45); background: linear-gradient(135deg, rgba(255, 95, 31, .2), rgba(255, 167, 38, .08)); }
.role-pill.is-admin { color: #fff; border-color: transparent; background: var(--grad); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; flex: none; letter-spacing: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; font-family: 'Sora', 'Inter', sans-serif; box-shadow: 0 0 18px rgba(255, 95, 31, .35); }
.user-menu { position: relative; min-width: 0; }
.user-btn { display: flex; align-items: center; gap: var(--sp2); background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; font-weight: 600; font-size: 13px; max-width: 200px; min-height: 40px; transition: border-color .15s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: var(--line-strong); }
.user-btn .chev { color: var(--muted); }
.user-btn .chev .ico { width: 16px; height: 16px; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); padding: 6px; display: flex; flex-direction: column; z-index: 60; }
.user-drop a, .user-drop button { display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500; }
.user-drop a:hover, .user-drop button:hover { background: var(--elevated); color: var(--neon); }
.user-drop .danger { color: #f87171; }
.user-drop .danger:hover { color: #f87171; background: rgba(239, 68, 68, .1); }
@media (max-width: 560px) { .brand-text small { display: none; } .user-name { display: none; } .user-btn { padding: 4px 8px 4px 4px; } .role-pill { font-size: 10px; padding: 4px 9px; } }
@media (max-width: 380px) { .brand-text { display: none; } }

/* ── Shell ── (contenedor ancho, barra lateral fija: iconos 900-1199px, iconos + texto desde 1200px) */
.shell.container, .topbar .container { max-width: 1560px; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp5); padding-top: var(--sp5); padding-bottom: 96px; }
.main { min-width: 0; outline: none; width: 100%; }
.nav-label { display: none; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--topbar); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); padding-bottom: env(safe-area-inset-bottom); }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; min-height: 58px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.1; min-width: 0; transition: color .15s; }
.nav a .ni .ico { width: 22px; height: 22px; }
.nav a .long { display: none; }
.nav a.active { color: var(--neon); }
.nav a.active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; border-radius: 0 0 2px 2px; background: var(--grad); box-shadow: 0 0 10px rgba(255, 95, 31, .8); }
@media (min-width: 900px) {
  .shell { grid-template-columns: 68px minmax(0, 1fr); align-items: start; padding-bottom: 48px; gap: var(--sp5); }
  .nav { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: var(--sp2); backdrop-filter: none; }
  .nav a { flex-direction: row; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; padding: 0; min-height: 44px; border-radius: 10px; text-align: left; flex: none; min-width: 0; }
  .nav a .nt { display: none; }
  .nav a .ni .ico { width: 20px; height: 20px; }
  .nav a:hover { background: var(--elevated); color: var(--text); }
  .nav a.active { background: linear-gradient(90deg, rgba(255, 95, 31, .2), rgba(255, 95, 31, .03)); color: #ff8a4d; }
  .nav a.active::before { top: 8px; bottom: 8px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
}
@media (min-width: 1200px) {
  .shell { grid-template-columns: 216px minmax(0, 1fr); gap: var(--sp6); }
  .nav { padding: var(--sp3); }
  .nav-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 12px 8px; }
  .nav a { justify-content: flex-start; padding: 10px 12px 10px 14px; }
  .nav a .nt { display: inline; }
  .nav a .long { display: inline; } .nav a .short { display: none; }
}

/* ── Cabecera de vista ── */
.view-head { margin-bottom: var(--sp5); }
.view-head h2 { margin-top: 4px; }
.view-head p { margin-top: var(--sp2); font-size: 14px; max-width: 60ch; }
.sec-title { margin: var(--sp6) 0 var(--sp3); display: flex; align-items: center; gap: var(--sp3); font-size: 16px; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.toolbar { margin-bottom: var(--sp2); }
.search { position: relative; max-width: 420px; }
.search > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.search .input { padding-left: 42px; }
.sk-h { height: 56px; margin-bottom: var(--sp5); max-width: 420px; }
.sk-card { height: 220px; }
.empty { text-align: center; padding: var(--sp6) var(--sp4); color: var(--muted); }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: var(--sp2); text-align: center; padding: var(--sp6) var(--sp4); color: var(--muted); font-size: 14px; }
.empty-state .ico { width: 36px; height: 36px; color: var(--neon); opacity: .8; margin-bottom: var(--sp2); }
.empty-state strong { color: var(--text); font-size: 16px; }
.empty-state .btn { margin-top: var(--sp3); }

/* ── Botones extra ── */
.btn { min-height: 44px; }
.btn-sm { min-height: 36px; }
.btn .ico { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 44px; flex: none; }
.btn-wa:hover { filter: brightness(1.08); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--err); border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); }

/* ── Catálogo ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--sp4); }
.item { display: flex; flex-direction: column; padding: var(--sp4); min-width: 0; gap: var(--sp3); border-color: var(--hair); transition: transform .18s, border-color .18s, box-shadow .18s; }
.item:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 22px rgba(255, 95, 31, .16); }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp3); }
.logo-tile { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: #0b0b0b; border: 1px solid var(--hair); flex: none; }
.logo-tile.sm { width: 44px; height: 44px; border-radius: 12px; }
.chip-cat { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--hair-soft); background: rgba(var(--ink), .04); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.item .body { display: flex; flex-direction: column; gap: var(--sp2); flex: 1; min-width: 0; }
.item h3 { font-size: 15.5px; overflow-wrap: break-word; word-break: normal; hyphens: manual; text-wrap: balance; text-shadow: 0 0 10px rgba(255, 95, 31, .35); }
.item .desc { font-size: 13px; color: var(--muted); overflow-wrap: break-word; text-wrap: pretty; line-height: 1.45; }
.pricebox { margin-top: auto; padding-top: var(--sp2); }
.price { font-family: 'Sora', 'Inter', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price-ask { font-size: 18px; color: var(--amber); }
.price-pub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-pub s { opacity: .8; }
.item .actions { display: flex; gap: var(--sp2); padding-top: var(--sp2); }
.item .actions .btn-add { flex: 1; font-size: 13.5px; }
.item .actions .btn-add:hover { background: rgba(255, 95, 31, .1); }

.cart { margin-top: var(--sp6); }
.cart-head { display: flex; align-items: center; gap: var(--sp2); margin-bottom: var(--sp3); color: var(--neon); }
.cart-head .ico { width: 22px; height: 22px; }
.cart-row { display: flex; align-items: center; gap: var(--sp3); padding: var(--sp2) 0; border-bottom: 1px solid var(--hair-soft); font-size: 14px; }
.cart-row .cn { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cart-row .cp { font-weight: 700; white-space: nowrap; }
.sum { display: flex; justify-content: space-between; gap: var(--sp3); font-size: 14px; padding: 6px 0; }
.sum.total { font-size: 20px; font-weight: 800; font-family: 'Sora', 'Inter', sans-serif; border-top: 1px solid var(--hair); margin-top: var(--sp2); padding-top: var(--sp3); }
.sum.good { color: var(--ok-text); }

/* ── Combo ── */
.combo-layout { display: grid; gap: var(--sp5); grid-template-columns: 1fr; }
@media (min-width: 1100px) { .combo-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .combo-layout .card.sticky { position: sticky; top: 88px; } }
.checks { display: grid; gap: var(--sp2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.check { display: flex; align-items: center; gap: var(--sp3); padding: var(--sp3); border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; min-height: 68px; min-width: 0; position: relative; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--line-strong); }
.check.on { border-color: var(--neon); background: linear-gradient(135deg, rgba(255, 95, 31, .14), rgba(255, 95, 31, .03)); }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(var(--ink), .28); display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; }
.check .box .ico { width: 14px; height: 14px; stroke-width: 3; }
.check.on .box { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 10px rgba(255, 95, 31, .5); }
.check:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
.check .tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.check .nm { font-weight: 600; font-size: 14px; line-height: 1.25; text-wrap: balance; overflow-wrap: break-word; }
.check .pr { font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.check.on .pr { color: var(--neon); }
.tier { margin: var(--sp3) 0 var(--sp4); }
.tier-bar { height: 8px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--hair-soft); overflow: hidden; }
.tier-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; box-shadow: 0 0 10px rgba(255, 95, 31, .6); transition: width .3s ease; }
.tier-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.tier-labels .hit { color: var(--neon); }
.tier-msg { font-size: 13px; margin-top: var(--sp2); color: var(--text); }
.combo-layout .card.sticky .btn-block { margin-top: var(--sp4); }

/* ── Pedidos ── */
.table-card { padding: 0; overflow: hidden; }
.otbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.otbl thead th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: var(--sp3) var(--sp4); background: var(--elevated); border-bottom: 1px solid var(--hair); }
.otbl td { padding: var(--sp4); vertical-align: top; border-bottom: 1px solid var(--hair-soft); }
.otbl tbody tr:last-child td { border-bottom: 0; }
.otbl tbody tr:hover td { background: rgba(255, 95, 31, .04); }
.otbl .tot { font-weight: 800; white-space: nowrap; }
.o-items { list-style: none; display: grid; gap: 4px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .table-card { background: none; border: 0; box-shadow: none; overflow: visible; }
  .otbl, .otbl tbody, .otbl tr, .otbl td { display: block; width: 100%; }
  .otbl thead { display: none; }
  .otbl tr { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); margin-bottom: var(--sp3); padding: var(--sp2) 0; }
  .otbl td { border: 0 !important; padding: 6px var(--sp4); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp3); background: transparent !important; }
  .otbl td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; flex: none; }
  .otbl td.stack { flex-direction: column; gap: 4px; }
}
.pill { font-weight: 700; }

/* ── Verificación ── */
.form-card { max-width: 720px; margin-bottom: var(--sp5); padding: var(--sp5); }
.benefit { display: flex; align-items: center; gap: var(--sp3); background: linear-gradient(135deg, rgba(255, 95, 31, .16), rgba(255, 167, 38, .05)); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--sp4); margin-bottom: var(--sp5); }
.benefit > .ico { width: 28px; height: 28px; color: var(--neon); flex: none; }
.benefit p { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.vsteps { list-style: none; display: grid; gap: var(--sp3); margin-bottom: var(--sp4); }
.vrow { display: flex; align-items: flex-end; gap: var(--sp3); }
.vrow .vic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--elevated); border: 1px solid var(--hair); color: var(--neon); flex: none; }
.vrow .vf { flex: 1; min-width: 0; margin: 0; }
.vchip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.vchip .ico { width: 16px; height: 16px; }
.vchip.ok { color: var(--ok-text); }
@media (max-width: 520px) { .vrow { flex-wrap: wrap; } .vrow .vf { flex-basis: calc(100% - 56px); } .vchip { margin-left: 56px; height: auto; } }
.vbox { display: flex; gap: var(--sp3); align-items: flex-start; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: var(--sp4); background: var(--elevated); margin: var(--sp4) 0; }
.vbox-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(154, 163, 174, .14); color: var(--muted); }
.vbox.ok { border-color: rgba(34, 197, 94, .4); } .vbox.ok .vbox-ic { background: rgba(34, 197, 94, .18); color: var(--ok-text); }
.vbox.warn { border-color: rgba(245, 158, 11, .4); } .vbox.warn .vbox-ic { background: rgba(245, 158, 11, .18); color: #fbbf24; }
.vbox.err { border-color: rgba(239, 68, 68, .4); } .vbox.err .vbox-ic { background: rgba(239, 68, 68, .18); color: #f87171; }
.vbox .big { font-weight: 700; font-size: 15px; margin-bottom: 4px; overflow-wrap: anywhere; }
.vbox > div { min-width: 0; font-size: 13.5px; }
.row-btns { display: flex; gap: var(--sp3); flex-wrap: wrap; }
.note { font-size: 12.5px; color: var(--muted); margin-top: var(--sp3); }
.input[readonly] { opacity: .7; }

/* ── Perfil ── */
.profile-head { display: flex; align-items: center; gap: var(--sp4); max-width: 720px; margin-bottom: var(--sp4); min-width: 0; }
.profile-head > div { min-width: 0; overflow-wrap: anywhere; }
.profile-head strong { font-family: 'Sora', 'Inter', sans-serif; font-size: 17px; }
.fgrid { display: grid; grid-template-columns: 1fr; column-gap: var(--sp4); }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .span2 { grid-column: 1 / -1; } }
.form-card .field { margin-bottom: var(--sp4); }
.form-card .field label { color: #c3c9d1; }
.occ { display: grid; grid-template-columns: 1fr; gap: var(--sp2); }
@media (min-width: 520px) { .occ { grid-template-columns: 200px 1fr; } }
#occText { background: transparent; }
#occText::placeholder { opacity: .4; }
.warn-note { font-size: 12.5px; color: var(--warn); margin: calc(var(--sp2) * -1) 0 var(--sp4); }
.input { border-color: var(--hair); }
@media (prefers-reduced-motion: reduce) { .item:hover { transform: none; } }

/* Modo claro */
:root[data-theme="light"] .role-pill.is-dist { color: #a3400b; }
:root[data-theme="light"] .nav a.active { color: var(--neon); }
:root[data-theme="light"] .user-drop { box-shadow: 0 16px 40px rgba(23, 25, 30, .14); }
:root[data-theme="light"] .item:hover { box-shadow: 0 12px 28px rgba(23, 25, 30, .1); }
:root[data-theme="light"] .item h3 { text-shadow: none; }

/* Acceso a la vista de combos del panel */
.combos-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 20px; background: linear-gradient(120deg, rgba(255, 95, 31, .16), var(--surface) 60%); border-color: var(--line-strong); }
.combos-cta > .ico:first-child { width: 28px; height: 28px; color: var(--neon); flex: none; }
.combos-cta span { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.combos-cta strong { font-family: "Sora", sans-serif; font-size: 17px; }
.combos-cta small { color: var(--muted); font-size: 13.5px; }
.combos-cta:hover { border-color: var(--neon); }

/* ── Mis ventas, ranking y rachas ── */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.month-field { max-width: 340px; }
.month-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp2); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp3); margin-bottom: var(--sp2); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: var(--sp4); min-width: 0; font-size: 13px; }
.stat b { font-family: 'Sora', 'Inter', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.otbl .acts { text-align: right; width: 1%; }
@media (max-width: 720px) { .otbl td.acts:empty { display: none; } .otbl td.acts { justify-content: flex-end; } .otbl td.acts::before { content: none; } }
.rank-card { max-width: 100%; }
.rank-me { margin-bottom: var(--sp4); }
.rank-me .big { font-family: 'Sora', 'Inter', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--neon); }
.rank-tbl { margin-bottom: var(--sp4); }
.otbl tr.me td { background: rgba(255, 95, 31, .12); font-weight: 700; }
.otbl tbody tr.me:hover td { background: rgba(255, 95, 31, .16); }
.prizes { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp2); }
.prizes li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--hair); border-radius: 999px; background: var(--elevated); }
.streak-card { margin-top: var(--sp5); }
.streak-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp3); }
.streak { border: 1px solid var(--hair); border-radius: var(--r-sm); padding: var(--sp4); background: var(--elevated); min-width: 0; }
.streak.off { opacity: .8; }
.streak-top { display: flex; align-items: center; gap: var(--sp3); margin-bottom: var(--sp3); min-width: 0; }
.streak-top > div { min-width: 0; overflow-wrap: anywhere; }
.streak-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp1); }
.streak-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.streak-steps li:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--hair); }
.streak-steps li.on:not(:last-child)::after { background: var(--neon); }
.streak-steps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1.5px solid rgba(var(--ink), .28); color: var(--muted); background: var(--surface); }
.streak-steps .dot .ico { width: 14px; height: 14px; stroke-width: 3; }
.streak-steps li.on .dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 10px rgba(255, 95, 31, .5); }
.streak-steps li.next .dot { border-color: var(--neon); color: var(--neon); }
.streak-steps .lbl { font-size: 11px; font-weight: 700; color: var(--neon); min-height: 14px; }
.streak-msg { font-size: 13.5px; margin-top: var(--sp3); font-weight: 600; }
.streak-msg.warn { color: var(--warn); }
.streak-card .note { margin-top: var(--sp3); }

/* v9: acceso al carrito de la tienda (pago con Bold, saldo o Bre-B) */
.panel-cart { position: fixed; z-index: 60; right: 16px; left: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px;
  text-decoration: none; color: #1a0a02; background: var(--grad); box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 24px rgba(255, 95, 31, .35); animation: pcIn .35s cubic-bezier(.16, 1, .3, 1); }
.panel-cart.hidden { display: none; }
.panel-cart .pc-ico { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .14); }
.panel-cart .pc-ico b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #0b0b0c; color: #fff; font-size: 11px; display: grid; place-items: center; }
.panel-cart .pc-txt { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.panel-cart .pc-txt strong { font-size: 15px; } .panel-cart .pc-txt small { font-size: 12px; opacity: .8; }
.panel-cart > .ico:last-child { width: 20px; height: 20px; }
@keyframes pcIn { from { transform: translateY(16px); opacity: 0; } }
@media (min-width: 900px) { .panel-cart { left: auto; bottom: 24px; min-width: 260px; } }
@media (prefers-reduced-motion: reduce) { .panel-cart { animation: none; } }

/* v10 móvil: la barra superior no se corta. El rol ya se ve en el título y en el menú; el saldo queda solo con el monto */
@media (max-width: 560px) {
  #roleBadge { display: none !important; }
  .bal-pill .bal-lbl { display: none; }
  .top-right { gap: var(--sp2); }
  .top-right .cur { flex: none; }
}

/* ───── Mis cuentas, tickets, garantías y campana ───── */
.nav.nav-scroll { grid-template-columns: none; }
@media (max-width: 899px) {
  .nav.nav-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
  .nav.nav-scroll::-webkit-scrollbar { display: none; }
  .nav.nav-scroll a { flex: 0 0 22%; min-width: 74px; }
}
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp4); }
.acc { padding: var(--sp4); display: flex; flex-direction: column; gap: var(--sp3); min-width: 0; }
.acc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp3); }
.acc-top h3 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.acc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.acc-dl dt { color: var(--muted); font-size: 12.5px; font-weight: 700; padding-top: 2px; }
.acc-dl dd { margin: 0; min-width: 0; }
.acc-pass { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.acc-btns { display: inline-flex; gap: var(--sp2); flex-wrap: wrap; margin-left: 8px; }
.daybar { height: 8px; border-radius: 999px; background: var(--elevated); overflow: hidden; border: 1px solid var(--hair-soft); }
.daybar i { display: block; height: 100%; border-radius: 999px; background: #34d399; }
.daybar.is-amber i { background: #f59e0b; } .daybar.is-red i { background: #ef4444; }
.daytxt { margin: 0; font-size: 13px; font-weight: 700; }
.daytxt.is-ok { color: var(--ok-text, #34d399); } .daytxt.is-amber { color: #fbbf24; } .daytxt.is-red { color: #f87171; }
.acc-w { border-top: 1px dashed var(--hair); padding-top: var(--sp3); display: flex; flex-direction: column; gap: var(--sp2); font-size: 14px; }
.acc-wi { background: var(--elevated); border-radius: 10px; padding: 8px 10px; }
.acc-wi code { font-family: ui-monospace, Consolas, monospace; }
.chips { display: flex; gap: var(--sp2); flex-wrap: wrap; }
.chip { border: 1px solid var(--hair); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 40px; font-family: inherit; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { background: rgba(255, 95, 31, .16); color: #ff9a66; border-color: var(--neon); }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp4); }
@media (min-width: 900px) { .tk-grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; } }
.tk-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: var(--sp2); border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; min-height: 44px; font: inherit; }
.tk-item small { color: var(--muted); font-size: 12px; }
.tk-item:hover { border-color: var(--line-strong); }
.tk-item.on { border-color: var(--neon); background: rgba(255, 95, 31, .08); }
.tk-thread { padding: var(--sp4); }
.tk-thread h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.msgs { display: flex; flex-direction: column; gap: var(--sp2); margin: var(--sp3) 0; max-height: 360px; overflow: auto; }
.msg { padding: 10px 12px; border-radius: 12px; background: var(--elevated); border: 1px solid var(--hair-soft); max-width: 92%; }
.msg.staff { align-self: flex-end; background: rgba(255, 95, 31, .1); border-color: var(--line-strong); }
.msg small { color: var(--muted); font-size: 11.5px; }
.msg p { margin: 4px 0 0; white-space: pre-wrap; }
.bell-wrap { position: relative; flex: none; }
.bell-btn { position: relative; }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.bell-drop { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); padding: 8px; z-index: 60; }
@media (max-width: 480px) { .bell-wrap { position: static; } .bell-drop { right: 12px; left: 12px; width: auto; top: 64px; position: fixed; } }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp2); padding: 4px 4px 8px; }
.bell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bell-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px; cursor: pointer; color: var(--text); font: inherit; min-height: 44px; }
.bell-item:hover, .bell-item:focus-visible { background: var(--elevated); }
.bell-item.unread { background: rgba(255, 95, 31, .08); border-left: 3px solid var(--neon); }
.bell-item span { font-size: 13px; color: var(--muted); }
.bell-item small { font-size: 11.5px; color: var(--muted); }
.bell-empty { padding: 16px 8px; text-align: center; margin: 0; }
.acc button:focus-visible, .bell-btn:focus-visible, .chip:focus-visible, .tk-item:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
:root[data-theme="light"] .bell-drop { box-shadow: 0 16px 40px rgba(23, 25, 30, .14); }

/* ───── v11: pestañas de categoría, vista Combos, Mi Racha ───── */
.wrap-any { overflow-wrap: anywhere; word-break: break-word; }
.cat-tabs { display: flex; gap: var(--sp2); flex-wrap: wrap; margin: 0 0 var(--sp4); }
.cat-tabs .chip { white-space: nowrap; }
@media (max-width: 899px) { .cat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; } .cat-tabs::-webkit-scrollbar { display: none; } .cat-tabs .chip { flex: none; } }
.chip[aria-pressed="true"], .chip.on { background: rgba(255, 95, 31, .16); color: #ff9a66; border-color: var(--neon); }
:root[data-theme="light"] .chip[aria-pressed="true"], :root[data-theme="light"] .chip.on { color: var(--neon); }
.chip:focus-visible, .cmb-sum:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.streak-card .head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); flex-wrap: wrap; margin-bottom: var(--sp3); }
.streak-card .head-row .cart-head { margin-bottom: 0; }
.streak-card .head-row h3 { text-wrap: balance; }

/* Combos */
.cmb-filter { margin-bottom: var(--sp4); }
.cmb-filter .chips { margin-top: var(--sp2); }
.cmb-group { margin-bottom: var(--sp3); padding: 0; overflow: hidden; }
.cmb-sum { display: flex; align-items: center; gap: var(--sp3); padding: var(--sp3) var(--sp4); cursor: pointer; list-style: none; min-height: 56px; font-weight: 700; }
.cmb-sum::-webkit-details-marker { display: none; }
.cmb-sum .cmb-n { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cmb-sum .chev { display: inline-grid; transition: transform .2s; color: var(--muted); }
.cmb-group[open] > .cmb-sum .chev { transform: rotate(180deg); }
.cmb-group[open] > .cmb-sum { border-bottom: 1px solid var(--hair); }
.cmb-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--sp3); padding: var(--sp4); }
.cmb { display: flex; flex-direction: column; gap: var(--sp2); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: var(--sp3); background: var(--elevated); min-width: 0; }
.cmb-logos { display: flex; }
.cmb-logos img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 2px solid var(--elevated); background: #0b0b0b; margin-left: -8px; }
.cmb-logos img:first-child { margin-left: 0; }
.cmb-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; text-wrap: balance; overflow-wrap: break-word; }
.cmb-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp2); margin-top: auto; padding-top: var(--sp2); flex-wrap: wrap; }
.cmb-foot .price { font-size: 20px; }
.cmb-tag { font-size: 11px; font-weight: 700; color: var(--amber); }

/* Mi Racha: pista estilo Fórmula 1 */
.rc-wrap { display: grid; gap: var(--sp4); }
.rc-card { padding: var(--sp5); overflow: hidden; }
.rc-top { display: flex; align-items: center; gap: var(--sp3); flex-wrap: wrap; margin-bottom: var(--sp4); }
.rc-top .grow { flex: 1; min-width: 160px; }
.rc-top h3 { font-size: 17px; text-wrap: balance; overflow-wrap: break-word; }
.rc-badge { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--elevated); white-space: nowrap; }
.rc-badge.half { color: var(--amber); border-color: var(--amber); }
.rc-badge.free { color: #fff; background: var(--grad); border-color: transparent; }
.rc-track { position: relative; margin: 44px 18px 8px; padding: 0 0 40px; }
.rc-road { position: relative; height: 14px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--hair); }
.rc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 0 12px rgba(255, 95, 31, .5); width: calc(var(--p, 0) * 1%); transform-origin: left; animation: rcGrow .9s cubic-bezier(.16, 1, .3, 1) both; }
.rc-cp { position: absolute; top: 7px; width: 0; display: flex; flex-direction: column; align-items: center; }
.rc-light { width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 2px solid rgba(var(--ink), .3); background: var(--surface); color: var(--muted); flex: none; }
.rc-light .ico { width: 14px; height: 14px; stroke-width: 3; }
.rc-cp.on .rc-light { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 12px rgba(255, 95, 31, .65); }
.rc-cp.next .rc-light { border-color: var(--neon); color: var(--neon); animation: rcPulse 1.8s ease-in-out infinite; }
.rc-cp.prize .rc-light { width: 38px; height: 38px; margin-top: -19px; font-size: 11px; }
.rc-cp.finish .rc-light { border-radius: 8px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 12px 12px; color: transparent; border-color: rgba(var(--ink), .5); }
.rc-cp.finish.on .rc-light { box-shadow: 0 0 16px rgba(255, 167, 38, .9); border-color: var(--amber); }
.rc-cp .rc-lbl { position: absolute; top: 20px; font-size: 11.5px; font-weight: 800; white-space: nowrap; color: var(--muted); }
.rc-cp.prize .rc-lbl { top: 24px; color: var(--amber); }
.rc-cp.on .rc-lbl { color: var(--text); }
.rc-car { position: absolute; top: -30px; left: calc(var(--p, 0) * 1%); width: 0; display: flex; justify-content: center; animation: rcDrive 1s cubic-bezier(.16, 1, .3, 1) both; z-index: 2; }
.rc-car svg { width: 40px; height: 22px; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.rc-car.idle svg { opacity: .45; }
.rc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp3); margin-top: var(--sp4); }
.rc-box { border: 1px solid var(--hair); border-radius: var(--r-sm); padding: var(--sp3) var(--sp4); background: var(--elevated); min-width: 0; }
.rc-box small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.rc-box strong { display: block; font-size: 16px; margin-top: 2px; overflow-wrap: break-word; }
.rc-box.is-ok strong { color: var(--ok-text); } .rc-box.is-amber strong { color: #fbbf24; } .rc-box.is-red strong { color: #f87171; }
:root[data-theme="light"] .rc-box.is-amber strong { color: #b45309; } :root[data-theme="light"] .rc-box.is-red strong { color: #b91c1c; }
.rc-ctas { display: flex; gap: var(--sp2); flex-wrap: wrap; margin-top: var(--sp4); }
.rc-cta-bar { display: flex; gap: var(--sp2); flex-wrap: wrap; margin-top: var(--sp5); }
@keyframes rcGrow { from { transform: scaleX(0); } }
@keyframes rcDrive { from { transform: translateX(-60px); opacity: 0; } }
@keyframes rcPulse { 50% { transform: scale(1.12); } }
@media (max-width: 560px) { .rc-card { padding: var(--sp4); } .rc-track { margin-left: 16px; margin-right: 16px; } .rc-cp .rc-lbl { font-size: 10.5px; } .rc-light { width: 26px; height: 26px; margin-top: -13px; } .rc-cp.prize .rc-light { width: 32px; height: 32px; margin-top: -16px; } .rc-cp .rc-lbl { top: 18px; } .rc-cp.prize .rc-lbl { top: 21px; } .rc-ctas .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .rc-fill, .rc-car, .rc-cp.next .rc-light { animation: none; } .cmb-sum .chev { transition: none; } }
[hidden] { display: none !important; }

/* Evidencia de tickets */
.tk-evidence { display: block; max-width: min(100%, 360px); max-height: 280px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #000; margin-top: 6px; }
.tk-ev, .help-evidence { margin: 8px 0 12px; }

/* ───── v12: rediseño del panel (coherencia con admin y landing) ───── */
.nav-brand { display: none; }
@media (min-width: 1200px) {
  .nav-brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--hair); }
  .nav-brand img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: 0 0 12px rgba(255, 95, 31, .35); }
  .nav-brand span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
  .nav-brand strong { font-family: 'Sora', 'Inter', sans-serif; font-size: 13px; color: var(--neon); letter-spacing: .03em; }
  .nav-brand small { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
}
.topbar { box-shadow: 0 1px 0 rgba(255, 95, 31, .12), 0 8px 24px -12px rgba(255, 95, 31, .25); }
.nav a.active { text-shadow: 0 0 12px rgba(255, 95, 31, .45); }

/* Cabecera de vista con acento */
.view-head { position: relative; padding-left: 14px; }
.view-head::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 12px rgba(255, 95, 31, .55); }
.sec-title { font-size: 17px; }
.sec-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); flex: none; }

/* Bienvenida */
.wel { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: var(--sp5); padding: var(--sp5); margin-bottom: var(--sp5); border-radius: 22px; border: 1px solid var(--line-strong); background: radial-gradient(520px 260px at 0% 0%, rgba(255, 95, 31, .22), transparent 70%), radial-gradient(420px 240px at 100% 100%, rgba(255, 167, 38, .12), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.wel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--neon) 30%, var(--amber) 50%, var(--neon) 70%, transparent); box-shadow: 0 0 16px 1px rgba(255, 95, 31, .5); }
.wel-art { flex: none; position: relative; display: grid; place-items: center; }
.wel-art::before { content: ''; position: absolute; inset: -28px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 95, 31, .38), transparent 72%); }
.wel-frame { width: 112px; padding: 6px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 95, 31, .6), rgba(255, 95, 31, .08) 40%, rgba(255, 167, 38, .45)); box-shadow: 0 0 0 1px rgba(255, 95, 31, .45), 0 0 40px rgba(255, 95, 31, .3), 0 16px 40px rgba(0, 0, 0, .4); animation: welFloat 6s ease-in-out infinite; }
.wel-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #000; }
.wel-body { min-width: 0; flex: 1; }
.wel-title { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: clamp(24px, 4.4vw, 38px); line-height: 1.08; letter-spacing: -.02em; margin: 4px 0 6px; color: var(--text); overflow-wrap: anywhere; text-wrap: balance; }
.wel-sub { color: var(--muted); font-size: 14.5px; max-width: 52ch; text-wrap: pretty; }
.wel-logos { list-style: none; display: flex; gap: 8px; margin-top: var(--sp4); flex-wrap: wrap; }
.wel-logos img { width: 38px; height: 38px; border-radius: 11px; background: #0b0b0b; box-shadow: 0 0 0 1px rgba(255, 95, 31, .35), 0 6px 16px rgba(0, 0, 0, .35); object-fit: cover; }
.wel-sm { padding: var(--sp4) var(--sp5); }
.wel-sm .wel-frame { width: 76px; border-radius: 18px; padding: 5px; }
.wel-sm .wel-frame img { border-radius: 13px; }
.wel-sm .wel-title { font-size: clamp(20px, 3.4vw, 28px); }
.wel-sm .wel-logos { margin-top: var(--sp3); }
.wel-sm .wel-logos img { width: 30px; height: 30px; border-radius: 9px; }
@keyframes welFloat { 50% { transform: translateY(-4px); } }
@media (max-width: 560px) { .wel { flex-direction: column; text-align: center; gap: var(--sp4); padding: var(--sp5) var(--sp4); } .wel-logos { justify-content: center; } .wel-sub { margin: 0 auto; } .wel-frame { width: 96px; } .wel-sm { flex-direction: row; text-align: left; padding: var(--sp3) var(--sp4); } .wel-sm .wel-logos { justify-content: flex-start; } .wel-sm .wel-sub { margin: 0; } .wel-sm .wel-frame { width: 64px; } }
@media (max-width: 400px) { .wel-sm .wel-art { display: none; } }

/* Tarjetas de producto */
.item { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 95, 31, .05), transparent 40%), var(--surface); }
.item::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.item:hover::before { opacity: 1; }
.item:hover { border-color: rgba(255, 95, 31, .6); box-shadow: 0 0 0 1px rgba(255, 95, 31, .25), 0 16px 36px rgba(0, 0, 0, .35), 0 0 30px rgba(255, 95, 31, .16); }
.item .logo-tile { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 95, 31, .35), 0 8px 20px rgba(0, 0, 0, .4); }
.item h3 { text-shadow: none; color: var(--text); font-size: 16px; }
.item:hover h3 { color: var(--neon); }
.chip-cat { border-color: rgba(255, 95, 31, .3); color: var(--amber); background: rgba(255, 95, 31, .08); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; font-weight: 700; }
.item.is-combo { background: linear-gradient(160deg, rgba(255, 95, 31, .14), var(--surface) 60%); border-color: var(--line-strong); }
.price { color: var(--neon); text-shadow: 0 0 18px rgba(255, 95, 31, .3); }
.price small { text-shadow: none; }
.price-ask { color: var(--amber); }
.save-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--ok-text); background: rgba(34, 197, 94, .13); border: 1px solid rgba(34, 197, 94, .35); padding: 3px 10px; border-radius: 999px; }
.save-badge .ico { width: 13px; height: 13px; }
.item .actions .btn-add { border-radius: 12px; }

/* Combos (vista interna) */
.cmb-group { border-radius: 18px; border-color: var(--line-strong); }
.cmb-sum { font-family: 'Sora', 'Inter', sans-serif; font-size: 16px; background: linear-gradient(90deg, rgba(255, 95, 31, .12), transparent 70%); }
.cmb-body { gap: var(--sp4); }
.cmb { position: relative; overflow: hidden; gap: 10px; padding: var(--sp4); border-radius: 18px; border-color: var(--line); background: linear-gradient(160deg, rgba(255, 95, 31, .1), var(--surface) 60%); transition: transform .18s, border-color .18s, box-shadow .18s; }
.cmb::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: .55; }
.cmb:hover { transform: translateY(-3px); border-color: rgba(255, 95, 31, .6); box-shadow: 0 0 0 1px rgba(255, 95, 31, .25), 0 16px 34px rgba(0, 0, 0, .3), 0 0 28px rgba(255, 95, 31, .18); }
.cmb.is-best { border-color: var(--neon); box-shadow: 0 0 0 1px rgba(255, 95, 31, .35), 0 0 26px rgba(255, 95, 31, .18); }
.cmb-logos { flex-wrap: wrap; row-gap: 6px; padding-left: 10px; }
.cmb-logos img { width: 48px; height: 48px; border-radius: 14px; margin-left: -10px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px rgba(255, 95, 31, .35), 0 6px 14px rgba(0, 0, 0, .4); }
.cmb-name { font-size: 15px; font-weight: 800; }
.cmb-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; color: #1a0a02; background: var(--grad); padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cmb-tag .ico { width: 12px; height: 12px; }
.cmb-foot { align-items: flex-end; }
.cmb-foot .price { font-size: 22px; }

/* Arma tu combo: tiles de plataforma */
.checks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: var(--sp3); }
.check { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: var(--sp4) var(--sp3); min-height: 150px; border-radius: 18px; background: var(--surface); transition: transform .15s, border-color .15s, box-shadow .15s, background .15s; }
.check:hover { transform: translateY(-2px); border-color: rgba(255, 95, 31, .6); }
.check .logo-tile.sm { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 95, 31, .3), 0 8px 18px rgba(0, 0, 0, .35); }
.check .tx { flex: none; align-items: center; width: 100%; }
.check .nm { font-size: 13.5px; }
.check .box { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--elevated); transform: scale(.9); }
.check .box .ico { opacity: 0; }
.check.on { border-color: var(--neon); background: linear-gradient(160deg, rgba(255, 95, 31, .22), rgba(255, 95, 31, .04)); box-shadow: 0 0 0 1px var(--neon), 0 0 28px rgba(255, 95, 31, .32); }
.check.on .box { transform: scale(1); }
.check.on .box .ico { opacity: 1; }
.check.on .logo-tile.sm { box-shadow: 0 0 0 2px var(--neon), 0 0 18px rgba(255, 95, 31, .55); }

/* Resumen del combo */
.sum-card { border-color: var(--line-strong); background: linear-gradient(170deg, rgba(255, 95, 31, .12), var(--surface) 45%); }
.sum-card h3 { margin: 2px 0 var(--sp3); }
.sel-logos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp3); }
.sel-logos:empty { display: none; }
.sel-logos img { width: 36px; height: 36px; border-radius: 10px; background: #0b0b0b; box-shadow: 0 0 0 1px rgba(255, 95, 31, .4); object-fit: cover; }
.tier { margin: var(--sp2) 0 var(--sp4); }
.tier-bar { height: 10px; }
.tier-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.tier-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.tier-steps .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; border: 1.5px solid rgba(var(--ink), .28); background: var(--surface); transition: all .2s; }
.tier-steps .dot .ico { width: 13px; height: 13px; stroke-width: 3; }
.tier-steps li.hit { color: var(--neon); }
.tier-steps li.hit .dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 12px rgba(255, 95, 31, .55); }
.tier-msg { text-align: center; }
.sum.total { align-items: baseline; }
.tot-big { font-size: 30px; font-weight: 800; color: var(--neon); text-shadow: 0 0 20px rgba(255, 95, 31, .35); letter-spacing: -.02em; }
@media (max-width: 1099px) { .combo-layout .sum-card { order: -1; } }

:root[data-theme="light"] .wel { background: radial-gradient(520px 260px at 0% 0%, rgba(217, 72, 15, .12), transparent 70%), var(--surface); }
:root[data-theme="light"] .price, :root[data-theme="light"] .tot-big { text-shadow: none; }
:root[data-theme="light"] .cmb-tag { color: #fff; }
:root[data-theme="light"] .item:hover, :root[data-theme="light"] .cmb:hover { box-shadow: 0 12px 28px rgba(23, 25, 30, .12); }
@media (prefers-reduced-motion: reduce) { .wel-frame { animation: none; } .cmb:hover, .check:hover { transform: none; } }
