/* =====================================================
   🪐 ORBIT CUSTOM STUDIO - STYLES
   ===================================================== */

.custom-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    direction: rtl;
    font-family: var(--font-ar, 'Cairo', sans-serif);
}

/* Studio Header */
.studio-header {
    text-align: center;
    margin-bottom: 35px;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 246, 0.12);
    border: 1px solid rgba(37, 99, 246, 0.3);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

body.dark-theme .studio-badge {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--secondary-color);
}

.studio-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.studio-subtitle {
    font-size: clamp(13px, 2vw, 16px);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Studio Layout Grid */
.studio-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =====================================================
   LEFT COLUMN: Mockup Visualizer & Canvas
   ===================================================== */
.visualizer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

body.dark-theme .visualizer-card {
    background: rgba(13, 18, 38, 0.7);
    backdrop-filter: blur(12px);
    border-color: rgba(0, 240, 255, 0.15);
}

/* Side Switch Tabs (Front / Back) */
.side-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.side-tabs {
    display: inline-flex;
    background: var(--bg-accent);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 4px;
}

.side-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.side-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 246, 0.3);
}

body.dark-theme .side-tab-btn.active {
    background: var(--primary-color);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Canvas Area */
.mockup-canvas-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at center, rgba(37, 99, 246, 0.04) 0%, rgba(0,0,0,0.02) 70%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body.dark-theme .mockup-canvas-box {
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, rgba(5, 8, 20, 0.4) 80%);
    border-color: rgba(255, 255, 255, 0.06);
}

.garment-base-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Print Zone on the Hoodie - Exact match to Noaanime reference (Width 34%, Height 44%, Top 26%, Left 33%) */
.print-zone {
    position: absolute;
    top: 26%;
    left: 33%;
    width: 34%;
    height: 44%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(239, 68, 68, 0.7);
    border-radius: 6px;
    background: transparent;
    pointer-events: none;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Zone Sizes */
/* A3: Exact Noaanime Reference Dimensions */
.print-zone.zone-a3 {
    top: 30%;
    left: 26%;
    width: 48%;
    height: 27%;
}
.print-zone.zone-a3.zone-back {
    top: 26%;
    left: 33%;
    width: 34%;
    height: 44%;
}

/* A4: Standard centered chest print */
.print-zone.zone-a4 {
    top: 31%;
    left: 31%;
    width: 38%;
    height: 23%;
}
.print-zone.zone-a4.zone-back {
    top: 28%;
    left: 36%;
    width: 28%;
    height: 35%;
}

/* Pocket: Left chest badge */
.print-zone.zone-pocket {
    top: 26%;
    left: 54%;
    width: 15%;
    height: 15%;
}
.print-zone.zone-pocket.zone-back {
    top: 26%;
    left: 32%;
    width: 15%;
    height: 15%;
}

/* Orbit Pro: Adaptive */
.print-zone.zone-pro {
    top: 30%;
    left: 25%;
    width: 50%;
    height: 27%;
}
.print-zone.zone-pro.zone-back {
    top: 24%;
    left: 31%;
    width: 38%;
    height: 46%;
}

body.dark-theme .print-zone {
    border-color: rgba(248, 113, 113, 0.7);
    background: transparent;
}

.print-zone.has-artwork {
    border-color: rgba(239, 68, 68, 0.35);
    background: transparent;
}

/* Print Zone Empty Label - Exact match to user reference text 'منطقة الطباعة' */
.print-zone-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    transition: opacity 0.2s ease;
    user-select: none;
}

body.dark-theme .print-zone-placeholder {
    color: #f87171;
}

.print-zone-placeholder svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
    opacity: 0.8;
}

/* Uploaded Artwork element */
.artwork-layer {
    position: absolute;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    z-index: 10;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    display: none;
    will-change: transform;
}

.artwork-layer:active {
    cursor: grabbing;
}

/* Upload Action Box */
.upload-action-box {
    margin-top: 20px;
}

.upload-dropzone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border: 2px dashed var(--primary-color);
    border-radius: 14px;
    background: rgba(37, 99, 246, 0.05);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

body.dark-theme .upload-dropzone-btn {
    border-color: var(--secondary-color);
    background: rgba(0, 240, 255, 0.05);
}

.upload-dropzone-btn:hover {
    background: rgba(37, 99, 246, 0.1);
    transform: translateY(-1px);
}

.upload-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    flex-shrink: 0;
}

body.dark-theme .upload-icon-circle {
    background: var(--secondary-color);
    color: #050814;
}

.upload-text-group {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.upload-text-main {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
}

.upload-text-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Visualizer Controls Box (Sliders) */
.controls-panel {
    margin-top: 18px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.controls-panel-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}

@media (max-width: 600px) {
    .controls-grid {
        grid-template-columns: 1fr;
    }
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.control-item-header .control-val {
    color: var(--primary-color);
    font-weight: 800;
    direction: ltr;
}

/* Modern Slider Input */
.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 999px;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.15s, background 0.15s;
}

body.dark-theme .custom-slider::-webkit-slider-thumb {
    background: var(--secondary-color);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.controls-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.ctrl-btn {
    flex: 1;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ctrl-btn-reset {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.ctrl-btn-reset:hover {
    background: var(--border-color);
}

.ctrl-btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.ctrl-btn-remove:hover {
    background: rgba(239, 68, 68, 0.18);
}

/* =====================================================
   RIGHT COLUMN: Options & Customization Form
   ===================================================== */
.options-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

body.dark-theme .options-card {
    background: rgba(13, 18, 38, 0.7);
    backdrop-filter: blur(12px);
    border-color: rgba(0, 240, 255, 0.15);
}

.section-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 1. Color Palette Swatches */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
}

.color-option-btn {
    border: 1.5px solid var(--border-color);
    background: var(--bg-accent);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.color-option-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.color-option-btn.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 246, 0.08);
    box-shadow: 0 0 0 2px rgba(37, 99, 246, 0.25);
}

body.dark-theme .color-option-btn.active {
    border-color: var(--secondary-color);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.3);
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.color-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

/* 2. Sizes Pills */
.sizes-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-pill-btn {
    flex: 1;
    min-width: 55px;
    padding: 10px 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-accent);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.size-pill-btn:hover {
    border-color: var(--primary-color);
}

.size-pill-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 246, 0.3);
}

body.dark-theme .size-pill-btn.active {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 3. Print Sizes */
.print-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.print-size-btn {
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-accent);
    border-radius: 10px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

.print-size-btn:hover {
    border-color: var(--primary-color);
}

.print-size-btn.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 246, 0.1);
    color: var(--primary-color);
    font-weight: 800;
}

body.dark-theme .print-size-btn.active {
    border-color: var(--secondary-color);
    background: rgba(0, 240, 255, 0.12);
    color: var(--secondary-color);
}

/* 4. Notes Textarea */
.custom-notes-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-accent);
    color: var(--text-main);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-notes-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 246, 0.15);
}

/* 5. Summary Card */
.order-summary-box {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1.5px solid var(--border-color);
}

.summary-label {
    color: var(--text-muted);
    font-weight: 600;
}

.summary-val {
    color: var(--text-main);
    font-weight: 800;
}

.summary-total-val {
    font-size: 17px;
    color: var(--primary-color);
    font-weight: 900;
}

body.dark-theme .summary-total-val {
    color: var(--secondary-color);
}

/* Main Checkout Button */
.submit-custom-order-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 99, 246, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-custom-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 246, 0.45);
}

body.dark-theme .submit-custom-order-btn {
    background: linear-gradient(135deg, #2563eb, #00f0ff);
    color: #050814;
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35);
}

.submit-custom-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.summary-guarantee-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* =====================================================
   📱 Mobile Sticky Floating Order Bar & Responsive Fixes
   ===================================================== */
.mobile-sticky-order-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

body:not(.dark-theme) .mobile-sticky-order-bar {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-order-bar-info {
    display: flex;
    flex-direction: column;
}

.mobile-order-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.mobile-order-bar-price {
    font-size: 17px;
    font-weight: 900;
    color: var(--primary-color);
}

body.dark-theme .mobile-order-bar-price {
    color: var(--secondary-color);
}

.mobile-order-bar-btn {
    flex: 1;
    max-width: 220px;
    padding: 13px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 246, 0.35);
    transition: transform 0.2s ease;
}

body.dark-theme .mobile-order-bar-btn {
    background: linear-gradient(135deg, #2563eb, #00f0ff);
    color: #050814;
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.35);
}

.mobile-order-bar-btn:active {
    transform: scale(0.97);
}

/* Ensure drawers and overlays are always on the very top of everything */
.drawer-panel.checkout-drawer,
.drawer-panel.cart-drawer {
    z-index: 999999 !important;
}

.drawer-overlay.checkout-overlay,
.drawer-overlay.cart-overlay {
    z-index: 999998 !important;
}

@media (max-width: 768px) {
    .mobile-sticky-order-bar {
        display: flex;
    }
    
    .studio-container {
        padding-bottom: 95px !important;
    }
    
    .checkout-drawer .drawer-content {
        padding-bottom: 90px !important;
    }
}

/* =====================================================
   TRANSPARENT CHECKERBOARD (For Isolated PNG Inspection)
   ===================================================== */
.transparent-checkerboard {
    background-color: #181f30 !important;
    background-image: 
        linear-gradient(45deg, #0e1320 25%, transparent 25%), 
        linear-gradient(-45deg, #0e1320 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #0e1320 75%), 
        linear-gradient(-45deg, transparent 75%, #0e1320 75%) !important;
    background-size: 16px 16px !important;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px !important;
}

/* =====================================================
   IN-STUDIO ORDER TRACKING MODAL STYLES
   ===================================================== */
.custom-tracking-modal {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    direction: rtl;
    animation: fadeIn 0.25s ease;
}

.custom-tracking-modal.active {
    display: flex;
}

.custom-tracking-card {
    background: var(--bg-card, #0f172a);
    border: 1px solid var(--border-color, #334155);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color, #334155);
    background: rgba(255, 255, 255, 0.02);
}

.custom-tracking-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-tracking-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-muted, #94a3b8);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-tracking-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.custom-tracking-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.custom-tracking-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.custom-tracking-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color, #334155);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main, #fff);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.custom-tracking-input:focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 246, 0.2);
}

.custom-tracking-search-btn {
    background: var(--primary-color, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.custom-tracking-search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-tracking-result {
    margin-top: 10px;
}

/* Timeline in Tracking */
.tracking-timeline-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-right: 24px;
    margin: 18px 0;
}

.tracking-timeline-flow::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 8px;
    width: 2px;
    background: var(--border-color, #334155);
}

.tracking-timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tracking-timeline-step::before {
    content: '';
    position: absolute;
    top: 4px;
    right: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color, #334155);
    border: 2px solid var(--bg-card, #0f172a);
    transition: all 0.3s ease;
}

.tracking-timeline-step.completed::before {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.tracking-timeline-step.active::before {
    background: var(--primary-color, #2563eb);
    box-shadow: 0 0 12px rgba(37, 99, 246, 0.7);
    transform: scale(1.3);
}

.tracking-timeline-step .step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main, #fff);
}

.tracking-timeline-step.completed .step-title {
    color: #10b981;
}

.tracking-timeline-step.active .step-title {
    color: var(--primary-color, #2563eb);
}

.tracking-timeline-step .step-desc {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
}

/* =====================================================
   ✨ 1. PRINT MODE SELECTION (Front / Back / Both)
   ===================================================== */
.print-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.print-mode-btn {
    background: var(--bg-accent);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    position: relative;
    transition: all 0.2s ease;
    font-family: inherit;
}

.print-mode-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.print-mode-btn.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 246, 0.08);
    box-shadow: 0 0 0 1px var(--primary-color);
}

body.dark-theme .print-mode-btn.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.print-mode-btn .mode-icon {
    font-size: 18px;
}

.print-mode-btn .mode-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
}

.print-mode-btn .mode-sub {
    font-size: 9.5px;
    color: var(--text-muted);
}

.print-mode-btn .mode-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.side-has-artwork-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    margin-inline-start: 4px;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* =====================================================
   ✨ 2. INSTANT BACKGROUND REMOVAL BUTTONS
   ===================================================== */
.ctrl-btn-magic {
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(121, 40, 202, 0.35);
}

.ctrl-btn-magic:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 0, 128, 0.45);
}

.ctrl-btn-undo {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.ctrl-btn-undo:hover {
    background: rgba(245, 158, 11, 0.25) !important;
}

/* =====================================================
   ✨ 3. REALISTIC FABRIC VISUALS & DEPTH
   ===================================================== */
.fabric-depth-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08) 0%, transparent 65%),
                linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 60%, rgba(0,0,0,0.08) 100%);
    mix-blend-mode: overlay;
    border-radius: 16px;
}

.canvas-studio-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body:not(.dark-theme) .canvas-studio-badge {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

/* =====================================================
   ✨ 4. VIRAL SHARING & SOCIAL MARKETING
   ===================================================== */
.share-design-btn {
    width: 100%;
    padding: 12px 18px;
    background: rgba(37, 99, 246, 0.08);
    color: var(--primary-color);
    border: 1.5px dashed var(--primary-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
}

.share-design-btn:hover {
    background: rgba(37, 99, 246, 0.16);
    transform: translateY(-1px);
}

body.dark-theme .share-design-btn {
    background: rgba(0, 240, 255, 0.08);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.share-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-act-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-act-btn:hover {
    transform: translateY(-2px);
}

.share-wa-btn {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.share-link-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}

.share-img-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 246, 0.35);
}

/* ==========================================================================
   🛡️ Quality Assurance & Print Notice Box
   ========================================================================== */
.quality-assurance-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(37, 99, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1.5px dashed rgba(37, 99, 246, 0.35);
    border-radius: 14px;
    padding: 13px 15px;
    margin-top: 14px;
    direction: rtl;
    text-align: right;
    backdrop-filter: blur(4px);
}

.qa-badge-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.qa-content {
    flex: 1;
}

.qa-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color, #2563eb);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-text {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
}

.qa-text strong {
    color: var(--text-main, #fff);
    font-weight: 800;
}
