/* Interactive panel preview on the homepage hero ("Panel" tab). Sample data only. */
#hero-card-panel.kdp-card { transform: none; min-height: 0; overflow: hidden; }
#hero-card-panel.kdp-card:hover { transform: none; }
.kdp { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 440px; font-size: 12px; color: var(--text-primary); text-align: left; }
.kdp * { box-sizing: border-box; }
.kdp-side { padding: 14px 10px; border-right: 1px solid var(--border-color); background: color-mix(in srgb, var(--card-bg) 70%, var(--bg-secondary)); display: flex; flex-direction: column; gap: 4px; }
.kdp-brand { font-weight: 800; font-size: 14px; padding: 2px 8px 12px; letter-spacing: -.02em; }
.kdp-brand b { color: var(--accent-color); }
.kdp-nav { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.kdp-nav svg { width: 15px; height: 15px; stroke: currentColor; flex: 0 0 15px; }
.kdp-nav.is-on { background: color-mix(in srgb, var(--accent-color) 14%, transparent); color: var(--accent-color); }
.kdp-main { padding: 14px 16px 16px; min-width: 0; }
.kdp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kdp-head h4 { margin: 0; font-size: 15px; font-weight: 800; }
.kdp-new { padding: 6px 12px; border-radius: 10px; background: var(--accent-color); color: #fff; font-weight: 700; font-size: 11px; border: 0; cursor: default; }
.kdp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kdp-stat { --tone: #6366f1; position: relative; text-align: left; padding: 9px 10px 9px 12px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; font: inherit; color: inherit; }
.kdp-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone); }
.kdp-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(2, 8, 23, .14); }
.kdp-stat.is-on { border-color: var(--tone); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 24%, transparent); }
.kdp-stat small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.kdp-stat strong { display: block; font-size: 20px; line-height: 1.15; font-weight: 800; }
.kdp-list { display: flex; flex-direction: column; gap: 6px; min-height: 196px; }
.kdp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--border-color); background: var(--card-bg); animation: kdpIn .28s ease both; }
.kdp-row.flash { animation: kdpFlash 1s ease both; }
.kdp-row b { display: block; font-size: 12px; }
.kdp-row span.sub { display: block; font-size: 10px; color: var(--text-muted); }
.kdp-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kdp-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.kdp-b-pending { background: rgba(245, 158, 11, .16); color: #d97706; }
.kdp-b-accepted { background: rgba(14, 165, 233, .16); color: #0284c7; }
.kdp-b-on_the_way { background: rgba(139, 92, 246, .16); color: #7c3aed; }
.kdp-b-completed { background: rgba(34, 197, 94, .16); color: #16a34a; }
.kdp-act { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--accent-color); background: transparent; color: var(--accent-color); font-weight: 700; font-size: 10px; cursor: pointer; white-space: nowrap; }
.kdp-act:hover { background: var(--accent-color); color: #fff; }
.kdp-act.is-hint { animation: kdpPulse 1.6s ease-in-out infinite; }
.kdp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; min-height: 22px; font-size: 10px; color: var(--text-muted); }
.kdp-toast { color: #16a34a; font-weight: 700; opacity: 0; transition: opacity .2s; }
.kdp-toast.show { opacity: 1; }
.kdp-reset { background: none; border: 0; color: var(--accent-color); font-weight: 700; font-size: 10px; cursor: pointer; padding: 0; }
@keyframes kdpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kdpFlash { 0% { background: color-mix(in srgb, #0ea5e9 24%, var(--card-bg)); } 100% { background: var(--card-bg); } }
@keyframes kdpPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@media (max-width: 640px) {
    .kdp { grid-template-columns: 1fr; }
    .kdp-side { display: none; }
    .kdp-row { grid-template-columns: minmax(0, 1fr) auto; }
    .kdp-row .kdp-price { display: none; }
    .kdp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .kdp-row, .kdp-act.is-hint { animation: none; } }

/* Hero floating pills: no overlap, no clipped text */
.premium-hero-pill { width: max-content; max-width: calc(100% - 2.5rem); padding-right: 1.25rem; }
.premium-hero-pill strong, .premium-hero-pill small { white-space: nowrap; letter-spacing: 0; overflow: visible; }
.hero-3d-card .premium-hero-pill--bottom-right { bottom: 5.25rem; }
.hero-float-badge--bottom-left { max-width: calc(100% - 30px); }
.hero-float-badge strong { white-space: normal; }
@media (max-width: 1023px) { .hero-3d-card .premium-hero-pill--bottom-right { bottom: 1.25rem; } }

/* The bottom badge sits under the card in normal flow. Floating over the tilted 3D card let the
   card's nearer edge paint over it and cut the text. */
.hero-float-badge--bottom-left {
    position: relative;
    bottom: auto;
    left: auto;
    width: fit-content;
    max-width: 100%;
    margin: 16px 0 0;
    animation: none;
}
