/*
 * StorePilot Executive UI
 * Proprietary software owned by The Geek Factory PTY LTD.
 *
 * Version 0.6.0-alpha
 */

.storepilot-wrap {
    --sp-surface: rgba(18, 22, 28, 0.82);
    --sp-surface-strong: rgba(24, 28, 36, 0.94);
    --sp-surface-soft: rgba(255, 255, 255, 0.055);
    --sp-surface-hover: rgba(255, 255, 255, 0.095);
    --sp-line: rgba(255, 255, 255, 0.14);
    --sp-line-strong: rgba(255, 255, 255, 0.24);
    --sp-text: #f5f7fa;
    --sp-text-soft: rgba(245, 247, 250, 0.78);
    --sp-text-muted: rgba(245, 247, 250, 0.58);
    --sp-accent: #f5f7fa;
    --sp-accent-dark: #101318;
    --sp-blue: #8ecbff;
    --sp-green: #94f3c4;
    --sp-amber: #ffd88a;
    --sp-red: #ff9ba4;
    --sp-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --sp-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.26);
    --sp-radius-xl: 28px;
    --sp-radius-lg: 22px;
    --sp-radius-md: 16px;
    --sp-radius-sm: 12px;

    position: relative;
    color: var(--sp-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: -0.015em;
    padding: clamp(18px, 2.5vw, 34px);
    border-radius: var(--sp-radius-xl);
    border: 1px solid var(--sp-line);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.13), transparent 32%),
        radial-gradient(circle at bottom right, rgba(142, 203, 255, 0.11), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    box-shadow: var(--sp-shadow);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    overflow: hidden;
}

.storepilot-wrap::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--sp-radius-xl) - 1px);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), transparent 22%, transparent 72%, rgba(255,255,255,0.055));
    opacity: 0.72;
}

.storepilot-wrap > * {
    position: relative;
    z-index: 1;
}

.storepilot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.storepilot-kicker {
    margin: 0 0 8px;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 700;
}

.storepilot-header h2 {
    margin: 0;
    color: var(--sp-text);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 780;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.storepilot-header p {
    margin: 12px 0 0;
    max-width: 680px;
    color: var(--sp-text-soft);
    font-size: 15px;
    line-height: 1.55;
}

.storepilot-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    padding: 12px;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-lg);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.storepilot-search,
.storepilot-filters select,
.storepilot-field input,
.storepilot-field select,
.storepilot-field textarea {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--sp-line);
    background: rgba(255, 255, 255, 0.072) !important;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.075);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.storepilot-search:focus,
.storepilot-filters select:focus,
.storepilot-field input:focus,
.storepilot-field select:focus,
.storepilot-field textarea:focus {
    border-color: rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.105) !important;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.075), inset 0 1px 0 rgba(255,255,255,0.12);
}

.storepilot-search::placeholder,
.storepilot-field input::placeholder,
.storepilot-field textarea::placeholder {
    color: rgba(255,255,255,0.48) !important;
}

.storepilot-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.storepilot-filters select {
    min-width: 150px;
    color: #ffffff !important;
}

.storepilot-filters select option,
.storepilot-field select option,
.storepilot-modal-panel select[data-storepilot-field="category_ids"] option,
.storepilot-wrap select[data-storepilot-field="category_ids"] option {
    color: #ffffff !important;
    background-color: #171b22 !important;
}

.storepilot-modal-panel select[data-storepilot-field="category_ids"] option:checked,
.storepilot-wrap select[data-storepilot-field="category_ids"] option:checked {
    color: #111318 !important;
    background-color: #f5f7fa !important;
}

.storepilot-count {
    color: var(--sp-text-muted);
    font-size: 13px;
    white-space: nowrap;
    padding-right: 6px;
}

.storepilot-help {
    margin: 0 0 20px;
    border: 1px solid var(--sp-line);
    background: rgba(255, 255, 255, 0.045);
    border-radius: var(--sp-radius-lg);
    padding: 14px 16px;
}

.storepilot-help summary {
    cursor: pointer;
    color: var(--sp-text);
    font-weight: 720;
    letter-spacing: -0.025em;
}

.storepilot-help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.storepilot-help-grid div {
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.storepilot-help-grid strong {
    color: #ffffff;
}

.storepilot-help-grid p {
    margin: 7px 0 0;
    color: var(--sp-text-soft);
    font-size: 13px;
    line-height: 1.45;
}

.storepilot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.storepilot-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border-radius: 26px;
    border: 1px solid var(--sp-line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.086), rgba(255,255,255,0.036)),
        rgba(18, 22, 28, 0.76);
    box-shadow: var(--sp-shadow-soft);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.storepilot-card:hover {
    transform: translateY(-4px);
    border-color: var(--sp-line-strong);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.115), rgba(255,255,255,0.045)),
        rgba(20, 24, 32, 0.84);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.36);
}

.storepilot-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4 !important;
    display: grid;
    place-items: center;
    padding: 14px !important;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 54%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(0,0,0,0.10));
}

.storepilot-card-image-button {
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.storepilot-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 16px;
    filter: saturate(0.96) contrast(1.03);
    transition: transform 180ms ease, filter 180ms ease;
}

.storepilot-card-image-button:hover img {
    transform: scale(1.012) !important;
    filter: saturate(1.03) contrast(1.04) brightness(0.96);
}

.storepilot-image-edit-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(8, 10, 13, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.storepilot-card-image-button:hover .storepilot-image-edit-badge,
.storepilot-card-image-button:focus .storepilot-image-edit-badge {
    opacity: 1;
    transform: translateY(0);
}

.storepilot-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.storepilot-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.storepilot-card h3 {
    margin: 0 0 12px;
    color: var(--sp-text);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 780;
    letter-spacing: -0.04em;
}

.storepilot-price {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.storepilot-price del {
    opacity: 0.6;
    margin-right: 6px;
}

.storepilot-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--sp-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.storepilot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.storepilot-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--sp-line);
    border-radius: 999px;
    background: rgba(255,255,255,0.068);
    color: #ffffff !important;
    padding: 10px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 740;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.storepilot-btn:hover {
    transform: translateY(-1px);
    border-color: var(--sp-line-strong);
    background: rgba(255,255,255,0.105);
}

.storepilot-btn-primary {
    border-color: rgba(255,255,255,0.88);
    background: #f5f7fa;
    color: #101318 !important;
    box-shadow: 0 12px 26px rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.12);
}

.storepilot-btn-primary:hover {
    background: #ffffff;
    color: #101318 !important;
}

.storepilot-btn-danger {
    border-color: rgba(255,155,164,0.36);
    background: rgba(255,155,164,0.095);
    color: #ffd6da !important;
}

.storepilot-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 840;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.88);
}

.storepilot-status-publish,
.storepilot-stock-instock {
    color: #092215;
    background: var(--sp-green);
    border-color: rgba(148,243,196,0.82);
}

.storepilot-status-draft,
.storepilot-stock-onbackorder {
    color: #2b1e00;
    background: var(--sp-amber);
    border-color: rgba(255,216,138,0.82);
}

.storepilot-status-private,
.storepilot-stock-outofstock {
    color: #2f050b;
    background: var(--sp-red);
    border-color: rgba(255,155,164,0.82);
}

.storepilot-empty,
.storepilot-notice {
    padding: 30px;
    text-align: center;
    color: var(--sp-text-soft);
    border: 1px dashed var(--sp-line);
    border-radius: var(--sp-radius-lg);
    background: rgba(255,255,255,0.04);
}

.storepilot-empty h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: -0.035em;
}

/* Modal */
body.storepilot-modal-open {
    overflow: hidden !important;
}

.storepilot-modal[hidden] {
    display: none !important;
}

.storepilot-modal {
    --sp-surface: rgba(18, 22, 28, 0.82);
    --sp-surface-strong: rgba(24, 28, 36, 0.94);
    --sp-surface-soft: rgba(255, 255, 255, 0.055);
    --sp-surface-hover: rgba(255, 255, 255, 0.095);
    --sp-line: rgba(255, 255, 255, 0.14);
    --sp-line-strong: rgba(255, 255, 255, 0.24);
    --sp-text: #f5f7fa;
    --sp-text-soft: rgba(245, 247, 250, 0.78);
    --sp-text-muted: rgba(245, 247, 250, 0.58);
    --sp-accent: #f5f7fa;
    --sp-accent-dark: #101318;
    --sp-blue: #8ecbff;
    --sp-green: #94f3c4;
    --sp-amber: #ffd88a;
    --sp-red: #ff9ba4;

    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999900 !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: clamp(16px, 4vh, 42px) 16px 42px !important;
    box-sizing: border-box !important;
}

.storepilot-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(4, 6, 9, 0.72);
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.storepilot-modal-panel {
    position: relative;
    width: min(900px, 100%);
    max-height: 88vh;
    overflow: auto;
    margin: 0 auto !important;
    transform: none !important;
    padding: clamp(20px, 2.5vw, 34px);
    border-radius: 30px;
    border: 1px solid var(--sp-line);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 30%),
        linear-gradient(180deg, rgba(30, 34, 42, 0.96), rgba(15, 18, 24, 0.96));
    color: var(--sp-text);
    box-shadow: 0 44px 140px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(26px) saturate(135%);
    -webkit-backdrop-filter: blur(26px) saturate(135%);
}

.storepilot-modal-panel h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 820;
}

.storepilot-modal-panel p,
.storepilot-modal-intro,
[data-storepilot-modal-intro] {
    color: #ffffff !important;
    opacity: 0.88;
}

.storepilot-modal-close,
button.storepilot-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
    transition: background 160ms ease, transform 160ms ease;
}

.storepilot-modal-close:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: scale(1.03);
}

.storepilot-modal-close span {
    position: absolute;
    width: 17px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    display: block;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.storepilot-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.storepilot-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.storepilot-product-form {
    margin-top: 22px;
}

.storepilot-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.storepilot-field {
    display: grid;
    gap: 8px;
    color: var(--sp-text);
}

.storepilot-field-full {
    grid-column: 1 / -1;
}

.storepilot-field span {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.storepilot-field small {
    color: rgba(255,255,255,0.54);
}

.storepilot-field textarea {
    resize: vertical;
}

.storepilot-image-uploader {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 20px;
    background: rgba(255,255,255,0.045);
}

.storepilot-image-preview {
    min-height: 170px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 50%),
        rgba(0,0,0,0.16);
    color: var(--sp-text-muted);
}

.storepilot-image-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 14px;
}

.storepilot-gallery-preview {
    min-height: 96px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(0,0,0,0.16);
    color: var(--sp-text-muted);
}

.storepilot-gallery-preview img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--sp-line);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.storepilot-image-actions,
.storepilot-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.storepilot-form-actions {
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--sp-line);
}

.storepilot-form-message {
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--sp-line);
    color: #ffffff;
    background: rgba(255,255,255,0.055);
}

.storepilot-form-message.is-error {
    border-color: rgba(255,155,164,0.58);
    color: #ffd6da;
}

.storepilot-form-message.is-success {
    border-color: rgba(148,243,196,0.58);
    color: #dcffed;
}

.storepilot-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000300;
    max-width: 360px;
    padding: 14px 16px;
    border: 1px solid var(--sp-line-strong);
    border-radius: 18px;
    background: rgba(18, 22, 28, 0.92);
    color: #ffffff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.storepilot-toast.is-error {
    border-color: rgba(255,155,164,0.62);
}

.storepilot-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.22);
    border-top-color: #101318;
    border-radius: 50%;
    display: inline-block;
    animation: storepilot-spin 800ms linear infinite;
}

@keyframes storepilot-spin {
    to {
        transform: rotate(360deg);
    }
}

.storepilot-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 26px 0 0;
}

.storepilot-pagination a {
    min-width: 40px;
    padding: 9px 13px;
    border: 1px solid var(--sp-line);
    border-radius: 999px;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
    background: rgba(255,255,255,0.06);
}

.storepilot-pagination a.is-active {
    background: #f5f7fa;
    color: #101318 !important;
    border-color: #f5f7fa;
    font-weight: 820;
}

.storepilot-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--sp-line);
    color: var(--sp-text-muted);
    font-size: 13px;
    text-align: center;
}

/* Keep WordPress Media Library above StorePilot blur layer. */
.media-modal,
.wp-core-ui .media-modal {
    z-index: 1000200 !important;
}

.media-modal-backdrop,
.wp-core-ui .media-modal-backdrop {
    z-index: 1000100 !important;
}

@media (max-width: 1100px) {
    .storepilot-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .storepilot-filters {
        width: 100%;
    }

    .storepilot-filters select,
    .storepilot-filters button {
        flex: 1;
    }
}

@media (max-width: 900px) {
    .storepilot-help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storepilot-header {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .storepilot-wrap {
        padding: 16px;
        border-radius: 22px;
    }

    .storepilot-header h2 {
        font-size: 34px;
    }

    .storepilot-grid {
        grid-template-columns: 1fr;
    }

    .storepilot-help-grid,
    .storepilot-form-grid {
        grid-template-columns: 1fr;
    }

    .storepilot-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .storepilot-btn-primary {
        width: 100%;
    }

    .storepilot-modal {
        padding: 10px !important;
    }

    .storepilot-modal-panel {
        padding: 20px;
        max-height: 92vh;
        border-radius: 24px;
    }

    .storepilot-form-actions {
        flex-direction: column-reverse;
    }

    .storepilot-form-actions .storepilot-btn {
        width: 100%;
    }
}

/*
 * StorePilot 0.6.2 Premium Front-End Login
 * Proprietary software owned by The Geek Factory PTY LTD.
 */

.storepilot-auth {
    --sp-line: rgba(255, 255, 255, 0.14);
    --sp-line-strong: rgba(255, 255, 255, 0.26);
    --sp-text: #f5f7fa;
    --sp-text-soft: rgba(245, 247, 250, 0.78);
    --sp-text-muted: rgba(245, 247, 250, 0.58);
    --sp-green: #94f3c4;
    --sp-red: #ff9ba4;

    min-height: min(760px, 86vh);
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 70px);
    color: var(--sp-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,255,255,0.16), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(142,203,255,0.14), transparent 32%),
        linear-gradient(145deg, rgba(15,18,24,0.94), rgba(5,7,11,0.96));
    border: 1px solid var(--sp-line);
    border-radius: 32px;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    position: relative;
}

.storepilot-auth::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 31px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent 32%, rgba(255,255,255,0.045));
}

.storepilot-auth-panel {
    width: min(460px, 100%);
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--sp-line);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
    box-shadow: 0 30px 90px rgba(0,0,0,0.42);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.storepilot-auth-panel-small {
    width: min(540px, 100%);
}

.storepilot-auth-brand h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 0.98;
    font-weight: 820;
    letter-spacing: -0.06em;
}

.storepilot-auth-brand p {
    margin: 14px 0 0;
    color: var(--sp-text-soft);
    font-size: 15px;
    line-height: 1.55;
}

.storepilot-auth-message {
    margin: 20px 0;
    padding: 13px 14px;
    border: 1px solid rgba(255,155,164,0.38);
    border-radius: 16px;
    background: rgba(255,155,164,0.08);
    color: #ffd6da;
    line-height: 1.45;
}

.storepilot-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.storepilot-auth-form label {
    display: grid;
    gap: 8px;
}

.storepilot-auth-form label > span,
.storepilot-auth-remember span {
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.storepilot-auth-form input[type="text"],
.storepilot-auth-form input[type="password"] {
    width: 100%;
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    background: rgba(255,255,255,0.078) !important;
    color: #ffffff !important;
    padding: 14px 15px;
    font: inherit;
    box-sizing: border-box;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.075);
}

.storepilot-auth-form input[type="text"]:focus,
.storepilot-auth-form input[type="password"]:focus {
    border-color: var(--sp-line-strong);
    background: rgba(255,255,255,0.115) !important;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.075);
}

.storepilot-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.storepilot-auth-remember {
    display: inline-flex !important;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px !important;
}

.storepilot-auth-remember input {
    margin: 0;
}

.storepilot-auth-row a {
    color: #ffffff;
    opacity: 0.78;
    text-decoration: none;
    font-size: 13px;
}

.storepilot-auth-row a:hover {
    opacity: 1;
    text-decoration: underline;
}

.storepilot-auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.88);
    border-radius: 999px;
    background: #f5f7fa;
    color: #101318 !important;
    font: inherit;
    font-weight: 820;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.12);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 160ms ease, background 160ms ease;
}

.storepilot-auth-submit:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.storepilot-auth-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--sp-line);
    color: var(--sp-text-muted);
    font-size: 12px;
    text-align: center;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .storepilot-auth {
        min-height: 72vh;
        padding: 16px;
        border-radius: 24px;
    }

    .storepilot-auth-panel {
        border-radius: 24px;
        padding: 22px;
    }

    .storepilot-auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/*
 * StorePilot 0.6.4 2FA-Compatible Login Refinements
 * Proprietary software owned by The Geek Factory PTY LTD.
 */

.storepilot-auth-message-info {
    border-color: rgba(142, 203, 255, 0.38) !important;
    background: rgba(142, 203, 255, 0.09) !important;
    color: #d9efff !important;
}

.storepilot-auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.storepilot-auth-secondary {
    color: rgba(255,255,255,0.76) !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 13px;
}

.storepilot-auth-secondary:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/*
 * StorePilot 0.6.5 Mobile & Android UX Build
 * Proprietary software owned by The Geek Factory PTY LTD.
 */

.storepilot-wrap,
.storepilot-auth,
.storepilot-modal {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.storepilot-btn,
.storepilot-auth-submit,
.storepilot-auth-secondary,
.storepilot-card-image-button,
.storepilot-modal-close {
    touch-action: manipulation;
}

.storepilot-search,
.storepilot-filters select,
.storepilot-field input,
.storepilot-field select,
.storepilot-field textarea,
.storepilot-auth-form input[type="text"],
.storepilot-auth-form input[type="password"] {
    font-size: 16px !important;
}

@media (hover: none), (pointer: coarse) {
    .storepilot-image-edit-badge {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .storepilot-card:hover,
    .storepilot-btn:hover {
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .storepilot-wrap {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .storepilot-toolbar {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .storepilot-search {
        width: 100%;
    }

    .storepilot-filters {
        display: grid !important;
        grid-template-columns: 1fr 1fr auto;
        width: 100%;
        gap: 10px;
    }

    .storepilot-filters select,
    .storepilot-filters button {
        width: 100%;
        min-width: 0 !important;
    }

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

@media (max-width: 640px) {
    html body.storepilot-modal-open {
        position: fixed;
        width: 100%;
        overflow: hidden !important;
    }

    .storepilot-wrap {
        padding: 14px !important;
        border-radius: 22px !important;
        margin: 0 !important;
        box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
    }

    .storepilot-header {
        gap: 16px !important;
        margin-bottom: 18px !important;
    }

    .storepilot-header h2 {
        font-size: 32px !important;
        line-height: 1.02 !important;
        letter-spacing: -0.055em !important;
    }

    .storepilot-header p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .storepilot-kicker {
        font-size: 10px !important;
        letter-spacing: 0.15em !important;
    }

    .storepilot-toolbar {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .storepilot-filters {
        grid-template-columns: 1fr !important;
    }

    .storepilot-count {
        text-align: center;
        padding: 2px 0 0;
    }

    .storepilot-help {
        border-radius: 18px !important;
        padding: 12px !important;
    }

    .storepilot-help-grid {
        grid-template-columns: 1fr !important;
    }

    .storepilot-help-grid div {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .storepilot-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .storepilot-card {
        border-radius: 22px !important;
    }

    .storepilot-card-image {
        aspect-ratio: 4 / 5 !important;
        padding: 12px !important;
    }

    .storepilot-card-body {
        padding: 15px !important;
    }

    .storepilot-card h3 {
        font-size: 17px !important;
    }

    .storepilot-price {
        font-size: 17px !important;
    }

    .storepilot-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }

    .storepilot-actions .storepilot-btn {
        width: 100%;
        min-height: 44px;
    }

    .storepilot-btn,
    .storepilot-auth-submit,
    .storepilot-auth-secondary {
        min-height: 46px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .storepilot-badge {
        padding: 6px 9px !important;
        font-size: 10px !important;
    }

    .storepilot-modal {
        width: 100vw !important;
        height: 100svh !important;
        min-height: 100svh !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: rgba(4, 6, 9, 0.92);
    }

    @supports not (height: 100svh) {
        .storepilot-modal {
            height: 100vh !important;
            min-height: 100vh !important;
        }
    }

    .storepilot-modal-backdrop {
        display: none !important;
    }

    .storepilot-modal-panel {
        width: 100vw !important;
        height: 100svh !important;
        max-height: 100svh !important;
        margin: 0 !important;
        padding: 18px 16px 112px !important;
        border-radius: 0 !important;
        border: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
        background:
            radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 30%),
            linear-gradient(180deg, rgba(30, 34, 42, 0.98), rgba(15, 18, 24, 0.99)) !important;
    }

    @supports not (height: 100svh) {
        .storepilot-modal-panel {
            height: 100vh !important;
            max-height: 100vh !important;
        }
    }

    .storepilot-modal-panel h3 {
        padding-right: 52px;
        font-size: 30px !important;
    }

    .storepilot-modal-intro {
        padding-right: 10px;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .storepilot-modal-close,
    button.storepilot-modal-close {
        top: 14px !important;
        right: 14px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        z-index: 5;
    }

    .storepilot-form-grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .storepilot-field span {
        font-size: 10px !important;
    }

    .storepilot-field input,
    .storepilot-field select,
    .storepilot-field textarea {
        min-height: 46px !important;
        border-radius: 14px !important;
    }

    .storepilot-field textarea {
        min-height: 120px !important;
    }

    select[data-storepilot-field="category_ids"] {
        min-height: 150px !important;
    }

    .storepilot-image-preview {
        min-height: 190px !important;
    }

    .storepilot-image-preview img {
        max-height: 260px !important;
    }

    .storepilot-gallery-preview {
        min-height: 102px !important;
    }

    .storepilot-gallery-preview img {
        width: 72px !important;
        height: 72px !important;
    }

    .storepilot-image-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .storepilot-form-actions {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 6;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
        margin: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.14) !important;
        background: rgba(12, 15, 20, 0.94) !important;
        backdrop-filter: blur(18px) saturate(130%);
        -webkit-backdrop-filter: blur(18px) saturate(130%);
        box-sizing: border-box;
    }

    .storepilot-form-actions .storepilot-btn {
        width: 100%;
        min-height: 48px !important;
    }

    .storepilot-toast {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
        max-width: none !important;
        text-align: center;
    }

    .storepilot-pagination {
        gap: 6px !important;
    }

    .storepilot-pagination a {
        min-width: 42px !important;
        min-height: 42px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .storepilot-footer {
        font-size: 12px !important;
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
    .storepilot-header h2 {
        font-size: 28px !important;
    }

    .storepilot-card-image {
        aspect-ratio: 1 / 1.22 !important;
    }

    .storepilot-actions {
        grid-template-columns: 1fr !important;
    }

    .storepilot-form-actions {
        grid-template-columns: 1fr !important;
    }

    .storepilot-modal-panel {
        padding-bottom: 168px !important;
    }
}

@media (max-width: 820px) and (orientation: landscape) {
    .storepilot-modal {
        height: 100svh !important;
    }

    .storepilot-modal-panel {
        height: 100svh !important;
        max-height: 100svh !important;
        padding-bottom: 100px !important;
    }

    .storepilot-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .storepilot-field-full {
        grid-column: 1 / -1;
    }
}

/*
 * StorePilot 0.6.6 Mobile Compact Grid Build
 * Proprietary software owned by The Geek Factory PTY LTD.
 */

@media (max-width: 640px) {
    .storepilot-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: start !important;
    }

    .storepilot-card {
        position: relative !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)) !important;
        box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    }

    .storepilot-card-image {
        aspect-ratio: 1 / 1.18 !important;
        padding: 6px !important;
        border-radius: 14px 14px 0 0 !important;
        background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 62%), rgba(255,255,255,0.045) !important;
    }

    .storepilot-card-image img {
        border-radius: 10px !important;
        object-fit: contain !important;
    }

    .storepilot-card-body {
        padding: 7px 6px 8px !important;
    }

    .storepilot-card-top {
        display: block !important;
        min-height: 0 !important;
    }

    .storepilot-card h3 {
        margin: 0 0 5px !important;
        color: #f7f8fb !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
        font-weight: 760 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 23px !important;
    }

    .storepilot-price {
        margin: 0 !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
        font-weight: 820 !important;
        color: #ffffff !important;
        letter-spacing: -0.02em !important;
    }

    .storepilot-meta {
        display: none !important;
    }

    .storepilot-badges {
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        right: 5px !important;
        z-index: 2 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        pointer-events: none !important;
    }

    .storepilot-badge {
        padding: 3px 5px !important;
        border-radius: 999px !important;
        font-size: 7.5px !important;
        line-height: 1 !important;
        letter-spacing: 0.07em !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .storepilot-badge + .storepilot-badge {
        display: none !important;
    }

    .storepilot-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        margin-top: 7px !important;
    }

    .storepilot-actions .storepilot-btn {
        min-height: 28px !important;
        height: 28px !important;
        width: 100% !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        font-size: 9px !important;
        letter-spacing: 0.02em !important;
        line-height: 1 !important;
    }

    .storepilot-actions .storepilot-btn:not(.storepilot-edit-product) {
        display: none !important;
    }

    .storepilot-image-edit-badge {
        left: 50% !important;
        right: auto !important;
        bottom: 6px !important;
        transform: translateX(-50%) !important;
        padding: 4px 7px !important;
        border-radius: 999px !important;
        font-size: 8px !important;
        line-height: 1 !important;
        opacity: 0.96 !important;
        white-space: nowrap !important;
        background: rgba(8, 10, 14, 0.62) !important;
        border-color: rgba(255,255,255,0.18) !important;
    }
}

@media (max-width: 420px) {
    .storepilot-grid {
        gap: 7px !important;
    }

    .storepilot-card h3 {
        font-size: 9.5px !important;
        min-height: 22px !important;
    }

    .storepilot-price {
        font-size: 9.5px !important;
    }

    .storepilot-card-body {
        padding: 6px 5px 7px !important;
    }

    .storepilot-actions .storepilot-btn {
        font-size: 8.5px !important;
        min-height: 26px !important;
        height: 26px !important;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .storepilot-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .storepilot-card {
        border-radius: 18px !important;
    }

    .storepilot-card-image {
        aspect-ratio: 1 / 1.16 !important;
        padding: 8px !important;
    }

    .storepilot-card-body {
        padding: 10px !important;
    }

    .storepilot-card h3 {
        font-size: 12px !important;
        line-height: 1.18 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .storepilot-price {
        font-size: 12px !important;
    }

    .storepilot-meta {
        display: none !important;
    }

    .storepilot-actions {
        grid-template-columns: 1fr !important;
    }

    .storepilot-actions .storepilot-btn:not(.storepilot-edit-product) {
        display: none !important;
    }
}


/*
 * StorePilot 0.6.7 Mobile Grid Enforcement Patch
 * Proprietary software owned by The Geek Factory PTY LTD.
 *
 * This patch intentionally uses stronger selectors than previous mobile rules.
 */

@media only screen and (max-width: 640px) {
    body .storepilot-wrap .storepilot-grid,
    body .storepilot-wrap div.storepilot-grid,
    body .storepilot-wrap .storepilot-grid.storepilot-products,
    body .storepilot-wrap .storepilot-grid[class] {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: start !important;
    }

    body .storepilot-wrap .storepilot-grid > .storepilot-card,
    body .storepilot-wrap div.storepilot-grid > article.storepilot-card,
    body .storepilot-wrap div.storepilot-grid > div.storepilot-card {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-column: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body .storepilot-wrap .storepilot-card {
        border-radius: 14px !important;
    }

    body .storepilot-wrap .storepilot-card-image {
        aspect-ratio: 1 / 1.16 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 5px !important;
    }

    body .storepilot-wrap .storepilot-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    body .storepilot-wrap .storepilot-card-body {
        padding: 6px 5px 7px !important;
    }

    body .storepilot-wrap .storepilot-card h3 {
        font-size: clamp(8.5px, 2.4vw, 10.5px) !important;
        line-height: 1.13 !important;
        min-height: 21px !important;
        margin-bottom: 4px !important;
    }

    body .storepilot-wrap .storepilot-price {
        font-size: clamp(8.5px, 2.35vw, 10.5px) !important;
    }

    body .storepilot-wrap .storepilot-actions {
        margin-top: 6px !important;
    }

    body .storepilot-wrap .storepilot-actions .storepilot-btn {
        min-height: 25px !important;
        height: 25px !important;
        font-size: 8px !important;
        padding: 0 4px !important;
    }
}

@media only screen and (max-width: 360px) {
    body .storepilot-wrap .storepilot-grid,
    body .storepilot-wrap div.storepilot-grid,
    body .storepilot-wrap .storepilot-grid[class] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    body .storepilot-wrap .storepilot-card-body {
        padding: 5px 4px 6px !important;
    }

    body .storepilot-wrap .storepilot-card h3 {
        font-size: 8px !important;
        min-height: 19px !important;
    }

    body .storepilot-wrap .storepilot-price {
        font-size: 8px !important;
    }

    body .storepilot-wrap .storepilot-actions .storepilot-btn {
        min-height: 23px !important;
        height: 23px !important;
        font-size: 7.5px !important;
    }
}

@media only screen and (min-width: 641px) and (max-width: 1024px) {
    body .storepilot-wrap .storepilot-grid,
    body .storepilot-wrap div.storepilot-grid,
    body .storepilot-wrap .storepilot-grid[class] {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: start !important;
    }

    body .storepilot-wrap .storepilot-grid > .storepilot-card {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-column: auto !important;
        margin: 0 !important;
    }
}


/*
 * StorePilot 0.6.8 Theme Isolation Build
 * Proprietary software owned by The Geek Factory PTY LTD.
 *
 * Purpose:
 * StorePilot must remain readable and premium without relying on
 * ComicBookHero, theme, Elementor, WooCommerce, or global CSS colours.
 */

body .storepilot-wrap,
body .storepilot-auth,
body .storepilot-modal-panel {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif !important;
    color: #f5f7fa !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body .storepilot-wrap {
    --sp-surface: rgba(18, 22, 28, 0.92);
    --sp-surface-strong: rgba(12, 15, 20, 0.98);
    --sp-surface-soft: rgba(255, 255, 255, 0.07);
    --sp-surface-hover: rgba(255, 255, 255, 0.11);
    --sp-line: rgba(255, 255, 255, 0.16);
    --sp-line-strong: rgba(255, 255, 255, 0.27);
    --sp-text: #f5f7fa;
    --sp-text-soft: rgba(245, 247, 250, 0.82);
    --sp-text-muted: rgba(245, 247, 250, 0.62);
    --sp-accent: #f5f7fa;
    --sp-accent-dark: #101318;
    --sp-blue: #8ecbff;
    --sp-green: #94f3c4;
    --sp-amber: #ffd88a;
    --sp-red: #ff9ba4;

    isolation: isolate !important;
    color: var(--sp-text) !important;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(142, 203, 255, 0.14), transparent 36%),
        linear-gradient(145deg, rgba(22, 26, 34, 0.99), rgba(6, 8, 12, 0.99)) !important;
    border-color: var(--sp-line) !important;
}

body .storepilot-wrap *,
body .storepilot-auth *,
body .storepilot-modal-panel * {
    box-sizing: border-box;
}

body .storepilot-wrap h1,
body .storepilot-wrap h2,
body .storepilot-wrap h3,
body .storepilot-wrap h4,
body .storepilot-wrap h5,
body .storepilot-wrap h6,
body .storepilot-auth h1,
body .storepilot-auth h2,
body .storepilot-auth h3,
body .storepilot-modal-panel h1,
body .storepilot-modal-panel h2,
body .storepilot-modal-panel h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

body .storepilot-wrap p,
body .storepilot-wrap span,
body .storepilot-wrap summary,
body .storepilot-wrap label,
body .storepilot-wrap strong,
body .storepilot-wrap small,
body .storepilot-wrap div,
body .storepilot-auth p,
body .storepilot-auth span,
body .storepilot-modal-panel p,
body .storepilot-modal-panel span,
body .storepilot-modal-panel label,
body .storepilot-modal-panel div {
    color: inherit;
}

body .storepilot-header p,
body .storepilot-help p,
body .storepilot-meta,
body .storepilot-meta span,
body .storepilot-count,
body .storepilot-footer,
body .storepilot-modal-intro,
body .storepilot-auth-brand p {
    color: var(--sp-text-soft) !important;
}

body .storepilot-kicker,
body .storepilot-field > span,
body .storepilot-auth-form label > span,
body .storepilot-auth-remember span {
    color: rgba(245, 247, 250, 0.68) !important;
}

body .storepilot-card,
body .storepilot-help,
body .storepilot-toolbar,
body .storepilot-empty {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.09), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.078), rgba(255,255,255,0.032)) !important;
    border: 1px solid var(--sp-line) !important;
    color: var(--sp-text) !important;
}

body .storepilot-card h3,
body .storepilot-price,
body .storepilot-price *,
body .storepilot-empty h3 {
    color: #ffffff !important;
}

body .storepilot-card-image {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.105), transparent 64%),
        rgba(255,255,255,0.045) !important;
    border: 0 !important;
}

body .storepilot-no-image {
    color: rgba(245, 247, 250, 0.62) !important;
}

body .storepilot-badge {
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}

body .storepilot-status-publish,
body .storepilot-stock-instock {
    background: rgba(148, 243, 196, 0.16) !important;
    color: #d9ffe9 !important;
}

body .storepilot-status-draft,
body .storepilot-stock-outofstock {
    background: rgba(255, 155, 164, 0.16) !important;
    color: #ffdbe0 !important;
}

body .storepilot-status-private,
body .storepilot-stock-onbackorder {
    background: rgba(255, 216, 138, 0.15) !important;
    color: #fff0c9 !important;
}

body .storepilot-btn,
body button.storepilot-btn,
body a.storepilot-btn {
    font-family: inherit !important;
    text-decoration: none !important;
    border: 1px solid var(--sp-line) !important;
    background: rgba(255,255,255,0.075) !important;
    color: #ffffff !important;
}

body .storepilot-btn:hover,
body button.storepilot-btn:hover,
body a.storepilot-btn:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
}

body .storepilot-btn-primary,
body button.storepilot-btn-primary,
body a.storepilot-btn-primary {
    background: #f5f7fa !important;
    border-color: #f5f7fa !important;
    color: #101318 !important;
}

body .storepilot-btn-primary *,
body button.storepilot-btn-primary *,
body a.storepilot-btn-primary * {
    color: #101318 !important;
}

body .storepilot-btn-danger,
body button.storepilot-btn-danger {
    background: rgba(255, 155, 164, 0.12) !important;
    border-color: rgba(255, 155, 164, 0.30) !important;
    color: #ffd9de !important;
}

body .storepilot-search,
body .storepilot-filters select,
body .storepilot-field input,
body .storepilot-field select,
body .storepilot-field textarea,
body .storepilot-auth-form input[type="text"],
body .storepilot-auth-form input[type="password"] {
    background: rgba(255,255,255,0.078) !important;
    border: 1px solid var(--sp-line) !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    box-shadow: none !important;
}

body .storepilot-search::placeholder,
body .storepilot-field input::placeholder,
body .storepilot-field textarea::placeholder,
body .storepilot-auth-form input::placeholder {
    color: rgba(245,247,250,0.48) !important;
}

body .storepilot-filters select option,
body .storepilot-field select option,
body .storepilot-field select optgroup {
    background: #11151c !important;
    color: #ffffff !important;
}

body .storepilot-image-preview,
body .storepilot-gallery-preview {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 60%),
        rgba(255,255,255,0.04) !important;
    border: 1px dashed rgba(255,255,255,0.18) !important;
    color: rgba(245,247,250,0.62) !important;
}

body .storepilot-modal-panel {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.13), transparent 30%),
        radial-gradient(circle at bottom right, rgba(142,203,255,0.11), transparent 38%),
        linear-gradient(180deg, rgba(30, 34, 42, 0.99), rgba(9, 11, 16, 0.99)) !important;
    border-color: rgba(255,255,255,0.16) !important;
}

body .storepilot-modal-close,
body button.storepilot-modal-close {
    background: rgba(255,255,255,0.09) !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
}

body .storepilot-modal-close span {
    background: #ffffff !important;
}

body .storepilot-pagination a {
    color: rgba(245,247,250,0.78) !important;
    border-color: var(--sp-line) !important;
    background: rgba(255,255,255,0.055) !important;
    text-decoration: none !important;
}

body .storepilot-pagination a.is-active,
body .storepilot-pagination a:hover {
    background: #f5f7fa !important;
    color: #101318 !important;
}

body .storepilot-auth {
    color: #f5f7fa !important;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,255,255,0.16), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(142,203,255,0.14), transparent 32%),
        linear-gradient(145deg, rgba(15,18,24,0.98), rgba(5,7,11,0.99)) !important;
}

body .storepilot-auth-panel {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045)) !important;
    color: #f5f7fa !important;
}

body .storepilot-auth-submit,
body a.storepilot-auth-submit {
    background: #f5f7fa !important;
    color: #101318 !important;
    border-color: #f5f7fa !important;
}

body .storepilot-auth-secondary,
body .storepilot-auth-row a {
    color: rgba(255,255,255,0.78) !important;
}

@media only screen and (max-width: 640px) {
    body .storepilot-wrap .storepilot-grid,
    body .storepilot-wrap div.storepilot-grid,
    body .storepilot-wrap .storepilot-grid[class] {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    body .storepilot-wrap .storepilot-grid > .storepilot-card {
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }
}


/*
 * StorePilot 0.6.9 User Layout Selector
 * Proprietary software owned by The Geek Factory PTY LTD.
 */

body .storepilot-wrap .storepilot-view-layout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 9px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.055) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

body .storepilot-wrap .storepilot-view-layout > span {
    margin-right: auto !important;
    padding-left: 8px !important;
    color: rgba(245,247,250,0.68) !important;
    font-size: 11px !important;
    font-weight: 760 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

body .storepilot-wrap .storepilot-view-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.07) !important;
    color: rgba(245,247,250,0.78) !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 820 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055) !important;
    transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease !important;
    touch-action: manipulation !important;
}

body .storepilot-wrap .storepilot-view-btn:hover {
    transform: translateY(-1px) !important;
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
}

body .storepilot-wrap .storepilot-view-btn.is-active,
body .storepilot-wrap .storepilot-view-btn[aria-pressed="true"] {
    background: #f5f7fa !important;
    border-color: #f5f7fa !important;
    color: #101318 !important;
}

/* User-selected layouts. These intentionally override automatic mobile grid rules. */
body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1,
body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-1,
body .storepilot-wrap .storepilot-grid[data-storepilot-columns="1"] {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

body .storepilot-wrap .storepilot-grid.storepilot-grid-view-2,
body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-2,
body .storepilot-wrap .storepilot-grid[data-storepilot-columns="2"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .storepilot-wrap .storepilot-grid.storepilot-grid-view-3,
body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-3,
body .storepilot-wrap .storepilot-grid[data-storepilot-columns="3"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body .storepilot-wrap .storepilot-grid.storepilot-grid-view-4,
body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-4,
body .storepilot-wrap .storepilot-grid[data-storepilot-columns="4"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Refined card scaling for selected views */
body .storepilot-wrap .storepilot-grid-view-1 .storepilot-card h3 {
    font-size: 18px !important;
    line-height: 1.18 !important;
}

body .storepilot-wrap .storepilot-grid-view-1 .storepilot-price {
    font-size: 18px !important;
}

body .storepilot-wrap .storepilot-grid-view-1 .storepilot-meta {
    display: flex !important;
}

body .storepilot-wrap .storepilot-grid-view-1 .storepilot-actions .storepilot-btn:not(.storepilot-edit-product) {
    display: inline-flex !important;
}

body .storepilot-wrap .storepilot-grid-view-2 .storepilot-card h3 {
    font-size: 15px !important;
}

body .storepilot-wrap .storepilot-grid-view-2 .storepilot-price {
    font-size: 15px !important;
}

body .storepilot-wrap .storepilot-grid-view-3 .storepilot-card h3 {
    font-size: 13px !important;
}

body .storepilot-wrap .storepilot-grid-view-3 .storepilot-price {
    font-size: 13px !important;
}

/* Mobile layout selector polish */
@media only screen and (max-width: 640px) {
    body .storepilot-wrap .storepilot-view-layout {
        margin-bottom: 13px !important;
        padding: 7px !important;
        gap: 5px !important;
    }

    body .storepilot-wrap .storepilot-view-layout > span {
        font-size: 9px !important;
        letter-spacing: 0.11em !important;
        padding-left: 6px !important;
    }

    body .storepilot-wrap .storepilot-view-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 11px !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1 .storepilot-card h3 {
        font-size: 17px !important;
        min-height: auto !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1 .storepilot-price {
        font-size: 17px !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1 .storepilot-meta {
        display: flex !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1 .storepilot-actions {
        grid-template-columns: 1fr 1fr !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1 .storepilot-actions .storepilot-btn:not(.storepilot-edit-product) {
        display: inline-flex !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-2 .storepilot-card h3 {
        font-size: 13px !important;
        min-height: 31px !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-2 .storepilot-price {
        font-size: 13px !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-3 .storepilot-card h3 {
        font-size: 11px !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-3 .storepilot-price {
        font-size: 11px !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-4 .storepilot-card h3 {
        font-size: clamp(8.5px, 2.4vw, 10.5px) !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-4 .storepilot-price {
        font-size: clamp(8.5px, 2.35vw, 10.5px) !important;
    }
}


/*
 * StorePilot 0.6.10 Mobile-Only Layout Selector
 * Proprietary software owned by The Geek Factory PTY LTD.
 *
 * Desktop / PC remains fixed at four columns.
 * The View selector only appears and applies on mobile.
 */

/* Hide layout selector on desktop/tablet by default. */
body .storepilot-wrap .storepilot-view-layout {
    display: none !important;
}

/* Desktop and PC: enforce four columns, regardless of saved browser preference. */
@media only screen and (min-width: 641px) {
    body .storepilot-wrap .storepilot-grid,
    body .storepilot-wrap div.storepilot-grid,
    body .storepilot-wrap .storepilot-grid[class],
    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1,
    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-2,
    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-3,
    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-4,
    body .storepilot-wrap .storepilot-grid[data-storepilot-columns] {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body .storepilot-wrap .storepilot-grid > .storepilot-card {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-column: auto !important;
        margin: 0 !important;
    }

    body .storepilot-wrap .storepilot-grid .storepilot-card h3 {
        font-size: 17px !important;
        line-height: 1.18 !important;
    }

    body .storepilot-wrap .storepilot-grid .storepilot-price {
        font-size: 17px !important;
    }

    body .storepilot-wrap .storepilot-grid .storepilot-meta {
        display: flex !important;
    }

    body .storepilot-wrap .storepilot-grid .storepilot-actions {
        display: flex !important;
    }

    body .storepilot-wrap .storepilot-grid .storepilot-actions .storepilot-btn:not(.storepilot-edit-product) {
        display: inline-flex !important;
    }
}

/* Mobile: show selector and allow selected layouts. */
@media only screen and (max-width: 640px) {
    body .storepilot-wrap .storepilot-view-layout {
        display: inline-flex !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-1,
    body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-1,
    body .storepilot-wrap .storepilot-grid[data-storepilot-columns="1"] {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-2,
    body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-2,
    body .storepilot-wrap .storepilot-grid[data-storepilot-columns="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-3,
    body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-3,
    body .storepilot-wrap .storepilot-grid[data-storepilot-columns="3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body .storepilot-wrap .storepilot-grid.storepilot-grid-view-4,
    body .storepilot-wrap div.storepilot-grid.storepilot-grid-view-4,
    body .storepilot-wrap .storepilot-grid[data-storepilot-columns="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}


/*
 * StorePilot 0.6.11 Modal Action Button Fix
 * Proprietary software owned by The Geek Factory PTY LTD.
 *
 * Fixes Save Product / Cancel appearing as if they are stuck in the middle
 * of the New Product / Edit Product popup.
 */

/* Desktop/tablet: action buttons stay naturally at the bottom of the form. */
body .storepilot-modal-panel .storepilot-form-actions {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 22px !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Mobile: sticky only inside the modal panel, not fixed across the viewport. */
@media only screen and (max-width: 640px) {
    body .storepilot-modal-panel {
        padding-bottom: 26px !important;
    }

    body .storepilot-modal-panel .storepilot-form {
        padding-bottom: 0 !important;
    }

    body .storepilot-modal-panel .storepilot-form-actions {
        position: sticky !important;
        left: auto !important;
        right: auto !important;
        bottom: 0 !important;
        z-index: 7 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin: 22px -16px -26px !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid rgba(255,255,255,0.14) !important;
        background: rgba(12, 15, 20, 0.96) !important;
        backdrop-filter: blur(18px) saturate(130%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
        box-shadow: 0 -18px 42px rgba(0,0,0,0.34) !important;
    }

    body .storepilot-modal-panel .storepilot-form-actions .storepilot-btn {
        width: 100% !important;
        min-height: 48px !important;
    }
}

@media only screen and (max-width: 380px) {
    body .storepilot-modal-panel .storepilot-form-actions {
        grid-template-columns: 1fr !important;
    }
}


/*
 * StorePilot 0.6.12 Modal Action Buttons Bottom-Only Patch
 * Proprietary software owned by The Geek Factory PTY LTD.
 *
 * Save Product / Cancel should only appear at the bottom of the popup form.
 * No fixed or sticky action bar on desktop, tablet, or mobile.
 */

body .storepilot-modal-panel .storepilot-form-actions,
body .storepilot-modal-panel form .storepilot-form-actions,
body .storepilot-modal .storepilot-form-actions,
body.storepilot-modal-open .storepilot-modal-panel .storepilot-form-actions {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transform: none !important;
}

body .storepilot-modal-panel {
    padding-bottom: 28px !important;
}

@media only screen and (max-width: 640px) {
    body .storepilot-modal-panel {
        padding-bottom: 28px !important;
    }

    body .storepilot-modal-panel .storepilot-form-actions,
    body .storepilot-modal-panel form .storepilot-form-actions,
    body .storepilot-modal .storepilot-form-actions,
    body.storepilot-modal-open .storepilot-modal-panel .storepilot-form-actions {
        position: static !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin: 24px 0 0 !important;
        padding: 18px 0 0 !important;
        border-top: 1px solid rgba(255,255,255,0.12) !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body .storepilot-modal-panel .storepilot-form-actions .storepilot-btn {
        width: 100% !important;
        min-height: 48px !important;
    }
}

@media only screen and (max-width: 380px) {
    body .storepilot-modal-panel .storepilot-form-actions,
    body .storepilot-modal-panel form .storepilot-form-actions {
        grid-template-columns: 1fr !important;
    }
}

