/* ============================================
   PREMIUM DEMO PANELS - Modern 3D Design
   ============================================ */

.demo-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(60, 80, 140, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(100, 120, 180, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.demo-panel.active {
    opacity: 1;
    visibility: visible;
}

.demo-panel__content {
    position: relative;
    background: linear-gradient(145deg, #151518 0%, #0d0d10 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.92) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-panel__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

.demo-panel.active .demo-panel__content {
    transform: scale(1) translateY(0);
}

/* Light Theme */
[data-theme="light"] .demo-panel {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .demo-panel::before {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(100, 120, 180, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .demo-panel__content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f8fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ============================================
   HEADER - Premium Glass Design
   ============================================ */

.demo-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.demo-panel__header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.demo-panel__title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.demo-panel__title-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(145deg, rgba(100, 120, 180, 0.15) 0%, rgba(80, 100, 160, 0.08) 100%);
    border: 1px solid rgba(100, 120, 180, 0.2);
    border-radius: 14px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-panel__title span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.demo-panel__close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-panel__close:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 150, 150, 1);
    transform: scale(1.05);
}

[data-theme="light"] .demo-panel__header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-panel__title-icon {
    background: linear-gradient(145deg, rgba(100, 120, 180, 0.12) 0%, rgba(80, 100, 160, 0.06) 100%);
    border: 1px solid rgba(100, 120, 180, 0.15);
}

[data-theme="light"] .demo-panel__close {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================
   BODY - Content Area
   ============================================ */

.demo-panel__body {
    padding: 28px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.demo-panel__body::-webkit-scrollbar {
    width: 6px;
}

.demo-panel__body::-webkit-scrollbar-track {
    background: transparent;
}

.demo-panel__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.demo-panel__description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

[data-theme="light"] .demo-panel__description {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   STAT CARDS - 3D Glass Effect
   ============================================ */

.demo-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.demo-stat {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.demo-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(100, 120, 180, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.demo-stat__value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-stat__label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

[data-theme="light"] .demo-stat {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-stat__value {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   DEMO LIST - Premium Row Cards
   ============================================ */

.demo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.demo-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.demo-list li:hover {
    transform: translateX(4px);
    border-color: rgba(100, 120, 180, 0.25);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.demo-list__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(145deg, rgba(100, 120, 180, 0.12) 0%, rgba(80, 100, 160, 0.06) 100%);
    border: 1px solid rgba(100, 120, 180, 0.15);
    border-radius: 14px;
    flex-shrink: 0;
}

.demo-list__status {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(100, 255, 150, 0.15) 0%, rgba(100, 255, 150, 0.08) 100%);
    color: rgba(100, 255, 150, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 150, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-list__status--pending {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 180, 100, 0.15) 0%, rgba(255, 180, 100, 0.08) 100%);
    color: rgba(255, 200, 120, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 180, 100, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="light"] .demo-list li {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-list__icon {
    background: linear-gradient(145deg, rgba(100, 120, 180, 0.1) 0%, rgba(80, 100, 160, 0.05) 100%);
}

[data-theme="light"] .demo-list__status {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    color: rgba(22, 163, 74, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .demo-list__status--pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    color: rgba(217, 119, 6, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ============================================
   ORDERS TABLE - Premium Design
   ============================================ */

.demo-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.demo-orders-table th {
    text-align: left;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-orders-table th:first-child {
    border-radius: 16px 0 0 0;
}

.demo-orders-table th:last-child {
    border-radius: 0 16px 0 0;
}

.demo-orders-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: background 0.2s;
}

.demo-orders-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.demo-orders-table tr:last-child td {
    border-bottom: none;
}

.demo-orders-table tr:last-child td:first-child {
    border-radius: 0 0 0 16px;
}

.demo-orders-table tr:last-child td:last-child {
    border-radius: 0 0 16px 0;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.order-status--pending {
    background: linear-gradient(135deg, rgba(255, 180, 100, 0.15) 0%, rgba(255, 180, 100, 0.08) 100%);
    color: rgba(255, 200, 120, 0.95);
    border: 1px solid rgba(255, 180, 100, 0.2);
}

.order-status--production {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.15) 0%, rgba(100, 150, 255, 0.08) 100%);
    color: rgba(130, 170, 255, 0.95);
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.order-status--shipped {
    background: linear-gradient(135deg, rgba(100, 255, 150, 0.15) 0%, rgba(100, 255, 150, 0.08) 100%);
    color: rgba(100, 255, 150, 0.95);
    border: 1px solid rgba(100, 255, 150, 0.2);
}

[data-theme="light"] .demo-orders-table {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-orders-table th {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.015) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-orders-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .order-status--pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    color: rgba(180, 100, 0, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .order-status--production {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    color: rgba(37, 99, 235, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .order-status--shipped {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    color: rgba(22, 163, 74, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ============================================
   FILES GRID - 3D Card Design
   ============================================ */

.demo-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.demo-file {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.demo-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.demo-file:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(100, 120, 180, 0.3);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.demo-file__icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.demo-file__name {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

[data-theme="light"] .demo-file {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================
   COLORS GRID - Premium Swatches
   ============================================ */

.demo-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
}

.demo-color-swatch {
    aspect-ratio: 1;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.demo-color-swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.demo-color-swatch:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.demo-color-swatch__code {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* ============================================
   FABRIC SWATCHES - Premium Card Design
   ============================================ */

.fabric-swatches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.fabric-swatch-card {
    background: linear-gradient(145deg, #1a1a1e 0%, #141416 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.fabric-swatch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.fabric-swatch-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(100, 120, 180, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2);
}

.fabric-swatch-color {
    height: 80px;
    position: relative;
    overflow: hidden;
}

/* Fabric weave texture */
.fabric-swatch-color::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(255,255,255,0.05) 1px,
            rgba(255,255,255,0.05) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.05) 1px,
            rgba(0,0,0,0.05) 2px
        );
    pointer-events: none;
}

/* 3D fabric sheen */
.fabric-swatch-color::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 35%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.fabric-swatch-info {
    padding: 14px;
    background: linear-gradient(180deg, #151518 0%, #121214 100%);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fabric-swatch-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.fabric-swatch-code {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    letter-spacing: 0.02em;
}

[data-theme="light"] .fabric-swatch-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .fabric-swatch-info {
    background: linear-gradient(180deg, #f8f8fa 0%, #f0f0f2 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   GROWTH TOOLS GRID - 3D Card Design
   ============================================ */

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

.growth-tool-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.growth-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

.growth-tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(100, 120, 180, 0.35);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.growth-tool-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(145deg, rgba(100, 120, 180, 0.15) 0%, rgba(80, 100, 160, 0.08) 100%);
    border: 1px solid rgba(100, 120, 180, 0.2);
    border-radius: 16px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.growth-tool-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.growth-tool-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

[data-theme="light"] .growth-tool-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .growth-tool-card__icon {
    background: linear-gradient(145deg, rgba(100, 120, 180, 0.1) 0%, rgba(80, 100, 160, 0.05) 100%);
}

/* ============================================
   TOOL DEMO VIEWS
   ============================================ */

.tool-demo {
    display: none;
}

.tool-demo.active {
    display: block;
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tool-demo__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 24px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.25s;
}

.tool-demo__back:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-demo__content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.tool-demo__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.tool-demo__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.tool-demo__subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

[data-theme="light"] .tool-demo__back {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tool-demo__content {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.demo-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.demo-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(100, 150, 255, 0.7), rgba(100, 255, 180, 0.7));
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

[data-theme="light"] .demo-progress-bar {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-progress-bar__fill {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(34, 197, 94, 0.8));
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .demo-panel__content {
        max-width: 95%;
        max-height: 90vh;
        border-radius: 24px;
    }

    .demo-panel__header {
        padding: 20px 22px;
    }

    .demo-panel__body {
        padding: 22px;
    }

    .demo-stat-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .demo-stat {
        padding: 16px 12px;
    }

    .demo-stat__value {
        font-size: 22px;
    }

    .growth-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fabric-swatches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .demo-orders-table {
        font-size: 12px;
    }

    .demo-orders-table th,
    .demo-orders-table td {
        padding: 14px 12px;
    }
}

@media (max-width: 480px) {
    .demo-panel__content {
        max-width: 98%;
        border-radius: 20px;
    }

    .demo-panel__header {
        padding: 16px 18px;
    }

    .demo-panel__title-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .demo-panel__title span {
        font-size: 16px;
    }

    .demo-panel__body {
        padding: 18px;
    }

    .demo-stat-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .demo-stat {
        padding: 14px 8px;
        border-radius: 12px;
    }

    .demo-stat__value {
        font-size: 18px;
    }

    .demo-stat__label {
        font-size: 9px;
    }

    .growth-tools-grid {
        grid-template-columns: 1fr;
    }

    .fabric-swatches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fabric-swatch-color {
        height: 65px;
    }

    .fabric-swatch-info {
        padding: 10px 12px;
    }

    .demo-list li {
        padding: 14px 16px;
        gap: 12px;
    }

    .demo-list__icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .order-status {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* ============================================
   WIDE PANEL VARIANT
   ============================================ */

.demo-panel__content--wide {
    max-width: 920px;
}

/* ============================================
   ORDER CARDS - Premium Visual Layout
   ============================================ */

.demo-order-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.demo-order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.demo-order-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.demo-order-card__image {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-order-card__image img {
    max-height: 120px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.demo-order-card:hover .demo-order-card__image img {
    transform: scale(1.05);
}

.demo-order-card__stage {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-order-card__stage.sewing {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-order-card__stage.cutting {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.demo-order-card__stage.qc {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.demo-order-card__stage.packing {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.demo-order-card__content {
    padding: 16px;
}

.demo-order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.demo-order-card__id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.demo-order-card__badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.demo-order-card__badge.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.demo-order-card__badge.qc {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.demo-order-card__badge.shipped {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.demo-order-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.demo-order-card__specs {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.demo-order-card__progress {
    margin-bottom: 12px;
}

.demo-order-card__progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.demo-order-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.demo-order-card__progress-text {
    font-size: 10px;
    color: var(--text-muted);
}

.demo-order-card__timeline {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.timeline-step .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-step.completed .step-dot {
    background: #4ade80;
    border-color: #4ade80;
}

.timeline-step.active .step-dot {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.timeline-step .step-label {
    font-size: 9px;
    color: var(--text-muted);
}

.timeline-step.completed .step-label,
.timeline-step.active .step-label {
    color: var(--text-secondary);
}

/* ============================================
   SAMPLE CARDS - Premium Visual Layout
   ============================================ */

.demo-sample-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.demo-sample-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.demo-sample-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.demo-sample-card__image {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-sample-card__image img {
    max-height: 110px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.demo-sample-card:hover .demo-sample-card__image img {
    transform: scale(1.05);
}

.demo-sample-card__stage {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-sample-card__stage.ready {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.demo-sample-card__stage.sewing {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-sample-card__stage.cutting {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.demo-sample-card__stage.pattern {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.demo-sample-card__content {
    padding: 14px;
}

.demo-sample-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.demo-sample-card__id {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.demo-sample-card__badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.demo-sample-card__badge.ready {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.demo-sample-card__badge.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.demo-sample-card__badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.demo-sample-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.demo-sample-card__specs {
    margin-bottom: 10px;
}

.demo-sample-card__specs .spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-sample-card__specs .spec-row:last-child {
    border-bottom: none;
}

.demo-sample-card__specs .spec-label {
    color: var(--text-muted);
}

.demo-sample-card__specs .spec-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.demo-sample-card__timeline {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.sample-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.sample-step .step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
}

.sample-step.completed .step-icon {
    background: rgba(34, 197, 94, 0.2);
    border-color: #4ade80;
    color: #4ade80;
}

.sample-step.active .step-icon {
    background: rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.sample-step .step-text {
    font-size: 8px;
    color: var(--text-muted);
    text-align: center;
}

.sample-step.completed .step-text,
.sample-step.active .step-text {
    color: var(--text-secondary);
}

.demo-sample-card__eta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.demo-sample-card__eta svg {
    opacity: 0.6;
}

.demo-sample-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sample-action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.sample-action-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: white;
}

.sample-action-btn.primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* ============================================
   STAT ROW COMPACT VARIANT
   ============================================ */

.demo-stat-row--compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.demo-stat-row--compact .demo-stat {
    padding: 12px 10px;
}

.demo-stat-row--compact .demo-stat__value {
    font-size: 20px;
}

.demo-stat-row--compact .demo-stat__label {
    font-size: 9px;
}

/* ============================================
   LIGHT THEME OVERRIDES FOR CARDS
   ============================================ */

[data-theme="light"] .demo-order-card,
[data-theme="light"] .demo-sample-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-order-card:hover,
[data-theme="light"] .demo-sample-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .demo-order-card__image,
[data-theme="light"] .demo-sample-card__image {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
}

[data-theme="light"] .demo-order-card__progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .timeline-step .step-dot {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sample-step .step-icon {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .demo-sample-card__eta {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sample-action-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sample-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .demo-sample-card__specs .spec-row {
    border-color: rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESPONSIVE - ORDER & SAMPLE CARDS
   ============================================ */

@media (max-width: 768px) {
    .demo-panel__content--wide {
        max-width: 95%;
    }

    .demo-order-cards,
    .demo-sample-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .demo-order-card__image,
    .demo-sample-card__image {
        height: 120px;
    }

    .demo-order-card__image img,
    .demo-sample-card__image img {
        max-height: 100px;
    }

    .demo-stat-row--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-sample-card__actions {
        flex-direction: column;
    }
}

/* ============================================
   FILES HUB - Design Hub Layout
   ============================================ */

.demo-file-hub {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.demo-file-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s ease;
}

.demo-file-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.demo-file-category__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-file-category__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

.demo-file-category__icon.techpack {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #60a5fa;
}

.demo-file-category__icon.artwork {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #c084fc;
}

.demo-file-category__icon.sizechart {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #4ade80;
}

.demo-file-category__icon.invoice {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #fbbf24;
}

.demo-file-category__info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.demo-file-category__info span {
    font-size: 11px;
    color: var(--text-muted);
}

.demo-file-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.demo-file-preview:hover {
    background: rgba(255, 255, 255, 0.05);
}

.demo-file-preview__thumb {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
}

.demo-file-preview__thumb.pdf {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.demo-file-preview__thumb.ai {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.demo-file-preview__thumb.xls {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

.demo-file-preview__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.demo-file-preview__name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-file-preview__meta {
    font-size: 10px;
    color: var(--text-muted);
}

.demo-file-preview__badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Artwork grid for images */
.demo-artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.demo-artwork-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-artwork-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Size chart mini table */
.demo-size-table {
    width: 100%;
    font-size: 10px;
    border-collapse: collapse;
}

.demo-size-table th,
.demo-size-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-size-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-size-table td {
    color: var(--text-secondary);
}

/* Invoice list */
.demo-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 11px;
}

.demo-invoice-row__id {
    font-family: 'SF Mono', Monaco, monospace;
    color: var(--text-muted);
}

.demo-invoice-row__amount {
    font-weight: 600;
    color: var(--text-primary);
}

.demo-invoice-row__status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.demo-invoice-row__status.paid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.demo-invoice-row__status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* ============================================
   COLOR LAB - Lab-Dip Workflow
   ============================================ */

.demo-color-lab {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-color-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
}

.demo-color-section__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.demo-color-section__label.approved {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.demo-color-section__label.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.demo-color-swatches-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-color-swatch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-width: 80px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.demo-color-swatch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.demo-color-swatch-card.approved {
    border-color: rgba(34, 197, 94, 0.3);
}

.demo-color-swatch-card .demo-color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-color-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

.demo-color-usage {
    font-size: 9px;
    color: var(--text-muted);
}

/* Lab-dip cards */
.demo-labdip-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.demo-labdip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-labdip-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-labdip-card__swatch {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.demo-labdip-card__info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.demo-labdip-card__info span {
    font-size: 10px;
    color: var(--text-muted);
}

.demo-labdip-progress {
    display: flex;
    gap: 4px;
}

.demo-labdip-step {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-labdip-step.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.demo-labdip-step.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.demo-labdip-actions {
    display: flex;
    gap: 8px;
}

.demo-labdip-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.demo-labdip-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.demo-labdip-btn.approve {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: transparent;
    color: white;
}

.demo-labdip-btn.approve:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.demo-labdip-btn.adjust {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.demo-color-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    font-size: 12px;
    color: #4ade80;
}

/* ============================================
   QUOTE CARDS - Pricing Breakdown
   ============================================ */

.demo-quote-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.demo-quote-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.demo-quote-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.demo-quote-card.ready {
    border-color: rgba(34, 197, 94, 0.3);
}

.demo-quote-card.pending {
    border-color: rgba(251, 191, 36, 0.3);
}

.demo-quote-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-quote-header img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.demo-quote-header__info {
    flex: 1;
}

.demo-quote-header__info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.demo-quote-header__info span {
    font-size: 11px;
    color: var(--text-muted);
}

.demo-quote-header__status {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.demo-quote-header__status.ready {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.demo-quote-header__status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.demo-quote-pricing {
    padding: 16px;
}

.demo-quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.demo-quote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.demo-quote-value {
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-quote-row.highlight {
    padding: 8px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    margin-top: 4px;
}

.demo-quote-row.highlight .demo-quote-value {
    color: #4ade80;
    font-weight: 600;
}

.demo-quote-savings {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.demo-quote-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 14px;
}

.demo-quote-total__label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-quote-total__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-quote-actions {
    display: flex;
    gap: 8px;
}

.demo-quote-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.demo-quote-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.demo-quote-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: white;
}

.demo-quote-btn.primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.demo-quote-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.demo-quote-pending__icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.demo-quote-pending h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.demo-quote-pending span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   ACTIVITY FEED - Live Tracking
   ============================================ */

.demo-live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #4ade80;
}

.demo-live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
}

.demo-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.demo-activity-feed::before {
    content: '';
    position: absolute;
    left: 58px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.demo-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.demo-activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.demo-activity-item.new {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.demo-activity-hour {
    font-size: 10px;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

.demo-activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.demo-activity-dot.production {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.demo-activity-dot.sample {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.demo-activity-dot.quote {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.demo-activity-dot.shipped {
    background: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.demo-activity-dot.file {
    background: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.demo-activity-content {
    flex: 1;
}

.demo-activity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.demo-activity-badge.production {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.demo-activity-badge.sample {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.demo-activity-badge.quote {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.demo-activity-badge.shipped {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.demo-activity-badge.file {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.demo-activity-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.demo-activity-content p strong {
    color: var(--text-primary);
}

.demo-activity-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.demo-activity-action:hover {
    background: rgba(255, 255, 255, 0.08);
}

.demo-activity-action.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: white;
}

/* ============================================
   SHIPPING PLANNER
   ============================================ */

.demo-shipping-planner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-shipping-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.demo-shipping-summary img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.demo-shipping-summary__info {
    flex: 1;
}

.demo-shipping-summary__info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.demo-shipping-summary__info span {
    font-size: 12px;
    color: var(--text-muted);
}

.demo-shipping-stats {
    display: flex;
    gap: 16px;
}

.demo-shipping-stat {
    text-align: center;
}

.demo-shipping-stat__value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-shipping-stat__label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-shipping-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.demo-route-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.demo-route-point__flag {
    font-size: 28px;
}

.demo-route-point__city {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-route-point__country {
    font-size: 10px;
    color: var(--text-muted);
}

.demo-route-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.demo-route-line__track {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    position: relative;
}

.demo-route-line__icon {
    font-size: 18px;
}

.demo-shipping-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.demo-shipping-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.demo-shipping-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.demo-shipping-option.recommended {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.demo-shipping-option.recommended::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: #3b82f6;
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.demo-shipping-option__icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.demo-shipping-option__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.demo-shipping-option__time {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.demo-shipping-option__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-shipping-option__per-unit {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.demo-shipping-option__features {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-shipping-option__feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
}

.demo-shipping-option__feature svg {
    color: #4ade80;
}

/* ============================================
   RESPONSIVE - NEW DEMO COMPONENTS
   ============================================ */

@media (max-width: 768px) {
    .demo-file-hub {
        grid-template-columns: 1fr;
    }

    .demo-labdip-cards,
    .demo-quote-cards {
        grid-template-columns: 1fr;
    }

    .demo-shipping-options {
        grid-template-columns: 1fr;
    }

    .demo-shipping-summary {
        flex-direction: column;
        text-align: center;
    }

    .demo-shipping-stats {
        justify-content: center;
    }

    .demo-activity-feed::before {
        left: 48px;
    }

    .demo-activity-hour {
        min-width: 40px;
        font-size: 9px;
    }
}

/* ============================================
   LIGHT THEME - NEW COMPONENTS
   ============================================ */

[data-theme="light"] .demo-file-category,
[data-theme="light"] .demo-color-section,
[data-theme="light"] .demo-labdip-card,
[data-theme="light"] .demo-quote-card,
[data-theme="light"] .demo-activity-item,
[data-theme="light"] .demo-shipping-summary,
[data-theme="light"] .demo-shipping-option {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-file-category:hover,
[data-theme="light"] .demo-quote-card:hover,
[data-theme="light"] .demo-shipping-option:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .demo-file-preview,
[data-theme="light"] .demo-invoice-row,
[data-theme="light"] .demo-color-swatch-card {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .demo-live-indicator {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.15);
}

[data-theme="light"] .demo-activity-item.new {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .demo-shipping-route {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-shipping-option.recommended {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}
