/* shop.html inline style block 1 (from line 41) */
/* Theme Variables (Copied from Prompts Poetry) */
        @property --shop-card-enter-y {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }

        @property --shop-card-enter-scale {
            syntax: '<number>';
            inherits: false;
            initial-value: 1;
        }

        @property --shop-card-breathe-y {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }

        @property --shop-card-shift-x {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }

        @property --shop-card-shift-y {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }

        @property --shop-card-hover-y {
            syntax: '<length>';
            inherits: false;
            initial-value: 0px;
        }

        :root {
            /* Light Mode Defaults */
            --bg-color: #ffffff;
            --text-main: #1e293b;
            --text-dim: #94a3b8;
            --text-bold: #0f172a;
            --card-bg: #f8fafc;
            --card-border: #e2e8f0;
            --accent-purple: #9b5de5;
            --font-serif: 'Playfair Display', serif;
            --font-sans: 'Outfit', sans-serif;
            --accent-color: #3b82f6;
        }

        [data-theme="dark"] {
            /* Dark Mode Overrides */
            --bg-color: #000000;
            /* Pure Black Background */
            --text-main: #f1f5f9;
            --text-dim: #94a3b8;
            --text-bold: #ffffff;
            --card-bg: rgba(30, 41, 59, 0.7);
            /* Slightly transparent for starry sky */
            --card-border: rgba(255, 255, 255, 0.08);
            --accent-purple: #a78bfa;
            --accent-color: #60a5fa;
            --starry-blue: #5d9fd8;
            /* Navigation bar background */
            --bg-nav: #000000;
        }

        /* Force background color to match verify page to hide overscroll black block */
        html,
        body {
            background-color: #000000 !important;
        }

        .shop-page {
            min-height: 100vh;
            background: transparent;
            position: relative;
            overflow-x: hidden;
        }

        body.shop-page #starryCanvas {
            position: fixed;
            top: -10vh;
            left: -10vw;
            width: 120vw;
            height: 120vh;
            z-index: 0;
            opacity: 0;
            pointer-events: none;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            will-change: transform, opacity;
            transition: opacity 1.5s ease;
        }

        [data-theme="dark"] body.shop-page #starryCanvas {
            opacity: 1;
        }

        /* Shop Card Styles (Prompt Card Style) */
        .shop-card {
            --shop-card-enter-y: 0px;
            --shop-card-enter-scale: 1;
            --shop-card-breathe-y: 0px;
            --shop-card-shift-x: 0px;
            --shop-card-shift-y: 0px;
            --shop-card-hover-y: 0px;
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            transform: translate3d(var(--shop-card-shift-x),
                    calc(var(--shop-card-shift-y) + var(--shop-card-enter-y) + var(--shop-card-breathe-y) + var(--shop-card-hover-y)),
                    0) scale(var(--shop-card-enter-scale));
            transition:
                box-shadow 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                --shop-card-hover-y 0.42s cubic-bezier(0.22, 1, 0.36, 1);
            padding: 0;
            /* Remove padding for cover image */
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        .shop-card:hover {
            --shop-card-hover-y: -4px;
            box-shadow: 0 12px 30px rgba(93, 159, 216, 0.2);
            /* Starry blue glow shadow on hover */
            border-color: #5d9fd8;
        }

        [data-theme="dark"] .shop-card:hover {
            box-shadow: 0 12px 30px rgba(93, 159, 216, 0.25);
            background: rgba(30, 41, 59, 0.9);
            border-color: var(--starry-blue);
        }

        /* Inner Elements */
        .shop-card-image {
            width: 100%;
            height: 160px;
            background: rgba(155, 93, 229, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid var(--card-border);
        }

        .shop-inline-store-title-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            color: #10b981;
        }

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

        .shop-card-icon {
            color: var(--accent-purple, #6b9ece);
        }

        .shop-card-icon--font {
            font-size: 24px;
        }

        .shop-card-icon--cover {
            font-size: 5rem;
            line-height: 1;
        }

        .shop-cover-icon-svg {
            width: 104px;
            height: 104px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: rgba(188, 199, 214, 0.96);
            filter: drop-shadow(0 4px 18px rgba(15, 23, 42, 0.12));
            flex: 0 0 auto;
        }

        .shop-cover-icon-svg svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .shop-card-icon--fallback {
            font-size: 24px;
            color: var(--text-dim);
        }

        .shop-card-thumb {
            border-radius: 8px;
        }

        .shop-icon-wrapper {
            /* Now used as a fallback container or inner icon style */
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(155, 93, 229, 0.1);
            color: var(--accent-purple);
            font-size: 3rem;
            margin-bottom: 0;
            border-radius: 0;
            /* No radius for cover */
        }

        .shop-content-padding {
            padding: 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        [data-theme="dark"] .shop-icon-wrapper {
            background: rgba(155, 93, 229, 0.2);
        }

        .shop-stock-badge {
            font-size: 12px;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 20px;
        }

        .shop-stock-badge--floating {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 10;
        }

        .shop-stock-badge.in-stock {
            color: #4ade80;
            background: rgba(40, 40, 40, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(74, 222, 128, 0.3);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-weight: 600;
        }

        .shop-stock-badge.out-of-stock {
            color: #ff6b6b;
            background: rgba(40, 40, 40, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 107, 107, 0.3);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-weight: 600;
        }

        .shop-card-title {
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-bold);
            font-family: var(--font-display);
            line-height: 1.3;
        }

        .shop-card-desc {
            margin: 0;
            font-size: 0.9rem;
            color: var(--text-dim);
            line-height: 1.6;
            height: 44px;
            /* Limit to 2 lines approximately */
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .shop-card-price {
            font-weight: 800;
            color: #f59e0b;
            font-size: 1.25rem;
            font-family: var(--font-display);
        }

        .shop-card-price span {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-dim);
            margin-left: 2px;
        }

        .shop-card-original-price {
            text-decoration: line-through;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.8em;
            margin-right: 6px;
        }

        .shop-agent-badge {
            position: absolute;
            bottom: 12px;
            left: 12px;
            z-index: 10;
            font-size: 11px;
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }

        .shop-card-footer {
            margin-top: auto;
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .shop-buy-btn {
            border: none;
            padding: 8px 24px;
            border-radius: 24px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.1s ease;
            font-family: var(--font-sans);
        }

        .shop-btn-primary {
            background: var(--accent-purple);
            color: white;
            box-shadow: 0 4px 12px rgba(155, 93, 229, 0.3);
        }

        .shop-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(155, 93, 229, 0.5);
            filter: brightness(1.1);
        }

        .shop-btn-disabled {
            background: var(--text-dim);
            color: white;
            opacity: 0.5;
            cursor: not-allowed;
        }

        .shop-status-message {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            padding: 20px;
            color: rgba(255, 255, 255, 0.72);
        }

        .shop-status-message--full {
            grid-column: 1 / -1;
            padding: 40px 20px;
        }

        .shop-status-message--error {
            color: rgba(255, 100, 100, 0.8);
        }

        .shop-status-message--muted {
            color: rgba(255, 255, 255, 0.4);
        }

        .visually-hidden-h1 {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Success Modal Content Card Styles */
        .content-card {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
        }

        .content-card[data-shop-copy-content] {
            cursor: pointer;
            transition: all 0.2s;
        }

        .content-card[data-shop-copy-content]:hover {
            border-color: rgba(107, 158, 206, 0.5);
            background: rgba(255, 255, 255, 0.08);
        }

        .content-card--shop-copy {
            margin-bottom: 0 !important;
            padding: 10px 6px !important;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px !important;
        }

        .content-card--shop-copy[hidden] {
            display: none !important;
        }

        .content-card .item-name {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 14px;
            color: #fff;
            margin-bottom: 10px;
        }

        .content-card .item-content-box {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 12px;
        }

        .content-card .item-content-box--plain {
            padding: 0 !important;
            width: 100%;
            background: transparent !important;
            border-radius: 0 !important;
        }

        .content-card .item-text {
            font-family: monospace;
            font-size: 13px;
            color: #22c55e;
            word-break: break-all;
            line-height: 1.5;
        }

        .content-card .item-text--centered {
            text-align: center;
            letter-spacing: 0.5px;
            line-height: 1.3;
        }

        .shop-success-content-grid {
            width: 100%;
        }

        .shop-success-content-grid--double {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .shop-success-content-grid--stacked {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .shop-expand-toggle-row {
            margin-top: 12px;
            text-align: center;
        }

        .shop-expand-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.2s;
        }

        .shop-expand-toggle:hover {
            color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.16);
        }

        .shop-expand-toggle-icon {
            font-size: 10px;
        }

        .shop-success-toast {
            position: fixed;
            top: 20%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 13px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 999999;
        }

        .shop-success-toast.is-visible {
            opacity: 1;
        }

        /* Product Name Tooltip Dot (in header) */
        .product-name-dot {
            position: relative;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
            padding: 4px 8px;
            user-select: none;
        }

        .product-name-dot:hover {
            opacity: 1;
        }

        .product-name-dot::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 8px);
            right: 0;
            background: rgba(30, 33, 40, 0.98);
            color: #fff;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 13px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.15s, visibility 0.15s;
            pointer-events: none;
            z-index: 99999;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .product-name-dot:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* Quantity Stepper (Ultra-minimal) */
        .shop-quantity-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
        }

        .shop-quantity-label {
            display: none;
        }

        .shop-quantity-control {
            display: inline-flex;
            align-items: center;
            gap: 0;
        }

        .shop-qty-btn {
            width: 44px;
            height: 44px;
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            font-size: 1.5rem;
            font-weight: 300;
        }

        .shop-qty-btn:hover {
            color: #fff;
            transform: scale(1.1);
        }

        .shop-qty-btn:active {
            transform: scale(0.95);
        }

        .shop-qty-input {
            width: 60px;
            height: 44px;
            text-align: center;
            background: rgba(255, 255, 255, 0.08);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-family: var(--font-display);
            font-size: 1.25rem;
            font-weight: 600;
            outline: none;
            margin: 0 8px;
        }

        .shop-qty-input:focus {
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
        }

        /* Remove number spinner arrows */
        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            appearance: none;
            margin: 0;
        }

        input[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }



        /* Shop Specific Styles */
        .shop-main {
            max-width: 1600px;
            margin: 120px auto 40px;
            padding: 0 5vw;
        }

        .shop-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 10;
        }

        .shop-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .shop-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Modal Buttons */
        .shop-btn {
            border: none;
            border-radius: 12px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

        .shop-btn-primary {
            background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
            color: #052e16;
            box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
        }

        .shop-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(74, 222, 128, 0.4);
            filter: brightness(1.1);
        }

        .shop-purchase-step-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(147, 197, 253, 0.2);
            background: rgba(96, 165, 250, 0.12);
            color: #bfdbfe;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .shop-purchase-stage-hint {
            margin: 10px 0 0;
            color: rgba(226, 232, 240, 0.78);
            font-size: 13px;
            line-height: 1.6;
        }

        .shop-purchase-actions {
            display: flex;
            align-items: stretch;
            gap: 12px;
            width: 100%;
        }

        #purchaseBackBtn {
            flex: 0 0 136px;
            min-height: 44px;
            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                0 12px 24px rgba(15, 23, 42, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        #purchaseBackBtn:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.14);
            box-shadow:
                0 16px 30px rgba(15, 23, 42, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        /* Modal Primary Buttons - Fast Response with Float */
        /* Explicitly match global entrance duration (0.5s) AND add delay (0.35s) for staggered effect */
        #nextPurchaseStepBtn,
        #confirmPurchaseBtn {
            flex: 1 1 auto;
            min-height: 44px;
            padding: 10px 16px;
            border-radius: 999px;
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.18),
                0 4px 12px rgba(74, 222, 128, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
            transition: all 0.5s ease-out 0.35s;
        }

        /* On hover, switch to fast transition for snappy response */
        #nextPurchaseStepBtn:hover,
        #confirmPurchaseBtn:hover {
            transform: translateY(-2px);
            filter: brightness(1.08);
            box-shadow:
                0 16px 30px rgba(0, 0, 0, 0.2),
                0 6px 16px rgba(74, 222, 128, 0.34),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
            transition: all 0.1s ease;
        }

        #nextPurchaseStepBtn:active,
        #confirmPurchaseBtn:active,
        #purchaseBackBtn:active {
            transform: translateY(0);
            filter: brightness(0.95);
            transition: all 0.05s ease;
        }

        #purchaseBackBtn i,
        #nextPurchaseStepBtn i,
        #confirmPurchaseBtn i {
            font-size: 14px;
        }

        #purchaseBackBtn span,
        #nextPurchaseStepBtn span,
        #confirmPurchaseBtn span {
            font-size: 14px;
        }

        .shop-purchase-confirm-card {
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.22)),
                rgba(15, 23, 42, 0.28);
            box-shadow:
                0 20px 40px rgba(2, 6, 23, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .shop-purchase-confirm-card {
            padding: 18px;
        }

        .shop-purchase-confirm-card__title {
            font-size: 14px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.94);
            margin-bottom: 14px;
        }

        .shop-purchase-confirm-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .shop-purchase-confirm-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            color: rgba(226, 232, 240, 0.86);
            font-size: 14px;
        }

        .shop-purchase-confirm-row strong {
            color: #ffffff;
            font-size: 14px;
            font-weight: 700;
            text-align: right;
            word-break: break-word;
        }

        .shop-purchase-confirm-row--total {
            margin-top: 6px;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .shop-purchase-confirm-row--total strong {
            color: #86efac;
            font-size: 16px;
        }

        #shopPurchaseModal .modal-content>.shop-purchase-stage,
        #shopSuccessModal .shop-success-modal>.shop-success-stage,
        #shopSuccessModal .shop-success-scroll>.shop-success-scroll-stage {
            will-change: opacity, transform;
        }

        #shopSuccessModal .shop-success-modal>.shop-success-scroll {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
            will-change: auto !important;
        }

        #shopSuccessModal .shop-success-scroll>.shop-success-scroll-stage {
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }

        #shopPurchaseModal:not(.active) .modal-content>.shop-purchase-stage,
        #shopSuccessModal:not(.active) .shop-success-modal>.shop-success-stage,
        #shopSuccessModal:not(.active) .shop-success-scroll>.shop-success-scroll-stage {
            opacity: 0 !important;
            transform: translateY(20px) !important;
        }

        #shopPurchaseModal.active .modal-content>.shop-purchase-stage,
        #shopSuccessModal.active .shop-success-modal>.shop-success-stage,
        #shopSuccessModal.active .shop-success-scroll>.shop-success-scroll-stage {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-header {
            transition-delay: 0.15s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-quantity {
            transition-delay: 0.22s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-discount {
            transition-delay: 0.29s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-summary {
            transition-delay: 0.36s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-review {
            transition-delay: 0.31s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-notes {
            transition-delay: 0.46s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-action {
            transition-delay: 0.6s !important;
        }

        #shopPurchaseModal[data-purchase-step="confirm"] .shop-purchase-stage-action {
            margin-top: 18px;
        }

        #shopSuccessModal.active .shop-success-stage-icon {
            transition-delay: 0.08s !important;
        }

        #shopSuccessModal.active .shop-success-stage-title {
            transition-delay: 0.16s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-meta {
            transition-delay: 0.28s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-content {
            transition-delay: 0.36s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-usage {
            transition-delay: 0.46s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-warning {
            transition-delay: 0.54s !important;
        }

        #shopSuccessModal.active .shop-success-stage-actions {
            transition-delay: 0.64s !important;
        }

        .shop-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .shop-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            transform: translateY(-2px);
        }

        .shop-btn-feedback-success {
            background: #4ade80 !important;
            color: #fff !important;
        }

        .shop-wholesale-badge {
            font-size: 12px;
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            vertical-align: middle;
            line-height: 1;
        }

        .shop-wholesale-badge__icon {
            font-size: 10px;
        }

        .shop-discount-message {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            font-size: 13px;
        }

        .shop-discount-message[hidden] {
            display: none !important;
        }

        .shop-discount-message--error {
            color: #ef4444;
        }

        .shop-discount-message--success {
            color: #10b981;
        }

        .shop-discount-message--warning {
            color: #f59e0b;
        }

        .shop-discount-message--info {
            color: #60a5fa;
        }

        .shop-discount-assets-shell {
            display: grid;
            gap: 12px;
            margin-top: 12px;
        }

        .shop-discount-assets-group {
            display: grid;
            gap: 8px;
        }

        .shop-discount-assets-group__title {
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.58);
        }

        .shop-discount-assets-grid {
            display: grid;
            gap: 8px;
        }

        .shop-discount-asset-card {
            width: 100%;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            text-align: left;
            display: grid;
            gap: 6px;
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
        }

        .shop-discount-asset-card:hover:not(:disabled) {
            transform: translateY(-1px);
            border-color: rgba(255, 255, 255, 0.22);
            background: rgba(255, 255, 255, 0.09);
        }

        .shop-discount-asset-card.is-selected {
            border-color: rgba(16, 185, 129, 0.55);
            background: rgba(16, 185, 129, 0.12);
        }

        .shop-discount-asset-card.is-disabled,
        .shop-discount-asset-card:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .shop-discount-asset-card__top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 14px;
        }

        .shop-discount-asset-card__cta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.72);
        }

        .shop-discount-asset-card__meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.5;
        }

        .shop-discount-asset-card__hint {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.84);
            line-height: 1.45;
        }

        .shop-discount-assets-empty {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.62);
            font-size: 12px;
            line-height: 1.5;
        }

        .shop-price-waterfall-panel {
            margin-top: 10px;
        }

        .shop-price-waterfall {
            display: grid;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .shop-price-waterfall__header {
            display: grid;
            gap: 8px;
        }

        .shop-price-waterfall__title {
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.62);
        }

        .shop-price-waterfall__policy {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .shop-price-waterfall__policy-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.78);
            font-size: 11px;
        }

        .shop-price-waterfall__rows {
            display: grid;
            gap: 8px;
        }

        .shop-price-waterfall__row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .shop-price-waterfall__row-copy {
            display: grid;
            gap: 3px;
            min-width: 0;
        }

        .shop-price-waterfall__row-copy strong {
            font-size: 13px;
            color: #fff;
        }

        .shop-price-waterfall__row-copy span {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.62);
            line-height: 1.4;
        }

        .shop-price-waterfall__row-value {
            font-size: 14px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.88);
            white-space: nowrap;
        }

        .shop-price-waterfall__row--discount .shop-price-waterfall__row-value {
            color: #10b981;
        }

        .shop-price-waterfall__row--total .shop-price-waterfall__row-value {
            color: #fbbf24;
            font-size: 16px;
        }

        .shop-price-waterfall__footer {
            font-size: 11px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.6);
        }

        .shop-btn:active {
            transform: translateY(0);
            filter: brightness(0.9);
        }

        /* Quantity Input Reset */
        .shop-quantity-input {
            width: 50px;
            text-align: center;
            background: transparent;
            border: none;
            color: #fff;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            font-size: 1.2rem;
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .shop-quantity-input::-webkit-outer-spin-button,
        .shop-quantity-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .shop-quantity-input:focus {
            outline: none;
        }

        .shop-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 24px;
            position: relative;
        }

        .shop-grid-transition-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
        }

        .shop-card-filter-motion-lock {
            will-change: transform, opacity;
        }

        .shop-card-filter-hidden {
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .shop-card-filter-moving {
            z-index: 2;
            transition:
                box-shadow 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                --shop-card-hover-y 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                --shop-card-shift-x 0.96s cubic-bezier(0.18, 0.88, 0.24, 1) var(--shop-card-filter-delay, 0ms),
                --shop-card-shift-y 0.96s cubic-bezier(0.18, 0.88, 0.24, 1) var(--shop-card-filter-delay, 0ms);
        }

        .shop-card-filter-enter {
            z-index: 2;
            opacity: 0;
            --shop-card-enter-y: 24px;
            --shop-card-enter-scale: 0.992;
            --shop-card-enter-opacity-duration: 0.42s;
            --shop-card-enter-duration: 0.58s;
            --shop-card-enter-ease: cubic-bezier(0.16, 1, 0.3, 1);
        }

        .shop-card-filter-enter--initial {
            --shop-card-enter-y: 58px;
            --shop-card-enter-scale: 0.976;
            --shop-card-enter-opacity-duration: 0.84s;
            --shop-card-enter-duration: 1.42s;
            --shop-card-enter-ease: cubic-bezier(0.18, 0.9, 0.2, 1);
            animation-play-state: paused;
        }

        .shop-card-filter-enter.is-visible {
            opacity: 1;
            transition:
                opacity var(--shop-card-enter-opacity-duration) ease-out var(--shop-card-filter-delay, 0ms),
                --shop-card-enter-y var(--shop-card-enter-duration) var(--shop-card-enter-ease) var(--shop-card-filter-delay, 0ms),
                --shop-card-enter-scale var(--shop-card-enter-duration) var(--shop-card-enter-ease) var(--shop-card-filter-delay, 0ms);
            --shop-card-enter-y: 0px;
            --shop-card-enter-scale: 1;
        }

        .shop-card-filter-exit {
            opacity: 1;
            --shop-card-enter-y: 0px;
            --shop-card-enter-scale: 1;
        }

        .shop-card-filter-exit.is-leaving {
            opacity: 0;
            --shop-card-enter-y: 18px;
            --shop-card-enter-scale: 0.988;
            transition:
                opacity 0.36s ease-in var(--shop-card-filter-delay, 0ms),
                --shop-card-enter-y 0.46s cubic-bezier(0.4, 0, 0.2, 1) var(--shop-card-filter-delay, 0ms),
                --shop-card-enter-scale 0.46s cubic-bezier(0.4, 0, 0.2, 1) var(--shop-card-filter-delay, 0ms);
        }

        .shop-card-transition-clone {
            position: absolute;
            margin: 0 !important;
            pointer-events: none;
            z-index: 1;
            opacity: 1;
            animation: none !important;
            will-change: transform, opacity;
            backface-visibility: hidden;
            transform: translate3d(0, 0, 0) scale(1);
            transition:
                opacity 0.34s ease-in var(--shop-card-filter-delay, 0ms),
                transform 0.44s cubic-bezier(0.4, 0, 0.2, 1) var(--shop-card-filter-delay, 0ms);
        }

        .shop-card-transition-clone--moving {
            z-index: 3;
            transition:
                transform 0.82s cubic-bezier(0.2, 0.72, 0.24, 1) var(--shop-card-filter-delay, 0ms),
                opacity 0.18s ease-in var(--shop-card-filter-delay, 0ms);
        }

        .shop-card-transition-clone--exit {
            z-index: 1;
        }

        .shop-card-transition-clone.is-exiting {
            opacity: 0;
            transform: translate3d(0, 18px, 0) scale(0.988);
        }

        .shop-grid.is-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: clamp(240px, 34vh, 400px);
            padding: clamp(8px, 1.8vw, 18px) 0;
            transition: min-height 0.24s ease, padding 0.24s ease;
        }

        .shop-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            width: min(100%, 360px);
            padding: 0 12px;
        }

        .shop-empty-icon {
            width: 62px;
            height: 62px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(107, 158, 206, 0.28), rgba(96, 165, 250, 0.12));
            border: 1px solid rgba(147, 197, 253, 0.24);
            color: #93c5fd;
            box-shadow: 0 18px 40px rgba(96, 165, 250, 0.12);
            font-size: 1.4rem;
            line-height: 1;
        }

        .shop-empty-title {
            margin: 0;
            color: rgba(226, 232, 240, 0.96);
            font-size: clamp(1.12rem, 1.5vw, 1.3rem);
            font-weight: 600;
            letter-spacing: 0.01em;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .shop-main {
                padding: 100px 20px calc(40px + env(safe-area-inset-bottom)) 20px;
                margin-top: 0;
            }

            .shop-header {
                display: none;
            }

            .shop-title {
                font-size: 2rem;
            }

            .shop-grid.is-empty {
                min-height: clamp(180px, 26vh, 260px);
                padding: 6px 0 2px;
            }
        }

        /* Home Button (Replica from Prompts Page) */
        .home-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            box-sizing: border-box;
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

            /* Fixed Position (Top Left) */
            position: fixed;
            top: 28px;
            left: 30px;
            z-index: 100;

            /* Styles adapted for Dark Theme primarily, as Shop is dark-themed */
            color: rgba(255, 255, 255, 0.85);
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .home-btn i {
            font-size: 1.1rem;
        }

        /* Nav Logo SVG inside home button */
        .home-btn.nav-logo svg {
            width: 24px;
            height: 24px;
        }

        .home-btn:hover {
            background: rgba(15, 23, 42, 0.8);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
            transform: translateY(-2px);
        }

        /* Standardized Premium Modal (Frosted Glass) */
        .premium-modal {
            max-width: 380px !important;
            background: rgba(30, 41, 59, 0.75);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border-radius: 24px;
            color: #fff;
        }

        #shopPurchaseModal .modal-content,
        #shopSuccessModal .modal-content {
            width: min(calc(100% - 40px), 620px) !important;
            max-width: 620px !important;
            box-sizing: border-box;
        }

        #shopSuccessModal .modal-content.shop-success-modal {
            text-align: center;
        }

        .shop-success-scroll {
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .shop-success-actions {
            display: flex;
            gap: 10px;
            margin-top: 16px;
        }

        .shop-success-actions .shop-btn {
            flex: 1;
        }

        #shopSuccessModal .shop-success-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            width: min(360px, calc(100% - 80px));
            margin: 24px auto 0;
        }

        #shopSuccessModal .shop-success-actions .shop-btn {
            flex: none;
            min-width: 0;
            min-height: 44px;
            padding: 10px 16px;
            border-radius: 999px;
            box-shadow:
                0 14px 26px rgba(0, 0, 0, 0.24),
                0 3px 8px rgba(0, 0, 0, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        #shopSuccessModal .shop-success-actions .shop-btn i {
            font-size: 14px;
        }

        #shopSuccessModal .shop-success-actions .shop-btn span {
            font-size: 14px;
        }

        #shopSuccessModal #copyContentBtn {
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.18),
                0 4px 12px rgba(74, 222, 128, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        #shopSuccessModal #exportContentBtn {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid rgba(255, 255, 255, 0.95) !important;
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.16),
                0 4px 10px rgba(255, 255, 255, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.96);
        }

        #shopSuccessModal #exportContentBtn i,
        #shopSuccessModal #exportContentBtn span {
            color: inherit !important;
        }

        .shop-success-usage-card {
            padding: 15px;
            text-align: left;
            line-height: 1.7;
            justify-content: flex-start;
            align-items: stretch;
            cursor: text !important;
            transition: none !important;
            -webkit-user-select: text !important;
            user-select: text !important;
            -webkit-touch-callout: default !important;
            min-height: 0;
        }

        .shop-success-usage-card,
        .shop-success-usage-card *,
        #usageInstructionsContent,
        #usageInstructionsContent *,
        #purchaseNotesContent,
        #purchaseNotesContent * {
            -webkit-user-select: text !important;
            user-select: text !important;
        }

        .shop-success-usage-card::before,
        .shop-success-usage-card:hover::before {
            opacity: 0 !important;
        }

        .shop-success-usage-card:hover {
            transform: none !important;
            background: rgba(255, 255, 255, 0.03) !important;
            border-color: rgba(255, 255, 255, 0.08) !important;
            border-top-color: rgba(255, 255, 255, 0.15) !important;
            border-left-color: rgba(255, 255, 255, 0.15) !important;
            box-shadow:
                0 20px 40px -10px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 0 20px rgba(255, 255, 255, 0.01) !important;
        }

        #usageInstructionsContent {
            cursor: text;
            -webkit-touch-callout: default;
            min-height: 0;
        }

        #usageInstructionsContent a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease, opacity 0.2s ease;
            border-bottom: 1px solid transparent;
            cursor: pointer;
        }

        #purchaseNotesContent a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease, opacity 0.2s ease;
            border-bottom: 1px solid transparent;
            cursor: pointer;
        }

        #usageInstructionsContent a:hover {
            color: #93c5fd;
            opacity: 0.9;
        }

        #purchaseNotesContent a:hover {
            color: #93c5fd;
            opacity: 0.9;
        }

        .shop-rich-link {
            color: #6b9ece;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        #shopPurchaseModal .shop-success-usage-card {
            max-height: min(32vh, 220px);
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        #shopPurchaseModal .shop-success-usage-card::-webkit-scrollbar {
            width: 7px;
        }

        #shopPurchaseModal .shop-success-usage-card::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 999px;
        }

        #shopPurchaseModal .shop-success-usage-card::-webkit-scrollbar-thumb {
            background: rgba(107, 158, 206, 0.45);
            border-radius: 999px;
        }

        #shopPurchaseModal .shop-success-usage-card::-webkit-scrollbar-thumb:hover {
            background: rgba(107, 158, 206, 0.65);
        }

        #shopPurchaseModal {
            --shop-purchase-translate-y: 0px;
            --shop-purchase-scale: 0.95;
        }

        .shop-purchase-viewport-probe {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 100svh;
            pointer-events: none;
            visibility: hidden;
            opacity: 0;
            z-index: -1;
        }

        #shopPurchaseModal.active {
            --shop-purchase-scale: 1;
        }

        #shopPurchaseModal .modal-content {
            margin: auto !important;
            position: relative !important;
            top: auto !important;
            transform: translate3d(0, var(--shop-purchase-translate-y, 0px), 0) scale(var(--shop-purchase-scale, 0.95)) !important;
            transition: none !important;
            will-change: transform, height !important;
        }

        #shopPurchaseModal .modal-content.shop-purchase-height-locked {
            height: var(--shop-purchase-dock-height) !important;
            max-height: var(--shop-purchase-dock-height) !important;
        }

        #shopPurchaseModal.active .modal-content,
        #shopPurchaseModal.active:focus-within .modal-content,
        #shopPurchaseModal.ios-focus-lock .modal-content,
        #shopPurchaseModal.keyboard-docked .modal-content {
            transform: translate3d(0, var(--shop-purchase-translate-y, 0px), 0) scale(1) !important;
            animation: none !important;
        }

        #shopPurchaseModal.active:not(:focus-within):not(.ios-focus-lock):not(.keyboard-docked) .modal-content {
            transition: transform 0.3s ease-out !important;
        }

        @media (max-width: 768px) {
            #shopPurchaseModal .modal-content,
            #shopSuccessModal .modal-content {
                width: calc(100% - 40px) !important;
                max-width: 620px !important;
                border-radius: 30px !important;
                padding: 24px 20px calc(20px + env(safe-area-inset-bottom)) !important;
            }

            #shopPurchaseModal .modal-content,
            #shopPurchaseModal.active .modal-content,
            #shopPurchaseModal.active:focus-within .modal-content,
            #shopPurchaseModal.ios-focus-lock .modal-content,
            #shopPurchaseModal.keyboard-docked .modal-content {
                margin: auto !important;
                position: relative !important;
                top: auto !important;
                transform: translate3d(0, var(--shop-purchase-translate-y, 0px), 0) scale(1) !important;
                transition: none !important;
                will-change: transform, height !important;
                overscroll-behavior: contain;
            }

            #shopPurchaseModal .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.active .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.active:focus-within .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.ios-focus-lock .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.keyboard-docked .modal-content.shop-purchase-sheet-animating {
                transition:
                    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
                    height 200ms cubic-bezier(0.22, 1, 0.36, 1),
                    max-height 200ms cubic-bezier(0.22, 1, 0.36, 1) !important;
            }

            #shopSuccessModal .modal-content.shop-success-modal {
                display: flex;
                flex-direction: column;
                position: relative;
                height: min(720px, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
                max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
                overflow: hidden;
            }

            #shopSuccessModal .shop-success-scroll {
                flex: 1;
                overflow-y: auto;
                min-height: 0;
                padding-right: 4px;
                margin-right: -4px;
                padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
            }

            #shopSuccessModal .shop-success-content-shell {
                max-height: none !important;
                overflow: visible !important;
            }

            #shopSuccessModal .shop-success-content-shell--plain {
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
            }

            #shopSuccessModal .shop-success-actions {
                position: absolute;
                left: 0;
                right: 0;
                bottom: calc(34px + env(safe-area-inset-bottom, 0px));
                width: 248px;
                max-width: calc(100% - 104px);
                margin-left: auto;
                margin-right: auto;
                z-index: 3;
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                margin-top: 0;
                align-items: end;
            }

            #shopSuccessModal .shop-success-actions .shop-btn {
                min-width: 0;
                min-height: 38px;
                padding: 8px 12px;
                border-radius: 999px;
                box-shadow:
                    0 14px 26px rgba(0, 0, 0, 0.24),
                    0 3px 8px rgba(0, 0, 0, 0.14),
                    inset 0 1px 0 rgba(255, 255, 255, 0.18);
            }

            #shopSuccessModal .shop-success-actions .shop-btn i {
                font-size: 12px;
            }

            #shopSuccessModal .shop-success-actions .shop-btn span {
                font-size: 12px;
            }

            #shopSuccessModal #copyContentBtn {
                box-shadow:
                    0 14px 28px rgba(0, 0, 0, 0.18),
                    0 4px 12px rgba(74, 222, 128, 0.28),
                    inset 0 1px 0 rgba(255, 255, 255, 0.22);
            }

            #shopSuccessModal #exportContentBtn {
                background: #ffffff !important;
                color: #111827 !important;
                border: 1px solid rgba(255, 255, 255, 0.95) !important;
                box-shadow:
                    0 14px 28px rgba(0, 0, 0, 0.16),
                    0 4px 10px rgba(255, 255, 255, 0.28),
                    inset 0 1px 0 rgba(255, 255, 255, 0.96);
            }

            #shopSuccessModal #exportContentBtn i,
            #shopSuccessModal #exportContentBtn span {
                color: inherit !important;
            }

            .shop-purchase-actions {
                flex-direction: column;
            }

            #shopPurchaseModal[data-purchase-step="confirm"] .shop-purchase-stage-action {
                margin-top: 14px;
            }

            #purchaseBackBtn,
            #nextPurchaseStepBtn,
            #confirmPurchaseBtn {
                min-height: 38px;
                padding: 8px 12px;
            }

            #purchaseBackBtn i,
            #nextPurchaseStepBtn i,
            #confirmPurchaseBtn i {
                font-size: 12px;
            }

            #purchaseBackBtn span,
            #nextPurchaseStepBtn span,
            #confirmPurchaseBtn span {
                font-size: 12px;
            }

            #purchaseBackBtn {
                flex-basis: auto;
            }

            .shop-purchase-confirm-card {
                padding: 16px;
            }
        }

        #shopSuccessModal.has-usage-instructions {
            --shop-success-action-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
            --shop-success-action-width: 248px;
            --shop-success-action-clearance: calc(clamp(98px, calc(18px + 7vw), 142px) + env(safe-area-inset-bottom, 0px));
            --shop-success-usage-gap: clamp(10px, calc(-6px + 2vw), 24px);
            --shop-success-usage-max-height: clamp(300px, calc(360px - 4vw), 336px);
        }

        #shopSuccessModal.has-usage-instructions .modal-content.shop-success-modal {
            display: flex;
            flex-direction: column;
            position: relative;
            height: min(700px, calc(100dvh - 76px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
            max-height: calc(100dvh - 76px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
            overflow: hidden;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-scroll {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            padding-right: 6px;
            margin-right: -6px;
            padding-bottom: var(--shop-success-action-clearance);
            overscroll-behavior: contain;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-content-shell {
            max-height: none !important;
            overflow: visible !important;
        }

        #shopSuccessModal.has-usage-instructions #usageInstructionsBox {
            margin-bottom: var(--shop-success-usage-gap) !important;
        }

        .shop-order-history-item {
            padding: 12px 16px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
        }

        .shop-order-history-main {
            flex: 1;
            min-width: 0;
        }

        .shop-order-history-header {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
            gap: 8px;
        }

        .shop-order-history-icon {
            flex-shrink: 0;
        }

        .shop-order-history-icon--image {
            width: 24px;
            height: 24px;
            border-radius: 4px;
        }

        .shop-order-history-icon--font {
            color: #6b9ece;
        }

        .shop-order-history-name {
            font-weight: 600;
            font-size: 14px;
            color: #fff;
        }

        .shop-order-history-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.4);
        }

        .shop-order-history-points {
            color: #fbbf24;
        }

        .shop-order-history-view {
            padding: 6px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .shop-order-history-view:hover {
            background: rgba(255, 255, 255, 0.16);
            transform: translateY(-1px);
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions {
            position: absolute;
            left: 0;
            right: 0;
            bottom: var(--shop-success-action-bottom);
            width: var(--shop-success-action-width);
            max-width: calc(100% - 104px);
            margin-left: auto;
            margin-right: auto;
            z-index: 3;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 0;
            align-items: end;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions .shop-btn {
            min-width: 0;
            min-height: 38px;
            padding: 8px 12px;
            border-radius: 999px;
            box-shadow:
                0 14px 26px rgba(0, 0, 0, 0.24),
                0 3px 8px rgba(0, 0, 0, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions .shop-btn i {
            font-size: 12px;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions .shop-btn span {
            font-size: 12px;
        }

        #shopSuccessModal.has-usage-instructions #copyContentBtn {
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.18),
                0 4px 12px rgba(74, 222, 128, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        #shopSuccessModal.has-usage-instructions #exportContentBtn {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid rgba(255, 255, 255, 0.95) !important;
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.16),
                0 4px 10px rgba(255, 255, 255, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.96);
        }

        #shopSuccessModal.has-usage-instructions #exportContentBtn i,
        #shopSuccessModal.has-usage-instructions #exportContentBtn span {
            color: inherit !important;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card {
            max-height: min(42vh, var(--shop-success-usage-max-height));
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
            contain: layout paint;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar {
            width: 6px;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar-track {
            background: transparent;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.16);
            border-radius: 999px;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.24);
        }

        @media (max-width: 768px) {
            #shopSuccessModal.has-usage-instructions {
                --shop-success-action-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
                --shop-success-action-clearance: calc(104px + env(safe-area-inset-bottom, 0px));
                --shop-success-usage-gap: 12px;
                --shop-success-usage-max-height: 320px;
            }
        }


/* shop.html inline style block 2 (from line 1235) */
#starryCanvas {
            position: fixed;
            top: -10vh;
            left: 0;
            width: 100vw;
            height: 120vh;
            z-index: -1;
            pointer-events: none;
            opacity: 1;
        }

        /* Breathing (Water Flow) Animation */
        @keyframes breathe {

            0%,
            100% {
                --shop-card-breathe-y: 0px;
            }

            50% {
                --shop-card-breathe-y: -6px;
            }
        }

        .shop-card.breathing {
            animation: breathe 5.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
            animation-delay: var(--breathe-delay, 0s);
            will-change: transform;
        }

        /* Flash Sale Breathing Effect */
        @keyframes flashSaleBreathe {

            0%,
            100% {
                box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
            }

            50% {
                box-shadow: 0 10px 40px -10px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.3);
            }
        }

        .shop-card.flash-sale-card {
            animation: breathe 5.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite, flashSaleBreathe 2.4s ease-in-out infinite;
            border-color: rgba(239, 68, 68, 0.3);
        }

        @keyframes urgentPulse {

            0%,
            100% {
                color: #f87171;
                text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
                transform: scale(1);
            }

            50% {
                color: #ff3b30;
                text-shadow: 0 0 16px rgba(255, 59, 48, 0.8), 0 0 4px #ff3b30;
                transform: scale(1.05);
            }
        }

        .flash-badge-glass {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 10;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            /* Capsule shape matching stock */
            background: rgba(40, 40, 40, 0.6);
            /* Match stock background */
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(248, 113, 113, 0.3);
            /* Reddish border */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 6px;
            color: #f87171;
            font-family: 'Outfit', 'Monaco', monospace;
            /* Tech vibe for numbers */
            overflow: hidden;
        }

        /* Cyber-like scanline effect inside badge */
        .flash-badge-glass::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: skewX(-20deg);
            animation: scanline 2.5s infinite;
        }

        @keyframes scanline {
            0% {
                left: -100%;
            }

            20% {
                left: 200%;
            }

            100% {
                left: 200%;
            }
        }

        .flash-badge-glass .fa-bolt {
            color: #ff3b30;
            animation: urgentPulse 0.8s ease-in-out infinite;
            filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.8));
        }

        .flash-badge-glass .countdown-timer {
            font-variant-numeric: tabular-nums;
            /* Monospaced numbers to stop jittering */
        }

        /* Pause animation on hover (prioritize hover lift effect) */
        .shop-card.breathing:hover {
            animation-play-state: paused;
        }

        @media (prefers-reduced-motion: reduce) {
            .shop-card-filter-enter,
            .shop-card-filter-exit,
            .shop-card-filter-moving,
            .shop-card-transition-clone {
                transition: none !important;
                opacity: 1 !important;
                --shop-card-enter-y: 0px !important;
                --shop-card-enter-scale: 1 !important;
                --shop-card-shift-x: 0px !important;
                --shop-card-shift-y: 0px !important;
            }

            .shop-card-filter-hidden {
                opacity: 1 !important;
            }
        }

        /* Skeleton Loading Styles */
        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        @keyframes shopSkeletonShimmer {
            0% {
                background-position: 200% 0, 0 0;
            }

            100% {
                background-position: -200% 0, 0 0;
            }
        }

        .skeleton {
            background: linear-gradient(90deg,
                    rgba(255, 255, 255, 0.03) 25%,
                    rgba(255, 255, 255, 0.08) 50%,
                    rgba(255, 255, 255, 0.03) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        body.shop-page .skeleton {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(110deg,
                    rgba(255, 255, 255, 0.06) 8%,
                    rgba(255, 255, 255, 0.18) 18%,
                    rgba(255, 255, 255, 0.06) 33%),
                linear-gradient(180deg,
                    rgba(15, 23, 42, 0.84) 0%,
                    rgba(15, 23, 42, 0.68) 100%);
            background-size: 220% 100%, 100% 100%;
            animation: shopSkeletonShimmer 1.25s linear infinite;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
            border-radius: 10px;
        }

        .skeleton-filter {
            width: 60px;
            height: 36px;
            border-radius: 20px;
        }

        body.shop-page .skeleton-filter {
            min-width: 72px;
            height: 40px;
            border-radius: 999px;
        }

        .skeleton-card {
            border-radius: 16px;
            overflow: hidden;
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        body.shop-page .skeleton-card {
            display: flex;
            flex-direction: column;
            min-height: 332px;
            background: linear-gradient(180deg,
                    rgba(19, 26, 40, 0.98) 0%,
                    rgba(22, 31, 47, 0.94) 100%);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow:
                0 16px 32px rgba(2, 6, 23, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .skeleton-image-shell {
            position: relative;
            height: 160px;
            overflow: hidden;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            background:
                linear-gradient(180deg, rgba(78, 61, 125, 0.96), rgba(74, 58, 120, 0.92)),
                radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 34%);
        }

        .skeleton-content {
            padding: 24px;
        }

        body.shop-page .skeleton-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            gap: 10px;
        }

        .skeleton-title {
            height: 20px;
            width: 68%;
            border-radius: 10px;
        }

        .skeleton-desc {
            height: 14px;
            width: 90%;
        }

        .skeleton-desc--short {
            width: 62%;
            margin-bottom: 10px;
        }

        .skeleton-footer {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
            margin-top: auto;
            padding-top: 18px;
        }

        .skeleton-price-value {
            width: 34px;
            height: 26px;
            border-radius: 10px;
        }

        .skeleton-btn {
            width: 92px;
            height: 36px;
            border-radius: 999px;
            flex: 0 0 auto;
        }


/* shop.html inline style block 3 (from line 1549) */
.category-filters {
                    display: flex;
                    gap: 10px;
                    margin: 0 auto 22px;
                    padding: 6px 0;
                    justify-content: center;
                    flex-wrap: wrap;
                    width: min(100%, 980px);
                    transition: gap 0.24s ease, margin-bottom 0.24s ease, padding 0.24s ease;
                    /* Auto wrap for mobile/narrow screens */
                }

                .shop-main .filter-tab {
                    padding: 8px 20px;
                    border-radius: 20px;
                    background: rgba(0, 0, 0, 0.05);
                    /* Light mode default */
                    border: 1px solid rgba(0, 0, 0, 0.1);
                    color: #64748b;
                    /* Slate-500 */
                    cursor: pointer;
                    font-size: 14px;
                    flex: 0 0 auto;
                    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, padding 0.24s ease, font-size 0.24s ease;
                    white-space: nowrap;
                    backdrop-filter: blur(10px);
                    -webkit-tap-highlight-color: transparent;
                    /* Prevent iOS tap highlight */
                }

                /* Only apply hover effects on devices that support hover (not touch) */
                @media (hover: hover) {
                    .shop-main .filter-tab:hover {
                        background: rgba(0, 0, 0, 0.1);
                        color: #1e293b;
                        transform: translateY(-2px);
                        box-shadow: 0 4px 12px rgba(107, 158, 206, 0.15), 0 0 20px rgba(107, 158, 206, 0.1);
                    }

                    [data-theme="dark"] .shop-main .filter-tab:hover {
                        background: rgba(255, 255, 255, 0.15);
                        color: #fff;
                        box-shadow: 0 4px 12px rgba(107, 158, 206, 0.25), 0 0 20px rgba(107, 158, 206, 0.15);
                    }
                }

                /* Dark Mode Overrides */
                [data-theme="dark"] .shop-main .filter-tab {
                    background: rgba(255, 255, 255, 0.05);
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    color: rgba(255, 255, 255, 0.6);
                }

                .shop-main .filter-tab.active {
                    background: #6b9ece;
                    border-color: #6b9ece;
                    color: #fff;
                    box-shadow: 0 4px 15px rgba(107, 158, 206, 0.3);
                }

                @media (max-width: 980px) {
                    .category-filters {
                        justify-content: center;
                        flex-wrap: wrap;
                        width: min(100%, 760px);
                        margin: 0 auto 18px;
                        padding: 4px 0 8px;
                        gap: 8px;
                    }
                }

                @media (max-width: 768px) {
                    .category-filters {
                        width: 100%;
                        margin: 0 auto 16px;
                        padding: 2px 0 6px;
                        gap: 8px;
                    }

                    .shop-main .filter-tab {
                        padding: 8px 16px;
                        font-size: 13px;
                    }

                    .shop-main .filter-tab.active {
                        box-shadow: 0 4px 12px rgba(107, 158, 206, 0.24);
                    }
                }

/* BEGIN 20260324_INLINE_STYLE_ATTRS_BATCH_1 shop.html */
/* Extracted inline style attributes from shop.html. */
.shop-inline-style-attr-1 { margin-bottom: 20px; }
.shop-inline-style-attr-2 { width:50px; }
.shop-inline-style-attr-3 { width:70px; }
.shop-inline-style-attr-4 { width:55px; }
.shop-inline-style-attr-5 { text-align: center; margin-bottom: 20px; }
.shop-inline-style-attr-6 { font-size: 1.2rem; margin-bottom: 5px; }
.shop-inline-style-attr-7 { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.shop-inline-style-attr-8 { margin: 15px 10px; text-align: left; }
.shop-inline-style-attr-9 { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 5px; }
.shop-inline-style-attr-10 { display: flex; gap: 8px; }
.shop-inline-style-attr-11 { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: #fff; outline: none; transition: border-color 0.2s; }
.shop-inline-style-attr-12 { padding: 0 16px; border-radius: 8px; background: rgba(107, 158, 206, 0.2); color: #6b9ece; border: 1px solid rgba(107, 158, 206, 0.3); cursor: pointer; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.shop-inline-style-attr-13 { font-size: 12px; margin-top: 6px; display: none; }
.shop-inline-style-attr-14 { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; padding: 0 10px; }
.shop-inline-style-attr-15 { text-align: left; }
.shop-inline-style-attr-16 { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.shop-inline-style-attr-17 { font-family: 'Outfit'; color: #fbbf24; }
.shop-inline-style-attr-18 { text-align: right; }
.shop-inline-style-attr-19 { font-family: 'Outfit'; font-size: 1.4rem; color: #4ade80; font-weight: 700; }
.shop-inline-style-attr-20 { font-size: 0.9rem; font-weight: 500; }
.shop-inline-style-attr-21 { display: none; margin: 0 10px 20px; }
.shop-inline-style-attr-22 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: rgba(255,255,255,0.68); font-size: 0.96rem; text-align: left; }
.shop-inline-style-attr-23 { color: #fbbf24; }
.shop-inline-style-attr-24 { white-space: pre-wrap; font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.75; }
.shop-inline-style-attr-25 { width: 100%; }
.shop-inline-style-attr-26 { z-index: 99999; }
.shop-inline-style-attr-27 { width: 60px; height: 60px; background: rgba(56, 158, 13, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.shop-inline-style-attr-28 { font-size: 30px; color: #389e0d; }
.shop-inline-style-attr-29 { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.shop-inline-style-attr-30 { font-size: 8px; color: #60a5fa; }
.shop-inline-style-attr-31 { margin-bottom: 20px; padding: 15px; word-break: break-all; user-select: text; text-align: left; max-height: 280px; overflow-y: auto; }
.shop-inline-style-attr-32 { font-family: monospace; font-size: 14px; color: #fff; white-space: pre-wrap; overflow-x: auto; }
.shop-inline-style-attr-33 { display: none; margin-bottom: 20px; }
.shop-inline-style-attr-34 { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.shop-inline-style-attr-35 { color: #60a5fa; }
.shop-inline-style-attr-36 { font-size: 13px; color: rgba(255,255,255,0.85); white-space: pre-wrap; word-break: break-word; }
.shop-inline-style-attr-37 { margin-bottom: 20px; padding: 12px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); text-align: left; display: none; }
.shop-inline-style-attr-38 { display: flex; gap: 10px; align-items: flex-start; }
.shop-inline-style-attr-39 { color: #fbbf24; margin-top: 3px; }
.shop-inline-style-attr-40 { color: #fbbf24; font-size: 13px; line-height: 1.4; }
.shop-inline-style-attr-41 { font-weight: 600; margin-bottom: 2px; }
.shop-inline-style-attr-42 { flex: 1; }
/* END 20260324_INLINE_STYLE_ATTRS_BATCH_1 shop.html */
