/* ==========================================================================
   1. DESIGN TOKENS - Color & Spacing Variables
   ========================================================================== 
   
   Purpose: Centralized design system with semantic status colors
   
   COLOR SYSTEM:
   - Brand: #61ce70 (primary green for buttons, links)
   - Text: black, white, muted gray
   - Background: white, light gray
   - Borders: default gray, darker gray
   - Status Colors (NEW):
     * Success: #2e9e3e (green - completed, active states)
     * Warning: #f59e0b (orange - pending, caution states)
     * Danger: #dc3545 (red - failed, error, delete states)
     * Info: #0ea5e9 (blue - processing, new, info states)
   
   Usage: var(--status-success), var(--status-warning), etc.
   Badge Backgrounds: var(--status-success-bg), var(--status-warning-bg), etc.
*/
:root {
    --font-family-base: 'Roboto', sans-serif;

    /* Brand Colors */
    --brand-color: #61ce70;
    /* Primary green color for buttons, links, accents */

    /* Text Colors */
    --text-black: #4b5563;
    /* Primary text color */
    --text-white: #ffffff;
    /* White text (for dark backgrounds) */
    --text-muted: #6b7280;
    /* Secondary/muted text */

    /* Background Colors */
    --bg-white: #ffffff;
    /* White background */
    --bg-gray: #f3f3f3;
    /* Light gray background */

    /* Border Colors */
    --border-default: #e8e8e8;
    /* Default border color */
    --border-dark: #90959c;
    /* Darker border for emphasis */

    /* Status Colors */
    --status-success: #2e9e3e;
    /* Success state (completed, active) */
    --status-warning: #f59e0b;
    /* Warning state (pending, caution) */
    --status-danger: #dc3545;
    /* Danger/error state (failed, deleted) */
    --status-info: #0ea5e9;
    /* Info state (processing, new) */

    --status-success-bg: #f0fdf4;
    /* Light background for success badges */
    --status-warning-bg: #fffbeb;
    /* Light background for warning badges */
    --status-danger-bg: #fef2f2;
    /* Light background for danger badges */
    --status-info-bg: #f0f9ff;
    /* Light background for info badges */

    /* Utility */
    --transparent: transparent;
    --shadow-overlay: rgba(0, 0, 0, 0.1);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Extra small shadow for subtle elevation */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    /* Small shadow for cards */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    /* Medium shadow for elevated cards */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    /* Large shadow for modals/popovers */
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    /* Extra large shadow for important elements */

    /* Border Radius */
    --radius-sm: 12px;
    /* Small radius for icons, small elements */
    --radius-md: 14px;
    /* Medium radius for cards */
    --radius-lg: 16px;
    /* Large radius for banners */
    --radius-pill: 999px;
    /* Pill shape for badges */

    /* Admin Interface Tokens */
    --admin-text-strong: #374151;
    --admin-text-subtle: #6b7280;
    --admin-text-faint: #9ca3af;

    --admin-surface-soft: #f8fafc;
    --admin-surface-hover: #f1f5f9;

    --admin-border: #ececec;

    --admin-shadow-soft: 0 1px 8px rgba(15, 23, 42, 0.04);
    --admin-shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.08);

    /* Dashboard-specific colors */
    --admin-stat-sales: #4f46e5;
    --admin-stat-orders: #f59e0b;
    --admin-stat-products: #6b7280;
    --admin-stat-customers: #3b82f6;

    --admin-chart-track: rgba(0, 0, 0, 0.07);
}

html,
body {
    font-family: var(--font-family-base);
    color: var(--text-black);
    font-weight: 400;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ==========================================================================
   2. UTILITY CLASSES - Reusable Helpers
   ========================================================================== 
   
   Purpose: Small, reusable classes for common styling needs
   Usage: Apply directly to elements or combine multiple classes
*/

/* Background Color Utilities */
.bg-brand {
    background-color: var(--brand-color) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-gray {
    background-color: var(--bg-gray) !important;
}

.bg-success {
    background-color: var(--status-success-bg) !important;
}

.bg-warning {
    background-color: var(--status-warning-bg) !important;
}

.bg-danger {
    background-color: var(--status-danger-bg) !important;
}

.bg-info {
    background-color: var(--status-info-bg) !important;
}

/* Text Color Utilities */
.text-brand {
    color: var(--brand-color) !important;
}

.text-black {
    color: var(--text-black) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--status-success) !important;
}

.text-warning {
    color: var(--status-warning) !important;
}

.text-danger {
    color: var(--status-danger) !important;
}

.text-info {
    color: var(--status-info) !important;
}

/* Border Utilities */
.border-default {
    border-color: var(--border-default) !important;
}

.border-dark {
    border-color: var(--border-dark) !important;
}

/* Border Radius Utilities */
.radius-sm {
    border-radius: var(--radius-sm);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.radius-pill {
    border-radius: var(--radius-pill);
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 1px 6px var(--shadow-overlay);
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.shadow-lg {
    box-shadow: 0 8px 24px var(--shadow-overlay);
}

/* ==========================================================================
   3. HEADER/NAVIGATION CSS
   ========================================================================== 
   
   Purpose: Styles for top navigation bar, logo, menu items
   Used in: layouts/app.blade.php
*/

/* Navbar Base Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Logo Icon */
.logo-icon {
    background: var(--brand-color);
    transition: transform 0.3s;
}

.logo-icon:hover {
    transform: scale(1.1);
}

/* Navigation Links */
.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-color);
}

.line-clamp-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-logo-image {
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.site-logo-mark {
    width: 40px;
    height: 40px;
}

.site-name-brand {
    color: var(--brand-color);
}

.site-search-input {
    width: 250px;
}

.site-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--brand-color);
}

.site-user-dropdown {
    min-width: 220px;
}

.site-footer {
    background: #1f1f1f;
}

.site-footer-pattern {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.site-footer-logo-image {
    max-height: 48px;
    max-width: 200px;
    object-fit: contain;
}

.site-footer-logo-mark {
    width: 48px;
    height: 48px;
    background: var(--brand-color);
}

.site-social-btn {
    width: 40px;
    height: 40px;
    padding: 0;
}

/* ==========================================================================
   4. SIDEBAR CSS - Admin Dashboard Sidebar
   ========================================================================== 
   
   Purpose: Left sidebar navigation for admin panel
   Used in: layouts/admin.blade.php
*/

/* Sidebar Container */
.dashsidebararea {
    position: fixed;
    top: 0;
    left: 0;
    width: 18%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 999;
    overflow-y: auto;
    scrollbar-width: none;
}

.dashsidebararea::-webkit-scrollbar {
    display: none;
}

/* Sidebar Logo Section */
.dashlogo {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-default);
}

/* Sidebar Menu Container */
.dashsidebar {
    padding: 20px 24px;
}

/* Sidebar Menu Item */
.dashtab {
    padding: 10px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: var(--text-black);
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: all 0.2s;
}

.dashtab:hover {
    background-color: var(--bg-gray);
    color: var(--text-black);
}

.dashtab.active {
    background-color: var(--brand-color);
    color: var(--text-white);
}

.dashtab i {
    padding: 0 18px;
    font-size: 20px;
}

/* Top Menu Bar (Admin) */
.topbar-dashboard {
    background: var(--bg-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-default);
}

/* Main Content Area (beside sidebar) */
.dash-content {
    width: 82%;
    margin-left: 18%;
}

/* ==========================================================================
   5. FOOTER CSS
   ========================================================================== 
   
   Purpose: Styles for website footer section
   Used in: layouts/app.blade.php
*/

/* Footer Container */
.footer-section {
    background: #1f1f1f;
    color: var(--text-white);
    position: relative;
}

/* Footer Links */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--brand-color);
}

/* Footer Social Icons */
.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.footer-social-icon:hover {
    background: var(--brand-color);
}

/* ==========================================================================
   6. BUTTON CSS
   ========================================================================== 
   
   Purpose: Reusable button styles throughout the application
   Usage: Apply .btn-brand, .btn-outline-brand classes
*/

/* Primary Brand Button */
.btn-brand,
.btn-main {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: var(--text-white);
    transition: opacity 0.2s ease;
}

.btn-brand:hover,
.btn-main:hover {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: var(--text-white);
    opacity: 0.9;
}

/* ==========================================================================
   REMAINING BLADE CSS MIGRATION UTILITIES
   ========================================================================== */

.is-hidden,
.jl-hidden {
    display: none !important;
}

.home-hero-section {
    background: var(--brand-color);
}

.home-hero-pattern {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.home-hero-content {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.home-copy-wide {
    max-width: 800px;
}

.home-copy-medium {
    max-width: 700px;
}

.home-category-image {
    height: 200px;
    object-fit: cover;
}

.home-category-placeholder {
    height: 200px;
    background: var(--brand-color);
}

.auth-shell {
    background-color: var(--bg-gray);
}

.auth-logo-mark {
    width: 40px;
    height: 40px;
}

.auth-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-title {
    color: var(--text-black);
}

.admin-section-title {
    color: var(--text-black);
}

.admin-page-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-page-intro,
.product-editor-page-header,
.vehicle-master-header {
    background: rgba(91, 201, 102, 0.08);
    border: 1px solid var(--admin-border-light);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: none;
}

.admin-section-card,
.vm-card,
.jl-table-card {
    background: var(--bg-white);
    border: 1px solid var(--admin-border-light);
    border-radius: 18px;
    box-shadow: none;
}

.admin-section-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 0;
}

.admin-section-card-title {
    margin: 0;
    color: var(--admin-text-strong);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.admin-section-card-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Leaner settings pages — hide decorative card subtitles, shrink field help */
.settings-lean .admin-section-card-subtitle { display: none; }
.settings-lean .admin-form-help { font-size: 0.72rem; margin-top: 1px; }

.admin-section-card-body {
    padding: 24px;
}

.admin-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-text-strong);
    margin-bottom: 8px;
}

.admin-form-help {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-button-block {
    width: 100%;
    justify-content: center;
}

.jl-spill-icon {
    font-size: 0.75rem;
}

.jl-title-static {
    max-width: none;
    cursor: default;
}

.jl-meta-caption {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.jl-meta-caption-sm {
    font-size: 0.75rem;
}

.jl-sort-select {
    width: auto;
    font-size: 0.85rem;
}

.jl-load-more-visible {
    display: block;
}

.jl-danger-text {
    color: var(--status-danger);
}

.jl-modal-btn-neutral {
    background: var(--bg-gray);
    color: var(--text-black);
}

.jl-modal-btn-danger {
    background: var(--status-danger);
    color: var(--text-white);
}

.settings-logo-preview {
    max-height: 100px;
}

.settings-favicon-preview {
    max-height: 50px;
}

.upload-zone-illustration {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-zone-title {
    color: var(--text-black);
    font-size: 14px;
    font-weight: 500;
}

.upload-zone-note {
    color: var(--text-muted);
    font-size: 13px;
}

.upload-info-icon {
    color: var(--brand-color);
}

.remove-file-icon {
    cursor: pointer;
    color: var(--status-danger);
}

.product-editor-page-header {
    margin-bottom: 32px;
}

.product-editor-page-header .page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-black);
    margin: 0 0 4px;
    line-height: 1.3;
}

.product-editor-page-header .page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.product-editor-form .card-modern {
    background: var(--bg-white);
    border: 1px solid var(--admin-border-light);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: none;
}

.product-editor-form .card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-black);
    margin: 0 0 20px;
}

/* Card header: title + helper subtitle + separating rule for clear scanability */
.product-editor-form .card-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--admin-border-light);
}

.product-editor-form .card-head .card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.product-editor-form .card-head .card-subtitle {
    margin: 4px 0 0;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-editor-form .section-separator {
    height: 1px;
    background-color: var(--border-default);
    margin: 24px 0;
}

.product-editor-form .form-group-modern {
    margin-bottom: 20px;
}

.product-editor-form .form-group-modern:last-child,
.product-editor-form .form-group-modern--flush {
    margin-bottom: 0;
}

.product-editor-form .vehicle-spec-grid {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.product-editor-form .vehicle-spec-col {
    flex: 0 0 20%;
    max-width: 20%;
}

.product-editor-form .label-modern {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-text-strong);
    margin-bottom: 8px;
}

.product-editor-form .required-dot {
    color: var(--status-danger);
    font-weight: 600;
}

.product-editor-form .input-modern,
.product-editor-form .select-modern,
.product-editor-form .textarea-modern {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-black);
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    outline: none;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .input-modern:focus,
.product-editor-form .select-modern:focus,
.product-editor-form .textarea-modern:focus {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .input-modern::placeholder,
.product-editor-form .textarea-modern::placeholder {
    color: var(--text-muted);
}

.product-editor-form .input-readonly {
    background-color: var(--bg-gray);
    cursor: not-allowed;
}

.product-editor-form .textarea-modern {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.product-editor-form .input-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 7px;
    line-height: 1.5;
}

.product-editor-form .input-group-price {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .input-group-price:focus-within {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .price-symbol {
    padding: 12px 14px;
    background-color: var(--bg-gray);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid var(--border-default);
}

.product-editor-form .input-price {
    border: none !important;
    flex: 1;
}

.product-editor-form .input-price:focus {
    border: none;
    outline: none;
}

.product-editor-form .dynamic-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.product-editor-form .dynamic-input-group:last-child {
    margin-bottom: 0;
}

.product-editor-form .dynamic-input-group .input-modern {
    flex: 1;
}

.product-editor-form .btn-add-modern,
.product-editor-form .btn-remove-modern {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .btn-add-modern {
    background-color: var(--brand-color);
    color: var(--text-white);
}

.product-editor-form .btn-add-modern:hover {
    background-color: var(--status-success);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .btn-remove-modern {
    background-color: var(--status-danger-bg);
    color: var(--status-danger);
}

.product-editor-form .btn-remove-modern:hover {
    background-color: var(--status-danger);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .tag-editor {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .tag-editor.is-invalid {
    border-color: var(--status-danger);
}

.product-editor-form .tag-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.product-editor-form .tag-editor-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-black);
}

.product-editor-form .tag-editor-subtitle,
.product-editor-form .tag-editor-footer,
.product-editor-form .tag-editor-example {
    font-size: 13px;
    color: var(--text-muted);
}

.product-editor-form .tag-editor-surface {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.product-editor-form .tag-editor-surface:focus-within {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .tag-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.product-editor-form .tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #f6f7f9;
    color: var(--text-black);
    font-size: 14px;
    line-height: 1;
}

.product-editor-form .tag-chip-remove {
    border: none;
    background: transparent;
    color: #8f98a8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.product-editor-form .tag-chip-remove:hover {
    color: var(--text-black);
}

.product-editor-form .tag-editor-input {
    flex: 1 1 220px;
    min-width: 180px;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-black);
    outline: none;
}

.product-editor-form .tag-clear-button {
    border: none;
    background: var(--brand-color);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .tag-clear-button:hover {
    background: var(--status-success);
}

.product-editor-form .tag-editor-footer {
    margin-top: 16px;
    font-weight: 500;
}

.product-editor-form .tag-editor-example {
    margin-top: 6px;
}

.product-editor-form .radio-group-modern,
.product-editor-form .checkbox-group-modern,
.product-editor-form .toggle-group-modern {
    display: flex;
    flex-direction: column;
}

.product-editor-form .radio-group-modern,
.product-editor-form .checkbox-group-modern {
    gap: 8px;
}

.product-editor-form .toggle-group-modern {
    gap: 16px;
}

.product-editor-form .radio-item-modern,
.product-editor-form .checkbox-item-modern {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--bg-white);
    box-shadow: var(--shadow-xs);
}

.product-editor-form .radio-item-modern:hover,
.product-editor-form .checkbox-item-modern:hover {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .radio-item-modern input[type="radio"],
.product-editor-form .checkbox-item-modern input[type="checkbox"] {
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: var(--brand-color);
    width: 18px;
    height: 18px;
}

.product-editor-form .radio-item-modern:has(input:checked),
.product-editor-form .checkbox-item-modern:has(input:checked) {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
}

.product-editor-form .radio-label,
.product-editor-form .checkbox-label,
.product-editor-form .toggle-label {
    font-size: 14px;
    color: var(--text-black);
    font-weight: 500;
}

.product-editor-form .addon-price {
    color: var(--text-muted);
    font-weight: 400;
}

.product-editor-form .toggle-item-modern {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.product-editor-form .toggle-item-modern input[type="checkbox"] {
    display: none;
}

.product-editor-form .toggle-slider {
    width: 48px;
    height: 26px;
    background-color: var(--border-dark);
    border-radius: var(--radius-pill);
    position: relative;
    margin-right: 12px;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--text-white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    box-shadow: var(--shadow-sm);
}

.product-editor-form .toggle-item-modern input:checked+.toggle-slider {
    background-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .toggle-item-modern input:checked+.toggle-slider::after {
    left: 25px;
}

.product-editor-form .btn-primary-modern,
.product-editor-form .btn-secondary-outline,
.product-editor-form .btn-danger-outline,
.product-editor-form .btn-secondary-custom,
.product-editor-page-header .btn-secondary-custom,
.admin-page-intro .btn-secondary-custom {
    text-decoration: none;
}

.product-editor-form .btn-primary-modern {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--brand-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.product-editor-form .btn-primary-modern:hover {
    background-color: var(--status-success);
    box-shadow: var(--shadow-md);
}

.product-editor-form .btn-secondary-custom {
    padding: 10px 18px;
    background-color: var(--bg-white);
    color: var(--text-black);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.product-editor-page-header .btn-secondary-custom,
.admin-page-intro .btn-secondary-custom {
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.84);
    color: var(--admin-text-strong);
    border: 1px solid var(--admin-border-soft);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.product-editor-form .btn-secondary-custom:hover,
.product-editor-form .btn-secondary-outline:hover,
.product-editor-page-header .btn-secondary-custom:hover,
.admin-page-intro .btn-secondary-custom:hover {
    background-color: var(--bg-gray);
    color: var(--text-black);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.product-editor-form .btn-secondary-outline {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--bg-white);
    color: var(--text-black);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: block;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .upload-zone {
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-md);
    text-align: center;
    background-color: var(--bg-white);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.product-editor-form--create .upload-zone {
    padding: 40px 20px;
}

.product-editor-form--edit .upload-zone {
    padding: 28px 16px;
}

.product-editor-form .upload-zone:hover {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.product-editor-form .upload-zone.drag-over {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
    border-style: solid;
}

.product-editor-form .upload-zone-content {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-editor-form .upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-editor-form .upload-info-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xs);
}

.product-editor-form .file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xs);
    margin: 4px;
}

.product-editor-form .file-item i {
    color: var(--text-muted);
}

.product-editor-form .file-item .remove-file {
    cursor: pointer;
    color: var(--status-danger);
    margin-left: 8px;
}

.product-editor-form .file-item .remove-file:hover {
    color: var(--text-black);
}

.product-editor-form .gallery-preview {
    display: grid;
    gap: 16px;
}

.product-editor-form--create .gallery-preview {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    margin-top: 20px;
}

.product-editor-form--edit .gallery-preview {
    grid-template-columns: repeat(auto-fill, 130px);
    gap: 12px;
}

.product-editor-form .gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
}

.product-editor-form--create .gallery-item {
    border: 2px solid var(--border-default);
    cursor: move;
    box-shadow: var(--shadow-sm);
}

.product-editor-form--create .gallery-item:hover {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-md);
}

.product-editor-form--create .gallery-item.dragging {
    opacity: 0.4;
    border-color: var(--text-muted);
}

.product-editor-form--create .gallery-item.drag-over {
    border-color: var(--brand-color);
    border-style: solid;
    border-width: 3px;
}

.product-editor-form .gallery-item img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-editor-form--create .gallery-item img {
    height: 160px;
}

.product-editor-form--edit .current-gallery-item {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
}

.product-editor-form--edit .current-gallery-item img {
    height: 120px;
}

.product-editor-form .gallery-item .image-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-color);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    width: fit-content;
}

.product-editor-form .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-editor-form--create .remove-image {
    background: var(--text-white);
    color: var(--status-danger);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-default);
    box-shadow: var(--shadow-sm);
}

.product-editor-form--create .remove-image:hover {
    background: var(--status-danger);
    color: var(--text-white);
    border-color: var(--status-danger);
    box-shadow: var(--shadow-md);
}

/* Per-image SEO button (top-right of each gallery tile, left of the × button) */
.product-editor-form .img-seo-btn {
    position: absolute;
    top: 8px;
    right: 48px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: var(--text-white, #fff);
    color: var(--text-muted, #6b7280);
    border: 2px solid var(--border-default, #e5e7eb);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all .15s;
}

.product-editor-form .img-seo-btn:hover {
    color: var(--brand-color, #16a34a);
    border-color: var(--brand-color, #16a34a);
    box-shadow: var(--shadow-md);
}

.product-editor-form .img-seo-btn.has-seo {
    background: var(--brand-color, #16a34a);
    color: #fff;
    border-color: var(--brand-color, #16a34a);
}

.product-editor-form--edit .img-seo-btn {
    width: 28px;
    height: 28px;
    right: 44px;
    border-width: 1px;
}

/* On the edit main-image tile there is no × button, so tuck SEO into the corner. */
.product-editor-form--edit .current-gallery-item.is-main .img-seo-btn {
    right: 8px;
}

/* ── Image SEO modal ─────────────────────────────────────────── */
#imageSeoModal .modal-dialog {
    max-width: 480px;
}

#imageSeoModal .ism-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.25);
}

#imageSeoModal .ism-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-default, #eef0f3);
}

#imageSeoModal .ism-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

#imageSeoModal .ism-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.12);
    color: var(--brand-color, #16a34a);
    font-size: 15px;
}

#imageSeoModal .ism-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

#imageSeoModal .ism-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#imageSeoModal .ism-body {
    padding: 20px;
}

#imageSeoModal .ism-filerow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 12px;
}

#imageSeoModal .ism-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

#imageSeoModal .ism-filemeta {
    min-width: 0;
}

#imageSeoModal .ism-filename {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

#imageSeoModal .ism-filehint {
    margin-top: 2px;
    font-size: 11.5px;
    color: #94a3b8;
}

#imageSeoModal .ism-field {
    margin-bottom: 16px;
}

#imageSeoModal .ism-field:last-child {
    margin-bottom: 0;
}

#imageSeoModal .ism-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

#imageSeoModal .ism-opt {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

#imageSeoModal .ism-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#imageSeoModal .ism-input::placeholder {
    color: #b6c0cd;
}

#imageSeoModal .ism-input:focus {
    outline: none;
    border-color: var(--brand-color, #16a34a);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

#imageSeoModal .ism-textarea {
    min-height: 64px;
    resize: vertical;
}

#imageSeoModal .ism-help {
    margin-top: 6px;
    font-size: 11.5px;
    color: #94a3b8;
}

#imageSeoModal .ism-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #fbfcfd;
    border-top: 1px solid var(--border-default, #eef0f3);
}

#imageSeoModal .ism-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

#imageSeoModal .ism-btn-cancel {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

#imageSeoModal .ism-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

#imageSeoModal .ism-btn-save {
    background: var(--brand-color, #16a34a);
    color: #fff;
}

#imageSeoModal .ism-btn-save:hover {
    background: var(--brand-color-dark, #15803d);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

/* AI button inside the SEO modal (pushed to the left of the footer) */
#imageSeoModal .ism-btn-ai {
    margin-right: auto;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #2563eb);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

#imageSeoModal .ism-btn-ai:hover {
    filter: brightness(1.06);
}

#imageSeoModal .ism-btn-ai:disabled {
    opacity: 0.7;
    cursor: default;
}

#imageSeoModal .ism-btn-ai.is-loading i {
    animation: aiSpin 0.8s linear infinite;
}

#imageSeoModal .ism-ai-status {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

#imageSeoModal .ism-ai-status--info {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}

#imageSeoModal .ism-ai-status--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

#imageSeoModal .ism-ai-status--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

/* ── AI "Generate with AI" button + status (product forms) ────── */
.card-head--with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ai-magic-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #2563eb);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s;
}

.ai-magic-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.36);
}

.ai-magic-btn:active {
    transform: translateY(1px);
}

.ai-magic-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.ai-magic-btn i {
    font-size: 15px;
}

.ai-magic-btn.is-loading i {
    animation: aiSpin 0.8s linear infinite;
}

@keyframes aiSpin {
    to {
        transform: rotate(360deg);
    }
}

.ai-gen-status {
    margin: 4px 0 14px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.4;
}

.ai-gen-status--info {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}

.ai-gen-status--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

.ai-gen-status--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

/* AI settings — provider section headings + on/off switch */
.ai-provider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ai-provider-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.ai-provider-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: auto;
    padding-left: 2.6em;
}

.ai-provider-switch .form-check-input {
    width: 2.1em;
    height: 1.1em;
    margin-left: -2.6em;
    cursor: pointer;
}

.ai-provider-switch .form-check-input:checked {
    background-color: var(--brand-color, #16a34a);
    border-color: var(--brand-color, #16a34a);
}

.ai-provider-switch .form-check-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    cursor: pointer;
}

.ai-provider-switch .form-check-input:checked ~ .form-check-label {
    color: var(--brand-color, #16a34a);
}

/* ── Order "Origin" badges (attribution) ─────────────────────── */
.jl-origin {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 20px;
    white-space: nowrap;
}

.jl-origin-empty {
    color: #cbd5e1;
}

.jl-origin--direct {
    background: #f1f5f9;
    color: #475569;
}

.jl-origin--organic {
    background: #ecfdf5;
    color: #047857;
}

.jl-origin--social {
    background: #eff6ff;
    color: #1d4ed8;
}

.jl-origin--referral {
    background: #f5f3ff;
    color: #6d28d9;
}

.jl-origin--paid {
    background: #fffbeb;
    color: #b45309;
}

.jl-origin--email {
    background: #f0fdfa;
    color: #0f766e;
}

.jl-origin--ai {
    background: #eef2ff;
    color: #4338ca;
}

/* Invalid field highlight for client-side product validation */
.product-editor-form input.is-invalid,
.product-editor-form select.is-invalid,
.product-editor-form textarea.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.product-editor-form--edit .remove-image {
    background: #fff;
    color: #b42318;
    width: 28px;
    height: 28px;
    border: 1px solid #fecaca;
    border-radius: 50%;
}

.product-editor-form .drag-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-white);
    color: var(--text-muted);
    padding: 8px;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid var(--border-default);
    font-weight: 500;
}

.product-editor-form .submission-progress {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
}

.product-editor-form .submission-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-black);
}

.product-editor-form .submission-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--bg-gray);
    overflow: hidden;
    border: 1px solid var(--border-default);
}

.product-editor-form .submission-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-color);
}

.product-editor-form .submission-progress-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.product-editor-form--create .submission-warning {
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
}

.product-editor-form--create .submission-warning-title {
    font-size: 13px;
    font-weight: 700;
    color: #8a5a00;
    margin-bottom: 4px;
}

.product-editor-form--create .submission-warning-text {
    font-size: 12px;
    color: #6b5a32;
    line-height: 1.5;
}

.product-editor-form--create .submission-warning.is-danger {
    background: #fff1f1;
    border-color: #ffc7c7;
}

.product-editor-form--create .submission-warning.is-danger .submission-warning-title {
    color: #9b1c1c;
}

.product-editor-form--create .submission-warning.is-danger .submission-warning-text {
    color: #7a1f1f;
}

.product-editor-form--edit .submission-warning {
    background: #eef6ff;
    border: 1px solid #c9dffb;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.product-editor-form--edit .submission-warning-title {
    font-size: 13px;
    font-weight: 700;
    color: #1557a0;
    margin-bottom: 4px;
}

.product-editor-form--edit .submission-warning-text {
    font-size: 12px;
    color: #2a527f;
    line-height: 1.5;
}

.product-editor-form--edit .current-main-image {
    max-width: 220px;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
}

.product-editor-form--edit .empty-media {
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px;
    text-align: center;
}

.product-editor-form--edit .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.product-editor-form--edit .stat-item {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    padding: 10px;
}

.product-editor-form--edit .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.product-editor-form--edit .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
}

.product-editor-form--edit .btn-danger-outline {
    width: 100%;
    padding: 14px 20px;
    background-color: #fff1f1;
    color: #b42318;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.product-view-page {
    color: var(--text-black);
}

.product-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.product-breadcrumb .breadcrumb-item {
    font-size: 14px;
}

.product-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-color);
}

.product-breadcrumb .breadcrumb-item.active {
    color: var(--text-black);
}

/* ==========================================================================
   USER EDITOR FORM STYLES
   ========================================================================== */

/* Button Styles */
.user-editor-form .btn-primary-modern,
.user-editor-form .btn-secondary-outline,
.user-editor-form .btn-danger-outline {
    text-decoration: none;
}

.user-editor-form .btn-primary-modern {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--brand-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.user-editor-form .btn-primary-modern:hover {
    background-color: var(--status-success);
    box-shadow: var(--shadow-md);
}

.user-editor-form .btn-secondary-outline {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--bg-white);
    color: var(--text-black);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: block;
    box-shadow: var(--shadow-xs);
}

.user-editor-form .btn-secondary-outline:hover {
    background-color: var(--bg-gray);
    color: var(--text-black);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.user-editor-form .btn-danger-outline {
    width: 100%;
    padding: 14px 20px;
    background-color: #fff1f1;
    color: #b42318;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.user-editor-form .btn-danger-outline:hover {
    background-color: #fee2e2;
    border-color: #f87171;
}

/* Statistics Grid */
.user-editor-form .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.user-editor-form .stat-item {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    padding: 12px;
}

.user-editor-form .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.user-editor-form .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-black);
}

/* Warning Messages */
.user-editor-form .submission-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.user-editor-form .submission-warning-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.user-editor-form .submission-warning-text {
    font-size: 13px;
    color: #78350f;
    line-height: 1.4;
}

/* Form Groups and Inputs */
.user-editor-form .form-group-modern {
    margin-bottom: 20px;
}

.user-editor-form .form-group-modern:last-child,
.user-editor-form .form-group-modern--flush {
    margin-bottom: 0;
}

.user-editor-form .label-modern {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-text-strong);
    margin-bottom: 8px;
}

.user-editor-form .required-dot {
    color: var(--status-danger);
    font-weight: 600;
}

.user-editor-form .input-modern,
.user-editor-form .select-modern,
.user-editor-form .textarea-modern {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-black);
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    outline: none;
    box-shadow: var(--shadow-xs);
}

.user-editor-form .input-modern:focus,
.user-editor-form .select-modern:focus,
.user-editor-form .textarea-modern:focus {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

/* Card Styles */
.user-editor-form .card-modern {
    background: var(--bg-white);
    border: 1px solid var(--admin-border-light);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: none;
}

.user-editor-form .card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-black);
    margin: 0 0 20px;
}

.user-editor-form .section-separator {
    height: 1px;
    background-color: var(--border-default);
    margin: 24px 0;
}

/* Radio Card Styles */
.user-editor-form .radio-card {
    position: relative;
    margin-bottom: 10px;
}

.user-editor-form .radio-card-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.user-editor-form .radio-card-label {
    display: block;
    padding: 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-editor-form .radio-card-label:hover {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
}

.user-editor-form .radio-card-input:checked+.radio-card-label {
    border-color: var(--brand-color);
    background-color: rgba(0, 150, 136, 0.05);
}

.user-editor-form .radio-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-editor-form .radio-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-black);
}

.user-editor-form .radio-card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 0 0;
}

/* ==========================================================================
   PAGE EDITOR FORM STYLES
   ========================================================================== */

/* Button Styles */
.page-editor-form .btn-primary-modern,
.page-editor-form .btn-secondary-outline,
.page-editor-form .btn-danger-outline {
    text-decoration: none;
}

.page-editor-form .btn-primary-modern {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--brand-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.page-editor-form .btn-primary-modern:hover {
    background-color: var(--status-success);
    box-shadow: var(--shadow-md);
}

.page-editor-form .btn-secondary-outline {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--bg-white);
    color: var(--text-black);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-xs);
}

.page-editor-form .btn-secondary-outline:hover {
    background-color: var(--bg-gray);
    color: var(--text-black);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.page-editor-form .btn-danger-outline {
    width: 100%;
    padding: 14px 20px;
    background-color: #fff1f1;
    color: #b42318;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.page-editor-form .btn-danger-outline:hover {
    background-color: #fee2e2;
    border-color: #f87171;
}

/* Statistics Grid */
.page-editor-form .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-editor-form .stat-item {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    padding: 12px;
}

.page-editor-form .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.page-editor-form .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-black);
}

/* Form Groups and Inputs */
.page-editor-form .form-group-modern {
    margin-bottom: 20px;
}

.page-editor-form .form-group-modern:last-child,
.page-editor-form .form-group-modern--flush {
    margin-bottom: 0;
}

.page-editor-form .label-modern {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-text-strong);
    margin-bottom: 8px;
}

.page-editor-form .required-dot {
    color: var(--status-danger);
    font-weight: 600;
}

.page-editor-form .input-modern,
.page-editor-form .select-modern,
.page-editor-form .textarea-modern {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-black);
    background-color: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    outline: none;
    box-shadow: var(--shadow-xs);
}

.page-editor-form .input-modern:focus,
.page-editor-form .select-modern:focus,
.page-editor-form .textarea-modern:focus {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

.page-editor-form .input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Card Styles */
.page-editor-form .card-modern {
    background: var(--bg-white);
    border: 1px solid var(--admin-border-light);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: none;
}

.page-editor-form .card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-black);
    margin: 0 0 20px;
}

.page-editor-form .section-separator {
    height: 1px;
    background-color: var(--border-default);
    margin: 24px 0;
}

/* Radio Card Styles */
.page-editor-form .radio-card {
    position: relative;
    margin-bottom: 10px;
}

.page-editor-form .radio-card-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.page-editor-form .radio-card-label {
    display: block;
    padding: 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-editor-form .radio-card-label:hover {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
}

.page-editor-form .radio-card-input:checked+.radio-card-label {
    border-color: var(--brand-color);
    background-color: rgba(0, 150, 136, 0.05);
}

.page-editor-form .radio-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-editor-form .radio-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-black);
}

.page-editor-form .radio-card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 0 0;
}

/* Upload Zone */
.page-editor-form .upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.page-editor-form .upload-zone:hover {
    border-color: var(--brand-color);
    background-color: var(--bg-gray);
}

.page-editor-form .upload-zone-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-black);
    margin-bottom: 4px;
}





.media-shell {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.media-stage {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-gray);
    border: none;
}

.media-stage img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.image-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.image-badge i {
    font-size: 14px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.thumb-btn {
    position: relative;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
}

.thumb-btn img {
    width: 100%;
    height: 62px;
    object-fit: cover;
    display: block;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 150, 136, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.thumb-overlay i {
    color: white;
    font-size: 24px;
}

.thumb-btn.is-active,
.thumb-btn.active {
    box-shadow: 0 0 0 2px var(--brand-color);
}

.thumb-btn.is-active .thumb-overlay,
.thumb-btn.active .thumb-overlay {
    opacity: 1;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    backdrop-filter: none;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carousel-control-icon i {
    font-size: 18px;
    color: white;
}

/* Image Zoom Button */
.image-zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
}

.image-zoom-btn i {
    font-size: 16px;
}

.product-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    position: sticky;
    top: 16px;
}

.pnl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-meta-badges {
    display: flex;
    gap: 8px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: var(--bg-gray);
    border-radius: var(--radius-pill);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-badge i {
    font-size: 13px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    color: var(--status-success);
    background: var(--status-success-bg);
}

.product-title {
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--text-black);
}

.product-price-box {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-default);
}

.product-price {
    color: var(--brand-color);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 2px;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Vehicle Specifications */
.vehicle-specs-box {
    margin-bottom: 14px;
    padding: 0 0 14px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.specs-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding-bottom: 0;
    border-bottom: none;
}

.specs-title i {
    color: var(--brand-color);
    font-size: 13px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
}

.spec-value {
    font-size: 12px;
    color: var(--text-black);
    font-weight: 600;
    text-align: right;
}

.product-features-box {
    margin-bottom: 14px;
    padding: 0 0 14px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.features-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding-bottom: 0;
    border-bottom: none;
}

.features-title i {
    color: var(--brand-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item {
    font-size: 13px;
    color: var(--text-black);
    line-height: 1.5;
    padding-left: 10px;
    border-left: 2px solid var(--brand-color);
}

.feature-content {
    flex: 1;
    width: 100%;
}

.feature-description {
    font-size: 13px;
    color: var(--text-black);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.product-description-box {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.description-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-default);
}

.description-title i {
    color: var(--brand-color);
}

.description-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
}

.addon-block {
    margin-bottom: 12px;
    padding: 12px 0 0 0;
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.addon-header {
    display: none;
}

.addon-block h3 {
    display: none;
}

.addon-count {
    display: none;
}

.addon-list {
    display: grid;
    gap: 10px;
}

.addon-item {
    position: relative;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: white;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
}

.addon-check {
    position: relative;
    flex-shrink: 0;
}

.addon-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-default);
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
}

.checkmark i {
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.addon-checkbox:checked~.checkmark {
    background: var(--brand-color);
    border-color: var(--brand-color);
}

.addon-checkbox:checked~.checkmark i {
    opacity: 1;
}

.addon-content {
    flex: 1;
}

.addon-name {
    font-weight: 500;
    color: var(--text-black);
}

.addon-price {
    color: var(--brand-color);
    font-size: 15px;
    font-weight: 700;
}

.product-info-box {
    background: var(--bg-gray);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid var(--border-default);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand-color) 0%, #00b89f 100%);
    border-radius: var(--radius-sm);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.3);
}

.info-icon i {
    font-size: 18px;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value {
    display: block;
    font-size: 14px;
    color: var(--text-black);
    font-weight: 600;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px 20px;
    background: var(--brand-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-add-to-cart:active {
    background: #00b89f;
}

.related-wrap {
    border-top: 1px solid var(--border-default);
    padding-top: 28px;
    margin-top: 32px;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    display: flex;
    align-items: center;
}

.related-link {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.related-card {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    overflow: hidden;
    box-shadow: none;
}

.related-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.related-image-link img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 150, 136, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.image-overlay i {
    color: white;
    font-size: 32px;
}

.related-body {
    padding: 12px;
}

.related-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    background: var(--status-info-bg);
    color: var(--status-info);
    margin-bottom: 10px;
}

.related-name {
    display: block;
    color: var(--text-black);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    min-height: 36px;
    font-size: 13px;
    margin-bottom: 8px;
}

.related-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-default);
}

.related-price {
    color: var(--brand-color);
    font-size: 18px;
    font-weight: 700;
}

.btn-mini-cart {
    width: 36px;
    height: 36px;
    border: 2px solid var(--brand-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--brand-color);
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-mini-cart:hover {
    background: var(--brand-color);
    color: white;
    transform: scale(1.1);
}

.product-tabs-section {
    border-top: 1px solid var(--border-default);
    padding-top: 24px;
    margin-top: 24px;
}

.product-tabs {
    border-bottom: 1px solid var(--border-default);
    gap: 0;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.product-tabs .nav-item {
    margin-bottom: -1px;
}

.product-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

.product-tabs .nav-link:hover {
    color: var(--text-black);
    background: transparent;
}

.product-tabs .nav-link.active {
    color: var(--brand-color);
    border-bottom-color: var(--brand-color);
    background: transparent;
}

.product-tab-content {
    background: transparent;
    border: none;
}

.tab-pane-content {
    padding: 20px 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
}

.reviews-empty-state {
    text-align: center;
    padding: 32px 20px;
}

.reviews-empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

.reviews-empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 6px;
}

.reviews-empty-state p {
    color: var(--text-muted);
    margin: 0;
}

.vehicle-master-header {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.vehicle-master-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-black);
    line-height: 1.2;
}

.vehicle-master-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.vehicle-master-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-gray);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-black);
    font-weight: 600;
}

.vm-chip i {
    color: var(--brand-color);
}

.vm-card {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.vm-card-body {
    padding: 18px;
}

.vm-card-body.vm-compact {
    padding: 14px;
}

.vm-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.vm-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.vm-card-head.compact {
    align-items: center;
    margin-bottom: 10px;
}

.vm-step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-color);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
    margin-top: 1px;
}

.vm-card-title {
    margin: 0;
    font-size: 20px;
    color: var(--text-black);
    font-weight: 700;
    line-height: 1.1;
}

.vm-list-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 10px;
}

.vm-card-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.vm-input {
    border-color: var(--border-default);
    box-shadow: var(--shadow-xs);
}

.vm-input:focus {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-sm);
}

.vm-add-form {
    display: flex;
    flex-direction: column;
    height: calc(100% - 44px);
    gap: 8px;
}

.vm-add-fields {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vm-add-form .vm-btn-brand {
    margin-top: auto;
}

.vm-btn-brand {
    background: var(--brand-color);
    color: var(--text-white);
    border: 1px solid var(--brand-color);
    font-weight: 600;
}

.vm-btn-brand:hover {
    background: var(--status-success);
    border-color: var(--status-success);
    color: var(--text-white);
}

.vm-btn-danger {
    border-color: var(--status-danger);
    color: var(--status-danger);
    background: transparent;
}

.vm-btn-danger:hover {
    color: var(--text-white);
    background: var(--status-danger);
    border-color: var(--status-danger);
}

.vm-table-wrap {
    border: 1px solid var(--border-default);
    border-radius: 10px;
}

.vm-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-default);
    padding: 10px 12px;
}

.vm-table tbody td {
    padding: 10px 12px;
}

.vm-table td,
.vm-table th {
    white-space: nowrap;
}

.vm-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border-default);
    background: var(--bg-white);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    box-shadow: var(--shadow-xs);
}

.vm-action-btn:hover {
    border-color: var(--border-dark);
    color: var(--text-black);
    background: var(--bg-gray);
}

.vm-action-btn--danger {
    color: var(--status-danger);
    border-color: #f6c5cb;
    background: #fff;
}

.vm-action-btn--danger:hover {
    color: var(--text-white);
    background: var(--status-danger);
    border-color: var(--status-danger);
}

.admin-order-layout {
    align-items: flex-start;
}

.admin-order-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-order-card {
    background: var(--bg-white);
    border: 1px solid var(--admin-border-light);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: none;
}

.admin-order-card-title {
    margin: 0 0 18px;
    color: var(--admin-text-strong);
    font-size: 1rem;
    font-weight: 700;
}

.admin-order-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--admin-border-soft);
}

.admin-order-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.admin-order-product-thumb,
.admin-order-product-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    flex-shrink: 0;
}

.admin-order-product-thumb {
    object-fit: cover;
    border: 1px solid var(--admin-border-soft);
}

.admin-order-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-surface-soft);
    color: var(--text-muted);
    border: 1px solid var(--admin-border-soft);
}

.admin-order-product-placeholder i {
    font-size: 1.6rem;
}

.admin-order-link {
    color: var(--brand-color);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-order-link:hover {
    color: var(--status-success);
}

.admin-order-addon-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.admin-order-summary {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-border);
}

.admin-order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.admin-order-summary-row:last-child {
    margin-bottom: 0;
}

.admin-order-summary-row--total {
    color: var(--admin-text-strong);
    font-size: 1.02rem;
    font-weight: 700;
}

.admin-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-detail-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.admin-detail-label {
    color: var(--text-muted);
}

.admin-detail-value {
    color: var(--admin-text-strong);
    font-weight: 600;
    text-align: right;
}

.admin-status-select {
    min-height: 48px;
    border-color: var(--admin-border);
    border-radius: 12px;
    box-shadow: none;
}

.admin-status-select:focus {
    border-color: rgba(91, 201, 102, 0.28);
    box-shadow: 0 0 0 4px rgba(91, 201, 102, 0.12);
}

.admin-note-warning {
    color: #c57b00;
    font-size: 0.86rem;
    font-weight: 600;
}

.admin-muted-panel {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--admin-border-soft);
    background: var(--admin-surface-soft);
}

.admin-media-preview {
    max-height: 128px;
    width: auto;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .product-panel {
        padding: 20px;
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .thumb-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    }

    .admin-page-intro,
    .product-editor-page-header,
    .vehicle-master-header,
    .admin-order-card,
    .admin-section-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-section-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .product-editor-form .vehicle-spec-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .vehicle-master-title {
        font-size: 26px;
    }
}

@media (max-width: 767.98px) {
    .product-panel {
        padding: 16px;
    }

    .product-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-price-box {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .media-shell {
        padding: 12px;
    }

    .vehicle-specs-box {
        padding: 0 0 12px;
        margin-bottom: 16px;
    }

    .specs-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .spec-label,
    .spec-value {
        font-size: 12px;
    }

    .product-features-box {
        padding: 0 0 12px;
        margin-bottom: 16px;
    }

    .features-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .product-info-box {
        padding: 10px;
    }

    .info-row {
        padding: 8px 0;
    }

    .info-icon {
        width: 36px;
        height: 36px;
    }

    .info-icon i {
        font-size: 14px;
    }

    .thumb-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .addon-block {
        padding: 12px 0 0 0;
    }

    .addon-item {
        padding: 10px 12px;
    }

    .btn-add-to-cart {
        padding: 12px 16px;
        font-size: 15px;
    }

    .related-title {
        font-size: 20px;
    }

    .product-tabs .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tab-pane-content {
        padding: 20px;
        font-size: 14px;
    }

    .reviews-empty-state {
        padding: 32px 16px;
    }

    .reviews-empty-state i {
        font-size: 48px;
    }

    .reviews-empty-state h4 {
        font-size: 18px;
    }

    .admin-form-actions {
        justify-content: stretch;
    }

    .admin-form-actions>* {
        width: 100%;
    }

    .admin-order-item {
        flex-direction: column;
    }

    .admin-detail-list-item {
        flex-direction: column;
        gap: 4px;
    }

    .admin-detail-value {
        text-align: left;
    }

    .product-editor-form .vehicle-spec-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Outline Brand Button */
.btn-outline-brand {
    background-color: transparent;
    border: 2px solid var(--brand-color);
    color: var(--brand-color);
    transition: all 0.2s ease;
}

.btn-outline-brand:hover {
    background-color: var(--brand-color);
    color: var(--text-white);
}

/* ==========================================================================
   7. FORM CSS
   ========================================================================== 
   
   Purpose: Form inputs, labels, validation styles
   Used in: Login, register, profile, checkout forms
*/

/* Form Group */
.form-group {
    margin-bottom: 1rem;
}

/* Form Label */
.form-label {
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 0.5rem;
}

/* Form Input */
.form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.2rem rgba(97, 206, 112, 0.25);
}

/* Form Validation */
.is-invalid {
    border-color: var(--text-muted);
}

.is-valid {
    border-color: var(--brand-color);
}

/* Input Group with Icon */
.input-group-text {
    background-color: var(--bg-gray);
    border-color: var(--border-default);
}

/* ==========================================================================
   8. CARD/COMPONENT CSS
   ========================================================================== 
   
   Purpose: Reusable card components, panels, containers
   Usage: Product cards, info cards, content sections
*/

/* Base Card */
.card-base {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 1px 6px var(--shadow-overlay);
}

/* Card with Hover Effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-overlay);
}

/* Icon Box Container */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--bg-gray);
    color: var(--brand-color);
}

/* Typography Helpers */
.label-sm {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.value-lg {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-black);
}

/* Badge Pill */
.badge-pill {
    background: var(--bg-gray);
    color: var(--text-muted);
    font-size: .75rem;
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    font-weight: 600;
}

/* ==========================================================================
   9. DASHBOARD COMPONENTS
   ========================================================================== 
   
   Purpose: Admin & customer dashboard specific components
   Used in: admin/dashboard.blade.php, dashboard/index.blade.php
*/

/* Welcome/Banner Card */
.banner-card {
    background: var(--brand-color);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    padding: 28px 32px;
    margin-bottom: 28px;
}

.banner-card h4 {
    font-weight: 700;
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.banner-card p {
    margin: 0;
    opacity: .8;
    font-size: .9rem;
}

/* Statistics Card */
.stat-card {
    border-radius: var(--radius-md);
    border: none;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-white);
    box-shadow: 0 1px 6px var(--shadow-overlay);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

/* Panel Card (for tables, lists) */
.panel-card {
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-white);
    box-shadow: 0 1px 6px var(--shadow-overlay);
    overflow: hidden;
    height: 100%;
}

/* Panel Header */
.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-black);
}

.panel-header i {
    margin-right: 8px;
    color: var(--brand-color);
}

/* User Dropdown (Admin sidebar) */
.modern-user-dropdown {
    position: relative;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.875rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
}

/* Dropdown Menu */
.modern-dropdown-menu {
    min-width: 280px;
    padding: 0;
    margin-top: 0.75rem !important;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.dropdown-header-section {
    padding: 1.25rem 1rem;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-default);
}

.modern-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--text-black);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.modern-dropdown-item:hover {
    background: var(--bg-gray);
    color: var(--brand-color);
}

/* Logout Button */
.modern-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--brand-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(97, 206, 112, 0.2);
    border: none;
    transition: opacity 0.2s ease;
}

.modern-logout-btn:hover {
    background: var(--brand-color);
    opacity: 0.9;
    color: var(--text-white);
}

/* ==========================================================================
   10. ORDER PAGE CSS
   ========================================================================== 
   
   Purpose: Order listing, order details, order status
   Used in: orders/index.blade.php, orders/show.blade.php
*/

/* Order Card */
.order-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 6px var(--shadow-overlay);
    transition: all 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

/* Order Number */
.order-number {
    font-weight: 700;
    color: var(--text-black);
    font-size: 0.875rem;
}

/* Order Status Badge */
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #d1ecf1;
    color: #0c5460;
}

/* Order Total */
.order-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-color);
}

/* Order Item Row */
.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-default);
}

.order-item:last-child {
    border-bottom: none;
}

/* Order Item Image */
.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Order Item Details */
.order-item-name {
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 4px;
}

.order-item-price {
    color: var(--brand-color);
    font-weight: 600;
}

/* ==========================================================================
   11. PRODUCT PAGE CSS
   ========================================================================== 
   
   Purpose: Product listing, product cards, product details
   Used in: products/index.blade.php, products/show.blade.php, partials/product-card.blade.php
*/

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 6px var(--shadow-overlay);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-overlay);
}

/* Product Image */
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover {
    transform: scale(1.1);
}

/* Product Category Badge */
.product-category-badge {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--brand-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Title */
.product-title {
    font-weight: 700;
    color: var(--text-black);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Product Price */
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-color);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(97, 206, 112, 0.3);
}

/* ==========================================================================
   12. AUTHENTICATION PAGE CSS
   ========================================================================== 
   
   Purpose: Login and registration page minimalist styles
   Used in: auth/login.blade.php, auth/register.blade.php
*/

/* Form Check (Checkbox styling) */
.form-check-input:checked {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.form-check-input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.2rem rgba(97, 206, 112, 0.25);
}

/* ==========================================================================
   13. PRODUCT LIST PAGE CSS - Modern Table Design
   ========================================================================== 
   
   Purpose: Product list page with stats, filters, and modern table
   Used in: admin/products/index.blade.php, categories/index, orders/index
   
   REUSABLE CLASSES (Laravel-friendly):
   - Stat Icons:
     .stat-icon-brand (brand green), .stat-icon-success (darker green),
     .stat-icon-warning (orange), .stat-icon-danger (red),
     .stat-icon-info (blue), .stat-icon-muted (gray)
   
   - Status Badges:
     .status-badge-success (completed, active - green),
     .status-badge-warning (pending - orange),
     .status-badge-danger (failed, error - red),
     .status-badge-info (processing, new - blue),
     .status-badge-brand (brand green), .status-badge-muted (gray)
   
   - Filter Pills:
     .filter-pill (use .active for active state)
   
   - Action Buttons:
     .jl-action-btn--view (info blue - view/preview),
     .jl-action-btn--edit (warning orange - edit/modify),
     .jl-action-btn--delete (danger red - delete/remove)
   
   All colors use root variables: --brand-color, --status-success, --status-warning,
   --status-danger, --status-info, --text-muted, --bg-white, --bg-gray,
   --border-default, --border-dark
*/

/* ---- Stat Cards ---- */
.jl-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.jl-stat-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.jl-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Stat icon variants - using only root color variables */
.stat-icon-brand {
    background: var(--bg-gray);
    color: var(--brand-color);
}

.stat-icon-muted {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.stat-icon-success {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.stat-icon-warning {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.stat-icon-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.stat-icon-info {
    background: var(--status-info-bg);
    color: var(--status-info);
}

/* Legacy stat icon classes for backward compatibility */
.jl-stat-icon--total,
.jl-stat-icon--active,
.jl-stat-icon--done {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.jl-stat-icon--featured,
.jl-stat-icon--sales {
    background: var(--bg-gray);
    color: var(--brand-color);
}

.jl-stat-icon--new {
    background: var(--status-info-bg);
    color: var(--status-info);
}

.jl-stat-icon--archived {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.jl-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-black);
    line-height: 1;
}

.jl-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ---- Table Card ---- */
.jl-table-card {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 1.4rem 1.4rem 0.5rem;
    overflow: hidden;
}

/* ---- Toolbar ---- */
.jl-toolbar {
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 1rem;
}

.jl-toolbar-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.jl-sf-wrap {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.jl-sf-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.jl-sf-input {
    width: 100%;
    padding: 0.62rem 2.4rem 0.62rem 2.6rem;
    border: 1.5px solid var(--border-default);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg-gray);
    color: var(--text-black);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.jl-sf-input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(97, 206, 112, 0.15);
    background: var(--bg-white);
}

.jl-sf-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border-default);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.jl-sf-clear:hover {
    background: var(--text-muted);
    color: var(--bg-white);
}

.jl-count-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-gray);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Status filter pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--border-default);
    background: var(--bg-white);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.filter-pill:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: var(--bg-gray);
}

.filter-pill.active {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: var(--bg-gray);
    font-weight: 600;
}

.filter-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-color);
    flex-shrink: 0;
    display: inline-block;
}

/* Legacy filter pill classes */
.jl-spills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jl-spill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--border-default);
    background: var(--bg-white);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.jl-spill:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: var(--bg-gray);
}

.jl-spill--active {
    border-color: var(--brand-color) !important;
    color: var(--brand-color) !important;
    background: var(--bg-gray) !important;
    font-weight: 600;
}

.jl-spill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-color);
    flex-shrink: 0;
    display: inline-block;
}

/* ---- Table ---- */
.jl-table {
    font-size: 0.875rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.jl-table thead tr th {
    background: var(--bg-gray);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-default);
    white-space: nowrap;
}

.jl-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-default);
    color: var(--text-black);
}

.jl-row:last-child td {
    border-bottom: none;
}

.jl-row {
    transition: background 0.15s;
}

.jl-row:hover td {
    background: var(--bg-gray);
}

/* ID cell */
.jl-id-cell {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    width: 48px;
}

/* Avatar */
.jl-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-color);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Product thumbnail */
.jl-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.jl-product-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.jl-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.jl-product-titlerow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

/* Title link */
.jl-title-link {
    font-weight: 500;
    color: var(--text-black);
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    text-decoration: none;
    transition: color 0.15s;
}

.jl-title-link:hover {
    color: var(--brand-color);
}

/* Featured micro badge */
.jl-featured-micro {
    color: var(--brand-color);
    font-size: 0.7rem;
}

/* SKU chip under product title */
.jl-sku {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted, #6b7280);
    background: var(--bg-gray, #f3f4f6);
    padding: 1px 6px;
    border-radius: 5px;
}

/* Category badge */
.jl-category-badge {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--brand-color);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Price and sales */
.jl-price {
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.jl-sales {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Ellipsis cells */
.jl-ellipsis {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Status Badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge-brand {
    background: var(--bg-gray);
    color: var(--brand-color);
}

.status-badge-muted {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.status-badge-success {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.status-badge-warning {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.status-badge-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.status-badge-info {
    background: var(--status-info-bg);
    color: var(--status-info);
}

/* Legacy badge classes */
.jl-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.jl-badge--active,
.jl-badge--completed {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.jl-badge--new {
    background: var(--status-info-bg);
    color: var(--status-info);
}

.jl-badge--inactive,
.jl-badge--archived {
    background: var(--bg-gray);
    color: var(--text-muted);
}

/* ---- Action Buttons ---- */
.jl-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* ========================================================================== 
   ADMIN LAYOUT SHELL
   ========================================================================== */

.admin-root {
    --admin-sidebar-width: 340px;
    --admin-topbar-height: 72px;
}

.admin-root * {
    box-sizing: border-box;
}

.admin-body {
    overflow-x: hidden;
    background-color: var(--bg-gray);
    color: var(--admin-text-strong);
}

.admin-link-reset {
    color: inherit;
}

.large-container {
    width: 100%;
    max-width: 100%;
}

.topbar-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--admin-topbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--admin-border-soft);
    box-shadow: var(--admin-shadow-soft);
    z-index: 1040;
}

.topbar-dashboard .large-container {
    height: 100%;
}

.topbar-dashboard nav {
    height: 100%;
    padding: 0 24px 0 calc(var(--admin-sidebar-width) + 18px);
}

.topbar-spacer {
    width: 1px;
    height: 100%;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--admin-surface-soft);
    border: 1px solid var(--admin-border-light);
    color: var(--text-muted);
    text-decoration: none;
}

.topbar-icon-btn:hover {
    background: var(--admin-surface-hover);
    color: var(--admin-text-strong);
}

.dashsidebararea {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    background: var(--bg-white);
    z-index: 1050;
    overflow-y: auto;
    scrollbar-width: none;
    border-right: 1px solid var(--admin-border);
}

.dashsidebararea::-webkit-scrollbar {
    display: none;
}

.dashlogo {
    display: flex;
    align-items: center;
    min-height: var(--admin-topbar-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--admin-border);
}

.dashlogo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: 100%;
    color: inherit;
}

.dashlogo img {
    max-width: 138px;
    max-height: 42px;
    object-fit: contain;
}

.dashlogo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-color);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--admin-shadow-brand-md);
}

.dashlogo-text strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--admin-text-strong);
}

.dashlogo-text span {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-text-caption);
}

.dashsidebar {
    padding: 14px 16px 24px;
}

.sidebar-section {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--admin-border);
}

.sidebar-section:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.sidebar-section-title {
    padding: 8px 14px 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-text-caption);
}

.dashtab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    color: var(--admin-text-strong);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dashtab i {
    width: 20px;
    text-align: center;
    color: inherit;
}

.dashtab:hover {
    background: var(--admin-surface-soft);
    color: var(--admin-text-strong);
    transform: translateX(2px);
}

.dashtab.active {
    background: var(--brand-color);
    color: var(--text-white);
    box-shadow: var(--admin-shadow-brand-active);
}

/* Collapsible sidebar submenu */
.dashtab-parent .dashtab-caret {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.dashtab-parent[aria-expanded="true"] .dashtab-caret {
    transform: rotate(180deg);
}

.dashsubmenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: -4px 0 8px 26px;
    padding-left: 12px;
    border-left: 1px solid var(--admin-border-light);
}

.dashsubtab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--admin-text-muted, #6b7280);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dashsubtab i {
    width: 16px;
    text-align: center;
    font-size: 0.78rem;
}

.dashsubtab:hover,
.dashsubtab.active {
    background: var(--admin-surface-soft);
    color: var(--brand-color);
}

.dashsubtab.active {
    font-weight: 700;
}

/* Group labels inside a submenu (e.g. Settings → Store / Selling / …) */
.dashsubmenu-heading {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--admin-text-muted, #9aa0a6);
    padding: 11px 10px 4px;
}
.dashsubmenu-heading:first-child {
    padding-top: 3px;
}

/* Keep anchored sections clear of the fixed topbar */
.admin-section-card[id] {
    scroll-margin-top: calc(var(--admin-topbar-height) + 20px);
}

/* Compact settings screens */
.settings-compact .admin-section-card-header {
    padding-bottom: 0;
}

.settings-compact .admin-section-card-subtitle {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.settings-compact .admin-form-label {
    margin-bottom: 4px;
    font-size: 0.82rem;
    font-weight: 600;
}

.settings-compact .admin-form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    color: var(--admin-text-muted, #6b7280);
    line-height: 1.35;
}

.settings-compact .form-control,
.settings-compact .form-select {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.admin-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--admin-text-muted, #6b7280);
}

/* Current watermark logo, on a checker-ish tile so transparency reads */
.settings-swatch {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--admin-border-light);
    border-radius: 8px;
    background: #eef2f6;
}

.settings-swatch img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* What the stamped vehicle text looks like */
.settings-preview {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed var(--admin-border-light);
    border-radius: 8px;
    background: var(--admin-surface-soft, #f8fafc);
    color: #1f2937;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.dash-content {
    margin-left: var(--admin-sidebar-width);
    padding-top: var(--admin-topbar-height);
    min-height: 100vh;
}

.dash-main {
    padding: 28px 24px 40px;
    min-height: calc(100vh - var(--admin-topbar-height));
}

.modern-page-header {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 18px 24px;
    border: 1px solid var(--admin-border-light);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
}

.modern-breadcrumb .breadcrumb {
    margin: 0;
}

.modern-breadcrumb .breadcrumb-item,
.modern-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.modern-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.modern-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-color);
}

.modern-breadcrumb i {
    margin-right: 6px;
}

.modern-page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-page-header-actions .btn,
.modern-page-header-actions .btn-secondary-custom {
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.topbar-user-btn {
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* =================================================================
   MEDIA LIBRARY STYLES - COMPACT DESIGN
   ================================================================= */

.media-library-wrap {
    padding: 0;
}

/* Header with Breadcrumb */
.media-library-wrap .jl-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.media-library-wrap .jl-page-header-left {
    flex: 1;
    min-width: 0;
}

.media-library-wrap .jl-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.media-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}

.media-breadcrumb .breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.media-breadcrumb .breadcrumb-item:hover {
    color: var(--brand-color);
}

.media-breadcrumb .bi {
    font-size: 11px;
    color: var(--text-light);
}

/* Compact Stats Bar */
.media-stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.media-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.media-stats-bar .stat-item .bi {
    font-size: 18px;
}

.media-stats-bar .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-black);
}

.media-stats-bar .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.media-stats-bar .stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-default);
}

/* Toolbar */
.media-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.media-search-form {
    flex: 1;
    min-width: 250px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group .bi {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(var(--brand-color-rgb), 0.1);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-gray);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-pill:hover {
    background: var(--border-default);
    color: var(--text-black);
}

.filter-pill.active {
    background: var(--brand-color);
    color: white;
}

/* Media Content */
.media-content {
    margin-bottom: 24px;
}

.media-section {
    margin-bottom: 28px;
}

.section-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-heading .bi {
    font-size: 14px;
    color: var(--brand-color);
}

/* Grid Layouts */
.media-grid.folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.media-grid.files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Folder Card */
.folder-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: all 0.2s;
}

.folder-card:hover {
    border-color: var(--brand-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.folder-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.folder-icon {
    font-size: 32px;
    color: var(--brand-color);
    flex-shrink: 0;
}

.folder-info {
    flex: 1;
    min-width: 0;
}

.folder-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-count {
    font-size: 11px;
    color: var(--text-muted);
}

.folder-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.folder-card:hover .folder-delete {
    opacity: 1;
}

.folder-delete:hover {
    color: #dc3545;
}

/* Media Card */
.media-card {
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.2s;
}

.media-card:hover {
    border-color: var(--brand-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.media-thumbnail {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-gray);
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-type-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
}

/* Overlay Actions */
.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.overlay-btn:hover {
    background: var(--brand-color);
    color: white;
    transform: scale(1.1);
}

/* Media Details */
.media-details {
    padding: 10px;
}

.media-filename {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-black);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 10px;
}

.file-size {
    color: var(--text-muted);
}

.file-type-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.3px;
}

.file-type-badge.image {
    background: #d4edda;
    color: #155724;
}

.file-type-badge.video {
    background: #d1ecf1;
    color: #0c5460;
}

.file-type-badge.document {
    background: #fff3cd;
    color: #856404;
}

.file-type-badge.audio {
    background: #f8d7da;
    color: #721c24;
}

.file-type-badge.archive {
    background: #e2e3e5;
    color: #383d41;
}

/* Empty State */
.empty-state-compact {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
}

.empty-state-compact .bi {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.empty-state-compact h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 6px;
}

.empty-state-compact p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Pagination */
.media-pagination {
    margin-top: 24px;
}

/* Upload Drop Zone */
.upload-drop-zone {
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-sm);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.2s;
    background: var(--bg-gray);
}

.upload-drop-zone.dragover {
    border-color: var(--brand-color);
    background: rgba(var(--brand-color-rgb), 0.05);
}

.upload-drop-zone .bi {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-drop-zone p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 14px;
}

/* Upload Item */
.upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--bg-white);
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.upload-info .filename {
    font-weight: 500;
    color: var(--text-black);
    font-size: 13px;
}

.upload-info .filesize {
    font-size: 11px;
    color: var(--text-muted);
}

.upload-status {
    display: flex;
    align-items: center;
    font-size: 18px;
}

/* Media Detail Modal */
#mediaPreviewContainer {
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

#mediaPreviewContainer img,
#mediaPreviewContainer video {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Compact Button Variant */
.btn-compact {
    padding: 8px 14px !important;
    font-size: 14px !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .media-stats-bar {
        overflow-x: auto;
    }

    .media-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .media-search-form {
        width: 100%;
    }

    .filter-pills {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .media-grid.folders {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .media-grid.files {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Modern button variations for media library */
.btn-modern-primary,
.btn-modern-secondary,
.btn-modern-danger {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-modern-primary {
    background-color: var(--brand-color);
    color: white;
}

.btn-modern-primary:hover {
    background-color: var(--brand-hover);
    color: white;
}

.btn-modern-secondary {
    background-color: var(--bg-gray);
    color: var(--text-black);
}

.btn-modern-secondary:hover {
    background-color: var(--border-default);
    color: var(--text-black);
}

.btn-modern-danger {
    background-color: #dc3545;
    color: white;
}

.btn-modern-danger:hover {
    background-color: #bb2d3b;
    color: white;
}

/* Button sizes */
.btn-sm.btn-modern-primary,
.btn-sm.btn-modern-secondary,
.btn-sm.btn-modern-danger {
    padding: 4px 10px;
    font-size: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--admin-shadow-brand-sm);
}

.modern-dropdown-menu {
    min-width: 280px;
    padding: 0;
    margin-top: 0.75rem !important;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    box-shadow: var(--admin-shadow-dropdown);
    overflow: hidden;
}

.dropdown-header-section {
    padding: 1.1rem 1rem;
    background: var(--admin-surface-soft);
    border-bottom: 1px solid var(--admin-border);
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-details {
    min-width: 0;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text-strong);
    margin: 0;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dropdown-menu-items {
    padding: 0.5rem;
}

.modern-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.8rem 1rem;
    color: var(--admin-text-strong);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.modern-dropdown-item:hover {
    background: var(--admin-surface-soft);
    color: var(--brand-color);
}

.modern-dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-footer-section {
    padding: 0.75rem;
    background: var(--admin-surface-soft);
    border-top: 1px solid var(--admin-border);
}

.modern-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--brand-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: var(--admin-shadow-brand-md);
    border: none;
}

.modern-logout-btn:hover {
    opacity: 0.92;
    color: var(--text-white);
}

@media (max-width: 991.98px) {
    .admin-root {
        --admin-sidebar-width: 100%;
    }

    .dashsidebararea {
        position: static;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--admin-border-soft);
    }

    .topbar-dashboard {
        position: static;
        height: auto;
    }

    .topbar-dashboard nav {
        padding: 14px 18px;
    }

    .dash-content {
        margin-left: 0;
        padding-top: 0;
    }

    .dash-main {
        padding: 18px;
    }

    .modern-page-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .modern-page-header-actions>* {
        flex: 1 1 220px;
    }
}

@media (max-width: 575.98px) {

    .modern-page-header,
    .dash-welcome-card,
    .dash-panel-header,
    .dash-panel-card .p-3,
    .dash-panel-card .p-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .product-tabs {
        flex-direction: column;
        gap: 0;
    }

    .product-tabs .nav-link {
        width: 100%;
        border-bottom: 1px solid var(--border-default);
        border-radius: 0;
        padding: 14px 20px;
        text-align: left;
    }

    .product-tabs .nav-link.active {
        background: var(--bg-gray);
        border-left: 3px solid var(--brand-color);
        border-bottom-color: var(--brand-color);
    }

    .product-tabs-section {
        padding-top: 32px;
    }
}

/* ==========================================================================
   ADMIN DASHBOARD
   ==========================================================================

   Layout: hero → KPI grid → charts → tables/rankings → catalogue health.
   Status colours are passed in per-element as --status-color so one badge rule
   covers every order state.
*/

/* --- Hero --------------------------------------------------------------- */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--admin-border);
    background: linear-gradient(115deg, rgba(97, 206, 112, .10), rgba(97, 206, 112, 0) 55%), var(--bg-white);
    box-shadow: var(--admin-shadow-soft);
}

.dash-hero-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}

.dash-hero-sub {
    margin: 4px 0 0;
    font-size: .85rem;
    color: var(--admin-text-subtle);
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-attention-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--status-warning-bg);
    color: #b45309;
    border: 1px solid #fde68a;
    transition: background .18s ease;
}

.dash-attention-pill:hover {
    background: #fef3c7;
    color: #92400e;
}

.dash-attention-pill--clear {
    background: var(--status-success-bg);
    color: var(--status-success);
    border-color: #bbf7d0;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dash-btn--primary {
    background: var(--brand-color);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(97, 206, 112, .35);
}

.dash-btn--primary:hover {
    color: var(--text-white);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(97, 206, 112, .4);
}

/* --- KPI cards ---------------------------------------------------------- */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.dash-kpi {
    --kpi-accent: var(--brand-color);
    --kpi-soft: var(--admin-surface-soft);
    display: flex;
    flex-direction: column;
    padding: 18px 18px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--admin-border);
    background: var(--bg-white);
    box-shadow: var(--admin-shadow-soft);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dash-kpi:hover {
    transform: translateY(-3px);
    box-shadow: var(--admin-shadow-hover);
    border-color: var(--kpi-accent);
    color: inherit;
}

.dash-kpi--sales {
    --kpi-accent: var(--brand-color);
    --kpi-soft: #eafaee;
}

.dash-kpi--orders {
    --kpi-accent: var(--admin-stat-orders);
    --kpi-soft: #fff8e8;
}

.dash-kpi--aov {
    --kpi-accent: #8b5cf6;
    --kpi-soft: #f3eeff;
}

.dash-kpi--customers {
    --kpi-accent: var(--admin-stat-customers);
    --kpi-soft: #e8f1ff;
}

.dash-kpi-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-kpi-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: .9rem;
    background: var(--kpi-soft);
    color: var(--kpi-accent);
}

.dash-kpi-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--admin-text-subtle);
}

.dash-kpi-value {
    margin: 14px 0 10px;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.dash-kpi-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-kpi-note {
    font-size: .72rem;
    color: var(--admin-text-faint);
}

.dash-kpi-spark {
    position: relative;
    height: 44px;
    margin: 12px -18px 0;
}

.dash-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.dash-trend--up {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.dash-trend--down {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.dash-trend--flat {
    background: var(--admin-surface-hover);
    color: var(--admin-text-subtle);
}

/* --- Card shell --------------------------------------------------------- */
.dash-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--admin-border);
    background: var(--bg-white);
    box-shadow: var(--admin-shadow-soft);
    overflow: hidden;
}

.dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.dash-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
}

.dash-card-title i {
    color: var(--brand-color);
}

.dash-card-sub {
    margin: 3px 0 0;
    font-size: .75rem;
    color: var(--admin-text-faint);
}

.dash-card-body {
    padding: 18px 20px 20px;
}

.dash-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand-color);
    text-decoration: none;
    white-space: nowrap;
}

.dash-link i {
    font-size: .7rem;
    transition: transform .18s ease;
}

.dash-link:hover {
    color: var(--brand-color);
}

.dash-link:hover i {
    transform: translateX(3px);
}

/* --- Segmented control -------------------------------------------------- */
.dash-segmented {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: var(--admin-surface-hover);
}

.dash-segmented-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
    color: var(--admin-text-subtle);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.dash-segmented-btn:hover {
    color: #111827;
}

.dash-segmented-btn.is-active {
    background: var(--bg-white);
    color: #111827;
    box-shadow: var(--shadow-xs);
}

/* --- Chart summary strip ------------------------------------------------ */
.dash-chart-summary {
    display: flex;
    gap: 32px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.dash-chart-metric-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--admin-text-subtle);
}

.dash-chart-metric-value {
    display: block;
    margin-top: 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.dash-dot {
    font-size: .45rem;
}

.dash-dot--revenue {
    color: var(--brand-color);
}

.dash-dot--orders {
    color: var(--admin-stat-sales);
}

/* --- Status donut ------------------------------------------------------- */
.dash-donut-wrap {
    position: relative;
    height: 180px;
    margin-bottom: 6px;
}

.dash-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.dash-donut-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.dash-donut-label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--admin-text-faint);
}

.dash-legend {
    margin-top: 12px;
}

.dash-legend-row {
    display: grid;
    grid-template-columns: 10px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 9px 2px;
    border-top: 1px solid var(--admin-border);
    text-decoration: none;
    color: inherit;
}

.dash-legend-row:hover .dash-legend-label {
    color: var(--brand-color);
}

.dash-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dash-legend-label {
    font-size: .8rem;
    color: var(--admin-text-strong);
    transition: color .18s ease;
}

.dash-legend-count {
    font-size: .82rem;
    font-weight: 700;
    color: #111827;
}

.dash-legend-share {
    min-width: 36px;
    text-align: right;
    font-size: .72rem;
    color: var(--admin-text-faint);
}

/* --- Data table --------------------------------------------------------- */
.dash-table-wrap {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    padding: 10px 20px;
    text-align: left;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--admin-text-subtle);
    background: var(--admin-surface-soft);
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.dash-table td {
    padding: 12px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--admin-surface-hover);
}

.dash-table tbody tr:last-child td {
    border-bottom: none;
}

.dash-table tbody tr:hover {
    background: var(--admin-surface-soft);
}

.dash-table-id {
    font-size: .8rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}

.dash-table-id:hover {
    color: var(--brand-color);
}

.dash-table-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-avatar {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    background: #eafaee;
    color: #2e9e3e;
}

.dash-table-name {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    color: var(--admin-text-strong);
}

.dash-table-date {
    font-size: .75rem;
    color: var(--admin-text-faint);
    white-space: nowrap;
}

.dash-table-total {
    font-size: .85rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.dash-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--admin-text-subtle);
    background: var(--admin-surface-hover);
}

/* Per-status tones. Keep in step with $statusMeta in admin/dashboard.blade.php,
   which feeds the same colours to the doughnut chart. */
.dash-status--pending {
    background: var(--status-warning-bg);
    color: #b45309;
}

.dash-status--processing {
    background: var(--status-info-bg);
    color: #0369a1;
}

.dash-status--completed {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.dash-status--failed {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.dash-status--refunded {
    background: #f5f3ff;
    color: #7c3aed;
}

.dash-tone--pending {
    background: var(--status-warning);
}

.dash-tone--processing {
    background: var(--status-info);
}

.dash-tone--completed {
    background: var(--status-success);
}

.dash-tone--failed {
    background: var(--status-danger);
}

.dash-tone--refunded {
    background: #8b5cf6;
}

/* --- Ranked lists (top products / customers) ---------------------------- */
.dash-rank-row {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background .18s ease;
}

.dash-rank-row+.dash-rank-row {
    border-top: 1px solid var(--admin-surface-hover);
}

.dash-rank-row:hover {
    background: var(--admin-surface-soft);
    color: inherit;
}

.dash-rank-num {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    background: var(--admin-surface-hover);
    color: var(--admin-text-subtle);
}

.dash-rank-num--1 {
    background: #fef3c7;
    color: #b45309;
}

.dash-rank-num--2 {
    background: #e5e7eb;
    color: #4b5563;
}

.dash-rank-num--3 {
    background: #fde4d3;
    color: #9a3412;
}

.dash-rank-body {
    flex: 1;
    min-width: 0;
}

.dash-rank-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.dash-rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
    font-weight: 500;
    color: var(--admin-text-strong);
}

.dash-rank-value {
    flex-shrink: 0;
    font-size: .8rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.dash-rank-meta {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    color: var(--admin-text-faint);
}

.dash-rank-track {
    display: block;
    height: 4px;
    margin-top: 8px;
    border-radius: var(--radius-pill);
    background: var(--admin-surface-hover);
    overflow: hidden;
}

.dash-rank-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: var(--radius-pill);
}

.dash-rank-fill--product {
    background: var(--brand-color);
}

.dash-rank-fill--customer {
    background: var(--admin-stat-sales);
}

/* --- Catalogue health --------------------------------------------------- */
.dash-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--admin-border);
}

.dash-health-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: var(--bg-white);
}

.dash-health-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--admin-text-subtle);
}

.dash-health-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.dash-health-note {
    font-size: .72rem;
    color: var(--admin-text-faint);
}

/* --- Empty state -------------------------------------------------------- */
.dash-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--admin-text-faint);
}

.dash-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 1.6rem;
    opacity: .45;
}

.dash-empty p {
    margin: 0;
    font-size: .82rem;
}

@media (max-width: 1199.98px) {

    .dash-kpi-grid,
    .dash-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {

    .dash-kpi-grid,
    .dash-health-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-hero {
        padding: 18px;
    }

    .dash-hero-actions {
        width: 100%;
    }

    .dash-chart-summary {
        gap: 20px;
    }

    .dash-card-head,
    .dash-card-body,
    .dash-rank-row,
    .dash-table th,
    .dash-table td {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ========================================================================== 
   PRODUCT CARD UTILITIES
   ========================================================================== */

.product-featured-flag {
    z-index: 10;
}

.product-card-overlay {
    transition: opacity 0.3s;
    z-index: 5;
}

.product-card-quickview {
    transition: opacity 0.3s;
    z-index: 10;
}

.product-card-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-hover:hover .product-card-image {
    transform: scale(1.1);
}

.product-card-category {
    color: var(--brand-color);
}

.hover-opacity-50:hover {
    opacity: 0.5 !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.jl-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text-muted);
}

.jl-action-btn:hover {
    background: var(--bg-gray);
    border-color: var(--border-dark);
}

.jl-action-btn--view {
    color: var(--status-info);
}

.jl-action-btn--view:hover {
    background: var(--status-info-bg);
    border-color: var(--status-info);
    color: var(--status-info);
}

.jl-action-btn--edit {
    color: var(--status-warning);
}

.jl-action-btn--edit:hover {
    background: var(--status-warning-bg);
    border-color: var(--status-warning);
    color: var(--status-warning);
}

.jl-action-btn--delete {
    color: var(--status-danger);
}

.jl-action-btn--delete:hover {
    background: var(--status-danger-bg);
    border-color: var(--status-danger);
    color: var(--status-danger);
}

/* ---- Empty State ---- */
.jl-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.jl-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

/* ---- Load More Button ---- */
.btn-outline-brand {
    color: var(--brand-color);
    border-color: var(--brand-color);
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-brand:hover {
    background: var(--brand-color);
    color: var(--text-white);
    border-color: var(--brand-color);
}

.btn-outline-brand:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   ADMIN BUTTONS — compact & flat
   Smaller sizing, no shadow / glow / gradient. Placed after all button
   definitions so it wins on source order without !important.
   ========================================================================== */

/* Full-width editor action buttons (Save / Update / Cancel / Delete) */
.product-editor-form .btn-primary-modern,
.product-editor-form .btn-secondary-outline,
.product-editor-form .btn-danger-outline,
.user-editor-form .btn-primary-modern,
.user-editor-form .btn-secondary-outline,
.user-editor-form .btn-danger-outline,
.page-editor-form .btn-primary-modern,
.page-editor-form .btn-secondary-outline,
.page-editor-form .btn-danger-outline {
    padding: 9px 16px;
    font-size: 13.5px;
    box-shadow: none;
}

.product-editor-form .btn-primary-modern:hover,
.product-editor-form .btn-secondary-outline:hover,
.product-editor-form .btn-danger-outline:hover,
.user-editor-form .btn-primary-modern:hover,
.user-editor-form .btn-secondary-outline:hover,
.user-editor-form .btn-danger-outline:hover,
.page-editor-form .btn-primary-modern:hover,
.page-editor-form .btn-secondary-outline:hover,
.page-editor-form .btn-danger-outline:hover {
    box-shadow: none;
}

/* Small secondary / header buttons */
.product-editor-form .btn-secondary-custom,
.product-editor-page-header .btn-secondary-custom,
.admin-page-intro .btn-secondary-custom {
    padding: 7px 13px;
    font-size: 13px;
    box-shadow: none;
}

.product-editor-form .btn-secondary-custom:hover,
.product-editor-page-header .btn-secondary-custom:hover,
.admin-page-intro .btn-secondary-custom:hover {
    box-shadow: none;
}

/* Add / remove icon buttons */
.product-editor-form .btn-add-modern,
.product-editor-form .btn-remove-modern {
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: none;
}

.product-editor-form .btn-add-modern:hover,
.product-editor-form .btn-remove-modern:hover {
    box-shadow: none;
}

/* Brand + outline brand buttons (page actions, load-more, etc.) */
.btn-brand,
.btn-main,
.btn-outline-brand {
    padding: 6px 14px;
    font-size: 13.5px;
    box-shadow: none;
}

.btn-brand:hover,
.btn-main:hover,
.btn-outline-brand:hover {
    box-shadow: none;
}

/* ---- Loading Spinner ---- */
.spinner-border-brand {
    color: var(--brand-color);
}

#loadingIndicator {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- Pagination ---- */
.jl-pagination-wrap {
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--border-default);
    margin-top: 0.5rem;
}

/* ==========================================================================
   BACKWARD COMPATIBILITY ALIASES
   ========================================================================== 
   
   Purpose: Legacy class names for backward compatibility
   Note: New code should use .bg-brand, .text-brand, .btn-brand
*/

/* Legacy color class aliases */
.bg-main {
    background-color: var(--brand-color) !important;
}

.text-main {
    color: var(--brand-color) !important;
}

.btn-main {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: var(--text-white);
    transition: opacity 0.2s ease;
}

.btn-main:hover {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: var(--text-white);
    opacity: 0.9;
}

/* ==========================================================================
   USER AVATAR SIZES
   ========================================================================== */

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   BUTTON STYLES (Global)
   ========================================================================== */

.btn-danger {
    background-color: var(--status-danger);
    border-color: var(--status-danger);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: var(--text-white);
    opacity: 0.9;
}


/* ==========================================================================
   WRAPSILO HOMEPAGE REDESIGN — ws-* component system
   ========================================================================== */

/* ---------- Hero ---------- */
.ws-hero {
    background: #080810;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.ws-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(97, 206, 112, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 206, 112, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.ws-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.ws-hero-glow-1 {
    width: 520px;
    height: 520px;
    background: rgba(97, 206, 112, 0.14);
    top: -100px;
    right: 4%;
}

.ws-hero-glow-2 {
    width: 420px;
    height: 420px;
    background: rgba(34, 211, 238, 0.07);
    bottom: 40px;
    left: 6%;
}

.ws-hero-inner {
    padding-top: 6rem;
    padding-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.ws-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(97, 206, 112, 0.1);
    border: 1px solid rgba(97, 206, 112, 0.3);
    color: #61ce70;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 7px 18px;
    border-radius: 999px;
    text-transform: uppercase;
}

.ws-hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #61ce70;
    box-shadow: 0 0 8px #61ce70;
    animation: ws-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ws-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.82);
    }
}

.ws-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 1.4rem;
    letter-spacing: -0.03em;
}

.ws-hero-title-accent {
    background: linear-gradient(120deg, #61ce70 30%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ws-hero-desc {
    color: rgba(255, 255, 255, 0.52);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.ws-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
}

.ws-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-stat-num {
    font-size: 1.55rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ws-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.ws-stat-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ws-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- Shared Buttons ---------- */
.ws-btn-primary {
    display: inline-flex;
    align-items: center;
    background: #61ce70;
    color: #05080a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    box-shadow: 0 0 28px rgba(97, 206, 112, 0.38);
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    line-height: 1;
}

.ws-btn-primary:hover {
    background: #4ec05d;
    color: #05080a;
    transform: translateY(-2px);
    box-shadow: 0 0 42px rgba(97, 206, 112, 0.55);
}

.ws-btn-ghost {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: background 0.18s, transform 0.18s;
    line-height: 1;
}

.ws-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: translateY(-2px);
}

.ws-btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #61ce70;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(97, 206, 112, 0.4);
    transition: all 0.18s;
    line-height: 1;
}

.ws-btn-outline:hover {
    background: rgba(97, 206, 112, 0.08);
    border-color: #61ce70;
    color: #61ce70;
    transform: translateY(-2px);
}

.ws-btn-lg {
    padding: 16px 36px;
    font-size: 1.02rem;
}

/* ---------- Hero Car Visual ---------- */
.ws-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.ws-car-frame {
    position: relative;
    width: 100%;
}

.ws-car-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(97, 206, 112, 0.22));
}

.ws-float-badge {
    position: absolute;
    background: rgba(20, 20, 35, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
    white-space: nowrap;
    animation: ws-float 3.4s ease-in-out infinite;
}

.ws-float-badge-1 {
    top: 8%;
    left: -6%;
    animation-delay: 0s;
}

.ws-float-badge-2 {
    top: 48%;
    right: -10%;
    animation-delay: 1.1s;
}

.ws-float-badge-3 {
    bottom: 12%;
    left: 4%;
    animation-delay: 2.2s;
}

@keyframes ws-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.ws-hero-wave {
    position: relative;
    margin-bottom: -2px;
    line-height: 0;
    z-index: 1;
}

.ws-hero-wave svg {
    display: block;
    width: 100%;
}

/* ---------- Trust Bar ---------- */
.ws-trust-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.ws-trust-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ws-trust-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #adb5bd;
    white-space: nowrap;
}

.ws-trust-items {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    font-weight: 500;
    color: #6b7280;
}

.ws-trust-dot {
    color: #ced4da;
    font-weight: 700;
}

/* ---------- Sections ---------- */
.ws-section {
    padding: 84px 0;
}

.ws-section-light {
    background: #f4f5f7;
}

.ws-section-dark {
    background: #0d0d14;
}

.ws-how-section {
    background: #fff;
}

.ws-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.ws-section-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.ws-badge-gold {
    background: rgba(251, 191, 36, 0.12);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.ws-badge-green {
    background: rgba(97, 206, 112, 0.12);
    color: #16a34a;
    border: 1px solid rgba(97, 206, 112, 0.28);
}

.ws-badge-blue {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.28);
}

.ws-badge-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.ws-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #0f0f14;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.ws-section-desc {
    font-size: 1rem;
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.72;
}

/* ---------- Category Cards ---------- */
.ws-cat-card {
    display: flex;
    flex-direction: column;
    background: #13131c;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.ws-cat-card:hover {
    border-color: rgba(97, 206, 112, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(97, 206, 112, 0.12);
}

.ws-cat-img-wrap {
    position: relative;
    height: 155px;
    overflow: hidden;
}

.ws-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ws-cat-card:hover .ws-cat-img {
    transform: scale(1.07);
}

.ws-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(13, 13, 20, 0.88));
}

.ws-cat-placeholder {
    height: 155px;
    background: linear-gradient(135deg, rgba(97, 206, 112, 0.12), rgba(34, 211, 238, 0.07));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-cat-icon {
    font-size: 2.8rem;
    color: rgba(97, 206, 112, 0.45);
}

.ws-cat-body {
    padding: 14px 16px;
    flex: 1;
}

.ws-cat-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.ws-cat-count {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.38);
}

.ws-cat-arrow {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(97, 206, 112, 0.14);
    color: #61ce70;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background 0.22s, color 0.22s;
}

.ws-cat-card:hover .ws-cat-arrow {
    background: #61ce70;
    color: #05080a;
}

/* ---------- How It Works ---------- */
.ws-step-card {
    text-align: center;
    padding: 40px 28px 36px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
    height: 100%;
}

.ws-step-card:hover {
    border-color: rgba(97, 206, 112, 0.42);
    box-shadow: 0 22px 60px rgba(97, 206, 112, 0.1);
    transform: translateY(-4px);
}

.ws-step-card-active {
    background: linear-gradient(145deg, rgba(97, 206, 112, 0.04) 0%, rgba(34, 211, 238, 0.025) 100%);
    border-color: rgba(97, 206, 112, 0.3);
    box-shadow: 0 20px 58px rgba(97, 206, 112, 0.1);
}

.ws-step-num {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(97, 206, 112, 0.1);
    position: absolute;
    top: 14px;
    right: 18px;
    letter-spacing: -0.05em;
    pointer-events: none;
}

.ws-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(97, 206, 112, 0.14), rgba(34, 211, 238, 0.07));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 1.8rem;
    color: #61ce70;
}

.ws-step-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.ws-step-desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.68;
    margin: 0;
}

/* ---------- Why / Feature Cards ---------- */
.ws-why-section {
    background: #080810;
    position: relative;
    overflow: hidden;
}

.ws-why-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(97, 206, 112, 0.07) 0%, transparent 68%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ws-feature-card {
    padding: 32px 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: background 0.22s, border-color 0.22s, transform 0.22s;
    height: 100%;
}

.ws-feature-card:hover {
    background: rgba(97, 206, 112, 0.05);
    border-color: rgba(97, 206, 112, 0.22);
    transform: translateY(-4px);
}

.ws-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(97, 206, 112, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #61ce70;
    margin-bottom: 18px;
}

.ws-feature-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.ws-feature-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.68;
    margin: 0;
}

/* ---------- CTA Section ---------- */
.ws-cta-section {
    background: linear-gradient(145deg, #050c05, #061408);
    padding: 104px 0;
    position: relative;
    overflow: hidden;
}

.ws-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(97, 206, 112, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 206, 112, 0.065) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.ws-cta-inner {
    max-width: 660px;
}

.ws-cta-icon {
    font-size: 3rem;
    color: #61ce70;
    margin-bottom: 22px;
    filter: drop-shadow(0 0 18px rgba(97, 206, 112, 0.55));
    display: block;
}

.ws-cta-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.ws-cta-desc {
    color: rgba(255, 255, 255, 0.48);
    font-size: 1.05rem;
    line-height: 1.72;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ws-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
    .ws-hero-inner {
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }

    .ws-float-badge {
        display: none;
    }

    .ws-section {
        padding: 60px 0;
    }

    .ws-cta-section {
        padding: 72px 0;
    }

    .ws-trust-inner {
        justify-content: center;
    }

    .ws-hero-stats {
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .ws-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .ws-btn-primary,
    .ws-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .ws-trust-label {
        display: none;
    }
}

/* ---------- Dark Navbar ---------- */
.ws-navbar {
    background: #080810;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 64px;
}

.ws-nav-logo-mark {
    width: 36px;
    height: 36px;
    background: #61ce70;
    flex-shrink: 0;
}

.ws-nav-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.ws-nav-link {
    color: rgba(255, 255, 255, 0.62) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
}

.ws-nav-link:hover,
.ws-nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
}

.ws-nav-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ws-nav-search-icon {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    pointer-events: none;
}

.ws-nav-search-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    padding: 8px 14px 8px 34px;
    width: 220px;
    outline: none;
    transition: border-color 0.18s, background 0.18s;
}

.ws-nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.ws-nav-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(97, 206, 112, 0.5);
}

.ws-nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.ws-nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.ws-nav-user-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    transition: background 0.18s;
    cursor: pointer;
}

.ws-nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

.ws-nav-user-btn::after {
    border-color: rgba(255, 255, 255, 0.5) transparent transparent;
}

.ws-nav-avatar {
    width: 28px;
    height: 28px;
    background: #61ce70;
    flex-shrink: 0;
}

.ws-nav-login-link {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.18s;
}

.ws-nav-login-link:hover {
    color: #fff;
}

/* Body base */
.ws-body {
    background: #fff;
    color: #1a1a1a;
}

/* ── Flat cards: no drop shadows across the admin dashboard ─── */
.admin-section-card,
.vm-card,
.vm-card-body,
.jl-table-card,
.jl-stat,
.card-modern,
.auth-card,
.admin-order-card,
.admin-muted-panel,
.stat-card,
.stat-card:hover,
.banner-card,
.related-card {
    box-shadow: none !important;
}

/* ── Top-bar notification bell ─────────────────────────────── */
.topbar-icon-btn { position: relative; }
.topbar-notif-badge {
    position: absolute; top: 1px; right: 1px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
    border: 2px solid #fff;
}
.notif-menu {
    width: 344px; max-width: 92vw; padding: 0; overflow: hidden; margin-top: 8px;
    border: 1px solid var(--admin-border-light); border-radius: 14px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}
.notif-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; border-bottom: 1px solid var(--admin-border-light);
    font-weight: 700; font-size: 14px; color: #1a1d21;
}
.notif-pill { font-size: 11px; font-weight: 700; color: #b45309; background: #fff4e5; padding: 2px 9px; border-radius: 20px; }
.notif-list { max-height: 366px; overflow-y: auto; }
.notif-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 16px; text-decoration: none; color: inherit;
    border-bottom: 1px solid #f3f4f6; transition: background .12s;
}
.notif-item:hover { background: #f8fafc; }
.notif-ico {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
    display: grid; place-items: center; font-size: 14px;
    background: #eef2ff; color: #4f46e5;
}
.notif-ico--pending { background: #fff4e5; color: #b45309; }
.notif-ico--completed { background: #e7f8ee; color: #16a34a; }
.notif-ico--processing { background: #e6f0ff; color: #2563eb; }
.notif-ico--failed, .notif-ico--cancelled { background: #fdecec; color: #dc2626; }
.notif-ico--refunded { background: #f1f0f4; color: #6b7280; }
.notif-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.notif-title { font-size: 13px; color: #1a1d21; }
.notif-sub { font-size: 11.5px; color: #6b7280; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-status { font-weight: 700; }
.notif-status--pending { color: #b45309; }
.notif-status--completed { color: #16a34a; }
.notif-status--failed, .notif-status--cancelled { color: #dc2626; }
.notif-status--refunded { color: #6b7280; }
.notif-status--processing { color: #2563eb; }
.notif-time { font-size: 11px; color: #9aa0a6; white-space: nowrap; flex-shrink: 0; }
.notif-empty { padding: 28px 16px; text-align: center; color: #9aa0a6; font-size: 13px; }
.notif-foot {
    display: block; text-align: center; padding: 11px; font-size: 13px; font-weight: 600;
    color: #16a34a; text-decoration: none; background: #fafafa;
    border-top: 1px solid var(--admin-border-light);
}
.notif-foot:hover { background: #f3f4f6; }

/* ── Modern flash toast (admin) ─────────────────────────────── */
.app-toast {
    position: fixed; top: 20px; right: 20px; z-index: 4000;
    display: flex; align-items: center; gap: 12px;
    min-width: 300px; max-width: 430px;
    background: #fff; border: 1px solid var(--admin-border-light, #edf0f3); border-left: 4px solid #16a34a;
    border-radius: 12px; padding: 14px 16px; box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    overflow: hidden; animation: app-toast-in .38s cubic-bezier(.16, 1, .3, 1);
}
.app-toast--out { animation: app-toast-out .3s forwards; }
@keyframes app-toast-in { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes app-toast-out { to { opacity: 0; transform: translateX(34px); } }
.app-toast-ico { font-size: 20px; flex-shrink: 0; line-height: 1; }
.app-toast-msg { font-size: 13.5px; font-weight: 600; color: #1a1d21; line-height: 1.45; flex: 1 1 auto; }
.app-toast-x { background: none; border: none; color: #9aa0a6; font-size: 13px; cursor: pointer; padding: 2px; line-height: 1; flex-shrink: 0; }
.app-toast-x:hover { color: #1a1d21; }
.app-toast-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: currentColor; opacity: .35; animation: app-toast-bar 4.2s linear forwards; }
@keyframes app-toast-bar { from { width: 100%; } to { width: 0; } }
.app-toast--success { border-left-color: #16a34a; }
.app-toast--success .app-toast-ico, .app-toast--success .app-toast-bar { color: #16a34a; }
.app-toast--error { border-left-color: #dc2626; }
.app-toast--error .app-toast-ico, .app-toast--error .app-toast-bar { color: #dc2626; }
.app-toast--warning { border-left-color: #f59e0b; }
.app-toast--warning .app-toast-ico, .app-toast--warning .app-toast-bar { color: #f59e0b; }
.app-toast--info { border-left-color: #0ea5e9; }
.app-toast--info .app-toast-ico, .app-toast--info .app-toast-bar { color: #0ea5e9; }
@media (max-width: 560px) {
    .app-toast { top: 12px; left: 12px; right: 12px; min-width: 0; max-width: none; }
}

/* ── Dashboard Google Analytics status banner ───────────────── */
.dash-ga {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--admin-border-light, #edf0f3);
    border-left: 4px solid #16a34a; border-radius: 14px; padding: 14px 18px;
    margin-bottom: 20px; text-decoration: none; transition: box-shadow .15s, transform .12s;
}
.dash-ga:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 23, 42, .07); }
.dash-ga--off { border-left-color: #cbd0d6; }
.dash-ga-ico {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
    background: #e7f8ee; color: #16a34a; display: grid; place-items: center; font-size: 18px;
}
.dash-ga--off .dash-ga-ico { background: #f1f3f5; color: #9aa0a6; }
.dash-ga-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dash-ga-text strong { font-size: 14.5px; color: #1a1d21; }
.dash-ga-text span { font-size: 12.5px; color: #6b7280; }
.dash-ga-badge { font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.dash-ga-badge--on { background: #e7f8ee; color: #16a34a; }
.dash-ga-badge--off { background: #f1f3f5; color: #6b7280; }
.dash-ga-arrow { color: #9aa0a6; font-size: 13px; }

/* ── Load-more button (admin tables) ────────────────────────── */
.jl-loadmore-wrap { display: flex; justify-content: center; padding: 20px 0 6px; }
.jl-loadmore-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; font-size: 13.5px; font-weight: 700;
    color: #16a34a; background: #fff; border: 1px solid #cfe9d8; border-radius: 10px;
    cursor: pointer; transition: background .15s, border-color .15s, opacity .15s;
}
.jl-loadmore-btn:hover { background: #e7f8ee; border-color: #16a34a; }
.jl-loadmore-btn:disabled { opacity: .6; cursor: default; }
.jl-loadmore-btn.is-loading i { animation: jl-spin .7s linear infinite; }
@keyframes jl-spin { to { transform: rotate(360deg); } }