/* Import Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-border: #fca5a5;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active-bg: rgba(99, 102, 241, 0.15);
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --bg-content: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

/* WordPress parent container resets to ensure full-width layout */
html,
body,
#page,
.site,
.site-inner,
.content-area,
.container,
.site-content,
.wp-block-group,
.entry-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Custom Scrollbar Styles for modern engines */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dezia-dashboard {
    display: flex;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    min-height: 100vh;
    background: var(--bg-content);
    font-family: var(--font-sans);
    color: var(--text-main);
}

/* Sidebar Drawer Style */
.dezia-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text-active);
    width: 240px;
    min-height: 100vh;
    padding: 24px 16px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dezia-sidebar h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: center;
}

/* Nav Menu Icons pseudo-mapping */
.dezia-sidebar a {
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dezia-sidebar a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    display: inline-block;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.dezia-sidebar a:hover::before,
.dezia-sidebar a.active::before {
    opacity: 1;
}

.dezia-sidebar a[href*="tab=overview"]::before {
    content: "\f201";
}

.dezia-sidebar a[href*="tab=posts"]::before {
    content: "\f03e";
}

.dezia-sidebar a[href*="tab=products"]::before {
    content: "\f54e";
}

.dezia-sidebar a[href*="tab=orders"]::before {
    content: "\f0d1";
}

.dezia-sidebar a[href*="tab=notifications"]::before {
    content: "\f0f3";
}

.dezia-sidebar a[href*="tab=payments"]::before {
    content: "\f09d";
}

.dezia-sidebar a[href*="tab=withdrawals"]::before {
    content: "\f53c";
}

.dezia-sidebar a[href*="tab=media"]::before {
    content: "\f03e";
}

.dezia-sidebar a[href*="tab=settings"]::before {
    content: "\f013";
}

.dezia-sidebar a[href*="tab=builder"]::before {
    content: "\f0ad";
}

.dezia-sidebar a[href*="tab=domain"]::before {
    content: "\f0ac";
}

.dezia-sidebar a[href*="tab=logout"]::before {
    content: "\f2f5";
}

.dezia-sidebar a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    transform: translateX(4px);
}

.dezia-sidebar a.active {
    background: var(--primary-gradient);
    color: var(--sidebar-text-active);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.notif-count {
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.sidebar-close {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* Mobile Layout Styling */
.dezia-header {
    display: none;
}

/* Dashboard Content */
.dezia-content {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 32px;
    box-sizing: border-box;
    background: var(--bg-content);
}

.dezia-content>h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Overview Tab Styling (Pro Performance Dashboard) */
.smanager-dashboard-pro {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    width: 100%;
}

.dashboard-header-pro {
    display: block;
    margin-bottom: 20px;
}

.dashboard-header-pro h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
    box-sizing: border-box;
}

/* Card Styling */
.stat-card-pro {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-pro:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-card-pro:hover .stat-icon {
    transform: scale(1.1);
}

/* Individual Stat Icon Styles */
.stat-card-pro:nth-child(1) .stat-icon {
    background-color: #ecfdf5;
    color: #059669;
}

.stat-card-pro:nth-child(2) .stat-icon {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.stat-card-pro:nth-child(3) .stat-icon {
    background-color: #e0f2fe;
    color: #0284c7;
}

.stat-card-pro:nth-child(4) .stat-icon {
    background-color: #fffbeb;
    color: #d97706;
}

.stat-card-pro:nth-child(5) .stat-icon {
    background-color: #fdf2f8;
    color: #db2777;
}

.stat-card-pro:nth-child(6) .stat-icon {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.stat-card-pro:nth-child(7) .stat-icon {
    background-color: #f0fdfa;
    color: #0d9488;
}

.stat-card-pro:nth-child(8) .stat-icon {
    background-color: #faf5ff;
    color: #9333ea;
}

.stat-card-pro h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    font-weight: 600;
}

.stat-card-pro p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Storefront Link Card specifically (Larger space requirements) */
.storefront-link-card-pro {
    grid-column: span 2;
    align-items: flex-start;
    min-width: 0;
}

.storefront-link-card-pro .stat-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.storefront-link-card-pro>div:not(.stat-icon) {
    flex: 1;
    min-width: 0;
}

.storefront-link-card-pro input {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.storefront-link-card-pro input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.copy-btn-pro,
.visit-btn-pro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.copy-btn-pro {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.copy-btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.visit-btn-pro {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.visit-btn-pro:hover {
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-1px);
}

.custom-domain-badge {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    border: 1px solid #bfdbfe;
    display: inline-block;
}

/* Badge styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    margin-right: 6px;
}

.badge-processing {
    background: var(--warning-bg);
    color: #b45309;
    border: 1px solid var(--warning-border);
}

.badge-completed {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}

/* Welcome Banner */
.dashboard-welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.dashboard-welcome-banner .welcome-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-welcome-banner .welcome-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dashboard-welcome-banner .welcome-date {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dashboard-welcome-banner .welcome-date i {
    color: var(--primary);
}

/* Two-column layout rows */
.dashboard-details-row {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    width: 100%;
}

.dashboard-chart-column {
    flex: 1.7;
    min-width: 0;
}

.dashboard-orders-column {
    flex: 1.3;
    min-width: 0;
}

/* Chart Canvas tweaks */
.dashboard-chart-pro {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    min-height: 340px;
    box-sizing: border-box;
}

.dashboard-chart-pro h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
}

/* Recent Orders Card */
.dashboard-recent-orders-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dashboard-recent-orders-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.dashboard-recent-orders-card .card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-recent-orders-card .card-header h3 i {
    color: var(--primary);
}

.dashboard-recent-orders-card .card-header .view-all-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.dashboard-recent-orders-card .card-header .view-all-link:hover {
    transform: translateX(2px);
}

.orders-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.empty-orders-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-muted);
    padding: 40px 0;
}

.empty-orders-state i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-orders-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Recent order list items */
.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.recent-order-item:hover {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateX(2px);
}

.recent-order-item .order-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-order-item .order-number-customer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-order-item .order-number {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.recent-order-item .order-customer {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.recent-order-item .order-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.recent-order-item .order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.recent-order-item .order-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Order Status Badges */
.order-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-badge.status-processing,
.order-badge.status-on-hold,
.order-badge.status-pending {
    background: var(--warning-bg);
    color: #b45309;
    border: 1px solid var(--warning-border);
}

.order-badge.status-completed {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}

.order-badge.status-failed,
.order-badge.status-cancelled {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid var(--danger-border);
}

/* Tab/List Views styling */
.dezia-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dezia-content th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.dezia-content td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 0.95rem;
    vertical-align: middle;
}

.dezia-content tr:last-child td {
    border-bottom: none;
}

.dezia-content tr:hover td {
    background-color: #f8fafc;
}

/* Input Forms in widgets styling */
.dezia-content form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin-top: 20px;
}

.dezia-content form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.dezia-content .form-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.dezia-content .form-table td,
.dezia-content .form-table th {
    padding: 12px 0;
    border: none;
    background: transparent;
    display: block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.dezia-content .form-table th {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    padding-bottom: 4px;
}

.dezia-content input[type="text"],
.dezia-content input[type="number"],
.dezia-content input[type="email"],
.dezia-content input[type="tel"],
.dezia-content input[type="url"],
.dezia-content input[type="password"],
.dezia-content textarea,
.dezia-content select {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dezia-content input:focus,
.dezia-content textarea:focus,
.dezia-content select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.dezia-content button[type="submit"],
.dezia-content input[type="submit"],
.dezia-content .button-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dezia-content button[type="submit"]:hover,
.dezia-content input[type="submit"]:hover,
.dezia-content .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* User Notice Styles */
.notice-pending-enhanced,
.notice-banned-enhanced,
.notice-warning-enhanced,
.not-store-manager-container {
    width: 100%;
    max-width: 550px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    padding: 40px 32px;
    font-family: var(--font-sans);
    box-sizing: border-box;
}

.notice-pending-enhanced {
    border-top: 4px solid var(--primary);
}

.notice-banned-enhanced {
    border-top: 4px solid var(--danger);
}

.notice-warning-enhanced {
    border-top: 4px solid var(--warning);
}

.notice-pending-enhanced h2,
.notice-banned-enhanced h2,
.notice-warning-enhanced h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.notice-pending-enhanced h2 {
    color: var(--primary);
}

.notice-banned-enhanced h2 {
    color: var(--danger);
}

.notice-warning-enhanced h2 {
    color: var(--warning);
}

.notice-pending-image,
.notice-banned-image,
.notice-warning-image,
.not-store-manager-image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-md) !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    object-fit: cover !important;
}

.notice-pending-image {
    border: 3px solid rgba(99, 102, 241, 0.2) !important;
}

.notice-banned-image {
    border: 3px solid rgba(239, 68, 68, 0.2) !important;
}

.notice-warning-image {
    border: 3px solid rgba(245, 158, 11, 0.2) !important;
}

.notice-pending-enhanced p,
.notice-banned-enhanced p,
.notice-warning-enhanced p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Chat Buttons in notices */
.notice-banned-enhanced a[href*="wa.me"],
.notice-warning-enhanced a[href*="wa.me"] {
    background: #25D366 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    text-decoration: none !important;
    margin-bottom: 12px !important;
    transition: all 0.2s ease !important;
}

.notice-banned-enhanced a[href*="wa.me"]:hover,
.notice-warning-enhanced a[href*="wa.me"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3) !important;
}

/* Media Queries for Responsive Design (Desktop, Tablet, Mobile) */
@media (max-width: 1024px) {
    .dashboard-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-details-row {
        flex-direction: column;
    }

    .dashboard-chart-column,
    .dashboard-orders-column {
        width: 100%;
        flex: none;
    }
}

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

    .dashboard-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .dezia-header {
        position: fixed;
        top: 16px;
        left: 16px;
        width: calc(100% - 32px);
        height: 60px;
        z-index: 1200;
        background: #ffffff;
        border: 1px solid var(--card-border);
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        display: flex;
        align-items: center;
        padding: 0 16px;
        box-sizing: border-box;
        transition: background 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, width 0.3s ease, left 0.3s ease, height 0.3s ease;
    }

    .dezia-header.scrolled {
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(99, 102, 241, 0.08);
        border: none;
        color: var(--primary);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-right: 12px;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        background: var(--primary-gradient);
        color: #ffffff;
        outline: none;
    }

    .dezia-header-title {
        font-family: var(--font-sans);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-main);
        letter-spacing: -0.01em;
    }

    .dezia-content {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px;
        padding-top: 92px !important;
        overflow-x: auto;
    }

    body.admin-bar .dezia-header {
        top: 62px;
    }

    body.admin-bar .dezia-header.scrolled {
        top: 46px;
    }

    body.admin-bar .dezia-content {
        padding-top: 138px !important;
    }

    .dezia-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1300;
        transform: translateX(-100%);
        overflow-y: auto;
        min-height: unset;
        width: 260px;
        box-shadow: 24px 0 48px rgba(15, 23, 42, 0.2);
    }

    body.admin-bar .dezia-sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }

    .dezia-sidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: #ffffff;
        font-size: 1rem;
        cursor: pointer;
        z-index: 10;
        transition: all 0.2s ease;
    }

    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.25);
        color: var(--danger);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1250;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.hide {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .storefront-link-card-pro {
        grid-column: span 2;
    }
}

@media (max-width: 580px) {
    .dashboard-grid-pro {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    /* Storefront Link card spans a full-width row */
    .storefront-link-card-pro {
        grid-column: span 2;
        width: 100%;
        box-sizing: border-box;
    }

    /* Make the last card (Yearly Revenue) span 2 columns to balance the layout */
    .stat-card-pro:nth-child(8) {
        grid-column: span 2;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-card-pro {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px;
        min-width: 0;
        box-sizing: border-box;
    }

    .stat-card-pro .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .stat-card-pro>div {
        flex: 1;
        min-width: 0;
    }

    .stat-card-pro h4 {
        font-size: 0.72rem;
        margin: 0 0 2px 0;
    }

    .stat-card-pro p {
        font-size: 1.15rem;
        margin: 0;
    }

    .storefront-link-card-pro {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .storefront-link-card-pro>div {
        width: 100%;
    }

    .storefront-link-card-pro h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .dezia-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   DEZIA PRODUCT CREATION REDESIGN STYLES
   ========================================================================== */

/* Add Product Screen - Option Selection */
.dezia-flow-card-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    animation: deziaFadeIn 0.5s ease-out;
}

.dezia-flow-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.dezia-flow-header .subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
}

.dezia-flow-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dezia-card-option {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 30px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dezia-card-option:hover {
    border-color: #ff006e;
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(255, 0, 110, 0.1), 0 10px 10px -5px rgba(255, 0, 110, 0.04);
}

.dezia-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff5f9;
    color: #ff006e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.dezia-card-option:hover .dezia-card-icon {
    background: #ff006e;
    color: #ffffff;
    transform: scale(1.1);
}

.dezia-card-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.dezia-card-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.dezia-card-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #ecfdf5;
    color: #059669;
    margin-bottom: 24px;
}

.dezia-card-tag.secondary {
    background: #eff6ff;
    color: #1d4ed8;
}

.dezia-flow-continue-btn {
    width: 100%;
    background: #ff006e;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 0, 110, 0.2);
}

.dezia-flow-continue-btn:hover {
    background: #9e0059;
}

/* Wizard Containers */
.dezia-wizard-container {
    max-width: 600px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    padding: 30px;
    box-sizing: border-box;
    animation: deziaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header & Status Indicator */
.dezia-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dezia-back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dezia-back-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.draft-status-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    transition: opacity 0.3s;
}

.draft-status-badge.saving {
    color: #d97706;
    background: #fffbeb;
}

/* Progress Step Dots */
.dezia-progress-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 24px;
    border-radius: 5px;
    background: #ff006e;
}

.step-dot.completed {
    background: #9e0059;
}

/* Step Content Layouts */
.dezia-step-content {
    animation: deziaFadeIn 0.3s ease-out;
}

.dezia-step-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.dezia-step-content .step-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Upload Dropzone Container */
.dezia-upload-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dezia-upload-dropzone:hover,
.dezia-upload-dropzone.dragover {
    border-color: #ff006e;
    background: #fff5f9;
}

.dezia-upload-dropzone i {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.dezia-upload-dropzone:hover i {
    color: #ff006e;
}

.dezia-upload-dropzone p {
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.dezia-upload-dropzone span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Uploading scanner state */
.dezia-upload-dropzone.ai-scanning {
    border-color: #ff006e;
    background: #fff5f9;
}

.dezia-upload-dropzone.ai-scanning i {
    color: #ff006e;
    font-size: 3rem;
}

.dezia-upload-dropzone.ai-scanning p {
    color: #ff006e;
}

/* Preview uploaded thumbnails */
.dezia-uploaded-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.dezia-uploaded-preview .thumb {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.dezia-uploaded-preview .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dezia-uploaded-preview .thumb .controls {
    position: absolute;
    top: 4px;
    right: 4px;
}

.dezia-uploaded-preview .thumb .remove-img-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dezia-uploaded-preview .thumb .remove-img-btn:hover {
    background: #ef4444;
}

.dezia-uploaded-preview .thumb .featured-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 0, 110, 0.9);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 2px 0;
}

/* Upload Loader spinner */
.dezia-uploaded-preview .thumb.upload-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-overlay i {
    font-size: 1.5rem;
    color: #ff006e;
}

/* Touch Input Fields */
.dezia-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.dezia-input-group label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.dezia-wizard-container input[type="text"],
.dezia-wizard-container input[type="number"],
.dezia-wizard-container textarea,
.dezia-wizard-container select {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 16px !important;
    font-size: 1rem !important;
    background: #f8fafc !important;
    font-family: var(--font-sans) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.dezia-wizard-container input:focus,
.dezia-wizard-container textarea:focus,
.dezia-wizard-container select:focus {
    background: #ffffff !important;
    border-color: #ff006e !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.12) !important;
    outline: none !important;
}

/* Placeholder fades on focus so it never overlaps typed text.
   Also hidden immediately once the user has typed a value. */
.dezia-wizard-container input::placeholder,
.dezia-wizard-container textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dezia-wizard-container input:focus::placeholder,
.dezia-wizard-container textarea:focus::placeholder,
.dezia-wizard-container input:not(:placeholder-shown)::placeholder,
.dezia-wizard-container textarea:not(:placeholder-shown)::placeholder {
    opacity: 0;
    transform: translateX(4px);
}

/* Ensure typed text is always readable (counters any theme override) */
.dezia-wizard-container input,
.dezia-wizard-container textarea {
    color: #0f172a !important;
    caret-color: #ff006e;
}

/* Currency prefix wrapper — uses flex so the GHS label
   is always vertically centred on the input, regardless of
   whether a <label> is also in the parent .dezia-input-group */
/* Currency prefix wrapper */
.dezia-price-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    width: 100%;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dezia-price-input-group:focus-within {
    background: #ffffff;
    border-color: #ff006e;
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.12);
}

.dezia-price-addon {
    background: #f1f5f9;
    color: #64748b;
    padding: 14px 18px;
    font-weight: 700;
    border-right: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    user-select: none;
    font-size: 1rem;
}

.dezia-wizard-container .dezia-price-input-group input[type="number"] {
    width: auto !important;
    border: none !important;
    background: transparent !important;
    padding: 14px 16px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    color: #0f172a !important;
    margin: 0 !important;
}

.dezia-wizard-container .dezia-price-input-group input[type="number"]:focus {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Adjust select box styles to prevent option clipping */
.dezia-wizard-container select {
    padding: 12px 16px !important;
    height: 54px !important;
    line-height: normal !important;
}

.price-input-wrapper {
    position: relative;
}

/* Inner layout container (used in detailed flow) */
.price-input-wrapper>div {
    position: relative;
    display: flex;
    align-items: center;
}

/* Direct-child input (used in quick flow — no inner div) */
.price-input-wrapper>input {
    display: block;
    width: 100%;
}

.price-input-wrapper .currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    user-select: none;
}

/* Push input text to the right of the GHS label */
.price-input-wrapper input {
    padding-left: 56px !important;
    color: #0f172a !important;
}

/* Suppress browser number-spinner arrows that can overlap text */
.price-input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.price-input-wrapper input[type="number"]::-webkit-inner-spin-button,
.price-input-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Suggestions tags */
.dezia-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.suggestion-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Choice Cards (Options & Inventory selectors) */
.options-choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.choice-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.choice-card:hover {
    border-color: #ff006e;
    background: #fff5f9;
}

.choice-card.active {
    border-color: #ff006e;
    background: #fff5f9;
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.choice-card-icon {
    font-size: 1.8rem;
    color: #64748b;
    margin-bottom: 10px;
}

.choice-card.active .choice-card-icon {
    color: #ff006e;
}

.choice-card span {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

/* Advanced Settings Dropdowns */
.advanced-settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.advanced-settings-toggle:hover {
    background: #e2e8f0;
}

/* Add discount button */
.add-discount-link {
    background: none;
    border: none;
    color: #ff006e;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
}

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

/* Category selector autocomplete */
.category-search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.category-search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.category-search-wrapper input {
    padding-left: 48px !important;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    transition: background 0.2s;
    text-align: left;
}

.suggestion-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.selected-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    background: #fff5f9;
    border: 1px solid #fbcfe8;
    color: #db2777;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-tag .remove-tag {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.category-tag .remove-tag:hover {
    opacity: 1;
}

/* Preview Card Layout */
.dezia-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    max-width: 320px;
    margin: 0 auto 30px auto;
}

.preview-card-image {
    aspect-ratio: 1;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img-placeholder i {
    font-size: 3rem;
    color: #cbd5e1;
}

.preview-card-body {
    padding: 20px;
    text-align: left;
}

.preview-card-body h4 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.preview-card-body p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff006e;
}

/* Wizard Sticky Footer Navs */
.dezia-wizard-footer {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.dezia-wizard-footer button {
    margin-top: 0 !important;
}

.dezia-btn-primary {
    flex: 2;
    background: linear-gradient(90deg, #ff006e 0%, #9e0059 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 0, 110, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dezia-btn-primary:hover {
    filter: brightness(1.05);
}

.dezia-btn-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    color: #94a3b8;
}

.dezia-btn-secondary {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dezia-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Success View */
.dezia-success-container {
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    animation: deziaFadeIn 0.5s ease-out;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 24px auto;
}

.dezia-success-container h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.dezia-success-container .success-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff006e;
    margin-bottom: 30px;
}

.success-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.success-actions-buttons a,
.success-actions-buttons button {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.dezia-btn-text {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

.dezia-btn-text:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* Share Creative Modal */
.dezia-share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dezia-share-modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: deziaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.close-share-modal-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-share-modal-btn:hover {
    color: #0f172a;
}

.share-modal-body {
    padding: 24px;
}

.share-format-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.format-toggle-btn {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.format-toggle-btn.active {
    background: #ff006e;
    color: #ffffff;
    border-color: #ff006e;
}

.share-preview-canvas-wrapper {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    position: relative;
    aspect-ratio: 9/16;
    /* default story; overridden by JS */
    max-height: 380px;
}

.share-preview-canvas-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.share-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-action-buttons button,
.share-action-buttons a {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.dezia-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.dezia-btn-whatsapp:hover {
    background: #20ba59;
}

/* Animations */
@keyframes deziaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes deziaSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive sticky footer adjustments */
@media (max-width: 600px) {
    .dezia-wizard-container {
        border-radius: 0;
        margin: 0;
        min-height: calc(100vh - 56px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px 16px 80px 16px;
    }

    body.admin-bar .dezia-wizard-container {
        min-height: calc(100vh - 102px);
    }

    .dezia-wizard-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        padding: 12px 16px;
        box-sizing: border-box;
        z-index: 1000;
        margin-top: 0;
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
    }
}

/* ==========================================
   SMANAGER MY PRODUCTS TAB REDESIGN STYLES
   ========================================== */
.dezia-products-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* Header & Live Metrics Strip */
.dezia-products-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dezia-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 16px;
    flex: 1;
}

.dezia-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dezia-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
}

.dezia-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dezia-metric-card.total .dezia-metric-icon {
    background: #e0e7ff;
    color: #4f46e5;
}

.dezia-metric-card.instock .dezia-metric-icon {
    background: #dcfce7;
    color: #10b981;
}

.dezia-metric-card.lowstock .dezia-metric-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.dezia-metric-card.outofstock .dezia-metric-icon {
    background: #fee2e2;
    color: #ef4444;
}

.dezia-metric-info {
    display: flex;
    flex-direction: column;
}

.dezia-metric-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.dezia-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.dezia-btn-add-product {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

.dezia-btn-add-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    color: #ffffff !important;
}

/* Toolbar Controls */
.dezia-products-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.dezia-toolbar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dezia-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.dezia-search-box input {
    width: 100%;
    height: 42px;
    padding-left: 40px;
    padding-right: 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dezia-search-box input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.dezia-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.dezia-category-select-wrapper {
    min-width: 180px;
}

.dezia-select {
    height: 42px;
    width: 100%;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.dezia-select:focus {
    border-color: #4f46e5;
}

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

.dezia-filter-pill {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dezia-filter-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dezia-filter-pill.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.dezia-filter-pill.pill-instock.active {
    background: #10b981;
    border-color: #10b981;
}

.dezia-filter-pill.pill-lowstock.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

.dezia-filter-pill.pill-outofstock.active {
    background: #ef4444;
    border-color: #ef4444;
}

.dezia-view-switcher {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.dezia-view-toggle {
    border: none;
    background: transparent;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.dezia-view-toggle:hover {
    color: #0f172a;
}

.dezia-view-toggle.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* Grid Layout */
.dezia-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dezia-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}

.dezia-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dezia-product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.dezia-product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dezia-product-card:hover .dezia-product-image-container img {
    transform: scale(1.04);
}

.dezia-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.dezia-stock-badge.instock {
    background: rgba(220, 252, 231, 0.95);
    color: #15803d;
    border: 1px solid #a7f3d0;
}

.dezia-stock-badge.lowstock {
    background: rgba(254, 243, 199, 0.95);
    color: #b45309;
    border: 1px solid #fde68a;
}

.dezia-stock-badge.outofstock {
    background: rgba(254, 226, 226, 0.95);
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.dezia-stock-badge.draft {
    background: rgba(243, 244, 246, 0.95);
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.dezia-filter-pill.pill-draft.active {
    background: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
}

.dezia-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.dezia-type-badge.simple {
    background: rgba(79, 70, 229, 0.9);
}

.dezia-type-badge.variable {
    background: rgba(217, 70, 239, 0.9);
}

.dezia-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dezia-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.dezia-product-price {
    font-size: 16px;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 10px;
}

.dezia-product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.dezia-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
}

.dezia-product-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 12px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}

.btn-action {
    height: 38px;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 1;
    touch-action: manipulation;
}

.btn-action:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-action.text-danger {
    color: #ef4444;
    border-color: #fee2e2;
}

.btn-action.text-danger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Table View */
.dezia-products-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.dezia-products-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.dezia-products-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.dezia-products-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dezia-products-table tr:last-child td {
    border-bottom: none;
}

.dezia-table-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
}

.dezia-table-title {
    font-weight: 700;
    color: #0f172a;
}

.dezia-table-sku {
    font-size: 12px;
    color: #64748b;
}

.dezia-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Deletion Fade Out */
.dezia-fade-out {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: all 0.3s ease !important;
}

/* Empty State */
.dezia-no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.dezia-no-products-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.dezia-no-products-found h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.dezia-no-products-found p {
    color: #64748b;
    font-size: 14px;
}

/* Confirmation Modal */
.dezia-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.dezia-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: deziaModalPop 0.25s ease-out;
}

@keyframes deziaModalPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dezia-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dezia-modal-icon.warning {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dezia-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.dezia-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
}

.dezia-modal-body p {
    margin: 0;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.dezia-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.dezia-btn-secondary {
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.dezia-btn-danger {
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.dezia-btn-danger:hover {
    background: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dezia-products-header-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .dezia-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dezia-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dezia-search-box {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .dezia-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dezia-products-grid {
        grid-template-columns: 1fr;
    }

    .btn-action span {
        display: none;
    }

    .btn-action {
        padding: 0;
        width: 36px;
        min-width: 36px;
    }
}

/* ==========================================================================
   MULTI-TAB PRODUCT EDIT SUITE STYLES
   ========================================================================== */
.dezia-product-edit-suite-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* 1. Header Bar */
.dezia-edit-suite-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.dezia-edit-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dezia-back-to-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    min-height: 44px;
}

.dezia-back-to-products-btn:hover {
    color: #38bdf8;
}

.dezia-edit-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dezia-edit-product-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.dezia-edit-badges-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dezia-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.dezia-status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.dezia-status-publish, .dezia-status-published {
    background: #10b981;
    color: #ffffff;
}

.dezia-status-draft {
    background: #f59e0b;
    color: #ffffff;
}

.dezia-btn-view-storefront {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.dezia-btn-view-storefront:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* 2. Section Cards & Layout */
.dezia-product-type-bar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dezia-edit-sections-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dezia-card-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dezia-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.dezia-form-group {
    margin-bottom: 20px;
}

.dezia-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.dezia-form-label.required::after {
    content: " *";
    color: #ef4444;
}

.dezia-form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.dezia-form-control:focus {
    outline: none;
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dezia-form-help {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.dezia-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Media Section Grid */
.dezia-media-section-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-top: 20px;
}

.dezia-media-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
}

.dezia-featured-img-preview-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.dezia-featured-img-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dezia-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.dezia-img-placeholder i {
    font-size: 2rem;
    color: #cbd5e1;
}

.dezia-gallery-previews-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.dezia-gallery-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.dezia-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dezia-remove-gallery-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banners & Dimmed States */
.dezia-banner-info, .dezia-banner-warning {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dezia-banner-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.dezia-banner-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.dezia-field-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dezia-permalink-preview {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;

    a {
        color: var(--primary, #4f46e5);
        text-decoration: underline;
    }
}

/* Options & Variations */
.dezia-options-builder-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.dezia-active-option-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.dezia-option-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
}

.dezia-option-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #0f172a;
}

.dezia-tag-chip {
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 6px;
}

.dezia-matrix-section {
    margin-top: 24px;
}

.dezia-matrix-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.dezia-bulk-bar {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dezia-input-sm {
    max-width: 140px;
    min-height: 38px !important;
}

.dezia-table-responsive {
    overflow-x: auto;
}

.dezia-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;

    th, td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: middle;
    }

    th {
        background: #f8fafc;
        color: #475569;
        font-weight: 700;
    }
}

.dezia-matrix-img-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dezia-var-img-preview {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Sticky Action Footer */
.dezia-edit-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    margin-top: 24px;
}

.dezia-product-type-segmented-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dezia-segmented-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.dezia-segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.dezia-segmented-item {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;

    input {
        margin-right: 6px;
    }
}

.dezia-segmented-item:has(input:checked) {
    background: #ffffff;
    color: var(--primary, #4f46e5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dezia-btn-primary {
    background: var(--primary-gradient, linear-gradient(135deg, #6366f1 0%, #4f46e5 100%));
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dezia-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.dezia-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dezia-btn-secondary:hover {
    background: #e2e8f0;
}

.dezia-btn-danger-outline {
    background: transparent;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    min-height: 44px;
}

.dezia-btn-xs {
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

.dezia-btn-sm {
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.dezia-btn-lg {
    min-height: 48px !important;
    padding: 14px 28px !important;
    font-size: 1rem !important;
}

/* Modals */
.dezia-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dezia-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.dezia-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;

    h3 {
        margin: 0;
        font-size: 1.15rem;
        color: #0f172a;
    }
}

.dezia-modal-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
}

.dezia-attr-values-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 10px;
}

.dezia-modal-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 36px;
}

.dezia-input-group {
    display: flex;
    gap: 8px;
}

.dezia-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* RESPONSIVENESS (< 768px & < 576px) */
@media (max-width: 768px) {
    .dezia-media-section-grid {
        grid-template-columns: 1fr;
    }

    .dezia-edit-suite-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .dezia-product-edit-suite-container,
    .dezia-edit-sections-container,
    #dezia-edit-product-form,
    .dezia-edit-product-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 6px 0 !important;
    }

    .dezia-edit-section-card {
        width: 100% !important;
        border-radius: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
        padding: 16px 12px !important;
        box-shadow: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    .dezia-edit-sticky-footer {
        padding: 10px 12px !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .dezia-card-box {
        padding: 14px;
    }

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

    .dezia-product-type-segmented-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .dezia-segmented-control {
        width: 100%;
        justify-content: space-between;
    }

    .dezia-segmented-item {
        flex: 1;
        justify-content: center;
    }

    .dezia-btn-primary, .dezia-btn-secondary {
        width: 100%;
    }
}

/* Native SaaS Authentication Page Styles */
.dezia-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dezia-auth-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.dezia-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    box-sizing: border-box;
}

.dezia-auth-card a,
.auth-link {
    color: #ff006e !important;
    font-weight: 600;
    text-decoration: none;
}

.dezia-auth-card a:hover,
.auth-link:hover {
    text-decoration: underline;
}

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

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.auth-alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.45;
}
.auth-alert-box.alert-danger,
.auth-alert-box.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.auth-alert-box.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.auth-field-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100% !important;
    padding: 12px 42px 12px 42px !important;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: #ff006e !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.15) !important;
    outline: none;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #475569;
}

.btn-auth-submit {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    background-color: #ff006e !important;
    border: 1px solid #ff006e !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover {
    background-color: #e00060 !important;
    border-color: #e00060 !important;
}

.btn-auth-submit:disabled {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    cursor: not-allowed;
}

.auth-card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.auth-footer-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 576px) {
    .dezia-auth-container {
        padding: 0;
        min-height: 100vh;
    }
    .dezia-auth-card {
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 36px 20px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Variable Product Matrix Suite Enhancements */
.dezia-var-row-deleted {
    opacity: 0.5 !important;
    background-color: #fee2e2 !important;
    transition: all 0.25s ease;
}

.dezia-var-row-deleted td {
    text-decoration: line-through;
    color: #991b1b;
}

.dezia-var-row-deleted input,
.dezia-var-row-deleted select {
    pointer-events: none;
    opacity: 0.6;
}

.dezia-empty-matrix-row td {
    border-radius: 10px;
}

.dezia-combo-badge {
    background: #f1f5f9;
    color: #1e293b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    display: inline-block;
}