/* ── YaliExpress ── */
/* App "moderna" dentro del marco XP: fuerza su propia tipografía y fondo
   para que no herede la Tahoma / el beige del chrome del SO. */
.yali-shell {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #f5f5f5;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  overflow: hidden;
}

.yali-header {
  background: linear-gradient(135deg, #ff6000 0%, #e02020 100%);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.yali-logo {
  font-size: 18px; font-weight: 900; color: #fff;
  white-space: nowrap; letter-spacing: -0.5px;
}
.yali-logo span { color: #ffe066; }

.yali-search {
  flex: 1; display: flex; gap: 4px;
}
.yali-search input {
  flex: 1; padding: 5px 10px; border: none;
  border-radius: 3px 0 0 3px; font-size: 12px; outline: none;
}
.yali-search button {
  padding: 5px 10px; background: #ff9900; border: none;
  border-radius: 0 3px 3px 0; cursor: pointer; font-size: 13px;
}

.yali-header-right { display: flex; align-items: center; gap: 12px; }
.yali-cart-btn {
  background: #fff2; color: #fff; padding: 5px 12px;
  border-radius: 4px; cursor: pointer; font-size: 13px;
  border: 1px solid #fff4;
}
.yali-cart-btn:hover { background: #fff3; }
.yali-balance { color: #ffe066; font-size: 13px; font-weight: bold; white-space: nowrap; }

/* ── Nav ── */
.yali-nav {
  background: #cc2200; display: flex; gap: 2px;
  padding: 0 10px; flex-shrink: 0;
}
.yali-nav-item {
  padding: 7px 14px; color: #ffccaa; font-size: 12px;
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: all .15s;
}
.yali-nav-item:hover { color: #fff; background: #fff1; }
.yali-nav-item.active { color: #fff; border-bottom-color: #ffe066; font-weight: bold; }

/* ── Body ── */
.yali-body {
  flex: 1; overflow-y: auto; padding: 14px;
  background: #f0f0f0;
}

/* ── Banner ── */
.yali-banner {
  background: linear-gradient(135deg, #ff6000, #cc0000);
  border-radius: 6px; margin-bottom: 10px; overflow: hidden;
}
.yali-banner-inner {
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.yali-banner-text { color: #fff; font-size: 16px; font-weight: 900; }
.yali-banner-text span { font-size: 12px; font-weight: normal; opacity: .85; }
.yali-countdown { color: #ffe066; font-size: 13px; text-align: right; }

.yali-banners-row {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.yali-mini-banner {
  flex: 1; padding: 10px 12px; border-radius: 5px;
  color: #fff; font-size: 12px; font-weight: bold; text-align: center;
}
.yali-mini-banner small { font-weight: normal; opacity: .85; font-size: 10px; }

.yali-section-title {
  font-size: 15px; margin: 0 0 10px; color: #333;
}
.yali-disclaimer {
  font-size: 9px; color: #aaa; text-align: center; margin-top: 8px;
}

/* ── Grid ── */
.yali-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* ── Card ── */
.yali-card {
  background: #fff; border-radius: 6px;
  padding: 12px; position: relative;
  border: 1px solid #e0e0e0;
  display: flex; flex-direction: column; gap: 5px;
  transition: box-shadow .15s;
}
.yali-card:hover { box-shadow: 0 2px 10px #0002; }
.yali-card-locked { opacity: .6; pointer-events: none; }

/* Resaltado al llegar desde otra app (botón "Comprar" del Winamp) */
.yali-card-flash { animation: yali-flash 1.8s ease-out; }
@keyframes yali-flash {
  0%, 100% { box-shadow: 0 0 0 0 #ff6b0000; border-color: #e0e0e0; }
  15%      { box-shadow: 0 0 0 4px #ff6b0066; border-color: #ff6b00; }
  60%      { box-shadow: 0 0 0 4px #ff6b0033; border-color: #ff6b00; }
}

.yali-badge {
  position: absolute; top: 8px; right: 8px;
  background: #e02020; color: #fff; font-size: 9px;
  font-weight: bold; padding: 2px 6px; border-radius: 3px;
}
.yali-lock-overlay {
  position: absolute; inset: 0;
  background: #0006; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 11px; font-weight: bold;
  pointer-events: none;
}

.yali-card-icon   { font-size: 32px; text-align: center; }
.yali-card-name   { font-size: 13px; font-weight: bold; color: #222; }
.yali-card-seller { font-size: 10px; color: #888; }
.yali-card-desc   { font-size: 11px; color: #555; flex: 1; }
.yali-card-stars  { font-size: 11px; color: #f90; }
.yali-card-stars span { color: #888; font-size: 10px; }
.yali-card-type   { font-size: 10px; color: #0a0; font-weight: bold; }

.yali-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 4px;
}
.yali-card-price { font-size: 16px; font-weight: 900; color: #e02020; }

.yali-btn-add {
  background: #ff6000; color: #fff; border: none;
  padding: 5px 10px; border-radius: 4px; font-size: 11px;
  cursor: pointer; font-weight: bold;
}
.yali-btn-add:hover { background: #e05000; }
.yali-btn-owned {
  background: #ccc; color: #888; border: none;
  padding: 5px 10px; border-radius: 4px; font-size: 11px;
  cursor: not-allowed;
}

/* ── Carrito ── */
.yali-cart { max-width: 600px; margin: 0 auto; }
.yali-cart h2 { color: #333; margin-bottom: 14px; }
.yali-empty { color: #888; text-align: center; padding: 20px; }

.yali-cart-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 10px 12px;
  border-radius: 5px; margin-bottom: 6px;
  border: 1px solid #e0e0e0;
}
.yali-cart-icon  { font-size: 20px; }
.yali-cart-rname { flex: 1; font-size: 13px; font-weight: bold; }
.yali-cart-rtype { font-size: 11px; color: #0a0; }
.yali-cart-rprice{ font-size: 14px; font-weight: bold; color: #e02020; }
.yali-cart-remove{
  background: none; border: none; color: #aaa;
  cursor: pointer; font-size: 14px; padding: 2px 6px;
}
.yali-cart-remove:hover { color: #e00; }

.yali-cart-total {
  text-align: right; font-size: 16px; margin: 12px 0 8px;
  color: #333;
}
.yali-cart-actions {
  display: flex; justify-content: flex-end; gap: 8px;
}
.yali-cart-actions button {
  padding: 8px 18px; border: none; border-radius: 4px;
  font-size: 13px; cursor: pointer; font-weight: bold;
}
.yali-cart-actions button:first-child {
  background: #eee; color: #555;
}
.yali-cart-actions button:last-child {
  background: #ff6000; color: #fff;
}
.yali-cart-actions button:last-child:hover { background: #e05000; }
.yali-cart-error {
  margin-top: 8px; padding: 8px 12px;
  background: #fee; color: #c00;
  border-radius: 4px; font-size: 12px;
}

/* ── Pedidos ── */
.yali-pedidos { display: flex; flex-direction: column; gap: 10px; }
.yali-pedido-card {
  background: #fff; border-radius: 6px;
  padding: 12px 14px; border: 1px solid #e0e0e0;
}
.yali-pedido-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.yali-pedido-icon { font-size: 22px; }
.yali-pedido-name { flex: 1; font-size: 13px; font-weight: bold; }
.yali-pedido-status {
  font-size: 11px; color: #e06000; font-weight: bold;
}
.yali-pedido-status.delivered { color: #0a0; }

.yali-progress-wrap {
  background: #eee; border-radius: 10px;
  height: 10px; overflow: hidden;
}
.yali-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6000, #e02020);
  border-radius: 10px;
  transition: width .5s ease;
}
.yali-progress-pct {
  text-align: right; font-size: 10px; color: #aaa; margin-top: 3px;
}

.yali-body::-webkit-scrollbar { width: 6px; }
.yali-body::-webkit-scrollbar-track { background: #eee; }
.yali-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }