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

:root {
    --primary-vibrant: #6366F1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary-vibrant: #F43F5E;
    --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    --glass-vibrant: rgba(255, 255, 255, 0.82);
    --glass-border-vibrant: rgba(99, 102, 241, 0.15);
}

.app-environment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 24px;
    padding: 0 10px;
    margin-left: 10px;
    border: 1px solid rgba(244, 63, 94, 0.32);
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.12);
    color: #be123c;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.app-environment-badge-floating {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 10000;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

@media (max-width: 600px) {
    .app-environment-badge {
        min-width: 42px;
        height: 22px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

    .app-environment-badge-floating {
        top: 10px;
        right: 10px;
    }
}

.order-buyer-note {
    min-width: 220px;
    max-width: min(42vw, 520px);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.order-platform-skus {
    min-width: 120px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-platform-skus code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.order-item-stack {
    display: flex;
    min-width: 240px;
    max-width: min(38vw, 420px);
    flex-direction: column;
    gap: 6px;
}

.order-item-stack-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-height: 46px;
}

.order-item-stack-text {
    min-width: 0;
    line-height: 1.2;
}

.order-item-stack-sku {
    display: block;
    color: #212529;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.order-item-stack-meta,
.order-item-stack-name,
.order-item-stack-qty {
    overflow-wrap: anywhere;
    color: #6c757d;
    font-size: 0.72rem;
    line-height: 1.25;
}

.order-item-stack-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.processed-order-identity {
    min-width: 190px;
}

.processed-order-address,
.order-shipping-address {
    min-width: 220px;
    max-width: min(34vw, 360px);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.processed-order-identity code,
.processed-order-shipping code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.processed-order-shipping {
    min-width: 160px;
    max-width: 240px;
}

.nav-menu-link-content {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-menu-link-content > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.nav-menu-count-badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.nav-menu-count-badge-success {
    background: #dcfce7;
    color: #15803d;
}

/* ===== MULTI-PLATFORM CHAT INBOX ===== */

.chat-shell {
    min-height: calc(100vh - 72px);
    padding: 20px;
    background: #f8fafc;
    color: #111827;
}

.chat-topbar,
.chat-filterbar,
.chat-workspace,
.chat-thread-header,
.chat-compose,
.chat-list-item,
.message-row,
.chat-actions,
.chat-thread-actions,
.quick-replies {
    display: flex;
    gap: 10px;
}

.chat-topbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.chat-topbar h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}

.chat-topbar p {
    margin: 3px 0 0;
    color: #64748b;
}

.chat-actions {
    align-items: center;
}

.chat-filterbar {
    align-items: center;
    margin-bottom: 14px;
}

.chat-filterbar > .form-select {
    max-width: 220px;
}

.chat-check {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
    color: #334155;
}

.chat-workspace {
    height: calc(100vh - 185px);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #ffffff;
}

.chat-list {
    width: 360px;
    flex: 0 0 360px;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    background: #fbfdff;
}

.chat-list-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(251, 253, 255, 0.96);
}

.chat-list-item {
    width: 100%;
    align-items: flex-start;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: transparent;
    text-align: left;
}

.chat-list-item:hover,
.chat-list-item.active {
    background: #eef6ff;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
}

.chat-avatar.shopee,
.platform-pill.shopee {
    background: #ee4d2d;
}

.chat-avatar.lazada,
.platform-pill.lazada {
    background: #1d4ed8;
}

.chat-avatar.tiktok,
.platform-pill.tiktok {
    background: #111827;
}

.chat-avatar.mpos,
.platform-pill.mpos {
    background: #0e7490;
}

.chat-avatar.other,
.platform-pill.other {
    background: #64748b;
}

.chat-list-copy {
    min-width: 0;
    flex: 1;
}

.chat-list-title,
.chat-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-list-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.chat-list-title small,
.chat-list-meta {
    color: #64748b;
    font-size: 0.78rem;
}

.chat-list-meta {
    justify-content: flex-start;
    margin: 3px 0 4px;
}

.platform-pill,
.unread-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
}

.unread-pill {
    background: #dc2626;
}

.chat-list-copy p {
    margin: 0;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-thread {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-thread-header {
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.chat-thread-header h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.chat-thread-header span {
    color: #64748b;
    font-size: 0.86rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: #f8fafc;
}

.message-row {
    margin-bottom: 10px;
}

.message-row.outbound {
    justify-content: flex-end;
}

.message-bubble {
    width: min(76%, 620px);
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.message-row.outbound .message-bubble {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.message-status {
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.message-status.sent {
    color: #15803d;
}

.message-status.pending {
    color: #a16207;
}

.message-status.failed {
    color: #b91c1c;
}

.quick-replies {
    flex-wrap: wrap;
    padding: 10px 12px 0;
    border-top: 1px solid #e2e8f0;
}

.chat-compose {
    align-items: stretch;
    padding: 10px 12px 12px;
}

.chat-compose textarea {
    resize: none;
}

.chat-compose .btn {
    width: 48px;
    min-width: 48px;
}

.chat-context {
    width: 310px;
    flex: 0 0 310px;
    padding: 14px;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
    background: #fbfdff;
}

.chat-context section {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.chat-context h5 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 800;
}

.chat-context dl {
    margin: 0;
}

.chat-context dt {
    color: #64748b;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.chat-context dd {
    margin: 0 0 9px;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.chat-empty,
.chat-thread-empty,
.context-empty,
.chat-loading {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    color: #64748b;
    text-align: center;
}

.chat-empty i,
.chat-thread-empty i,
.context-empty i {
    font-size: 2rem;
    color: #94a3b8;
}

.chat-empty.compact,
.context-empty.small {
    min-height: 120px;
}

@media (max-width: 1180px) {
    .chat-context {
        display: none;
    }
}

@media (max-width: 820px) {
    .chat-shell {
        padding: 12px;
    }

    .chat-topbar,
    .chat-filterbar {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-filterbar > .form-select {
        max-width: none;
    }

    .chat-workspace {
        height: auto;
        min-height: 0;
        flex-direction: column;
        overflow: visible;
    }

    .chat-list {
        width: 100%;
        flex: none;
        max-height: 360px;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .chat-thread {
        min-height: 560px;
    }

    .message-bubble {
        width: 92%;
    }
}

/* ===== SCAN ORDERS - CAMERA SCAN ===== */

.scan-camera-panel {
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
    padding-top: 14px;
}

.scan-camera-view {
    display: none;
    position: relative;
    overflow: hidden;
    width: min(100%, 720px);
    height: clamp(320px, 52vh, 560px);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
}

.scan-camera-view.is-active {
    display: block;
}

.scan-camera-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-camera-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90%, 560px);
    height: 30%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.24), 0 0 28px rgba(247, 124, 62, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scan-camera-frame::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: rgba(247, 124, 62, 0.95);
    box-shadow: 0 0 12px rgba(247, 124, 62, 0.85);
    transform: translateY(-50%);
}

.scan-camera-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 720px);
    margin: 8px 0 12px;
}

.scan-camera-controls .btn {
    min-height: 42px;
    border-radius: 8px;
    font-weight: 700;
}

.scan-camera-controls .btn span {
    margin-left: 4px;
}

@media (max-width: 576px) {
    .scan-camera-panel .btn {
        flex: 1 1 100%;
    }

    .scan-camera-view {
        width: 100%;
        height: min(70vh, 640px);
        min-height: 420px;
    }

    .scan-camera-controls {
        width: 100%;
    }

    .scan-camera-controls .btn {
        min-height: 46px;
        padding-inline: 8px;
    }
}

/* ===== MOBILE SCAN ORDERS APP ===== */

.mobile-scan-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #334155;
    background: #f8fafc;
}

.mobile-scan-shell {
    min-height: 100vh;
    padding: 14px;
    background: #f8fafc;
    color: #0f172a;
}

.mobile-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 14px;
}

.mobile-scan-header h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.mobile-scan-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.mobile-scan-kicker {
    color: #f77c3e;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
}

.mobile-scan-panel,
.mobile-scan-toolbar,
.mobile-scan-list {
    margin-bottom: 12px;
}

.mobile-scan-panel {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-scan-batch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-batch-pill,
.mobile-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mobile-batch-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
    background: #f1f5f9;
    color: #334155;
}

.mobile-batch-pill.active {
    background: #0f172a;
    color: #ffffff;
}

.mobile-count-pill {
    background: #fff7ed;
    color: #c2410c;
}

.mobile-camera {
    width: 100%;
    max-width: none;
    height: min(68vh, 660px);
    min-height: 430px;
    margin-bottom: 12px;
}

.mobile-scan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.mobile-primary-btn,
.mobile-secondary-btn,
.mobile-add-btn,
.mobile-primary-outline {
    min-height: 48px;
    border-radius: 8px;
    font-weight: 800;
}

.mobile-primary-btn {
    background: #f77c3e;
    color: #ffffff;
}

.mobile-secondary-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.mobile-primary-outline {
    border: 1px solid #f77c3e;
    color: #c2410c;
    background: #ffffff;
}

.mobile-manual-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
}

.mobile-manual-input .form-control {
    min-height: 50px;
    border-radius: 8px;
}

.mobile-add-btn {
    background: #0f172a;
    color: #ffffff;
}

.mobile-scan-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-scan-toolbar .btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
}

.mobile-empty-state {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    color: #64748b;
    text-align: center;
}

.mobile-empty-state i {
    color: #94a3b8;
    font-size: 2.5rem;
}

.mobile-empty-state strong {
    color: #334155;
}

.mobile-order-card {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-order-card.is-selected {
    border-color: #f77c3e;
    background: #fff7ed;
}

.mobile-order-main {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.mobile-order-main code {
    display: block;
    color: #0f172a;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mobile-order-meta,
.mobile-order-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 0.82rem;
}

.mobile-order-footer {
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 380px) {
    .mobile-scan-actions,
    .mobile-scan-toolbar {
        grid-template-columns: 1fr;
    }
}

/* ===== CREATE PRODUCT - VARIANT DRAWER ===== */

.variant-summary-card {
    overflow: hidden;
}

.variant-summary-main {
    min-width: 240px;
    flex: 1 1 320px;
}

.variant-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.variant-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
}

.variant-metric {
    min-height: 70px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.variant-metric span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.variant-metric strong {
    display: block;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.variant-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1390;
    background: rgba(15, 23, 42, 0.42);
}

.variant-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: flex;
    width: min(680px, 92vw);
    background: #ffffff;
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.2);
    flex-direction: column;
}

.variant-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.variant-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    flex: 0 0 auto;
}

.variant-drawer-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.variant-filter-tabs,
.variant-drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-drawer-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
    background: #f1f5f9;
}

.variant-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 118px;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.variant-row.is-selected {
    border-color: #93c5fd;
    background: #eff6ff;
}

.variant-row-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-row-main {
    min-width: 0;
}

.variant-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 5px;
    font-weight: 700;
    color: #0f172a;
}

.variant-row-title code {
    flex: 0 0 auto;
    color: #1d4ed8;
    font-size: 0.82rem;
}

.variant-row-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 0.82rem;
}

.variant-row-meta span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.variant-row-numbers {
    text-align: right;
}

.variant-row-numbers strong {
    display: block;
    color: #1d4ed8;
    font-size: 0.9rem;
    white-space: nowrap;
}

.variant-row-numbers span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
}

.variant-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #64748b;
    text-align: center;
    flex-direction: column;
    gap: 6px;
}

.variant-empty-state i {
    color: #94a3b8;
    font-size: 2rem;
}

@media (max-width: 992px) {
    .variant-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .variant-summary-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .variant-drawer {
        width: 100vw;
    }

    .variant-drawer-header,
    .variant-drawer-toolbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .variant-metrics {
        grid-template-columns: 1fr;
    }

    .variant-summary-actions .btn {
        flex: 1 1 100%;
    }

    .variant-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .variant-row-numbers {
        grid-column: 2;
        text-align: left;
    }
}

html, body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
}

.glass-appbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border-vibrant) !important;
    color: #1e293b !important;
}

.modern-drawer {
    border-right: 1px solid rgba(99, 102, 241, 0.08) !important;
    background-color: #ffffff !important;
}

.mud-nav-link {
    border-radius: 12px !important;
    margin: 6px 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-nav-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.02) 100%) !important;
    color: var(--primary-vibrant) !important;
    font-weight: 700 !important;
    box-shadow: inset 4px 0 0 0 var(--primary-vibrant) !important;
}

.mud-nav-link:hover:not(.active) {
    background-color: rgba(99, 102, 241, 0.06) !important;
    transform: translateX(4px);
}

.mud-drawer-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
}

.vibrant-card {
    background: var(--glass-vibrant);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-vibrant);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.vibrant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* ===== HELP PAGE - MODERN GLASSMORPHISM DESIGN ===== */

.help-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

/* ===== HERO HEADER ===== */
.help-hero {
    background: var(--glass-vibrant);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border-vibrant);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.help-hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.help-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-vibrant), var(--secondary-vibrant));
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

.help-icon-wrapper i {
    font-size: 40px;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.help-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-vibrant), var(--secondary-vibrant));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

.help-subtitle {
    font-size: 16px;
    color: #64748B;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* ===== SEARCH BAR ===== */
.help-search-wrapper {
    position: relative;
    max-width: 600px;
}

.help-search-input {
    width: 100%;
    padding: 16px 52px 16px 52px;
    border: 2px solid var(--glass-border-vibrant);
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.help-search-input:focus {
    border-color: var(--primary-vibrant);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 24px rgba(99, 102, 241, 0.15);
    background: white;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94A3B8;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #94A3B8;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear:hover {
    color: var(--secondary-vibrant);
    transform: translateY(-50%) scale(1.1);
}

/* ===== GRID LAYOUT ===== */
.help-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

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

    .help-sidebar {
        position: static !important;
        max-height: none !important;
    }
}

/* ===== SIDEBAR ===== */
.help-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-vibrant) transparent;
}

.help-sidebar::-webkit-scrollbar {
    width: 6px;
}

.help-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.help-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-vibrant);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    margin-bottom: 16px;
    padding: 0 4px;
}

.sidebar-header i {
    font-size: 16px;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--glass-vibrant);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-vibrant);
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-vibrant), var(--secondary-vibrant));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: var(--primary-vibrant);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.category-card.active::before {
    opacity: 1;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.05));
    border-radius: 12px;
    border: 1px solid var(--glass-border-vibrant);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
    background: linear-gradient(135deg, var(--primary-vibrant), var(--secondary-vibrant));
    border-color: transparent;
}

.category-icon i {
    font-size: 22px;
    color: var(--primary-vibrant);
    transition: color 0.3s ease;
}

.category-card:hover .category-icon i,
.category-card.active .category-icon i {
    color: white;
}

.category-content {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 12px;
    color: #64748B;
}

.category-arrow {
    flex-shrink: 0;
    color: #94A3B8;
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow,
.category-card.active .category-arrow {
    color: var(--primary-vibrant);
    transform: translateX(4px);
}

/* ===== MAIN CONTENT AREA ===== */
.help-content {
    min-height: 400px;
}

/* ===== BREADCRUMB ===== */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748B;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}

.breadcrumb-item:hover {
    color: var(--primary-vibrant);
    background: rgba(99, 102, 241, 0.08);
}

.breadcrumb-item.active {
    color: #1E293B;
    font-weight: 600;
    cursor: default;
}

.breadcrumb-separator {
    color: #94A3B8;
    font-size: 12px;
}

/* ===== CATEGORY HEADER CARD ===== */
.category-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.category-header-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-vibrant), var(--secondary-vibrant));
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category-header-icon-large i {
    font-size: 40px;
    color: white;
}

.category-header-text {
    position: relative;
    z-index: 1;
}

.category-header-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.category-header-text p {
    font-size: 15px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* ===== SECTIONS CONTAINER ===== */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== HELP SECTION CARDS ===== */
.help-section {
    padding: 32px;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    position: relative;
    overflow: hidden;
}

.help-section:nth-child(1) { animation-delay: 0.1s; }
.help-section:nth-child(2) { animation-delay: 0.15s; }
.help-section:nth-child(3) { animation-delay: 0.2s; }
.help-section:nth-child(4) { animation-delay: 0.25s; }
.help-section:nth-child(5) { animation-delay: 0.3s; }

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-vibrant), var(--secondary-vibrant));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-section:hover::before {
    transform: scaleX(1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.05));
    border: 1px solid var(--glass-border-vibrant);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-vibrant);
    flex-shrink: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    letter-spacing: -0.01em;
}

.section-content {
    color: #64748B;
    line-height: 1.7;
    font-size: 15px;
}

.section-content p {
    margin: 0 0 16px 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content strong {
    color: #1E293B;
    font-weight: 600;
}

.section-content code {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-vibrant);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.section-content ul,
.section-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.section-content li {
    margin: 8px 0;
}

.section-content em {
    color: #94A3B8;
    font-style: italic;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    padding: 80px 40px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.empty-state i {
    font-size: 64px;
    color: #94A3B8;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 15px;
    color: #64748B;
    margin: 0;
}

/* ===== WELCOME STATE ===== */
.welcome-state {
    padding: 60px 40px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.welcome-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-vibrant), var(--secondary-vibrant));
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.welcome-icon i {
    font-size: 48px;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4); }
}

.welcome-state h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.welcome-state > p {
    font-size: 16px;
    color: #64748B;
    margin: 0 0 40px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.quick-link-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border-vibrant);
    background: var(--glass-vibrant);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-vibrant), var(--secondary-vibrant));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
}

.quick-link-card:hover::before {
    transform: scaleX(1);
}

.quick-link-card i {
    font-size: 36px;
    color: var(--primary-vibrant);
    transition: all 0.3s ease;
}

.quick-link-card:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-vibrant), var(--secondary-vibrant));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-link-card span {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .help-container {
        padding: 16px;
    }

    .help-hero {
        padding: 24px;
    }

    .help-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .help-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .help-icon-wrapper i {
        font-size: 32px;
    }

    .help-title {
        font-size: 28px;
    }

    .help-subtitle {
        font-size: 14px;
    }

    .help-grid {
        gap: 24px;
    }

    .category-header-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .category-header-icon-large {
        width: 64px;
        height: 64px;
    }

    .category-header-icon-large i {
        font-size: 32px;
    }

    .category-header-text h2 {
        font-size: 22px;
    }

    .help-section {
        padding: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .welcome-state {
        padding: 40px 24px;
    }

    .welcome-icon {
        width: 80px;
        height: 80px;
    }

    .welcome-icon i {
        font-size: 40px;
    }

    .welcome-state h2 {
        font-size: 22px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }
}

/* ===== STORE MANAGEMENT ===== */

.store-page {
    --store-canvas: #f8fafc;
    --store-ink: #111827;
    --store-muted: #64748b;
    --store-line: #e5e7eb;
    --store-action: #2563eb;
    color: var(--store-ink);
}

.store-page-header {
    margin-bottom: 14px;
}

.store-page-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.store-page-title-icon,
.store-panel-icon,
.store-category-icon,
.store-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
}

.store-page-title-icon {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--store-action);
}

.store-heading {
    font-weight: 800;
    line-height: 1.1;
}

.store-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: var(--store-muted);
    font-size: 0.82rem;
}

.store-summary span,
.store-category-stats span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    padding: 2px 8px;
    background: #ffffff;
    line-height: 1;
}

.store-connect-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #ffffff;
}

.store-connect-title,
.store-panel-heading,
.store-category-title,
.store-card-main,
.store-card-status,
.store-card-actions {
    display: flex;
    align-items: center;
}

.store-connect-title {
    gap: 7px;
    min-width: 96px;
    color: var(--store-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.store-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-connect-button {
    position: relative;
    width: 74px;
    min-height: 58px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: var(--store-ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.store-connect-button:hover,
.store-connect-button:focus-visible {
    border-color: var(--marketplace-color);
    background: #f8fafc;
    outline: none;
}

.store-connect-button .mud-icon-root,
.store-panel-icon,
.store-category-icon,
.store-card-icon {
    color: var(--marketplace-color);
}

.store-connect-button b {
    position: absolute;
    top: 5px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--marketplace-color);
    color: #ffffff;
    font-size: 0.68rem;
    line-height: 1;
}

.store-shopify-panel {
    padding: 14px;
    border: 1px solid var(--store-line);
    border-left: 4px solid var(--marketplace-color);
    border-radius: 8px;
    background: #ffffff;
}

.store-panel-heading {
    gap: 9px;
}

.store-panel-icon {
    width: 30px;
    height: 30px;
    border: 1px solid var(--store-line);
    background: #f8fafc;
}

.store-panel-title {
    font-weight: 800;
}

.store-marketplace-button {
    background: var(--marketplace-color) !important;
    color: #ffffff !important;
}

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

.store-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(17, 24, 39, 0.18);
    border-radius: 8px;
    background: transparent;
    text-align: center;
}

.store-empty-state .mud-icon-root {
    font-size: 4rem;
    opacity: 0.18;
}

.store-category-list {
    display: grid;
    gap: 16px;
}

.store-category-section {
    padding: 12px;
    border: 1px solid var(--store-line);
    border-left: 4px solid var(--marketplace-color);
    border-radius: 8px;
    background: #ffffff;
}

.store-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.store-category-title {
    min-width: 0;
    gap: 10px;
}

.store-category-icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: #f8fafc;
}

.store-category-name {
    font-weight: 800;
    line-height: 1.1;
}

.store-category-title span:not(.store-category-icon),
.store-category-stats {
    color: var(--store-muted);
    font-size: 0.78rem;
}

.store-category-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.store-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.store-compact-card {
    min-width: 0;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, 0.09);
    border-radius: 8px;
    background: var(--store-canvas);
}

.store-compact-card.is-muted {
    opacity: 0.72;
}

.store-card-main {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.store-card-icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: #ffffff;
}

.store-card-copy {
    min-width: 0;
}

.store-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.store-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 4px;
    color: var(--store-muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.store-card-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.store-card-status {
    flex-wrap: wrap;
    gap: 6px;
}

.store-status-pill {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 2px 7px;
    background: #ffffff;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.store-status-pill .mud-icon-root {
    font-size: 1rem;
}

.store-status-pill.is-active {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.store-status-pill.is-inactive {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #4b5563;
}

.store-status-pill.is-expired {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.store-status-pill.is-refreshable {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.store-status-pill.is-direct {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.store-expiry {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    color: var(--store-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.store-tiktok-block {
    min-width: 0;
}

.store-cipher-text,
.store-cipher-text code {
    overflow-wrap: anywhere;
}

.store-cipher-form {
    background: #ffffff;
}

.store-card-actions {
    min-height: 38px;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.store-card-actions .mud-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.store-action-spacer {
    flex: 1 1 auto;
}

@media (max-width: 768px) {
    .store-connect-bar {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .store-connect-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-connect-button {
        width: 100%;
    }

    .store-category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-category-stats {
        justify-content: flex-start;
    }

    .store-shopify-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .store-page-title {
        align-items: flex-start;
    }

    .store-page-title-icon {
        width: 38px;
        height: 38px;
    }

    .store-connect-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-compact-grid {
        grid-template-columns: 1fr;
    }

    .store-compact-card {
        padding: 10px;
    }
}
