/* Reset & Variables */
:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --sidebar-bg: #111827;
    --sidebar-text: #d1d5db;
    --sidebar-active: #1f2937;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-bg: #fef2f2;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Login Page */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 22px;
    margin-top: 12px;
}

.login-header p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 245px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-lg {
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin: 0 auto;
}

.brand-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.brand-sub {
    font-size: 12px;
    color: #9ca3af;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-link.active {
    background: var(--primary);
    color: #fff;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #374151;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-meta {
    overflow: hidden;
}

.admin-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-email {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .btn-outline {
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-switcher select {
    width: auto;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.content-body {
    padding: 24px 28px;
    max-width: 1280px;
    width: 100%;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 6px 0 4px;
    line-height: 1.1;
}

.stat-note {
    font-size: 12px;
    color: var(--muted);
}

.text-success { color: var(--success); }
.text-primary { color: var(--primary); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.form-card {
    max-width: 860px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.card-header-wrap {
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 17px;
    font-weight: 700;
}

/* Date Filter & List */
.date-filter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.date-filter-form input[type="date"] {
    flex: 1;
    min-width: 140px;
}

.date-result {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

.date-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

/* Table */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 600;
    background: #f9fafb;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: #f3f4f6;
}

.thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.product-name {
    font-weight: 600;
    color: var(--text);
}

.desc-snippet {
    max-width: 260px;
    margin-top: 2px;
}

.strike {
    text-decoration: line-through;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-primary {
    background: #eef2ff;
    color: var(--primary);
}

.badge-muted {
    background: #f3f4f6;
    color: var(--muted);
}

/* Forms */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

textarea {
    resize: vertical;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    width: auto;
    min-width: 140px;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.current-image-box {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-preview {
    max-width: 180px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 6px;
}

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 500 !important;
    font-size: 13px;
    color: var(--danger) !important;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border-color: #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f3f4f6;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    background: #f3f4f6;
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-form {
    display: inline;
}

/* Alerts & Misc */
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-error {
    background: var(--danger-bg);
    color: #991b1b;
    border-color: #fecaca;
}

.error-list {
    margin-left: 18px;
}

.empty-state {
    text-align: center;
    padding: 36px 16px;
    color: var(--muted);
}

.empty-state p {
    margin-bottom: 14px;
}

.link {
    color: var(--primary);
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.alert-info {
    background: #eef2ff;
    color: #312e81;
    border-color: #c7d2fe;
}

/* Multi-Image Upload & Live Gallery */
.media-upload-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.media-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 20px 14px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-height: 108px;
}

.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--primary);
    background: #eef2ff;
}

.dropzone-icon {
    font-size: 24px;
    line-height: 1;
}

.dropzone-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sr-only-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Inline Slidable + Zoomable Preview */
.live-gallery-wrap {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.live-gallery-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.zoom-pill {
    display: inline-block;
    min-width: 48px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    background: #e5e7eb;
    padding: 3px 7px;
    border-radius: 6px;
}

.inline-slider {
    position: relative;
    width: 100%;
    height: 300px;
    background: #0f172a;
    overflow: hidden;
    user-select: none;
}

.inline-slider-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: none;
}

.inline-slider-stage.is-zoomed {
    cursor: grab;
}

.inline-slider-stage.is-dragging {
    cursor: grabbing;
}

.inline-slider-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.16s ease-out;
    will-change: transform;
    user-select: none;
}

.inline-slider-stage.is-dragging img {
    transition: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.slider-arrow:hover {
    background: rgba(79, 70, 229, 0.92);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    z-index: 4;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.preview-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.preview-thumb-item {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    flex-shrink: 0;
    cursor: pointer;
    background: #e5e7eb;
}

.preview-thumb-item.active {
    border-color: var(--primary);
}

.preview-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}

.existing-image-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.existing-image-thumb {
    width: 100%;
    height: 108px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.existing-image-controls {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.radio-primary-label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 600 !important;
    font-size: 12px;
    color: var(--primary) !important;
    cursor: pointer;
}

.radio-primary-label input {
    width: auto;
}

/* Clickable Product Thumbnails with Multi-Image Badge */
.thumb-gallery-btn {
    position: relative;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
    line-height: 0;
}

.thumb-gallery-btn .thumb {
    display: block;
    transition: transform 0.15s ease;
}

.thumb-gallery-btn:hover .thumb {
    transform: scale(1.06);
}

.thumb-count-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 5px;
    line-height: 1.1;
}

.clickable-gallery {
    cursor: zoom-in;
}

/* Fullscreen Slidable & Zoomable Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.94);
    display: none;
    flex-direction: column;
    color: #ffffff;
    user-select: none;
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
}

.lightbox-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lightbox-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.lightbox-counter {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 9px;
    border-radius: 999px;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lb-zoom-readout {
    min-width: 52px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.lightbox-stage-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: none;
}

.lightbox-stage.is-zoomed {
    cursor: grab;
}

.lightbox-stage.is-dragging {
    cursor: grabbing;
}

.lightbox-stage img {
    max-width: 90vw;
    max-height: 76vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.16s ease-out;
    will-change: transform;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-stage.is-dragging img {
    transition: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-thumb {
    width: 58px;
    height: 58px;
    border-radius: 7px;
    object-fit: cover;
    border: 2px solid transparent;
    opacity: 0.6;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.lightbox-thumb:hover {
    opacity: 0.9;
}

.lightbox-thumb.active {
    border-color: #818cf8;
    opacity: 1;
}

.lightbox-hint {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    padding: 4px 12px 8px;
    background: rgba(15, 23, 42, 0.9);
}

/* Bulk Upload Page */
.bulk-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bulk-tab-btn {
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bulk-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.bulk-tab-panel {
    display: none;
}

.bulk-tab-panel.active {
    display: block;
}

.quick-paste-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-paste-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-paste-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.bulk-rows-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bulk-row-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulk-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.inline-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bulk-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
    .form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .form-grid-4 {
        grid-template-columns: 1fr;
    }
    .inline-slider {
        height: 230px;
    }
    .lightbox-title {
        max-width: 180px;
    }
}

/* Responsive */
@media (max-width: 960px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 14px 16px;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 12px;
    }

    .admin-info {
        margin-bottom: 0;
    }

    .sidebar-footer .btn-block {
        width: auto;
    }

    .topbar,
    .content-body {
        padding: 16px;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}
