/* ==========================================================================
   SWEETNOTE STOREFRONT REDESIGN — PREMIUM DESIGN SYSTEM (ZERO CARD REGRESSION)
   Scoped strictly to Storefront Canvas and body:not(.story-view-active)
   ========================================================================== */

:root {
    --sn-bg-ivory: #FAF8F5;
    --sn-bg-warm-white: #FFFFFF;
    --sn-bg-surface-tint: #F5F2EB;
    --sn-bg-blush: #FFF1F2;
    --sn-border-subtle: #EDE8E1;
    --sn-border-focus: #E05A6D;
    --sn-border-rose: #FECDD3;

    --sn-text-charcoal: #1C1917;
    --sn-text-body: #44403C;
    --sn-text-muted: #78716C;
    --sn-text-faint: #A8A29E;

    --sn-rose-primary: #E11D48;
    --sn-rose-deep: #BE123C;
    --sn-rose-soft: #F43F5E;
    --sn-rose-light: #FFE4E6;

    --sn-font-serif: 'Playfair Display', Georgia, serif;
    --sn-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --sn-shadow-card: 0 4px 20px rgba(28, 25, 23, 0.05);
    --sn-shadow-hover: 0 16px 36px rgba(28, 25, 23, 0.09);
    --sn-shadow-nav: 0 2px 16px rgba(28, 25, 23, 0.04);
    --sn-radius-sm: 8px;
    --sn-radius-md: 14px;
    --sn-radius-lg: 20px;
    --sn-radius-full: 9999px;
}

/* Base Body Behavior when on Storefront (Preserves Cards & Admin Intact) */
body:not(.story-view-active):not(.admin-portal-active) {
    background: var(--sn-bg-ivory) !important;
    color: var(--sn-text-charcoal) !important;
    font-family: var(--sn-font-sans) !important;
    transition: background-color 0.3s ease;
}

/* Subtle particle canvas treatment on storefront */
body:not(.story-view-active):not(.admin-portal-active) #heartCanvas {
    opacity: 0.18;
    filter: sepia(0.6) hue-rotate(300deg);
}

/* Hide legacy marketplace hero & cards when new storefront is active */
.storefront-active .marketplace-hero,
.storefront-active .catalog-controls-container,
.storefront-active .template-cards-grid,
.storefront-active .trust-banner-section,
.storefront-active .marketplace-footer {
    display: none !important;
}

/* ==========================================================================
   1. STOREFRONT TOP NAVIGATION
   ========================================================================== */
body:not(.story-view-active):not(.admin-portal-active) .top-nav {
    background: rgba(250, 248, 245, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--sn-border-subtle) !important;
    box-shadow: var(--sn-shadow-nav) !important;
    height: 68px !important;
    padding: 0 24px !important;
}

.top-nav .nav-brand {
    gap: 10px;
}

body:not(.story-view-active):not(.admin-portal-active) .brand-icon-wrap {
    background: linear-gradient(135deg, var(--sn-rose-primary), var(--sn-rose-deep)) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25) !important;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

body:not(.story-view-active):not(.admin-portal-active) .brand-title {
    color: var(--sn-text-charcoal) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

body:not(.story-view-active):not(.admin-portal-active) .brand-badge {
    background: var(--sn-bg-blush) !important;
    color: var(--sn-rose-primary) !important;
    border: 1px solid var(--sn-border-rose) !important;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

body:not(.story-view-active):not(.admin-portal-active) .brand-subtitle {
    color: var(--sn-text-muted) !important;
    font-size: 0.72rem;
}

/* Nav Desktop Links */
.sn-nav-center-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
}

.sn-nav-link {
    color: var(--sn-text-body);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 0;
}

.sn-nav-link:hover {
    color: var(--sn-rose-primary);
}

.sn-nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sn-rose-primary);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--sn-radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.sn-nav-cta-btn:hover {
    background: var(--sn-rose-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
}

body:not(.story-view-active):not(.admin-portal-active) .btn-google-login {
    background: #ffffff !important;
    color: var(--sn-text-body) !important;
    border: 1px solid var(--sn-border-subtle) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 8px 14px !important;
    border-radius: var(--sn-radius-full) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

body:not(.story-view-active):not(.admin-portal-active) .btn-google-login:hover {
    border-color: #d6d3d1 !important;
    color: var(--sn-text-charcoal) !important;
}

/* Mobile Hamburger Toggle */
.sn-mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--sn-border-subtle);
    border-radius: 8px;
    padding: 6px;
    color: var(--sn-text-charcoal);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Mobile Slide-down Drawer */
.sn-mobile-drawer {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--sn-bg-warm-white);
    border-bottom: 1px solid var(--sn-border-subtle);
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 49;
    animation: snDrawerSlide 0.25s ease-out;
}

.sn-mobile-drawer.open {
    display: flex;
}

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

.sn-mobile-drawer .sn-nav-link {
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--sn-border-subtle);
}

/* ==========================================================================
   2. STOREFRONT MAIN WRAPPER
   ========================================================================== */
.sn-storefront-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

/* Shared Editorial Typography */
.sn-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sn-rose-primary);
    background: var(--sn-bg-blush);
    border: 1px solid var(--sn-border-rose);
    padding: 4px 12px;
    border-radius: var(--sn-radius-full);
    margin-bottom: 14px;
}

.sn-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.sn-section-title {
    font-family: var(--sn-font-serif);
    font-size: clamp(1.75rem, 3.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.22;
    color: var(--sn-text-charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.sn-section-sub {
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    color: var(--sn-text-muted);
    line-height: 1.58;
}

/* ==========================================================================
   SECTION B: EMOTIONAL HERO
   ========================================================================== */
.sn-hero-section {
    padding: 56px 0 64px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.sn-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sn-hero-title {
    font-family: var(--sn-font-serif);
    font-size: clamp(2.3rem, 5.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.14;
    color: var(--sn-text-charcoal);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.sn-hero-title em {
    font-style: italic;
    font-weight: 600;
    color: var(--sn-rose-primary);
}

.sn-hero-sub {
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    color: var(--sn-text-body);
    line-height: 1.62;
    margin-bottom: 32px;
    max-width: 540px;
}

.sn-hero-ctas {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.sn-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sn-rose-primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--sn-radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.28);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.sn-btn-primary:hover {
    background: var(--sn-rose-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.36);
}

.sn-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--sn-text-charcoal);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--sn-radius-full);
    border: 1px solid var(--sn-border-subtle);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    text-decoration: none;
}

.sn-btn-secondary:hover {
    border-color: #d6d3d1;
    background: var(--sn-bg-surface-tint);
}

.sn-hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.sn-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sn-stat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sn-bg-surface-tint);
    color: var(--sn-rose-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sn-stat-icon-wrap i,
.sn-stat-icon-wrap svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.sn-stat-promo .sn-stat-icon-wrap {
    background: rgba(225, 29, 72, 0.1);
    color: var(--sn-rose-primary);
}

.sn-stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sn-stat-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--sn-text-charcoal);
    line-height: 1.2;
    white-space: nowrap;
}

.sn-stat-promo .sn-stat-num {
    color: var(--sn-rose-primary);
}

.sn-stat-label {
    font-size: 0.72rem;
    color: var(--sn-text-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sn-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--sn-border-subtle);
    flex-shrink: 0;
}

/* Hero Showcase Card */
.sn-hero-preview-box {
    position: relative;
    background: #ffffff;
    border-radius: var(--sn-radius-lg);
    border: 1px solid var(--sn-border-subtle);
    box-shadow: var(--sn-shadow-hover);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sn-hero-preview-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(28, 25, 23, 0.12);
}

.sn-hero-preview-inner {
    border-radius: var(--sn-radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #1c1917;
}

.sn-hero-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sn-hero-preview-box:hover .sn-hero-preview-img {
    transform: scale(1.04);
}

.sn-hero-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.1) 0%, rgba(28, 25, 23, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
}

.sn-hero-preview-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(225, 29, 72, 0.9);
    padding: 3px 10px;
    border-radius: var(--sn-radius-full);
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}

.sn-hero-preview-title {
    font-family: var(--sn-font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sn-hero-preview-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 12px;
}

.sn-hero-preview-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border-radius: var(--sn-radius-full);
    backdrop-filter: blur(8px);
    width: fit-content;
    transition: all 0.2s ease;
}

.sn-hero-preview-box:hover .sn-hero-preview-action {
    background: #ffffff;
    color: var(--sn-rose-primary);
}

/* ==========================================================================
   SECTION C: BROWSE BY EMOTION (COMPACT MOOD BAR)
   ========================================================================== */
.sn-emotions-compact {
    padding: 0 0 32px 0;
    width: 100%;
}

.sn-emotions-compact-inner {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    padding: 12px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sn-emotions-compact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sn-emotions-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sn-rose-primary);
    background: var(--sn-bg-surface-tint);
    padding: 4px 10px;
    border-radius: var(--sn-radius-full);
}

.sn-emotions-badge i,
.sn-emotions-badge svg {
    width: 12px;
    height: 12px;
}

.sn-emotions-compact-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
}

.sn-emotions-chips-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.sn-emotions-chips-scroll::-webkit-scrollbar {
    display: none;
}

.sn-emotion-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--sn-radius-full);
    background: var(--sn-bg-surface-tint);
    border: 1px solid var(--sn-border-subtle);
    color: var(--sn-text-charcoal);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.sn-emotion-chip:hover {
    background: #ffffff;
    border-color: var(--sn-rose-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}

.sn-emotion-chip.active {
    background: var(--sn-rose-primary);
    border-color: var(--sn-rose-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.28);
}

.sn-chip-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

.sn-chip-label {
    line-height: 1;
}

@media (max-width: 960px) {
    .sn-emotions-compact-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .sn-emotions-chips-scroll {
        width: 100%;
    }
}

/* ==========================================================================
   SECTION D & E: ALL TEMPLATES + DISCOVERY CONTROLS
   ========================================================================== */
.sn-templates-section {
    padding: 56px 0 64px;
    border-top: 1px solid var(--sn-border-subtle);
}

.sn-discovery-bar {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    padding: 16px 20px;
    box-shadow: var(--sn-shadow-card);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sn-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sn-search-input-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.sn-search-icon {
    position: absolute;
    left: 14px;
    color: var(--sn-text-faint);
    pointer-events: none;
}

.sn-search-input {
    width: 100%;
    padding: 11px 40px 11px 42px;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-full);
    font-size: 0.9rem;
    color: var(--sn-text-charcoal);
    background: var(--sn-bg-surface-tint);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sn-search-input:focus {
    border-color: var(--sn-rose-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.sn-search-clear-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--sn-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
}

.sn-filter-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sn-pills-list {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.sn-pills-list::-webkit-scrollbar {
    display: none;
}

.sn-filter-pill {
    background: var(--sn-bg-surface-tint);
    border: 1px solid var(--sn-border-subtle);
    color: var(--sn-text-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--sn-radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.sn-filter-pill:hover {
    border-color: #d6d3d1;
    color: var(--sn-text-charcoal);
}

.sn-filter-pill.active {
    background: var(--sn-rose-primary);
    color: #ffffff;
    border-color: var(--sn-rose-primary);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.sn-sort-select {
    padding: 7px 12px;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-full);
    background: #ffffff;
    color: var(--sn-text-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.sn-btn-reset-filters {
    background: none;
    border: none;
    color: var(--sn-text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    display: none;
}

/* Template Cards Grid */
.sn-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.sn-card-tile {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    overflow: hidden;
    box-shadow: var(--sn-shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.sn-card-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--sn-shadow-hover);
    border-color: #d6d3d1;
}

.sn-card-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1c1917;
}

.sn-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sn-card-tile:hover .sn-card-img {
    transform: scale(1.05);
}

.sn-badge-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--sn-text-charcoal);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--sn-radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.sn-badge-free {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--sn-radius-full);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
    letter-spacing: 0.03em;
}

.sn-badge-premium {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e11d48, #9333ea);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--sn-radius-full);
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
    letter-spacing: 0.03em;
}

.sn-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sn-card-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sn-card-category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sn-rose-primary);
}

.sn-card-title {
    font-family: var(--sn-font-serif);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
    line-height: 1.28;
    margin-bottom: 8px;
}

.sn-card-desc {
    font-size: 0.84rem;
    color: var(--sn-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.sn-feature-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.sn-feature-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sn-text-body);
    background: var(--sn-bg-surface-tint);
    border: 1px solid var(--sn-border-subtle);
    padding: 3px 8px;
    border-radius: 6px;
}

.sn-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--sn-border-subtle);
    gap: 10px;
}

.sn-card-price-wrap {
    display: flex;
    flex-direction: column;
}

.sn-price-strike {
    font-size: 0.72rem;
    color: var(--sn-text-faint);
    text-decoration: line-through;
}

.sn-price-current {
    font-size: 0.95rem;
    font-weight: 800;
    color: #16a34a; /* Fresh green for free launch */
}

.sn-price-current.premium {
    color: #e11d48;
    font-size: 1.02rem;
    font-weight: 800;
}

.sn-price-current.free {
    color: #16a34a;
    font-size: 0.95rem;
    font-weight: 800;
}

.sn-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sn-btn-card-preview {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    color: var(--sn-text-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--sn-radius-full);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.sn-btn-card-preview:hover {
    border-color: #a8a29e;
    color: var(--sn-text-charcoal);
}

.sn-btn-card-create {
    background: var(--sn-rose-primary);
    border: 1px solid var(--sn-rose-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--sn-radius-full);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.sn-btn-card-create:hover {
    background: var(--sn-rose-deep);
    border-color: var(--sn-rose-deep);
    transform: translateY(-1px);
}

/* Empty Search Results */
.sn-empty-search-state {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    display: none;
}

.sn-empty-search-state h3 {
    font-family: var(--sn-font-serif);
    font-size: 1.3rem;
    margin: 12px 0 6px;
    color: var(--sn-text-charcoal);
}

.sn-empty-search-state p {
    font-size: 0.88rem;
    color: var(--sn-text-muted);
}

/* ==========================================================================
   SECTION F: FEATURED GIFTS SPOTLIGHT
   ========================================================================== */
.sn-featured-section {
    padding: 64px 0;
    border-top: 1px solid var(--sn-border-subtle);
}

.sn-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.sn-featured-card {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    padding: 24px;
    box-shadow: var(--sn-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.25s ease;
}

.sn-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sn-shadow-hover);
    border-color: #d6d3d1;
}

.sn-featured-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sn-featured-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sn-bg-blush);
    color: var(--sn-rose-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sn-featured-title {
    font-family: var(--sn-font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
}

.sn-featured-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--sn-bg-surface-tint);
    border-radius: var(--sn-radius-md);
    padding: 16px;
}

.sn-breakdown-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sn-breakdown-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sn-text-muted);
}

.sn-breakdown-val {
    font-size: 0.82rem;
    color: var(--sn-text-body);
    line-height: 1.45;
}

.sn-featured-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

/* ==========================================================================
   SECTION G: HOW IT WORKS
   ========================================================================== */
.sn-how-it-works-section {
    padding: 64px 0;
    border-top: 1px solid var(--sn-border-subtle);
}

.sn-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.sn-step-card {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    padding: 32px 24px;
    box-shadow: var(--sn-shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
}

.sn-step-num {
    font-family: var(--sn-font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sn-border-rose);
    line-height: 1;
    margin-bottom: 16px;
}

.sn-step-title {
    font-family: var(--sn-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
    margin-bottom: 10px;
}

.sn-step-desc {
    font-size: 0.88rem;
    color: var(--sn-text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   SECTION H: INTERACTIVE DEMONSTRATION SHOWCASE
   ========================================================================== */
.sn-demo-section {
    padding: 64px 0;
    border-top: 1px solid var(--sn-border-subtle);
}

.sn-demo-card {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-lg);
    overflow: hidden;
    box-shadow: var(--sn-shadow-hover);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sn-demo-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sn-demo-title {
    font-family: var(--sn-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
    margin-bottom: 14px;
}

.sn-demo-desc {
    font-size: 0.95rem;
    color: var(--sn-text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.sn-demo-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.sn-demo-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--sn-text-body);
}

.sn-demo-bullet i {
    color: var(--sn-rose-primary);
}

.sn-demo-visual-side {
    background: #1c1917;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.sn-demo-mock-screen {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    border: 4px solid #292524;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: #000;
    position: relative;
    aspect-ratio: 9 / 16;
}

.sn-demo-mock-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-demo-mock-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sn-demo-mock-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.sn-play-circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sn-rose-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
    transition: transform 0.2s ease;
}

.sn-demo-mock-play-overlay:hover .sn-play-circle-btn {
    transform: scale(1.1);
}

/* ==========================================================================
   SECTION I: TRUST & TRANSPARENCY + FAQ
   ========================================================================== */
.sn-trust-faq-section {
    padding: 64px 0;
    border-top: 1px solid var(--sn-border-subtle);
}

.sn-trust-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.sn-trust-pillar-card {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-md);
    padding: 20px;
    box-shadow: var(--sn-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sn-pillar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sn-bg-blush);
    color: var(--sn-rose-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.sn-pillar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
}

.sn-pillar-desc {
    font-size: 0.8rem;
    color: var(--sn-text-muted);
    line-height: 1.45;
}

/* FAQ Accordion */
.sn-faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sn-faq-item {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.sn-faq-item.open {
    border-color: #d6d3d1;
}

.sn-faq-question {
    padding: 18px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--sn-text-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.sn-faq-icon {
    color: var(--sn-text-muted);
    transition: transform 0.25s ease;
}

.sn-faq-item.open .sn-faq-icon {
    transform: rotate(180deg);
    color: var(--sn-rose-primary);
}

.sn-faq-answer {
    padding: 0 22px 18px;
    font-size: 0.88rem;
    color: var(--sn-text-body);
    line-height: 1.6;
    display: none;
}

.sn-faq-item.open .sn-faq-answer {
    display: block;
}

/* ==========================================================================
   SECTION J: CRAFTED WITH CARE (AUTHENTIC SHOWCASE)
   ========================================================================== */
.sn-craft-section {
    padding: 64px 0;
    border-top: 1px solid var(--sn-border-subtle);
}

.sn-craft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.sn-craft-card {
    background: #ffffff;
    border: 1px solid var(--sn-border-subtle);
    border-radius: var(--sn-radius-md);
    padding: 24px;
    box-shadow: var(--sn-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sn-craft-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
}

.sn-craft-desc {
    font-size: 0.84rem;
    color: var(--sn-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   SECTION K: FINAL CONVERSION BANNER
   ========================================================================== */
.sn-final-cta-section {
    padding: 72px 24px;
    margin: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--sn-bg-blush) 100%);
    border: 1px solid var(--sn-border-rose);
    border-radius: var(--sn-radius-lg);
    text-align: center;
    box-shadow: var(--sn-shadow-card);
}

.sn-final-title {
    font-family: var(--sn-font-serif);
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 700;
    color: var(--sn-text-charcoal);
    margin-bottom: 14px;
}

.sn-final-sub {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: var(--sn-text-body);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION L: MINIMAL FOOTER
   ========================================================================== */
.sn-footer {
    border-top: 1px solid var(--sn-border-subtle);
    padding-top: 48px;
    color: var(--sn-text-muted);
}

.sn-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.sn-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sn-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
}

.sn-footer-tagline {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--sn-text-muted);
    max-width: 300px;
}

.sn-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sn-footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sn-text-charcoal);
    margin-bottom: 4px;
}

.sn-footer-link {
    color: var(--sn-text-body);
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.18s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
}

.sn-footer-link:hover {
    color: var(--sn-rose-primary);
}

.sn-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--sn-border-subtle);
    font-size: 0.75rem;
    color: var(--sn-text-faint);
    flex-wrap: wrap;
    gap: 12px;
}

.sn-footer-admin-trigger {
    background: none;
    border: none;
    color: var(--sn-text-faint);
    font-size: 0.72rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sn-footer-admin-trigger:hover {
    color: var(--sn-text-muted);
}

/* ==========================================================================
   POLICY & SUPPORT MODALS
   ========================================================================== */
.sn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sn-modal-overlay.open {
    display: flex;
    animation: snModalFade 0.2s ease-out;
}

@keyframes snModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sn-modal-dialog {
    background: #ffffff;
    border-radius: var(--sn-radius-lg);
    border: 1px solid var(--sn-border-subtle);
    box-shadow: 0 24px 64px rgba(28, 25, 23, 0.2);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: snModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes snModalPop {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sn-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--sn-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sn-modal-title {
    font-family: var(--sn-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sn-text-charcoal);
}

.sn-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--sn-text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.sn-modal-close:hover {
    color: var(--sn-text-charcoal);
}

.sn-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.88rem;
    color: var(--sn-text-body);
    line-height: 1.65;
}

.sn-modal-body h4 {
    color: var(--sn-text-charcoal);
    font-size: 0.98rem;
    margin: 18px 0 6px;
}

.sn-modal-body h4:first-child {
    margin-top: 0;
}

.sn-modal-body p {
    margin-bottom: 12px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 960px) {
    .sn-hero-section {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px 0;
    }

    .sn-hero-preview-box {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .sn-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sn-demo-card {
        grid-template-columns: 1fr;
    }

    .sn-demo-visual-side {
        padding: 24px;
    }

    .sn-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .sn-nav-center-links {
        display: none !important;
    }

    .sn-mobile-menu-btn {
        display: inline-flex !important;
    }
}

@media (max-width: 640px) {
    body:not(.story-view-active):not(.admin-portal-active) .top-nav {
        padding: 0 16px !important;
        height: 60px !important;
    }

    .sn-storefront-wrapper {
        padding: 0 14px 60px;
    }

    .sn-hero-title {
        font-size: 2.15rem;
    }

    .sn-hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .sn-btn-primary, .sn-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .sn-templates-grid {
        grid-template-columns: 1fr;
    }

    .sn-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sn-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sn-discovery-bar {
        padding: 14px;
    }

    .sn-search-input-wrap {
        min-width: 0 !important;
        width: 100% !important;
    }

    .sn-filter-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sn-pills-list {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .sn-sort-select {
        width: 100%;
    }

    .sn-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sn-card-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .sn-btn-card-preview, .sn-btn-card-create {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    /* 2 Columns on mobile for emotions */
    .sn-emotions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .sn-emotion-card {
        padding: 12px 10px;
    }

    /* Hero stats layout */
    .sn-hero-stats {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }

    .sn-stat-item {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .sn-stat-divider {
        display: none !important;
    }
}

/* Extra Mobile / Small Smartphone Breakpoints (<= 540px and <= 380px) */
@media (max-width: 540px) {
    /* Navbar Responsiveness: Hide subtitle & CTA button on mobile header to prevent squeezing */
    .top-nav .brand-subtitle {
        display: none !important;
    }

    .sn-nav-cta-btn#btnNavCreateSurprise {
        display: none !important;
    }

    .top-nav .nav-actions {
        gap: 8px;
    }

    .sn-hero-title {
        font-size: 1.95rem;
        letter-spacing: -0.02em;
    }

    .sn-hero-subtitle {
        font-size: 0.95rem;
    }

    .sn-demo-card {
        border-radius: var(--sn-radius-md);
    }

    .sn-demo-content-side {
        padding: 22px 16px;
    }

    .sn-demo-visual-side {
        padding: 16px 12px;
    }

    .sn-featured-card {
        padding: 18px 14px;
    }

    .sn-modal-dialog {
        padding: 20px 16px;
        margin: 12px;
        max-width: calc(100vw - 24px) !important;
    }
}

@media (max-width: 380px) {
    .brand-title {
        font-size: 1.05rem !important;
    }

    .brand-badge {
        font-size: 0.58rem !important;
        padding: 1px 4px !important;
    }

    #btnAuthTrigger .auth-btn-text {
        display: none;
    }

    #btnAuthTrigger {
        padding: 7px 10px !important;
    }

    .sn-emotions-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   ADMIN THUMBNAIL CAMERA ICON BUTTON
   Strictly hidden for regular visitors; visible only to authorized admin
   ========================================================================== */
.sn-thumb-camera-btn {
    display: none !important;
}

body.admin-user-active .sn-thumb-camera-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 25;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 12, 24, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.admin-user-active .sn-thumb-camera-btn:hover {
    background: var(--sn-rose-primary, #e11d48);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

body.admin-user-active .sn-thumb-camera-btn i,
body.admin-user-active .sn-thumb-camera-btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
    pointer-events: none;
}

/* Template Cards Thumbnails */
body.admin-user-active .sn-card-thumb-wrap .sn-thumb-camera-btn {
    bottom: 12px;
    right: 12px;
}

/* Hero Section Preview Thumbnail */
body.admin-user-active .sn-hero-preview-inner .sn-thumb-camera-btn {
    top: 14px;
    right: 14px;
}

/* Interactive Demo Mockup Thumbnail */
body.admin-user-active .sn-demo-mock-screen .sn-thumb-camera-btn {
    top: 14px;
    right: 14px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   TOP LIVE ANNOUNCEMENT & NEWS TICKER STRIP
   ========================================================================== */
.sn-top-ticker {
    width: 100%;
    background: #140715;
    border-bottom: 1px solid rgba(244, 63, 94, 0.22);
    color: #fdf2f8;
    position: relative;
    z-index: 45;
    font-size: 0.77rem;
    line-height: 1;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body.story-view-active .sn-top-ticker,
body.admin-portal-active .sn-top-ticker {
    display: none !important;
}

.sn-ticker-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 33px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.sn-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(244, 63, 94, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fb7185;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sn-ticker-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fb7185;
    box-shadow: 0 0 6px #f43f5e;
    animation: snTickerPulse 1.8s ease-in-out infinite;
}

@keyframes snTickerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}

.sn-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
}

.sn-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: snTickerMarquee 30s linear infinite;
    will-change: transform;
}

.sn-top-ticker:hover .sn-ticker-track {
    animation-play-state: paused;
}

.sn-ticker-group {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 18px;
    white-space: nowrap;
}

.sn-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbcfe8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.sn-ticker-item strong {
    color: #ffffff;
    font-weight: 600;
}

.sn-ticker-sep {
    color: rgba(244, 63, 94, 0.45);
    font-size: 0.82rem;
}

.ticker-emoji {
    font-size: 0.85rem;
    line-height: 1;
}

.sn-ticker-link {
    color: #fce7f3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}

.sn-ticker-ig-highlight {
    background: linear-gradient(90deg, #fce7f3 0%, #fed7aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.sn-ticker-ig-highlight:hover {
    text-decoration: underline;
    -webkit-text-fill-color: #ffffff;
}

.ticker-link-icon {
    width: 12px;
    height: 12px;
    color: #fb7185;
}

.sn-ticker-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sn-ticker-cta-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.5);
}

.ticker-ig-icon {
    width: 12px;
    height: 12px;
}

@keyframes snTickerMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   NAVBAR INSTAGRAM ICON BUTTON (OFFICIAL APP ICON STYLE ON MOBILE)
   ========================================================================== */
.sn-nav-ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--sn-radius-full, 999px);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    border: none;
    font-size: 0.80rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.32);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.sn-nav-ig-btn .sn-ig-icon-svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.sn-nav-ig-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.45);
    color: #ffffff !important;
}

/* On tablet & mobile: becomes the exact Instagram App Icon badge */
@media (max-width: 768px) {
    .sn-nav-ig-label {
        display: none !important;
    }
    .sn-nav-ig-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 9px !important; /* Instagram app icon rounded square */
        box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35) !important;
    }
    .sn-nav-ig-btn .sn-ig-icon-svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 480px) {
    .sn-nav-ig-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 8px !important;
    }
    .sn-nav-ig-btn .sn-ig-icon-svg {
        width: 17px !important;
        height: 17px !important;
    }
}

/* ==========================================================================
   TOP TICKER CTA BUTTON (NEVER AN UNKNOWN DOT ON PHONE)
   ========================================================================== */
.sn-ticker-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sn-ticker-cta-btn .sn-ig-icon-svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    display: inline-block;
    flex-shrink: 0;
}

.sn-ticker-cta-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.5);
}

@media (max-width: 640px) {
    .sn-ticker-cta-btn {
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
        border-radius: 999px !important; /* Keep as pill with text and logo, never round dot */
    }
    .sn-ticker-cta-btn span {
        display: inline !important; /* Keep 'Follow' clearly readable */
    }
    .sn-ticker-cta-btn .sn-ig-icon-svg {
        width: 13px !important;
        height: 13px !important;
    }
}

/* ==========================================================================
   DRAWER & FOOTER INSTAGRAM LINKS
   ========================================================================== */
.sn-drawer-ig-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(240, 148, 51, 0.09) 0%, rgba(188, 24, 136, 0.09) 100%);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 10px;
    color: var(--sn-rose-primary, #e11d48) !important;
    font-size: 0.90rem;
    font-weight: 600;
    text-decoration: none;
    margin: 8px 0;
    transition: all 0.2s ease;
}

.sn-drawer-ig-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
}

.sn-drawer-ig-link .sn-ig-icon-svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

.sn-footer-social-wrap {
    margin-top: 12px;
}

.sn-footer-ig-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.07);
    border: 1px solid rgba(225, 29, 72, 0.18);
    color: var(--sn-text-charcoal, #1c1917) !important;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sn-footer-ig-badge .sn-ig-icon-svg {
    width: 15px;
    height: 15px;
    stroke: #e11d48;
    transition: stroke 0.2s ease;
}

.sn-footer-ig-badge:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.sn-footer-ig-badge:hover .sn-ig-icon-svg {
    stroke: #ffffff;
}


/* ==========================================================================
   SIGNATURE SWEETNOTE UNBOXING & ENVELOPE ENTRANCE (NON-HEARTED BACKGROUND)
   ========================================================================== */
.sn-unboxing-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 38%, #1f1226 0%, #120917 65%, #08030a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

.sn-unboxing-overlay.fade-out {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.sn-stardust-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.75;
}

.sn-unboxing-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: snUnboxEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes snUnboxEntrance {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sn-delivery-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fce7f3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.sn-delivery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fb7185;
    box-shadow: 0 0 8px #f43f5e;
    animation: snTickerPulse 1.6s infinite;
}

/* 3D Tactile Envelope */
.sn-tactile-envelope {
    width: 100%;
    max-width: 360px;
    height: 230px;
    position: relative;
    perspective: 1200px;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sn-tactile-envelope:hover {
    transform: translateY(-4px) scale(1.02);
}

.sn-envelope-shadow {
    position: absolute;
    bottom: -18px;
    left: 6%;
    width: 88%;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
}

.sn-envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fdfbf7 0%, #f4eee2 100%);
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

/* Top Triangle Flap */
.sn-envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 115px;
    background: linear-gradient(180deg, #ede2d1 0%, #e3d3be 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sn-tactile-envelope.opened .sn-envelope-flap {
    transform: rotateX(170deg);
}

/* Wax Seal */
.sn-wax-seal {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e11d48 0%, #be123c 60%, #881337 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(190, 18, 60, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.35s ease;
    z-index: 15;
}

.sn-wax-seal:hover {
    transform: translateX(-50%) scale(1.12);
}

.sn-tactile-envelope.opened .sn-wax-seal {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
}

.sn-seal-crest {
    font-size: 1.15rem;
    color: #fef08a;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sn-seal-text {
    font-size: 0.46rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 2px;
}

/* Envelope Face */
.sn-envelope-face {
    text-align: center;
    width: 100%;
    z-index: 5;
    margin-top: 28px;
}

.sn-envelope-stamp {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #b45309;
    border: 1px dashed rgba(180, 83, 9, 0.45);
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sn-envelope-for-label {
    font-size: 0.74rem;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 2px 0;
    font-weight: 500;
}

.sn-envelope-recipient-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.95rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.sn-envelope-from-line {
    font-size: 0.80rem;
    color: #57534e;
    margin: 6px 0 0 0;
}

.sn-envelope-from-line strong {
    color: #be123c;
    font-weight: 600;
}

/* Audio Hint & Action Button */
.sn-unbox-audio-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    font-size: 0.78rem;
    margin-top: 24px;
    opacity: 0.95;
}

.sn-unbox-audio-hint i,
.sn-unbox-audio-hint svg {
    width: 15px;
    height: 15px;
    color: #38bdf8;
}

.sn-btn-unbox-action {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(225, 29, 72, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sn-btn-unbox-action:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 34px rgba(225, 29, 72, 0.6);
}

.sn-btn-unbox-action i,
.sn-btn-unbox-action svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 480px) {
    .sn-tactile-envelope {
        max-width: 320px;
        height: 210px;
    }
    .sn-envelope-recipient-name {
        font-size: 1.65rem;
    }
    .sn-btn-unbox-action {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.90rem;
    }
}


/* ==========================================================================
   STOREFRONT CATALOG 6-ITEM LIMIT & FROSTED BLUR EXPANSION
   ========================================================================== */
.sn-templates-grid-wrapper {
    position: relative;
    width: 100%;
}

.sn-card-tile.sn-card-revealing {
    animation: snCardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.sn-catalog-expand-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -85px;
    padding-top: 85px;
    padding-bottom: 24px;
    z-index: 15;
    pointer-events: none;
}

.sn-catalog-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    border-radius: 0 0 var(--sn-radius-lg) var(--sn-radius-lg);
}

body[data-theme*="dark"] .sn-catalog-fade-overlay,
body.dark-mode .sn-catalog-fade-overlay {
    background: linear-gradient(to bottom, rgba(15, 12, 22, 0) 0%, rgba(15, 12, 22, 0.75) 45%, rgba(15, 12, 22, 0.98) 100%);
}

.sn-btn-expand-catalog {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: var(--sn-radius-full);
    background: linear-gradient(135deg, #f43f5e, #be123c);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.35), 0 0 20px rgba(168, 85, 247, 0.2);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.sn-btn-expand-catalog:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(244, 63, 94, 0.5), 0 0 25px rgba(168, 85, 247, 0.35);
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.sn-btn-expand-catalog:active {
    transform: translateY(0) scale(0.98);
}
