/* La Bendición · Panel de administración */
:root { --ad-bg: #0a0f1c; --ad-card: #111827; --ad-border: #1f2937; --ad-muted: #94a3b8; --ad-sidebar: 260px; }
body.ad-body { font-family: 'Inter', system-ui, sans-serif; background: var(--ad-bg); color: #e5e7eb; min-height: 100vh; }
.ad-link { color: var(--ad-primary); text-decoration: none; }
.ad-link:hover { color: #fff; }
.text-secondary { color: var(--ad-muted) !important; }
.form-control, .form-select, .input-group-text { background-color: #0b1222; border-color: #263247; color: #f1f5f9; }
.form-control:focus, .form-select:focus { background-color: #0b1222; color: #fff; border-color: var(--ad-primary); box-shadow: 0 0 0 .2rem rgba(var(--ad-primary-rgb), .2); }
.form-control::placeholder { color: #4b5b73; }
.form-label { font-weight: 600; font-size: .85rem; color: #cbd5e1; }
.form-check-input:checked { background-color: var(--ad-primary); border-color: var(--ad-primary); }
.ad-btn-primary { background: var(--ad-primary); color: #111 !important; font-weight: 700; border: 0; }
.ad-btn-primary:hover { filter: brightness(1.1); background: var(--ad-primary); }
kbd { background: rgba(0,0,0,.3); font-size: .7rem; padding: 1px 6px; margin-left: 4px; }

/* Layout */
.ad-sidebar { width: var(--ad-sidebar); background: #0d1424; border-right: 1px solid var(--ad-border); display: flex; flex-direction: column; }
@media (min-width: 992px) { .ad-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; } .ad-main { margin-left: var(--ad-sidebar); } }
@media (max-width: 991.98px) { .ad-sidebar.offcanvas-lg { background: #0d1424; } }
.ad-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.ad-logo img { max-height: 46px; max-width: 180px; object-fit: contain; }
.ad-logo span { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; color: var(--ad-primary); }
.ad-logo { text-decoration: none; }
.ad-site-link { margin: 0 14px 6px; padding: 8px 12px; border-radius: 10px; font-size: .8rem; font-weight: 600; color: var(--ad-primary); background: rgba(var(--ad-primary-rgb), .1); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.ad-site-link:hover { background: rgba(var(--ad-primary-rgb), .2); color: var(--ad-primary); }
.ad-menu { flex: 1; overflow-y: auto; padding: 6px 10px; }
.ad-menu-group { font-size: .65rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #4b5b73; padding: 16px 10px 6px; }
.ad-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #a3b0c2; text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 2px; transition: .15s; }
.ad-menu a i { font-size: 1.05rem; width: 20px; text-align: center; }
.ad-menu a:hover { background: rgba(255,255,255,.04); color: #fff; }
.ad-menu a.active { background: rgba(var(--ad-primary-rgb), .14); color: var(--ad-primary); }
.ad-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; }
.ad-sidebar-foot { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--ad-border); padding: 12px; }
.ad-user { flex: 1; display: flex; align-items: center; gap: 10px; text-decoration: none; color: #e5e7eb; min-width: 0; padding: 4px; border-radius: 10px; }
.ad-user:hover { background: rgba(255,255,255,.04); color: #fff; }
.ad-user b { display: block; font-size: .85rem; }
.ad-user small { color: var(--ad-muted); font-size: .72rem; }
.ad-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ad-primary); color: #111; font-weight: 900; flex-shrink: 0; }
.ad-avatar.is-lg { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 16px; }
.ad-logout { border: 0; background: none; color: var(--ad-muted); font-size: 1.2rem; padding: 6px 8px; border-radius: 8px; }
.ad-logout:hover { color: #f87171; background: rgba(239,68,68,.1); }
.ad-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: rgba(10,15,28,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ad-border); }
.ad-title { font-size: 1.25rem; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-burger { border: 0; background: rgba(255,255,255,.06); color: #fff; font-size: 1.4rem; width: 42px; height: 42px; border-radius: 10px; }
.ad-bell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); color: #cbd5e1; font-size: 1.15rem; }
.ad-bell b { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: .68rem; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.ad-bell.is-ringing i { animation: ad-ring 1s ease 3; }
@keyframes ad-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
.ad-chip { align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(var(--ad-primary-rgb), .12); color: var(--ad-primary); }
.ad-content { padding: 24px; max-width: 1500px; }
@media (max-width: 575px) { .ad-content { padding: 14px; } .ad-topbar { padding: 10px 14px; } }
.ad-alert { border-radius: 14px; }

/* Tarjetas */
.ad-card { background: var(--ad-card); border: 1px solid var(--ad-border); border-radius: 18px; }
.ad-subcard { background: #0b1222; border: 1px solid var(--ad-border); border-radius: 14px; padding: 16px; }
.ad-h2 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ad-h2 i { color: var(--ad-primary); }
.ad-empty { text-align: center; padding: 30px 16px; color: var(--ad-muted); }
.ad-empty i { font-size: 2.4rem; color: var(--ad-primary); opacity: .8; }
.ad-sticky { position: sticky; top: 86px; }

.ad-stat { position: relative; display: block; overflow: hidden; height: 100%; padding: 18px; border-radius: 18px; background: var(--ad-card); border: 1px solid var(--ad-border); color: #e5e7eb; transition: .2s; }
a.ad-stat:hover { transform: translateY(-2px); color: #fff; }
.ad-stat i { position: absolute; right: 14px; top: 14px; font-size: 1.5rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.ad-stat span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--ad-muted); }
.ad-stat b { display: block; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; margin: 6px 0 2px; }
.ad-stat small { color: var(--ad-muted); font-size: .75rem; }
.ad-stat span, .ad-stat b { padding-right: 50px; }
@media (max-width: 575px) {
  .ad-stat { padding: 14px; border-radius: 16px; }
  .ad-stat i { width: 32px; height: 32px; font-size: 1rem; right: 10px; top: 10px; border-radius: 9px; }
  .ad-stat span { font-size: .62rem; letter-spacing: .5px; padding-right: 36px; }
  .ad-stat b { font-size: 1.25rem; padding-right: 0; margin-top: 8px; }
  .ad-stat small { font-size: .68rem; display: block; line-height: 1.3; }
}
.ad-stat.is-warn i { background: rgba(250,204,21,.12); color: #facc15; }
.ad-stat.is-warn { border-color: rgba(250,204,21,.25); }
.ad-stat.is-ok i { background: rgba(34,197,94,.12); color: #4ade80; }
.ad-stat.is-primary i { background: rgba(var(--ad-primary-rgb), .14); color: var(--ad-primary); }
.ad-stat.is-blue i { background: rgba(59,130,246,.14); color: #60a5fa; }

.ad-alert-gold { background: linear-gradient(135deg, rgba(var(--ad-primary-rgb), .2), rgba(var(--ad-primary-rgb), .05)); border: 1px solid rgba(var(--ad-primary-rgb), .4); color: #fde68a; border-radius: 14px; }
.ad-alert-wa { background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.4); color: #bbf7d0; border-radius: 14px; }
.ad-alert-wa i.bi-whatsapp { color: #25d366; }

/* Pastillas de estado */
.ad-pill { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1; white-space: nowrap; }
.ad-pill.is-pendiente { background: rgba(250,204,21,.15); color: #fde047; }
.ad-pill.is-aprobado, .ad-pill.is-activa { background: rgba(34,197,94,.15); color: #4ade80; }
.ad-pill.is-rechazado { background: rgba(239,68,68,.15); color: #f87171; }
.ad-pill.is-pausada { background: rgba(249,115,22,.15); color: #fb923c; }
.ad-pill.is-borrador, .ad-pill.is-finalizada { background: rgba(148,163,184,.15); color: #cbd5e1; }
.ad-pill.is-info { background: rgba(59,130,246,.15); color: #93c5fd; }
.ad-pill.is-gold { background: rgba(var(--ad-primary-rgb), .18); color: var(--ad-primary); }

/* Tablas */
.ad-table { --bs-table-bg: transparent; --bs-table-color: #e5e7eb; --bs-table-border-color: var(--ad-border); --bs-table-hover-bg: rgba(255,255,255,.03); }
.ad-table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ad-muted); font-weight: 700; padding: 12px 16px; background: rgba(255,255,255,.02); }
.ad-table td { padding: 12px 16px; }
.ad-row-link { cursor: pointer; }

@media (max-width: 767.98px) { .ad-filter .form-label { display: none; } }

/* Tablas como tarjetas en celular */
@media (max-width: 767.98px) {
  .ad-orders thead, .ad-cards thead { display: none; }
  .ad-orders, .ad-orders tbody, .ad-cards, .ad-cards tbody { display: block; width: 100%; }
  .ad-orders tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "code status" "client total" "qty action"; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--ad-border); }
  .ad-orders td { display: block; padding: 0; border: 0; background: none !important; }
  .ad-orders .o-code { grid-area: code; }
  .ad-orders .o-code br { display: none; }
  .ad-orders .o-code small { margin-left: 6px; }
  .ad-orders .o-status { grid-area: status; text-align: right; }
  .ad-orders .o-client { grid-area: client; }
  .ad-orders .o-total { grid-area: total; font-size: 1.05rem; }
  .ad-orders .o-qty { grid-area: qty; text-align: left !important; align-self: center; }
  .ad-orders .o-action { grid-area: action; }
  .ad-cards tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--ad-border); }
  .ad-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right !important; background: none !important; }
  .ad-cards td[data-label]::before { content: attr(data-label); color: var(--ad-muted); font-size: .8rem; text-align: left; }
  .ad-cards td.ad-cell-main { display: block; text-align: left !important; padding-bottom: 6px; }
  .ad-cards td.ad-cell-actions { justify-content: flex-end; padding-top: 8px; }
}
.ad-row-link:hover td { background: rgba(255,255,255,.025); }
.pagination { --bs-pagination-bg: #0b1222; --bs-pagination-border-color: var(--ad-border); --bs-pagination-color: #cbd5e1; --bs-pagination-active-bg: var(--ad-primary); --bs-pagination-active-border-color: var(--ad-primary); --bs-pagination-active-color: #111; --bs-pagination-disabled-bg: #0b1222; }

.ad-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ad-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: var(--ad-card); border: 1px solid var(--ad-border); color: #a3b0c2; text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.ad-tabs a b { background: rgba(255,255,255,.08); padding: 1px 8px; border-radius: 999px; font-size: .75rem; }
.ad-tabs a.active { background: rgba(var(--ad-primary-rgb), .14); border-color: rgba(var(--ad-primary-rgb), .5); color: var(--ad-primary); }

.ad-chart-box { height: 300px; }
@media (max-width: 575px) { .ad-chart-box { height: 230px; } }

/* Rifas */
.ad-progress { height: 8px; background: rgba(255,255,255,.07); border-radius: 999px; }
.ad-progress .progress-bar { background: linear-gradient(90deg, #ef4444, var(--ad-primary)); border-radius: 999px; }
.ad-mini-raffle { display: block; padding: 12px; border-radius: 12px; background: #0b1222; margin-bottom: 10px; text-decoration: none; color: #e5e7eb; border: 1px solid transparent; }
.ad-mini-raffle:hover { border-color: rgba(var(--ad-primary-rgb), .4); color: #fff; }
.ad-raffle { overflow: hidden; }
.ad-raffle-img { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; background: #0b1222; color: #334155; font-size: 2.5rem; }
.ad-raffle-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-raffle-img .ad-pill { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); background: rgba(0,0,0,.6); }
.ad-raffle-pend { position: absolute; bottom: 10px; left: 10px; font-size: .72rem; font-weight: 700; background: #facc15; color: #111; padding: 4px 10px; border-radius: 999px; }
.ad-raffle-thumb { width: 110px; height: 80px; object-fit: cover; border-radius: 12px; }
.ad-calc { font-size: .88rem; background: rgba(var(--ad-primary-rgb), .08); border: 1px dashed rgba(var(--ad-primary-rgb), .35); color: #fde68a; border-radius: 12px; padding: 10px 14px; }
.ad-rows { display: grid; gap: 8px; }
.ad-row-item { display: flex; gap: 8px; align-items: center; }
.ad-row-item .form-control:first-child { max-width: 130px; }
@media (max-width: 575px) {
  #paqRows .ad-row-item { flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px dashed var(--ad-border); }
  #paqRows .ad-row-item .form-control:first-child { max-width: 90px; }
  #paqRows .ad-row-item .form-control:nth-child(2) { flex: 1 1 140px; }
}
.ad-row-label { font-weight: 900; font-size: .75rem; color: var(--ad-primary); width: 34px; }
.ad-upload { position: relative; display: grid; place-items: center; min-height: 140px; border: 2px dashed #334155; border-radius: 14px; background: #0b1222; cursor: pointer; overflow: hidden; color: var(--ad-muted); font-weight: 600; transition: .2s; }
.ad-upload:hover { border-color: var(--ad-primary); color: var(--ad-primary); }
.ad-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-upload img { max-width: 100%; max-height: 220px; object-fit: contain; }
.ad-upload.is-square { aspect-ratio: 1; }
.ad-upload.is-square img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.ad-upload.is-small { max-width: 140px; min-height: 0; }
.ad-upload.is-banner { min-height: 160px; }
.ad-upload.is-banner img { width: 100%; max-height: 240px; object-fit: cover; }
.ad-upload.is-logo { background: repeating-conic-gradient(#0f172a 0 25%, #111c30 0 50%) 0 / 20px 20px; }
.ad-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.ad-gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.ad-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.ad-gallery-item span { position: absolute; inset: auto 0 0 0; font-size: .7rem; background: rgba(0,0,0,.7); padding: 3px 6px; }
.ad-gallery-item:has(input:checked) img { opacity: .3; filter: grayscale(1); }
.ad-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); gap: 4px; }
.ad-seg label { padding: 6px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ad-muted); }
.ad-seg input { display: none; }
.ad-seg label:has(input:checked) { background: var(--ad-primary); color: #111; }

.ad-blessed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
@media (max-width: 575px) { .ad-blessed-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .ad-blessed b { font-size: 1.35rem; } }
.ad-blessed { position: relative; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--ad-border); background: #0b1222; }
.ad-blessed b { display: block; font-family: 'Bebas Neue', monospace; font-size: 1.6rem; letter-spacing: 2px; line-height: 1.1; }
.ad-blessed span { font-size: .75rem; color: var(--ad-muted); font-weight: 700; }
.ad-blessed a { color: #e5e7eb; text-decoration: none; }
.ad-blessed.is-disponible { border-color: rgba(var(--ad-primary-rgb), .5); }
.ad-blessed.is-disponible b { color: var(--ad-primary); }
.ad-blessed.is-ganado { background: rgba(250,204,21,.12); border-color: #facc15; }
.ad-blessed.is-entregado { opacity: .6; }
.ad-cupo { padding: 12px 14px; border-radius: 12px; background: #0b1222; border: 1px solid var(--ad-border); }
.ad-cupo-bar { display: flex; gap: 3px; }
.ad-cupo-bar i { flex: 1; height: 10px; border-radius: 3px; background: rgba(255,255,255,.08); }
.ad-cupo-bar i.is-on { background: rgba(34,197,94,.55); }
.ad-cupo-bar i.is-out { background: var(--ad-primary); }
.ad-blessed span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-blessed span.is-item { color: #fde68a; }
.ad-edit { position: absolute; top: 2px; left: 2px; border: 0; background: none; color: var(--ad-muted); padding: 2px 5px; font-size: .75rem; border-radius: 6px; }
.ad-edit:hover { color: var(--ad-primary); background: rgba(var(--ad-primary-rgb), .12); }
.ad-seg-sm label { padding: 5px 12px; font-size: .8rem; }
.ad-bulk summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ad-primary); list-style: none; }
.ad-bulk summary::-webkit-details-marker { display: none; }
.ad-x { position: absolute; top: 2px; right: 2px; border: 0; background: none; color: var(--ad-muted); padding: 0 4px; }
.ad-x:hover { color: #f87171; }
.ad-big-input { font-size: 2rem; letter-spacing: 8px; }
.ad-sorteo { text-align: center; padding: 18px; border-radius: 14px; background: #0b1222; border: 1px dashed #334155; }
.ad-sorteo.is-win { border: 2px solid var(--ad-primary); background: rgba(var(--ad-primary-rgb), .1); }
.ad-sorteo-num { font-family: 'Bebas Neue', monospace; font-size: 3.4rem; letter-spacing: 8px; color: var(--ad-primary); line-height: 1; margin-bottom: 8px; }
.ad-top-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ad-border); }
.ad-top-row:last-child { border-bottom: 0; }
@media (max-width: 575px) { .ad-top-row { flex-wrap: wrap; } .ad-top-row .ad-pill { margin-left: 44px !important; } }
.ad-top-pos { width: 32px; text-align: center; font-weight: 900; font-size: 1.1rem; }

/* Pedido */
.ad-proof { border-radius: 14px; overflow: hidden; background: #0b1222; cursor: zoom-in; text-align: center; }
.ad-proof img { max-width: 100%; max-height: 75vh; transition: transform .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.ad-proof.is-zoom img { transform: scale(2.2); }
.ad-mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,20,36,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--ad-border); }
.ad-mobile-actions > div { flex: 1; min-width: 0; line-height: 1.15; }
.ad-mobile-actions small { display: block; color: var(--ad-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; }
.ad-mobile-actions b { color: var(--ad-primary); font-size: 1.2rem; }
.ad-mobile-actions .btn { padding: 10px 16px; font-weight: 700; }
body:has(.ad-mobile-actions) .ad-content { padding-bottom: 90px; }
@media (min-width: 992px) { body:has(.ad-mobile-actions) .ad-content { padding-bottom: 24px; } }
@media (max-width: 991.98px) { .ad-proof img { max-height: 55vh; } }
.ad-amount { text-align: center; padding: 16px; border-radius: 14px; background: rgba(var(--ad-primary-rgb), .08); border: 1px solid rgba(var(--ad-primary-rgb), .3); }
.ad-amount span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ad-muted); font-weight: 700; }
.ad-amount b { display: block; font-size: 2.4rem; font-weight: 900; color: var(--ad-primary); line-height: 1.15; }
.ad-amount small { color: var(--ad-muted); }
.ad-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
.ad-dl dt { color: var(--ad-muted); font-weight: 600; }
.ad-dl dd { margin: 0; word-break: break-word; }
.ad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ad-tickets { display: flex; flex-wrap: wrap; gap: 6px; max-height: 320px; overflow-y: auto; }
.ad-ticket { font-family: 'Bebas Neue', monospace; font-size: 1.15rem; letter-spacing: 2px; padding: 3px 9px 2px; border-radius: 7px; background: #0b1222; border: 1px solid #263247; }
.ad-ticket.is-gold { background: var(--ad-primary); color: #111; border-color: transparent; }
.ad-hist { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ad-border); text-decoration: none; color: #e5e7eb; font-size: .85rem; }
.ad-hist:last-child { border-bottom: 0; }

/* Marca */
.ad-palettes { display: flex; gap: 10px; flex-wrap: wrap; }
.ad-palette { border: 1px solid var(--ad-border); background: #0b1222; border-radius: 12px; padding: 8px; text-align: center; color: var(--ad-muted); transition: .15s; }
.ad-palette:hover { border-color: var(--ad-primary); color: #fff; }
.ad-palette span { display: flex; gap: 4px; padding: 8px; border-radius: 8px; margin-bottom: 4px; }
.ad-palette i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.ad-palette small { font-size: .7rem; font-weight: 600; }
.ad-color { display: flex; gap: 8px; }
.ad-color input[type=color] { width: 52px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid #263247; background: #0b1222; cursor: pointer; }
.ad-phone { width: 330px; max-width: 100%; margin: 0 auto; border-radius: 34px; border: 8px solid #1f2937; background: var(--bg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.6); color: #fff; padding-bottom: 16px; font-size: 12px; }
.ad-phone-announce { background: linear-gradient(135deg, #fff3b0, var(--p)); color: #1a1200; font-weight: 800; font-size: 10px; padding: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ad-phone-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ad-phone-nav img { height: 26px; max-width: 120px; object-fit: contain; }
.ad-phone-nav b { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--p); }
.ad-phone-cta { font-style: normal; font-weight: 800; font-size: 10px; background: var(--p); color: #1a1200; padding: 5px 10px; border-radius: 999px; }
.ad-phone-hero { margin: 12px; border-radius: 14px; overflow: hidden; min-height: 90px; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px color-mix(in srgb, var(--p) 30%, transparent); }
.ad-phone-hero img { width: 100%; max-height: 150px; object-fit: cover; }
.ad-phone-hero b { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--p); padding: 20px; }
.ad-phone-slogan { text-align: center; color: #94a3b8; margin: 0 12px 8px; font-weight: 600; }
.ad-phone-pill { margin: 0 auto 12px; width: max-content; font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #fecaca; background: color-mix(in srgb, var(--a) 18%, transparent); border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); }
.ad-phone-pill span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--a); margin-right: 4px; }
.ad-phone-card { margin: 0 12px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ad-phone-img { position: relative; height: 90px; border-radius: 10px; background: radial-gradient(circle, color-mix(in srgb, var(--p) 25%, transparent), transparent 70%); display: grid; place-items: center; font-size: 30px; color: var(--p); margin-bottom: 8px; }
.ad-phone-img em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-weight: 900; background: linear-gradient(135deg, #fff3b0, var(--p)); color: #1a1200; padding: 2px 8px; border-radius: 8px; font-size: 13px; }
.ad-phone-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 8px 0; overflow: hidden; }
.ad-phone-bar span { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, var(--a), var(--p)); }
.ad-phone-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.ad-phone-chips i { font-style: normal; font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 1px; background: linear-gradient(135deg, #fff3b0, var(--p)); color: #1a1200; padding: 2px 7px; border-radius: 5px; }
.ad-phone-chips i.is-b { box-shadow: 0 0 10px var(--p); }
.ad-phone-btn { text-align: center; font-weight: 900; text-transform: uppercase; padding: 9px; border-radius: 10px; background: linear-gradient(135deg, #fff3b0, var(--p) 45%, color-mix(in srgb, var(--p) 70%, #000)); color: #1a1200; }
.ad-phone-btn2 { text-align: center; font-weight: 800; text-transform: uppercase; padding: 8px; border-radius: 10px; background: var(--s); margin-top: 6px; font-size: 11px; }

.ad-save-bar { position: sticky; bottom: 12px; z-index: 10; margin-bottom: 24px; }
.ad-save-bar .btn { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@media (max-width: 1199.98px) {
  .ad-preview-wrap { position: static; }
  .ad-phone { width: 280px; }
}
.ad-timeline { list-style: none; margin: 0; padding: 12px 20px; }
.ad-timeline li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--ad-border); font-size: .9rem; }
.ad-timeline li:last-child { border-bottom: 0; }
.ad-timeline i { font-size: 1.1rem; margin-top: 2px; }
.ad-vlogo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #111; font-weight: 900; overflow: hidden; flex-shrink: 0; }
.ad-vlogo img { width: 100%; height: 100%; object-fit: contain; background: #0b1222; }
.ad-winner-img { position: relative; aspect-ratio: 4/3; background: #0b1222; display: grid; place-items: center; font-size: 2.4rem; color: var(--ad-primary); }
.ad-winner-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-winner-img .ad-pill { position: absolute; top: 8px; left: 8px; }

/* Login */
.ad-login-body { display: grid; place-items: center; padding: 20px; background: radial-gradient(600px 400px at 50% 0, rgba(245,179,1,.15), transparent 70%), var(--ad-bg); }
.ad-login { width: 100%; max-width: 420px; }
.ad-login-brand { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; text-align: center; letter-spacing: 3px; line-height: 1; background: linear-gradient(135deg, #fff3b0, #f5b301 45%, #b97800); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ad-toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; max-width: 360px; background: #111827; border: 1px solid rgba(var(--ad-primary-rgb), .5); border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: ad-in .4s ease; }
@keyframes ad-in { from { transform: translateY(20px); opacity: 0; } }

/* Aprobación rápida (pedidos por verificar) */
.ad-qcards { display: grid; gap: 14px; padding: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.ad-qcard { display: flex; flex-direction: column; background: #0d1424; border: 1px solid var(--ad-border); border-radius: 16px; overflow: hidden; transition: opacity .4s, transform .4s; }
.ad-qcard.is-done-ok { opacity: 0; transform: translateX(40px); border-color: #22c55e; }
.ad-qcard.is-done-bad { opacity: 0; transform: translateX(-40px); border-color: #ef4444; }
.ad-qproof { position: relative; display: block; width: 100%; height: 230px; padding: 0; border: 0; background: #05080f; cursor: zoom-in; }
.ad-qproof img { width: 100%; height: 100%; object-fit: contain; }
.ad-qproof span { position: absolute; right: 8px; bottom: 8px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.65); padding: 4px 10px; border-radius: 999px; }
.ad-qproof.is-empty { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--ad-muted); height: 90px; cursor: default; }
.ad-qproof.is-empty i { font-size: 1.6rem; }
.ad-qbody { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.ad-qtop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ad-qname { font-size: 1.05rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-qtime { font-size: .78rem; color: var(--ad-muted); white-space: nowrap; }
.ad-qamount { font-size: 1.9rem; font-weight: 900; line-height: 1.1; color: var(--ad-primary, #f5b301); }
.ad-qmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--ad-muted); min-width: 0; }
.ad-qwarn { font-size: .8rem; color: #fde68a; background: rgba(245,179,1,.1); border-radius: 10px; padding: 6px 10px; }
.ad-qactions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ad-qactions .btn { padding: 12px 8px; font-weight: 800; font-size: 1rem; border-radius: 12px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ad-qmore { align-self: center; font-size: .82rem; color: var(--ad-muted); text-decoration: none; padding: 4px; }
.ad-qmore:hover { color: #fff; }
.ad-qmodal { background: #111827; border: 1px solid var(--ad-border); border-radius: 20px; color: #e5e7eb; }
.ad-qmodal-icon { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.ad-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.94); display: flex; flex-direction: column; }
.ad-lightbox[hidden] { display: none; }
.ad-lightbox-scroll { flex: 1; overflow: auto; display: flex; -webkit-overflow-scrolling: touch; }
.ad-lightbox-scroll img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.ad-lightbox.is-zoom .ad-lightbox-scroll img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.ad-lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; }
.ad-lightbox-hint { text-align: center; color: #94a3b8; padding: 10px; font-size: .8rem; }
@media (max-width: 575px) {
  .ad-qcards { grid-template-columns: 1fr; padding: 10px; }
  .ad-qproof { height: 210px; }
  .ad-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* Ganadores de bendecidos */
.ad-ganadores { display: flex; flex-direction: column; gap: 10px; }
.ad-ganador { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #0d1424; border: 1px solid rgba(245,179,1,.45); }
.ad-ganador.is-entregado { border-color: rgba(34,197,94,.35); opacity: .85; }
.ad-ganador-num { text-align: center; }
.ad-ganador-num b { display: block; font-size: 1.35rem; letter-spacing: 1px; color: #f5b301; }
.ad-ganador.is-entregado .ad-ganador-num b { color: #86efac; }
.ad-ganador-num small { color: #e5e7eb; font-weight: 700; }
.ad-ganador-info { min-width: 0; }
.ad-ganador-info b { color: #fff; }
.ad-ganador-acc { display: flex; gap: 6px; align-items: center; }
@media (max-width: 575px) {
  .ad-ganador { grid-template-columns: 86px 1fr; }
  .ad-ganador-acc { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Gran bendecido (sale de último) */
.ad-blessed.is-gran { border-color: #ff6a00 !important; box-shadow: 0 0 0 2px rgba(255,106,0,.35), 0 0 22px rgba(255,106,0,.25); }
.ad-gran-tag { display: block; font-size: .68rem; font-weight: 800; color: #ffb27a; margin-bottom: 2px; }

/* Vista previa de la tarjeta de premios especiales */
.ad-esp-vista { width: 100%; min-height: 420px; border: 1px solid var(--ad-border); border-radius: 16px; background: #070b14; }
