/* =========================================
   Helping Love — Admin Panel Styles
   ========================================= */

:root {
    --navy: #00203F;
    --navy-light: #0a2d4f;
    --navy-dark: #001529;
    --mint: #36ECDE;
    --mint-hover: #2bdbc0;
    --mint-subtle: rgba(54, 236, 222, 0.1);
    --gray-bg: #f0f2f5;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --sidebar-width: 250px;
    --navbar-height: 56px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.3;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---- Top Navbar ---- */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.top-navbar-brand:hover {
    color: var(--mint);
}

.bg-mint {
    background-color: var(--mint) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.badge.bg-mint {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.6em;
    border-radius: 20px;
}

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--navy);
    flex-direction: column;
    padding-top: 1rem;
    z-index: 1040;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-sidebar {
    background: var(--navy) !important;
    width: var(--sidebar-width) !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link i,
.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: var(--navy);
    background: var(--mint);
    font-weight: 600;
}

.sidebar-link.active i,
.sidebar-link.active svg {
    stroke: var(--navy);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 0.85rem;
}

/* ---- Main Content ---- */
.main-content {
    margin-top: var(--navbar-height);
    padding: 1.75rem;
    min-height: calc(100vh - var(--navbar-height));
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* ---- Cards ---- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--navy);
    padding: 1rem 1.25rem;
}

/* ---- Stat Cards ---- */
.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 3px solid var(--mint);
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mint-subtle);
    color: var(--navy);
}

.stat-card .stat-icon i,
.stat-card .stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-top: 0.75rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ---- Section Card (Form sections) ---- */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.section-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-card-title i,
.section-card-title svg {
    width: 18px;
    height: 18px;
    color: var(--mint);
    stroke: var(--mint);
}

.section-card-subtitle {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ---- Buttons ---- */
.btn-mint {
    background-color: var(--mint);
    color: var(--navy) !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-mint:hover {
    background-color: var(--mint-hover);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(54, 236, 222, 0.35);
}

.btn-mint:active {
    transform: translateY(0);
}

/* Keep old class for backward compat */
.btn-neon-mint {
    background-color: var(--mint);
    color: var(--navy) !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-neon-mint:hover {
    background-color: var(--mint-hover);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(54, 236, 222, 0.35);
}

.btn-outline-navy {
    color: var(--navy);
    border: 1.5px solid var(--navy);
    background: transparent;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

.btn-outline-mint {
    color: var(--navy);
    border: 1.5px solid var(--mint);
    background: transparent;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-mint:hover {
    background: var(--mint-subtle);
}

/* ---- Forms ---- */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 0.2rem rgba(54, 236, 222, 0.2);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.input-group-text {
    background: var(--gray-100);
    border: 1.5px solid var(--gray-300);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ---- Drop Zone ---- */
.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-100);
    position: relative;
}

.drop-zone:hover {
    border-color: var(--mint);
    background: var(--mint-subtle);
}

.drop-zone.dragover {
    border-color: var(--mint);
    background: var(--mint-subtle);
    box-shadow: 0 0 0 3px rgba(54, 236, 222, 0.15);
}

.drop-zone-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.drop-zone:hover .drop-zone-icon,
.drop-zone.dragover .drop-zone-icon {
    color: var(--mint);
}

.drop-zone-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.drop-zone-text strong {
    color: var(--navy);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* ---- Cover Preview ---- */
.cover-preview {
    position: relative;
    display: inline-block;
    margin-top: 0.75rem;
}

.cover-preview img {
    max-height: 250px;
    max-width: 100%;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 2px solid var(--gray-200);
}

.cover-preview .remove-cover {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cover-preview .remove-cover:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cover-preview .remove-cover i,
.cover-preview .remove-cover svg {
    width: 14px;
    height: 14px;
}

/* ---- Gallery Thumbnails ---- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gallery-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb .remove-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    font-size: 12px;
    line-height: 1;
}

.gallery-thumb:hover .remove-thumb {
    opacity: 1;
}

/* ---- Variant Image Groups ---- */
.variant-image-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .variant-image-groups {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .variant-image-groups {
        grid-template-columns: 1fr;
    }
}

.variant-img-group {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.variant-group-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    margin-bottom: 0.5rem !important;
}

.variant-group-label i,
.variant-group-label svg {
    color: var(--mint);
    stroke: var(--mint);
}

.variant-group-label .variant-badge {
    margin-left: auto;
}

.variant-group-drop {
    padding: 1rem !important;
}

.variant-group-drop .drop-zone-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0.25rem;
}

.variant-group-drop .drop-zone-text {
    font-size: 0.8rem;
}

/* ---- Accordion Variants ---- */
.variant-accordion .accordion-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.variant-accordion .accordion-header {
    position: relative;
}

.variant-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    box-shadow: none;
}

.variant-accordion .accordion-button:not(.collapsed) {
    background: var(--navy);
    color: #fff;
}

.variant-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.variant-accordion .accordion-body {
    padding: 1rem;
}

.variant-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.variant-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2em 0.55em;
    border-radius: 10px;
    background: var(--mint-subtle);
    color: var(--navy);
}

.accordion-button:not(.collapsed) .variant-badge {
    background: rgba(54, 236, 222, 0.2);
    color: var(--mint);
}

.btn-remove-variant {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    z-index: 5;
}

.btn-remove-variant:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-remove-variant i,
.btn-remove-variant svg {
    width: 16px;
    height: 16px;
}

/* ---- Product Cards (listing) ---- */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--gray-100);
}

.product-card-body {
    padding: 1rem;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 0.15em 0.5em;
    border-radius: 6px;
    display: inline-block;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.product-card-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ---- Table ---- */
.table-clean {
    font-size: 0.875rem;
}

.table-clean thead th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gray-200);
    padding: 0.75rem;
}

.table-clean tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-100);
}

.table-clean tbody tr:hover {
    background: var(--gray-100);
}

/* ---- Toast ---- */
.toast-success {
    background: #059669 !important;
    color: #fff !important;
}

.toast-success .toast-body {
    color: #fff;
}

.toast-error {
    background: #dc2626 !important;
    color: #fff !important;
}

.toast-error .toast-body {
    color: #fff;
}

/* ---- Utilities ---- */
.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

.text-highlight {
    color: var(--navy);
    font-weight: bold;
}

.badge-variant {
    background-color: var(--navy);
    color: #fff;
    padding: 0.4em 0.75em;
    border-radius: 20px;
    font-size: 0.8em;
}

.required-star {
    color: #ef4444;
    margin-left: 2px;
}

.info-required-star {
    color: #059669;
    margin-left: 2px;
    font-weight: 700;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}

/* ---- Sticky Actions ---- */
.sticky-actions {
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem -1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

/* ---- Loading Spinner ---- */
.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ---- Import Section ---- */
.import-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: var(--gray-100);
    transition: var(--transition);
}

.import-zone:hover {
    border-color: var(--mint);
    background: var(--mint-subtle);
}

/* ---- Product List Table ---- */
.product-list-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--gray-200);
}

.product-list-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Product Status Checks ---- */
.product-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ready-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ready-indicator i,
.ready-indicator svg {
    width: 20px;
    height: 20px;
    color: #059669;
    filter: drop-shadow(0 0 3px rgba(5, 150, 105, 0.3));
}

.status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-check i,
.status-check svg {
    width: 20px;
    height: 20px;
}

.status-ok i,
.status-ok svg {
    color: #059669;
}

.status-pending i,
.status-pending svg {
    color: var(--gray-400);
}

/* Ready row highlight */
.product-row-ready {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.04) 0%, rgba(54, 236, 222, 0.06) 100%) !important;
}

.product-row-ready td {
    border-bottom-color: rgba(5, 150, 105, 0.12) !important;
}

.table-clean tbody tr.product-row-ready:hover {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.08) 0%, rgba(54, 236, 222, 0.10) 100%) !important;
}

/* ---- Action Buttons ---- */
.btn-action-edit {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    background: var(--card-bg);
    color: var(--navy);
    transition: var(--transition);
}

.btn-action-edit:hover {
    background: var(--mint-subtle);
    border-color: var(--mint);
    color: var(--navy);
}

.btn-action-delete {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    background: var(--card-bg);
    color: var(--gray-600);
    transition: var(--transition);
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    color: #ef4444;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 991.98px) {
    .main-content {
        padding: 1.25rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .section-card {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 1rem;
    }

    .drop-zone {
        padding: 1.25rem;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }
}

/* ---- Sidebar Toggle Button ---- */
.sidebar-toggle {
    border: none;
    background: none;
}

.sidebar-toggle:focus {
    box-shadow: none;
}

.sidebar-toggle i,
.sidebar-toggle svg {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke: #fff;
}

/* ---- Category Filter Bar ---- */
.category-filter-bar {
    display: flex;
    align-items: center;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.filter-label i,
.filter-label svg {
    width: 14px;
    height: 14px;
}

.btn-filter {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3em 0.75em;
    border-radius: 20px;
    border: 1.5px solid var(--gray-300);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.btn-filter:hover {
    border-color: var(--mint);
    color: var(--navy);
    background: var(--mint-subtle);
}

.btn-filter.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ---- Reviews Section ---- */
.review-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.review-section-title i,
.review-section-title svg {
    color: var(--mint);
    stroke: var(--mint);
}

.review-counter {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2em 0.55em;
    border-radius: 10px;
    background: var(--mint-subtle);
    color: var(--navy);
    margin-left: auto;
}

/* Review Drop Zone */
.review-drop-zone {
    padding: 1.5rem;
}

/* ---- Review Images Grid (120px thumbnails — 50% bigger) ---- */
.review-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
    min-height: 40px;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.review-images-grid.drag-over-grid {
    background: var(--mint-subtle);
    outline: 2px dashed var(--mint);
    outline-offset: -2px;
}

.review-images-grid:empty {
    min-height: 0;
    padding: 0;
}

.review-img-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
    cursor: grab;
    transition: var(--transition);
}

.review-img-thumb:hover {
    border-color: var(--mint);
    box-shadow: 0 2px 8px rgba(54, 236, 222, 0.2);
}

.review-img-thumb.dragging {
    opacity: 0.5;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(54, 236, 222, 0.3);
}

.review-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.review-img-thumb .btn-remove-review-img {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    font-size: 13px;
    line-height: 1;
}

.review-img-thumb:hover .btn-remove-review-img {
    opacity: 1;
}

/* ---- Review Comment Slot ---- */
.review-comment-slot {
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.review-comment-slot:hover {
    border-color: var(--gray-300);
}

.review-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-slot-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--mint-subtle);
    padding: 0.15em 0.5em;
    border-radius: 6px;
}

.btn-remove-review-comment {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.btn-remove-review-comment:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-remove-review-comment i,
.btn-remove-review-comment svg {
    width: 14px;
    height: 14px;
}

.review-slot-body {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* ---- Review Drop Target (image slot in comment) ---- */
.review-slot-image.review-drop-target {
    width: 100px;
    min-width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--gray-300);
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.review-slot-image.review-drop-target[draggable="true"] {
    cursor: grab;
    border-style: solid;
    border-color: var(--mint);
}

.review-slot-image.review-drop-target.dragging {
    opacity: 0.5;
}

.review-slot-image.review-drop-target img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.review-slot-image.review-drop-target.drag-over {
    border-color: var(--mint);
    background: var(--mint-subtle);
    box-shadow: 0 0 0 3px rgba(54, 236, 222, 0.2);
}

.review-drop-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
    gap: 0.2rem;
}

.review-drop-placeholder.hidden {
    display: none;
}

.review-drop-placeholder i,
.review-drop-placeholder svg {
    width: 20px;
    height: 20px;
}

.review-drop-placeholder span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-slot-comment {
    flex: 1;
}

.review-slot-comment textarea {
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
}

/* ---- Video Upload Section ---- */
.video-upload-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .video-upload-groups {
        grid-template-columns: 1fr;
    }
}

.video-upload-group {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.video-drop-zone {
    padding: 1.5rem;
}

.video-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.video-preview-grid:empty {
    margin-top: 0;
}

.video-preview-item {
    position: relative;
    width: 160px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
    background: #000;
    transition: var(--transition);
}

.video-preview-item:hover {
    border-color: var(--mint);
    box-shadow: 0 2px 8px rgba(54, 236, 222, 0.2);
}

.video-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: var(--transition);
}

.video-preview-item:hover .video-preview-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.video-preview-overlay i,
.video-preview-overlay svg {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.85);
}

.video-preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-video,
.btn-remove-video-cover {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    font-size: 13px;
    line-height: 1;
    z-index: 5;
}

.video-preview-item:hover .btn-remove-video,
.video-preview-item:hover .btn-remove-video-cover {
    opacity: 1;
}

.video-cover-item {
    background: var(--gray-100);
}
