/* ===== ICON BOX ===== */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.icon-box--empty {
    background: var(--bg-input);
    color: var(--text-dim);
    font-size: .75rem;
    border: 1px dashed var(--border);
}

.icon-box--error {
    background: var(--bg-input);
    color: var(--accent);
    font-size: .85rem;
    border: 1px solid var(--accent);
}

.icon-preview-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: .75rem auto;
}

.icon-preview-lg .icon-box {
    width: 100px;
    height: 100px;
}

/* ===== PRICE CHIPS ===== */
.price-chips { display: flex; flex-wrap: wrap; gap: .25rem; }

.price-chip {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .1rem .4rem;
    background: rgba(255,255,255,.06);
    border-radius: var(--radius);
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.price-chip__currency { font-weight: 700; color: var(--text); }

/* ===== ITEM CHIPS ===== */
.item-chips { display: flex; flex-wrap: wrap; gap: .25rem; }

.item-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .45rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .72rem;
    color: var(--text);
}

/* ===== PRICE GRID ===== */
.price-grid-section {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: .75rem;
}

.price-grid-section h4 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-grid { display: flex; flex-direction: column; gap: .4rem; }

.price-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr 36px;
    gap: .4rem;
    align-items: center;
}

.price-row select,
.price-row input {
    padding: .35rem .5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .8rem;
    outline: none;
}

.price-row select:focus,
.price-row input:focus { border-color: var(--accent); }

.price-row .btn-remove-price {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: .2rem;
    line-height: 1;
}
.price-row .btn-remove-price:hover { color: #ff6b6b; }

/* ===== ITEM PICKER (Bundle modal) ===== */
.item-picker {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: .75rem;
}

.item-picker h4 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.item-picker__search {
    width: 100%;
    padding: .4rem .6rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .82rem;
    margin-bottom: .5rem;
    outline: none;
}
.item-picker__search:focus { border-color: var(--accent); }

.item-picker__list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
}

.item-picker__item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    cursor: pointer;
    transition: background .1s;
    font-size: .82rem;
}

.item-picker__item:hover { background: rgba(233,69,96,.08); }

.item-picker__item input[type="checkbox"] {
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ===== DRAG STYLES ===== */
.card.dragging { opacity: .4; }
.card.drag-over { border-color: var(--accent); box-shadow: 0 0 12px rgba(233,69,96,.3); }

.card__drag-handle {
    position: absolute;
    top: .5rem;
    right: .5rem;
    color: var(--text-dim);
    font-size: .9rem;
    cursor: grab;
}

/* ===== SECTION ENTRY ROW ===== */
.section-entry-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .3rem;
    cursor: grab;
    transition: background .15s;
}

.section-entry-row:hover { background: rgba(233,69,96,.04); }
.section-entry-row.dragging { opacity: .4; }
.section-entry-row.drag-over { background: rgba(233,69,96,.1); border-color: var(--accent); }

.section-entry-row__handle { color: var(--text-dim); cursor: grab; font-size: .85rem; flex-shrink: 0; }
.section-entry-row__name { flex: 1; font-size: .82rem; font-weight: 600; }

/* ===== ROTATION GROUPS ===== */
.rotations-groups { display: flex; flex-direction: column; gap: 1.5rem; }

.rotation-group {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rotation-group__header {
    padding: .6rem 1rem;
    background: rgba(0,0,0,.2);
    font-weight: 700;
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rotation-group__entries { display: flex; flex-direction: column; }

.rotation-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: grab;
    transition: background .15s;
}

.rotation-entry:last-child { border-bottom: none; }
.rotation-entry:hover { background: rgba(233,69,96,.04); }
.rotation-entry.dragging { opacity: .4; }
.rotation-entry.drag-over { background: rgba(233,69,96,.1); }

.rotation-entry__handle { color: var(--text-dim); cursor: grab; font-size: .85rem; flex-shrink: 0; }
.rotation-entry__name { flex: 1; font-size: .85rem; font-weight: 600; }
.rotation-entry__slot { font-size: .78rem; color: var(--text-muted); flex-shrink: 0; }
.rotation-entry__time { font-size: .75rem; color: var(--text-dim); flex-shrink: 0; min-width: 140px; }
.rotation-entry__actions { display: flex; gap: .3rem; flex-shrink: 0; }

/* ===== POOL ITEM ROW ===== */
.pool-item-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .3rem;
}

.pool-item-row__name { flex: 1; font-size: .82rem; font-weight: 600; }
.pool-item-row__cd { font-size: .75rem; }

/* ===== DURATION PICKER ===== */
.duration-picker {
    display: flex;
    gap: 4px;
    align-items: center;
}

.duration-picker input {
    width: 60px;
    padding: .35rem .5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .8rem;
    outline: none;
}

.duration-picker span {
    font-size: .8rem;
    color: var(--text-muted);
}
