/* Live Deals Radar Pro — Frontend Styles */
.ldr-wrap { --ldr-accent: #4f46e5; max-width: 100%; margin: 24px 0; box-sizing: border-box; }
.ldr-wrap *, .ldr-wrap *::before, .ldr-wrap *::after { box-sizing: border-box; }

.ldr-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ldr-title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.ldr-live-pill { display: inline-flex; align-items: center; gap: 6px; background: #fee2e2; color: #dc2626; font-weight: 700; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.03em; }
.ldr-pulse { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: ldr-pulse 1.4s infinite; }
@keyframes ldr-pulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.5);} 70% { box-shadow: 0 0 0 8px rgba(220,38,38,0);} 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0);} }

.ldr-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.ldr-toolbar input, .ldr-toolbar select { padding: 8px 12px; border: 1px solid #e2e2e2; border-radius: 8px; font-size: 0.9rem; background: #fff; }
.ldr-search-input { flex: 1 1 200px; min-width: 160px; }
.ldr-layout-switcher { display: flex; gap: 4px; margin-left: auto; }
.ldr-layout-btn { border: 1px solid #e2e2e2; background: #fff; border-radius: 6px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }
.ldr-layout-btn.active { background: var(--ldr-accent); color: #fff; border-color: var(--ldr-accent); }

.ldr-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ldr-grid.ldr-layout-dense { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ldr-grid.ldr-layout-list { grid-template-columns: 1fr; }
.ldr-grid.ldr-layout-list .ldr-card { flex-direction: row; align-items: stretch; }
.ldr-grid.ldr-layout-list .ldr-image-wrap { width: 180px; flex-shrink: 0; }
.ldr-empty { grid-column: 1 / -1; text-align: center; color: #888; padding: 40px 0; }

.ldr-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ldr-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }

.ldr-card-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 10px 0; }
.ldr-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ldr-store-pill { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.ldr-quick-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #ecfdf5; color: #059669; }
.ldr-hot-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff7ed; color: #ea580c; }
.ldr-discount-badge { background: #dc2626; color: #fff; font-weight: 800; font-size: 0.8rem; padding: 4px 9px; border-radius: 8px; }

.ldr-image-wrap { position: relative; aspect-ratio: 1 / 1; background: #fafafa; }
.ldr-image-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.ldr-image-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #bbb; font-weight: 700; }
.ldr-verified-badge { position: absolute; bottom: 8px; left: 8px; background: #059669; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

.ldr-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ldr-category-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .04em; color: #999; font-weight: 700; }
.ldr-title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; margin: 0; }
.ldr-title a { color: #111; text-decoration: none; }
.ldr-title a:hover { color: var(--ldr-accent); }
.ldr-reason, .ldr-bank-offer { font-size: 0.78rem; color: #555; }
.ldr-countdown { font-size: 0.78rem; font-weight: 700; color: #dc2626; background: #fef2f2; padding: 4px 8px; border-radius: 6px; display: inline-block; }

.ldr-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.ldr-price-stack { display: flex; align-items: baseline; gap: 8px; }
.ldr-current-price { font-size: 1.15rem; font-weight: 800; color: #111; }
.ldr-original-price { font-size: 0.85rem; color: #999; text-decoration: line-through; }
.ldr-savings-tag { font-size: 0.72rem; font-weight: 700; color: #059669; background: #ecfdf5; padding: 3px 8px; border-radius: 6px; }

.ldr-coupon-btn { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--ldr-accent); background: #f5f5ff; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 0.8rem; width: 100%; }
.ldr-coupon-code { font-weight: 800; letter-spacing: .04em; flex: 1; text-align: left; }
.ldr-copy-hint { font-size: 0.65rem; font-weight: 700; color: var(--ldr-accent); }
.ldr-coupon-btn.ldr-copied .ldr-copy-hint::after { content: ' ✓'; }

.ldr-btn-grab { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--ldr-accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 10px 14px; border-radius: 9px; margin-top: 2px; }
.ldr-btn-grab:hover { opacity: .9; color: #fff; }
.ldr-arrow { transition: transform .15s; }
.ldr-btn-grab:hover .ldr-arrow { transform: translateX(3px); }

.ldr-card-footer { display: flex; justify-content: space-between; font-size: 0.72rem; color: #999; margin-top: 2px; }

.ldr-ticker-wrap { display: flex; align-items: center; background: #111; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.ldr-ticker-badge { flex-shrink: 0; display: flex; align-items: center; gap: 6px; background: #dc2626; color: #fff; font-weight: 800; font-size: 0.72rem; padding: 10px 14px; }
.ldr-ticker-marquee { overflow: hidden; flex: 1; }
.ldr-ticker-track { display: flex; width: max-content; animation: ldr-scroll 40s linear infinite; }
.ldr-ticker-wrap:hover .ldr-ticker-track { animation-play-state: paused; }
@keyframes ldr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ldr-ticker-item { display: flex; align-items: center; gap: 8px; padding: 10px 20px; color: #fff; text-decoration: none; font-size: 0.82rem; white-space: nowrap; border-right: 1px solid #333; }
.ldr-ticker-store { font-weight: 700; color: #a5b4fc; }
.ldr-ticker-drop { font-weight: 800; color: #4ade80; }

.ldr-sentinel { text-align: center; padding: 20px 0; }
.ldr-loader { display: flex; align-items: center; justify-content: center; gap: 8px; color: #888; font-size: 0.85rem; }
.ldr-spinner { width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: var(--ldr-accent); border-radius: 50%; animation: ldr-spin 0.7s linear infinite; }
@keyframes ldr-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .ldr-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .ldr-title { font-size: 0.85rem; }
    .ldr-current-price { font-size: 1rem; }
}
