        :root {
            --primary: #e67e73;
            --secondary: #6ab0b8;
            --accent: #f2c94c;
            --white: #ffffff;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --text-dark: #1f2937;
            --nav-height: 80px;
            --container-width: 1152px;
            --theme-plum: #633b46;
            --theme-rose: #8f4e5c;
            --theme-ink: #4f3640;
            --theme-line: rgba(222, 187, 176, 0.45);
            --theme-line-strong: rgba(209, 151, 138, 0.58);
            --theme-surface: rgba(255, 252, 249, 0.96);
            --theme-surface-strong: rgba(253, 241, 233, 0.95);
            --theme-surface-soft: rgba(247, 235, 241, 0.92);
            --theme-shadow: rgba(137, 89, 106, 0.16);

            /* Fluent UI Design Tokens */
            --bg-mica: rgba(255, 249, 246, 0.76);
            --bg-acrylic: rgba(255, 248, 244, 0.72);
            --bg-card: rgba(255, 251, 248, 0.88);
            --border-subtle: rgba(162, 106, 116, 0.12);
            --border-default: rgba(198, 145, 141, 0.24);
            --shadow-card: 0 10px 28px rgba(125, 73, 92, 0.10), 0 4px 12px rgba(125, 73, 92, 0.07);
            --shadow-card-hover: 0 18px 40px rgba(125, 73, 92, 0.14), 0 8px 20px rgba(125, 73, 92, 0.10);
            --shadow-elevated: 0 18px 40px rgba(125, 73, 92, 0.16), 0 6px 16px rgba(125, 73, 92, 0.10);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Nunito', sans-serif;
            transition: background 400ms ease, color 250ms ease;
            background:
                radial-gradient(circle at 12% 12%, rgba(255, 227, 208, 0.8), transparent 28%),
                radial-gradient(circle at 88% 18%, rgba(255, 241, 201, 0.7), transparent 24%),
                linear-gradient(145deg, #f5e0e7 0%, #d9e5f4 46%, #f8ecdf 100%);
            background-attachment: fixed;
            color: var(--text-dark);
            overflow-x: hidden;
            width: 100%;
            line-height: 1.5;
            padding-top: var(--nav-height);
            min-height: 100vh;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            opacity: 0.025;
            pointer-events: none;
            z-index: 0;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.2s;
        }

        button {
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        img {
            max-width: 100%;
            display: block;
        }

        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .flex {
            display: flex;
        }

        .flex-col {
            flex-direction: column;
        }

        .justify-between {
            justify-content: space-between;
        }

        .items-center {
            align-items: center;
        }

        .hidden {
            display: none !important;
        }

        .w-full {
            width: 100%;
        }

        .grid {
            display: grid;
        }

        .grid-cols-1 {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }

        .gap-4 {
            gap: 1rem;
        }

        .mb-6 {
            margin-bottom: 1.5rem;
        }

        .font-hand {
            font-family: 'Caveat', cursive;
        }

        .font-bold {
            font-weight: 700;
        }

        .text-sm {
            font-size: 0.875rem;
        }

        .text-highlight {
            color: var(--primary);
        }

        .text-center {
            text-align: center;
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 50;
            background: var(--bg-mica);
            border-bottom: 1px solid var(--border-subtle);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            height: var(--nav-height);
            display: flex;
            align-items: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            text-decoration: none;
        }

        .logo-circle {
            width: 3rem;
            height: 3rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            transition: all var(--transition-normal);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-card);
            flex-shrink: 0;
        }

        .nav-logo:hover .logo-circle {
            transform: rotate(12deg) scale(1.05);
            box-shadow: var(--shadow-card-hover);
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.1;
            color: var(--text-main);
            white-space: nowrap;
        }

        .logo-sub {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #9ca3af;
            display: block;
            margin-top: 0.15rem;
        }

        .nav-links {
            display: none;
            gap: 1.25rem;
            font-weight: 600;
            color: #4b5563;
        }

        .nav-link {
            position: relative;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            font-size: 0.875rem;
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
        }

        .nav-link.nav-link--active {
            color: var(--primary);
        }

        .nav-link.nav-link--active::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        .nav-link:hover {
            color: var(--primary);
            background: rgba(230, 126, 115, 0.08);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: calc(100% - 1.5rem);
            height: 2px;
            bottom: 0;
            left: 0.75rem;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform var(--transition-normal);
            border-radius: 2px;
        }

        .nav-link:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        .menu-toggle {
            display: block;
            color: #4b5563;
            padding: 0.5rem;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
        }

        .menu-toggle:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .auth-btn {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            padding: 0.6rem 1.4rem;
            border-radius: var(--radius-xl);
            font-size: 0.9rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all var(--transition-normal);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .auth-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(230, 126, 115, 0.4);
        }

        .user-avatar {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            background: var(--bg-card);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            border: 2px solid rgba(230, 126, 115, 0.4);
            transition: all var(--transition-normal);
        }

        .user-avatar:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-card-hover);
            border-color: var(--primary);
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .mobile-menu {
            overflow: hidden;
            background: var(--bg-acrylic);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border-bottom: 1px solid var(--border-subtle);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            transition: all var(--transition-smooth);
            max-height: 0;
            opacity: 0;
            visibility: hidden;
            padding: 0 1.5rem;
            margin-top: var(--nav-height);
            position: fixed;
            width: 100%;
            z-index: 40;
            left: 0;
            top: 0;
        }

        .mobile-menu.open {
            max-height: min(calc(100vh - var(--nav-height)), 600px);
            overflow-y: auto;
            opacity: 1;
            visibility: visible;
            padding-top: 1.5rem;
            padding-bottom: 2.5rem;
        }

        .mobile-link {
            display: block;
            font-size: 1.25rem;
            font-weight: 700;
            font-family: 'Caveat', cursive;
            margin-bottom: 1rem;
            color: var(--text-main);
            text-decoration: none;
            transition: all var(--transition-fast);
            border-radius: var(--radius-sm);
            padding: 0.5rem 0.75rem;
            margin-left: -0.75rem;
        }

        .mobile-link:hover {
            background: rgba(0, 0, 0, 0.04);
            color: var(--primary);
        }

        .mobile-link--active {
            color: var(--primary);
            border-left: 3px solid var(--primary);
            padding-left: calc(0.75rem - 3px);
        }

        .btn-cozy {
            background: linear-gradient(135deg, var(--primary) 0%, #d16a60 100%);
            color: var(--white);
            border-radius: var(--radius-xl);
            padding: 0.75rem 2rem;
            font-weight: 700;
            font-size: 1.125rem;
            box-shadow: 0 4px 16px rgba(230, 126, 115, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: all var(--transition-normal);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: none;
            cursor: pointer;
        }

        .btn-cozy.sm {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
            border-radius: var(--radius-md);
            box-shadow: 0 2px 8px rgba(230, 126, 115, 0.3);
        }

        .btn-cozy:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(230, 126, 115, 0.45);
        }

        .btn-cozy:active {
            transform: translateY(0);
        }

        /* Card footer - price and action */
        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-top: auto;
            padding-top: 0.5rem;
        }

        .catalogue-rail {
            margin-top: 2rem;
        }

        .catalogue-rail-head {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 1rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }

        .catalogue-rail-head h3 {
            margin: 0;
            font-size: 1.9rem;
            color: var(--text-primary);
        }

        .catalogue-rail-head p {
            margin: 0.35rem 0 0;
            color: var(--text-secondary);
        }

        .featured-collection-card {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
            gap: 1.25rem;
            padding: 1.5rem;
            border-radius: var(--radius-lg);
            border: 1px solid rgba(255, 255, 255, 0.8);
            background: linear-gradient(135deg, rgba(255, 247, 244, 0.96) 0%, rgba(240, 245, 255, 0.92) 100%);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
            cursor: pointer;
            transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        }

        .featured-collection-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
        }

        .featured-collection-copy {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 0.75rem;
        }

        .featured-collection-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.75rem;
            border-radius: 999px;
            background: rgba(230, 126, 115, 0.12);
            color: var(--primary);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .featured-collection-copy h4 {
            margin: 0;
            font-size: clamp(1.9rem, 3vw, 2.7rem);
            color: var(--text-primary);
        }

        .featured-collection-copy p {
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.6;
            text-align: left;
        }

        .featured-collection-meta {
            font-size: 0.95rem;
            color: var(--text-dark);
            opacity: 0.8;
        }

        .featured-collection-preview {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .featured-collection-preview img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border-radius: var(--radius-md);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            background: rgba(255, 255, 255, 0.75);
        }

        .card-date-added {
            width: 100%;
            margin: 0.25rem 0 0;
            font-size: 0.82rem;
            color: var(--text-dark);
            opacity: 0.72;
            text-align: left;
        }

        body::after {
            background:
                radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5), transparent 22%),
                radial-gradient(circle at 74% 12%, rgba(255, 244, 214, 0.4), transparent 18%);
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            opacity: 0.65;
        }

        .catalogue-rail-head h3,
        .featured-collection-copy h4 {
            font-family: 'Dancing Script', cursive;
            letter-spacing: 0.01em;
            color: #633b46;
        }

        .catalogue-rail-head h3 {
            transition: color 250ms ease, letter-spacing 250ms ease, transform 250ms ease;
        }

        .catalogue-rail-head p {
            max-width: 42rem;
        }

        .featured-collection-card {
            position: relative;
            overflow: hidden;
            transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
            background: linear-gradient(135deg, rgba(255, 249, 246, 0.96) 0%, rgba(253, 241, 233, 0.94) 100%);
            border-color: rgba(209, 151, 138, 0.35);
            box-shadow: 0 22px 48px rgba(125, 73, 92, 0.16);
        }

        .featured-collection-card::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0.75;
            background: radial-gradient(circle at top right, rgba(255, 228, 196, 0.45), transparent 36%);
        }

        #ecards-categories-view .category-card,
        #postcard-categories-view .category-card {
            isolation: isolate;
        }

        #ecards-categories-view .category-content,
        #postcard-categories-view .category-content {
            transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.97) 0%, rgba(247, 235, 241, 0.92) 100%);
            border-color: rgba(222, 187, 176, 0.45);
            box-shadow: 0 14px 34px rgba(137, 89, 106, 0.14);
        }

        #ecards-categories-view .cat-icon,
        #postcard-categories-view .cat-icon {
            width: 5.4rem;
            height: 5.4rem;
            display: grid;
            place-items: center;
            margin-bottom: 1.15rem;
            border-radius: 50%;
            font-size: 2.8rem;
            background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(252, 227, 216, 0.88));
            box-shadow: 0 10px 24px rgba(215, 145, 129, 0.28);
            color: #8f4e5c;
        }

        .postcard-mobile-catalogue {
            display: none;
            margin-top: 1.5rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        .mobile-catalogue-shell {
            display: grid;
            gap: 1.5rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        .mobile-catalogue-section {
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.96) 0%, rgba(247, 235, 241, 0.92) 100%);
            border: 1px solid rgba(222, 187, 176, 0.45);
            border-radius: var(--radius-xl);
            box-shadow: 0 16px 36px rgba(137, 89, 106, 0.14);
            padding: 1.1rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        .mobile-catalogue-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.9rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .mobile-catalogue-head h3,
        .mobile-rail-heading h4 {
            margin: 0;
            color: #633b46;
            font-family: 'Nunito', sans-serif;
            font-weight: 900;
            letter-spacing: 0.015em;
            line-height: 1.15;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
        }

        .mobile-catalogue-head p,
        .mobile-rail-heading p {
            margin: 0.2rem 0 0;
            color: rgba(79, 54, 64, 0.78);
            font-size: 0.88rem;
            line-height: 1.45;
        }

        .mobile-swipe-hint {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            color: #7c2d12;
            font-weight: 900;
            white-space: nowrap;
            padding: 0.42rem 0.78rem;
            border-radius: 999px;
            border: 1px solid rgba(209, 151, 138, 0.42);
            background: rgba(255, 249, 246, 0.92);
            box-shadow: 0 8px 18px rgba(137, 89, 106, 0.10);
            letter-spacing: 0.02em;
        }

        .mobile-featured-strip,
        .mobile-rail-track,
        .mobile-chip-row {
            display: flex;
            gap: 0.85rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            scrollbar-width: thin;
            scrollbar-color: rgba(185, 128, 138, 0.45) transparent;
        }

        .mobile-featured-strip::-webkit-scrollbar,
        .mobile-rail-track::-webkit-scrollbar,
        .mobile-chip-row::-webkit-scrollbar {
            height: 8px;
        }

        .mobile-featured-strip::-webkit-scrollbar-thumb,
        .mobile-rail-track::-webkit-scrollbar-thumb,
        .mobile-chip-row::-webkit-scrollbar-thumb {
            background: rgba(185, 128, 138, 0.45);
            border-radius: 999px;
        }

        .mobile-featured-card,
        .mobile-rail-card {
            scroll-snap-align: start;
            flex: 0 0 auto;
            cursor: pointer;
            border-radius: var(--radius-lg);
            border: 1px solid rgba(209, 151, 138, 0.34);
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.98) 0%, rgba(247, 235, 241, 0.9) 100%);
            box-shadow: 0 14px 32px rgba(137, 89, 106, 0.12);
            overflow: hidden;
        }

        .mobile-featured-card {
            width: min(84vw, 320px);
        }

        .mobile-rail-card {
            width: min(72vw, 248px);
        }

        .mobile-featured-thumb,
        .mobile-rail-thumb {
            background: linear-gradient(180deg, rgba(255, 248, 244, 0.98) 0%, rgba(246, 231, 238, 0.92) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .mobile-featured-thumb {
            height: 240px;
        }

        .mobile-rail-thumb {
            height: 190px;
        }

        .mobile-featured-thumb img,
        .mobile-rail-thumb img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .mobile-featured-copy,
        .mobile-rail-copy {
            padding: 0.95rem 0.95rem 1rem;
        }

        .mobile-featured-copy h4,
        .mobile-rail-copy h5 {
            margin: 0;
            color: var(--text-primary);
            line-height: 1.25;
            font-weight: 800;
            letter-spacing: 0.01em;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
        }

        .mobile-featured-copy h4 {
            font-size: 1.2rem;
        }

        .mobile-rail-copy h5 {
            font-size: 1rem;
        }

        .mobile-featured-copy p,
        .mobile-rail-meta {
            margin: 0.4rem 0 0;
            font-size: 0.82rem;
            color: rgba(79, 54, 64, 0.76);
            line-height: 1.4;
        }

        .mobile-featured-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border-radius: 999px;
            padding: 0.28rem 0.72rem;
            background: rgba(217, 137, 128, 0.12);
            border: 1px solid rgba(209, 151, 138, 0.35);
            color: var(--primary);
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.7rem;
        }

        .mobile-chip-row {
            gap: 0.65rem;
            padding-bottom: 0.15rem;
        }

        .mobile-chip {
            flex: 0 0 auto;
            scroll-snap-align: start;
            min-height: 44px;
            padding: 0.7rem 1rem;
            border-radius: 999px;
            border: 1px solid rgba(209, 151, 138, 0.35);
            background: rgba(255, 251, 248, 0.86);
            color: var(--text-primary);
            font-size: 0.88rem;
            font-weight: 900;
            letter-spacing: 0.012em;
            transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
        }

        .mobile-chip:hover,
        .mobile-chip:focus-visible {
            background: rgba(217, 137, 128, 0.12);
            color: var(--primary);
            border-color: rgba(209, 151, 138, 0.58);
            outline: none;
        }

        .mobile-rails {
            display: grid;
            gap: 1rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        .mobile-rail-section {
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.96) 0%, rgba(247, 235, 241, 0.9) 100%);
            border: 1px solid rgba(222, 187, 176, 0.42);
            border-radius: var(--radius-xl);
            padding: 1rem;
            box-shadow: 0 14px 32px rgba(137, 89, 106, 0.12);
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        .mobile-rail-head {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 0.9rem;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .mobile-rail-heading {
            min-width: 0;
            max-width: 100%;
            flex: 1 1 auto;
        }

        .mobile-view-all {
            flex: 0 0 auto;
            min-height: 44px;
            padding: 0.65rem 0.95rem;
            border-radius: 999px;
            border: 1px solid rgba(209, 151, 138, 0.45);
            background: rgba(255, 251, 248, 0.88);
            color: var(--primary);
            font-weight: 700;
            font-size: 0.82rem;
        }

        .mobile-view-all:hover,
        .mobile-view-all:focus-visible,
        .mobile-rail-action:hover,
        .mobile-rail-action:focus-visible {
            background: linear-gradient(135deg, #d98980, #b96872);
            color: #fff;
            border-color: transparent;
            outline: none;
        }

        .mobile-rail-action {
            margin-top: 0.75rem;
            width: 100%;
            min-height: 44px;
            border-radius: 999px;
            border: 1px solid rgba(209, 151, 138, 0.45);
            background: rgba(255, 251, 248, 0.88);
            color: var(--primary);
            font-weight: 700;
            font-size: 0.82rem;
        }

        .mobile-catalogue-empty {
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.96) 0%, rgba(247, 235, 241, 0.92) 100%);
            border: 1px solid rgba(222, 187, 176, 0.45);
            border-radius: var(--radius-xl);
            box-shadow: 0 16px 36px rgba(137, 89, 106, 0.14);
            padding: 1.25rem;
            text-align: center;
            color: rgba(79, 54, 64, 0.8);
            width: 100%;
            max-width: 100%;
            min-width: 0;
            overflow-x: hidden;
        }

        .mobile-catalogue-empty p {
            margin: 0;
            line-height: 1.5;
        }

        .mobile-catalogue-empty button {
            margin-top: 0.9rem;
        }

        @media (max-width: 768px) {
            .mobile-catalogue-head {
                flex-wrap: wrap;
            }

            .mobile-swipe-hint {
                margin-top: 0.15rem;
            }

            .featured-collection-card {
                grid-template-columns: 1fr;
            }

            .featured-collection-preview {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* -- Related cards strip ----------------------------------------------- */
        .related-cards-section {
            margin-top: 2.5rem;
            padding-top: 2rem;
            border-top: 1px dashed var(--border-subtle);
        }
        .related-cards-section h4 {
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
            color: var(--text-primary);
        }
        .related-cards-strip {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }
        .related-card-tile {
            cursor: pointer;
            border-radius: var(--radius-lg);
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            box-shadow: var(--shadow-card);
            overflow: hidden;
            transition: transform 200ms ease, box-shadow 200ms ease;
            text-align: center;
            padding: 0.75rem 0.75rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .related-card-tile:hover {
            transform: translateY(-3px) rotate(-1deg);
            box-shadow: var(--shadow-card-hover);
        }
        .related-card-tile img {
            width: 100%;
            height: 130px;
            object-fit: contain;
            border-radius: var(--radius-md);
            margin-bottom: 0.5rem;
        }
        .related-card-tile .rel-title {
            font-family: 'Caveat', cursive;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
            margin-bottom: 0.4rem;
            flex: 1;
        }
        .related-card-tile .rel-btn {
            font-size: 0.75rem;
            color: var(--primary);
            border: 1.5px solid var(--primary);
            border-radius: 6px;
            padding: 0.2rem 0.6rem;
            background: transparent;
            cursor: pointer;
            font-weight: 700;
            transition: background 150ms, color 150ms;
            margin-top: 0.25rem;
        }
        .related-card-tile:hover .rel-btn {
            background: var(--primary);
            color: white;
        }
        @media (max-width: 768px) {
            .related-cards-strip { grid-template-columns: repeat(2, 1fr); }
        }

        .card-price {
            display: none;
        }

        .btn-customize {
            background: transparent;
            color: var(--primary);
            border: 1.5px solid var(--primary);
            border-radius: 6px;
            padding: 0.35rem 0.75rem;
            font-size: 0.7rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .btn-customize:hover {
            background: var(--primary);
            color: white;
        }

        .category-card:hover .btn-customize {
            background: var(--primary);
            color: white;
        }

        .btn-share-card {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1.5px solid var(--border-default, #ddd);
            background: transparent;
            color: var(--text-muted, #6b7280);
            cursor: pointer;
            transition: all var(--transition-fast);
            margin-left: 0.25rem;
            flex-shrink: 0;
        }

        .btn-share-card:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: scale(1.1);
        }

        /* Share bar in customize view */
        .card-share-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin: 0.75rem auto 1rem;
            padding: 0.5rem 1rem;
            background: var(--bg-card, #f9fafb);
            border: 1px solid var(--border-default, #e5e7eb);
            border-radius: 0.5rem;
            max-width: 360px;
        }
        .card-share-bar__link {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.85rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }
        .card-share-bar__link:hover { text-decoration: underline; }
        .card-share-bar__copy {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.8rem;
            padding: 0.3rem 0.6rem;
            border: 1px solid var(--border-default, #ddd);
            border-radius: 0.35rem;
            background: white;
            color: var(--text-muted, #6b7280);
            cursor: pointer;
            transition: all var(--transition-fast);
        }
        .card-share-bar__copy:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .btn-back {
            cursor: pointer;
            background: none;
            border: none;
            font-size: 1rem;
            transition: all var(--transition-fast);
        }

        .btn-back:hover {
            color: var(--primary);
        }

        .btn-outline {
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-default);
            color: var(--text-dark);
            border-radius: var(--radius-xl);
            padding: 0.75rem 2rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all var(--transition-normal);
            box-shadow: var(--shadow-card);
        }

        .btn-outline:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateY(-2px);
            box-shadow: var(--shadow-card-hover);
        }

        .custom-form {
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 2rem;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-card);
        }

        .form-input,
        .form-textarea {
            width: 100%;
            padding: 0.85rem 1rem;
            border: 1px solid var(--border-default);
            border-radius: var(--radius-md);
            font-family: 'Nunito', sans-serif;
            background: rgba(255, 255, 255, 0.8);
            margin-bottom: 1rem;
            display: block;
            transition: all var(--transition-fast);
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(230, 126, 115, 0.15);
        }

        /* Address Book Dropdown */
        .input-with-dropdown {
            position: relative;
        }

        .contacts-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border-default);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-elevated);
            max-height: 200px;
            overflow-y: auto;
            z-index: 100;
            display: none;
        }

        .contacts-dropdown.show {
            display: block;
        }

        .contacts-dropdown-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border-bottom: 1px solid var(--border-subtle);
            transition: background var(--transition-fast);
        }

        .contacts-dropdown-item:last-child {
            border-bottom: none;
        }

        .contacts-dropdown-item:hover {
            background: var(--gray-100);
        }

        .contacts-dropdown-item .contact-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.75rem;
            font-weight: 600;
            flex-shrink: 0;
        }

        .contacts-dropdown-item .contact-info {
            flex: 1;
            min-width: 0;
        }

        .contacts-dropdown-item .contact-name {
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .contacts-dropdown-item .contact-email {
            font-size: 0.75rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .contacts-dropdown-empty {
            padding: 1rem;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* Magic Message Feature */
        .magic-message-bar {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
        }

        .magic-message-bar select {
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-default);
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 0.85rem;
            background: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            min-width: 120px;
        }

        .magic-message-bar select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .btn-magic {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
        }

        .btn-magic:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
        }

        .btn-magic:active {
            transform: translateY(0);
        }

        .btn-magic i {
            width: 16px;
            height: 16px;
        }

        .magic-message-hint {
            font-size: 0.75rem;
            color: #6b7280;
            margin-left: auto;
        }

        @media (max-width: 640px) {
            .magic-message-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 0.5rem;
            }

            .magic-message-bar select {
                width: 100%;
            }

            .btn-magic {
                width: 100%;
                justify-content: center;
            }

            .magic-message-hint {
                margin-left: 0;
                text-align: center;
            }
        }

        .sub-gallery-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .category-card {
            position: relative;
            cursor: pointer;
            min-height: 350px;
            transition: transform var(--transition-normal);
        }

        /* Playful hover rotation */
        .category-card:nth-child(odd):not(.disabled):hover {
            transform: rotate(-2deg) scale(1.03);
        }

        .category-card:nth-child(even):not(.disabled):hover {
            transform: rotate(2deg) scale(1.03);
        }

        /* Mothers Day category – subtle shine to draw attention */
        .category-card-mothers-day {
            overflow: hidden;
        }
        .category-card-mothers-day::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
            pointer-events: none;
            z-index: 2;
            animation: category-shine 3s ease-in-out infinite;
        }
        @keyframes category-shine {
            to { left: 150%; }
        }

        .category-bg {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: all var(--transition-normal);
            pointer-events: none;
            border-radius: var(--radius-lg);
        }

        .category-card:hover .category-bg {
            opacity: 0.1;
            transform: scale(1.02);
        }

        .category-content {
            position: relative;
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 3rem 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-top: 1px solid rgba(255, 255, 255, 1);
            border-radius: var(--radius-lg);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 100%;
            transition: all var(--transition-normal);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            overflow: hidden;
        }

        .category-content::before { display: none; }
        .category-content::after { display: none; }

        .category-card:not(.disabled):hover .category-content {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            border-color: rgba(255, 255, 255, 0.9);
        }

        .category-card:not(.disabled):hover .category-content::before {
            display: none;
        }

        /* Ensure text content appears above glass effect */
        .category-content h3,
        .category-content p,
        .category-content .flex,
        .category-content button {
            position: relative;
            z-index: 3;
        }

        .cat-icon {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            transition: all var(--transition-normal);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
            position: relative;
            z-index: 3;
        }

        .category-card:hover .cat-icon {
            transform: scale(1.15) rotate(-5deg);
        }

        .grid-img-box {
            width: 100%;
            height: 220px;
            margin-bottom: 1rem;
            border-radius: var(--radius-md);
            overflow: hidden;
            background: #fff;
            position: relative;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .grid-img-box::before { display: none; }
        .grid-img-box::after { display: none; }

        .grid-img-box img {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* Mobile: Default to single column, then tablet/desktop adjustments */
        .customize-container {
            display: grid;
            gap: 3rem;
            grid-template-columns: 1fr;
        }

        .app-view {
            padding-top: 2rem;
            padding-bottom: 2rem;
            position: relative;
            z-index: 1;
        }

        /* -- Ad slots --------------------------------------------------- */
        /* EXACTLY match eCards: container is just a block with auto width, no max-width. */
        .ad-slot {
            margin: 0 auto;
            display: block;
        }
        /* No extra constraints; .ad-slot--leader / --rect are only markers for JS. */
        .ad-slot--leader::after,
        .ad-slot--rect::after {
            content: none;
        }

        .card-mockup-wrapper {
            background: transparent;
            border-radius: var(--radius-lg);
            width: 100%;
            height: auto;
            min-height: 320px;
            max-height: 80vh;
            overflow: visible;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            background-size: cover;
            background-position: center;
            transition: background 0.3s, min-height 0.3s, box-shadow 0.3s, height 0.3s;
        }

        .card-mockup-wrapper.has-bg {
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-subtle);
            height: 100%;
            min-height: 400px;
            box-shadow: var(--shadow-card);
        }

        .postcard-stage {
            width: 100%;
            height: 100%;
            position: relative;
            perspective: 1500px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 20;
        }

        .postcard-leaf {
            width: 550px;
            height: 400px;
            position: absolute;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1.2);
            cursor: pointer;
            /* Ensure the leaf is centered by default */
            left: 50%;
            top: 50%;
            margin-left: -275px;
            margin-top: -200px;
        }

        .postcard-leaf.flipped {
            transform: rotateY(-180deg);
        }

        .postcard-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            border-radius: var(--radius-md);
            overflow: hidden;
            background: #fff;
            box-shadow: var(--shadow-elevated);
            border: 1px solid var(--border-subtle);
            transition: box-shadow 0.4s ease-out;
        }

        /* Dynamic shadow during flip for depth effect */
        .postcard-leaf.flipped .postcard-face {
            box-shadow: -8px 4px 20px -2px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.12);
        }

        .postcard-face.front {
            transform: rotateY(0deg);
            z-index: 2;
        }

        .postcard-face.front img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .postcard-face.back {
            transform: rotateY(180deg);
            z-index: 1;
            display: flex;
        }

        .postcard-back-content {
            display: flex;
            width: 100%;
            height: 100%;
            font-family: 'Nunito', sans-serif;
            color: #1f2937;
        }

        .postcard-col-left {
            width: 65%;
            padding: 2rem;
            border-right: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
        }

        .postcard-col-right {
            width: 35%;
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .postcard-label {
            font-size: 0.85rem;
            font-weight: 700;
            color: #9ca3af;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .postcard-message-area {
            flex-grow: 1;
            font-family: 'Caveat', cursive;
            font-size: 1.5rem;
            line-height: 1.4;
            overflow-y: auto;
            color: #000000;
            white-space: pre-wrap;
            text-align: left;
        }

        .postcard-stamp {
            width: 80px;
            height: 90px;
            background: linear-gradient(135deg, #f9fafb, #f3f4f6);
            border: 2px dashed var(--border-default);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            font-size: 0.7rem;
            font-weight: 700;
            margin-bottom: auto;
            transform: rotate(2deg);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .postcard-address-lines {
            width: 100%;
            margin-top: 2rem;
        }

        .address-line {
            border-bottom: 1px solid var(--border-default);
            min-height: 2rem;
            height: auto;
            max-height: 2.6rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: flex-end;
            font-family: 'Caveat', cursive;
            font-size: 1.5rem;
            color: #000000;
            padding-left: 0.5rem;
        }

        .mockup-controls {
            display: none;
            /* Hidden by default until populated */
            gap: 0.5rem;
            margin-top: 0.5rem;
            background: var(--bg-acrylic);
            backdrop-filter: blur(20px);
            padding: 0.5rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border-subtle);
            z-index: 30;
            position: relative;
            flex-wrap: wrap;
            justify-content: center;
        }

        .mockup-controls:has(.viewer-tab) {
            display: flex;
            /* Only show when it has viewer-tab buttons */
        }

        .viewer-tab {
            padding: 0.5rem 1.5rem;
            border-radius: var(--radius-xl);
            font-weight: 700;
            font-size: 0.875rem;
            color: var(--text-muted);
            transition: all var(--transition-normal);
        }

        .viewer-tab:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .viewer-tab.active {
            background: linear-gradient(135deg, var(--primary), #d16a60);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(230, 126, 115, 0.35);
        }

        .preview-header {
            position: absolute;
            top: 20px;
            left: 0;
            width: 100%;
            text-align: center;
            z-index: 40;
            font-family: 'Dancing Script', cursive;
            font-size: 1.8rem;
            color: #333;
            text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
            pointer-events: none;
        }

        /* Mobile: Single column for checkout */
        .checkout-layout {
            display: grid;
            gap: 2rem;
            grid-template-columns: 1fr;
        }

        .summary-card {
            background: #ffffff;
            position: relative;
            padding: 2.5rem;
            border-radius: 4px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border: 1px solid #e5e7eb;
            max-width: 100%;
            overflow: hidden;
        }

        .summary-card::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 20px;
            background: radial-gradient(circle, transparent 70%, #ffffff 75%) 0 0,
                radial-gradient(circle, transparent 70%, #ffffff 75%) 10px 10px;
            background-size: 20px 20px;
            background-position: 0 -10px;
        }

        .receipt-header-line {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            border-bottom: 2px solid #1f2937;
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }

        .receipt-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.95rem;
            color: #374151;
        }

        .receipt-total {
            display: flex;
            justify-content: space-between;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 2px dashed #d1d5db;
            font-weight: 800;
            font-size: 1.25rem;
        }

        .paid-stamp {
            position: absolute;
            top: 3rem;
            right: 3rem;
            border: 4px double #10b981;
            color: #10b981;
            font-size: 2rem;
            font-weight: 900;
            padding: 0.25rem 1rem;
            text-transform: uppercase;
            transform: rotate(-12deg);
            opacity: 0.2;
            font-family: 'Courier New', Courier, monospace;
            letter-spacing: 0.1em;
            pointer-events: none;
            z-index: 0;
        }

        .summary-card:hover .paid-stamp {
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .pay-btn-large {
            width: 100%;
            padding: 1rem;
            border-radius: var(--radius-md);
            margin-bottom: 1rem;
            font-weight: 700;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-normal);
            border: none;
            box-shadow: var(--shadow-card);
        }

        .pay-btn-large:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-card-hover);
        }



        .checkout-divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 1rem 0;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .checkout-divider::before,
        .checkout-divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid var(--border-default);
        }

        .checkout-divider span {
            padding: 0 1rem;
        }

        .payment-message {
            margin-top: 1rem;
            padding: 0.75rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            text-align: center;
        }

        .payment-message.error {
            background: #fee2e2;
            color: #dc2626;
        }

        .payment-message.success {
            background: #dcfce7;
            color: #16a34a;
        }

        .pay-icon {
            width: 24px;
            height: 24px;
            margin-right: 10px;
        }

        /* Neat Buttons from My Projects */
        .btn-neat {
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.8rem;
            text-align: center;
            cursor: pointer;
            border: 1.5px solid transparent;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.15s ease;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .btn-neat.primary {
            background: transparent;
            color: var(--primary);
            border-color: var(--primary);
        }

        .btn-neat.primary:hover {
            background: var(--primary);
            color: white;
        }

        .btn-neat.secondary {
            background: transparent;
            color: var(--secondary);
            border-color: var(--secondary);
        }

        .btn-neat.secondary:hover {
            background: var(--secondary);
            color: white;
        }

        /* Neat Input */
        .neat-input-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border-default);
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            transition: all 0.1s ease;
            width: 100%;
        }

        .neat-input-wrapper:focus-within {
            background: var(--white);
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(230, 126, 115, 0.2);
        }

        .neat-input-wrapper input {
            border: none;
            outline: none;
            font-size: 1rem;
            width: 100%;
            background: transparent;
            color: var(--text-main);
        }

        /* ========================================================== */
        /* MOBILE-FIRST OPTIMIZATIONS (Max-width 768px and smaller) */
        /* ========================================================== */
        @media (max-width: 768px) {
            :root {
                --nav-height: 70px;
            }

            main.container,
            #postcard-categories-view,
            #postcard-mobile-catalogue,
            #postcard-mobile-catalogue-content,
            .mobile-catalogue-shell,
            .mobile-catalogue-section,
            .mobile-rails,
            .mobile-rail-section {
                width: 100%;
                max-width: 100%;
                min-width: 0;
                overflow-x: hidden;
            }

            .postcard-mobile-catalogue {
                display: block;
            }

            #postcard-categories-view #postcard-category-grid,
            #postcard-categories-view #postcard-featured-section,
            #postcard-categories-view #postcard-category-heading {
                display: none !important;
            }

            #postcard-categories-view .catalogue-rail,
            #postcard-categories-view .catalogue-rail-head {
                display: none !important;
            }

            .mobile-featured-strip,
            .mobile-rail-track,
            .mobile-chip-row {
                overflow-x: auto;
                overflow-y: hidden;
            }

            /* Force single column for all complex forms/grids on small screens */
            .sub-gallery-grid {
                grid-template-columns: 1fr;
            }

            .checkout-layout {
                grid-template-columns: 1fr;
            }

            .customize-container {
                grid-template-columns: 1fr;
            }

            /* Put form first on mobile, then the viewer */
            .customize-container>.custom-form {
                order: 1;
            }

            .customize-container>.preview-column {
                order: 2;
            }

            .checkout-layout>div:nth-child(2) {
                padding-top: 0;
            }

            .grid-cols-md-3 {
                grid-template-columns: 1fr;
            }

            /* MAXIMIZE POSTCARD PREVIEW SIZE ON MOBILE */
            .card-mockup-wrapper {
                height: auto;
                min-height: 260px;
                max-height: 65vh;
                margin-top: 0.25rem;
                padding: 0.25rem 0;
            }

            .card-mockup-wrapper.has-bg {
                min-height: 300px;
            }

            .postcard-leaf {
                width: 550px;
                /* Use base size for scaling reference */
                height: 400px;
                /* Use base size for scaling reference */
                transform-origin: center center;
                /* Use absolute center position for JS to scale around */
                left: 50%;
                top: 50%;
                margin-left: -275px;
                margin-top: -200px;
            }

            .postcard-col-left {
                padding: 1rem;
                width: 60%;
            }

            .postcard-col-right {
                padding: 1rem 0.5rem;
                width: 40%;
            }

            .postcard-message-area {
                font-size: 1.2rem;
            }

            .postcard-address-lines {
                margin-top: 1rem;
            }

            .address-line {
                font-size: 1.2rem;
            }

            .postcard-stamp {
                width: 60px;
                height: 70px;
            }

            .postcard-leaf.flipped {
                transform: rotateY(-180deg);
            }
        }

        @media (max-width: 600px) {
            .postcard-leaf {
                width: 550px;
            }
        }

        /* ========================================================== */
        /* TABLET/DESKTOP STYLES (Min-width 768px and up) */
        /* ========================================================== */
        @media (min-width: 768px) {
            .nav-links {
                display: flex;
                align-items: center;
            }

            .menu-toggle {
                display: none;
            }

            .grid-cols-md-3 {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .sub-gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .checkout-layout {
                grid-template-columns: 1fr 1fr;
            }

            /* Two-column layout: card preview (larger) on left, form (smaller) on right */
            .customize-container {
                grid-template-columns: 3fr 2fr;
            }

            .customize-container>.preview-column {
                order: 1;
            }

            .customize-container>.custom-form {
                order: 2;
            }

            /* Reset absolute centering for desktop */
            .postcard-leaf {
                left: 50%;
                top: 50%;
                margin-left: -275px;
                margin-top: -200px;
            }
        }

        /* Larger Desktops (Min-width 1024px and up) */
        @media (min-width: 1024px) {
            .sub-gallery-grid {
                grid-template-columns: repeat(5, 1fr);
            }

            /* Actual postcard tiles � keep at 3 columns so images render large */
            #cards-container.sub-gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .customize-container {
                grid-template-columns: 3fr 2fr;
                gap: 2rem;
            }

            .customize-container>.preview-column {
                order: 1;
            }

            .customize-container>.custom-form {
                order: 2;
            }

            /* Compact form styles for desktop */
            .custom-form {
                padding: 1.25rem;
            }

            .custom-form .form-input,
            .custom-form .form-textarea {
                padding: 0.6rem 0.75rem;
                margin-bottom: 0.75rem;
                font-size: 0.9rem;
            }

            .custom-form .form-textarea {
                min-height: 80px;
            }

            .custom-form .form-label {
                font-size: 0.8rem;
                margin-bottom: 0.25rem;
            }

            .custom-form .flex.gap-2 {
                gap: 0.5rem;
                align-items: stretch;
            }
            .custom-form .flex.gap-2 button {
                padding: 0.55rem 0.75rem !important;
                font-size: 0.85rem !important;
                border-radius: 10px;
                line-height: 1.2;
                white-space: nowrap;
            }
        }

        @media (min-width: 769px) {
            .postcard-mobile-catalogue {
                display: none !important;
            }
        }

        @media (max-height: 500px) {
            .card-mockup-wrapper.has-bg {
                min-height: 100vh;
                max-height: 100vh;
            }
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.25);
        }

        /* Focus states for accessibility */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible,
        select:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
        }

        /* Enhanced input styling */
        select.form-input {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            padding-right: 2.5rem;
        }

        @media print {
            @page {
                margin: 0;
                size: portrait;
            }

            body {
                background: white !important;
                padding: 0 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            body::before {
                display: none;
            }

            .navbar,
            .btn-back,
            .mockup-controls,
            .btn-neat,
            .btn-cozy,
            .btn-outline,
            .menu-toggle,
            #mobile-menu {
                display: none !important;
            }

            .app-view {
                padding: 1cm !important;
            }

            .container {
                max-width: 100% !important;
                width: 100% !important;
                padding: 0 !important;
                margin: 0 !important;
            }

            /* Success View Specifics */
            #success-view {
                display: block !important;
            }

            #success-view .container.text-center {
                margin-bottom: 0.5rem !important;
            }

            #success-view h2 {
                font-size: 1.8rem !important;
                margin-bottom: 0.25rem !important;
                color: #000 !important;
            }

            #success-view p.text-xl {
                display: none !important;
            }

            /* Preview Area */
            .preview-column {
                margin-bottom: 0.5rem !important;
                page-break-inside: avoid;
            }

            #receipt-postcard-container {
                min-height: 200px !important;
                height: 200px !important;
                border: 1px solid #eee !important;
                box-shadow: none !important;
            }

            /* Receipt Card */
            .checkout-layout {
                display: block !important;
            }

            .summary-card {
                box-shadow: none !important;
                border: none !important;
                padding: 0 !important;
                page-break-inside: avoid;
            }

            /* Hide elements below Total Paid */
            .summary-card .border-t,
            .summary-card .flex.flex-col {
                display: none !important;
            }

            /* Ensure Total Paid is visible and styled for print */
            .receipt-total {
                display: flex !important;
                border-top: 1px solid #000 !important;
                margin-top: 1rem !important;
                padding-top: 0.5rem !important;
            }

            .paid-stamp {
                opacity: 1 !important;
                color: #000 !important;
                border-color: #000 !important;
                top: 0 !important;
                right: 0 !important;
                transform: none !important;
                position: relative !important;
                display: inline-block !important;
                margin-bottom: 1rem !important;
            }

            .receipt-header-line {
                border-bottom: 1px solid #000 !important;
                margin-bottom: 1rem !important;
            }
        }

        .inline-check {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.8rem;
            height: 1.8rem;
            background: #dcfce7;
            color: #16a34a;
            border-radius: 50%;
            vertical-align: middle;
            margin-left: 0.3rem;
        }
        .inline-check i, .inline-check svg {
            width: 1.1rem;
            height: 1.1rem;
        }

        /* ── Extras toggle (mobile collapsible) ────────────── */
        .extras-toggle {
            display: none;
        }
        @media (max-width: 767px) {
            .extras-toggle {
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                padding: 0.7rem 1rem;
                margin-bottom: 0.75rem;
                background: linear-gradient(135deg, #f0e6f6 0%, #e0ecf8 100%);
                border: 1.5px solid #d1d5db;
                border-radius: 10px;
                font-size: 0.85rem;
                font-weight: 700;
                color: #4a4a4a;
                cursor: pointer;
                transition: background 0.2s;
            }
            .extras-toggle:hover { background: #e8ddf0; }
            .extras-chevron {
                width: 1rem;
                height: 1rem;
                transition: transform 0.3s ease;
            }
            .extras-toggle.open .extras-chevron {
                transform: rotate(180deg);
            }
            .extras-panel {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.35s ease;
            }
            .extras-panel.open {
                max-height: 500px;
            }
        }

        /* ── Mobile Receipt View (≤ 640px) ─────────────────── */
        @media (max-width: 640px) {

            /* Reduce card padding so content isn't squeezed out */
            .summary-card {
                padding: 1.25rem 1rem;
                overflow: visible;
            }

            /* 3 action buttons wrap to 2+1 on small screens */
            #receipt-action-btns {
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            #receipt-action-btns .btn-neat {
                flex: 1 1 auto;
                min-width: 0;
                font-size: 0.78rem;
                padding: 0.45rem 0.65rem;
                justify-content: center;
                text-align: center;
            }

            /* 3 send-tab buttons shrink to fit narrow screens */
            #send-tabs .send-tab {
                font-size: 0.72rem !important;
                padding: 0.4rem 0.3rem !important;
            }

            /* Share link 3-button row allows wrapping */
            #receipt-share-btns {
                flex-wrap: wrap;
            }

            #receipt-share-btns button {
                flex: 1 1 auto;
                justify-content: center;
            }

            /* Success heading: shrink on small screens */
            #success-view .container.text-center h2,
            #success-view h2 {
                font-size: 1.4rem !important;
                line-height: 1.2;
                margin-bottom: 0.25rem;
            }

            #success-view .container.text-center {
                margin-bottom: 0.5rem !important;
            }

            .inline-check {
                width: 1.4rem;
                height: 1.4rem;
            }
            .inline-check i, .inline-check svg {
                width: 0.9rem;
                height: 0.9rem;
            }

            #success-view .preview-column {
                margin-bottom: 0 !important;
            }
        }

        /* ── Success View: consistent section spacing ─────── */
        .success-layout {
            grid-template-columns: 1fr !important;
            gap: 1.5rem !important;
        }

        .success-layout > .preview-column {
            margin-bottom: 0;
        }

        #receipt-postcard-container {
            min-height: 280px;
            max-width: 650px;
            margin: 0 auto;
        }

        @media (min-width: 768px) {
            #receipt-postcard-container {
                min-height: 420px;
            }
        }
    
        /* ── Publisher content panels (AdSense-friendly, keeps UI clean) ───────── */
        .publisher-panel{
            margin: 2rem auto 0;
            max-width: 980px;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.75);
            background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(240,245,255,0.82) 55%, rgba(230,240,250,0.9) 100%);
            box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 0 0 1px rgba(255,255,255,0.55) inset;
            overflow: hidden;
        }
        .publisher-head{
            padding: 1.1rem 1.25rem;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            display:flex;
            align-items:flex-start;
            justify-content:space-between;
            gap: 1rem;
        }
        .publisher-head h3{ margin:0; font-size: 1.25rem; }
        .publisher-head p{ margin:.25rem 0 0 0; color: rgba(55,65,81,0.85); }
        .publisher-body{ padding: 1.25rem; }
        .publisher-lead{ margin:0 0 1rem 0; color:#374151; line-height:1.55; }
        .publisher-grid{ display:grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
        .publisher-box{
            border-radius: 14px;
            border: 1px solid rgba(0,0,0,0.06);
            background: rgba(255,255,255,0.7);
            padding: .9rem 1rem;
        }
        .publisher-box h4{ margin:0 0 .5rem 0; font-weight:700; }
        .publisher-box ul, .publisher-box ol{ margin:.25rem 0 0 1.15rem; color:#374151; }
        .publisher-divider{ height:1px; background: rgba(0,0,0,0.06); margin: 1rem 0; }
        .publisher-examples p{ margin:.5rem 0; color:#374151; }
        .hidden{ display:none !important; }
        .reveal-with-categories{ display:none !important; }

        /* Storybook Luxe across all postcard sections */
        .app-view .text-center h2,
        #checkout-view h3,
        #success-view h2,
        .catalogue-rail-head h3,
        .publisher-head h3,
        .related-cards-section h4 {
            color: var(--theme-plum);
        }

        .app-view .text-center p,
        .publisher-head p,
        .publisher-lead,
        .publisher-box ul,
        .publisher-box ol,
        .receipt-row,
        .card-date-added,
        .checkout-divider,
        .card-input-section,
        .payment-message {
            color: rgba(79, 54, 64, 0.82);
        }

        .category-content,
        .custom-form,
        .summary-card,
        .publisher-panel,
        .related-card-tile,
        .mockup-controls,
        .contacts-dropdown,
        .neat-input-wrapper {
            background: var(--theme-surface);
            border-color: var(--theme-line);
            box-shadow: 0 16px 36px var(--theme-shadow);
        }

        .category-content {
            background: var(--theme-surface);
            border-color: var(--theme-line);
        }

        .category-content::before {
            display: none;
        }

        .category-card:not(.disabled):hover .category-content,
        .related-card-tile:hover {
            border-color: var(--theme-line-strong);
            box-shadow: 0 22px 46px rgba(125, 73, 92, 0.18);
        }

        .grid-img-box {
            background: var(--theme-surface);
            box-shadow: 0 10px 24px rgba(137, 89, 106, 0.12);
        }

        .grid-img-box::before {
            display: none;
        }

        .btn-customize,
        .related-card-tile .rel-btn,
        .btn-neat.primary,
        .btn-neat.secondary {
            background: rgba(255, 247, 242, 0.78);
            border-color: rgba(209, 151, 138, 0.52);
            color: var(--theme-rose);
            box-shadow: 0 6px 16px rgba(137, 89, 106, 0.10);
        }

        .btn-customize:hover,
        .category-card:hover .btn-customize,
        .related-card-tile:hover .rel-btn,
        .btn-neat.primary:hover,
        .btn-neat.secondary:hover {
            background: linear-gradient(135deg, #d98980, #b96872);
            border-color: transparent;
            color: #ffffff;
        }

        .btn-outline {
            background: rgba(255, 249, 246, 0.88);
            border-color: rgba(209, 151, 138, 0.42);
            color: var(--theme-ink);
        }

        .btn-outline:hover {
            background: rgba(255, 255, 255, 0.95);
        }

        .form-input,
        .form-textarea,
        .magic-message-bar select,
        .neat-input-wrapper,
        .contacts-dropdown {
            background: rgba(255, 255, 255, 0.82);
            border-color: rgba(209, 151, 138, 0.34);
        }

        .contacts-dropdown-item:hover {
            background: rgba(253, 241, 233, 0.92);
        }

        .preview-column .card-mockup-wrapper,
        .card-mockup-wrapper.has-bg,
        #receipt-postcard-container {
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.96) 0%, rgba(247, 235, 241, 0.9) 100%);
            border: 1px solid var(--theme-line);
            box-shadow: 0 18px 42px rgba(137, 89, 106, 0.14);
        }

        .preview-header {
            color: var(--theme-plum);
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.92);
        }

        .summary-card {
            border-radius: 18px;
            border-color: rgba(209, 151, 138, 0.42);
        }

        .summary-card::after {
            background: radial-gradient(circle, transparent 70%, rgba(255, 251, 248, 0.98) 75%) 0 0,
                radial-gradient(circle, transparent 70%, rgba(255, 251, 248, 0.98) 75%) 10px 10px;
            background-size: 20px 20px;
            background-position: 0 -10px;
        }

        .publisher-box,
        #success-view .container.text-center {
            background: linear-gradient(180deg, rgba(255, 252, 249, 0.98) 0%, rgba(253, 241, 233, 0.94) 100%);
            border: 1px solid rgba(209, 151, 138, 0.36);
            box-shadow: 0 16px 36px rgba(137, 89, 106, 0.12);
        }

        #success-view .container.text-center {
            border-radius: 24px;
            padding: 2rem;
        }

        .receipt-header-line {
            border-bottom-color: rgba(99, 59, 70, 0.84);
        }

        .receipt-total {
            border-top-color: rgba(209, 151, 138, 0.48);
            color: var(--theme-plum);
        }

