        :root {
            --head-font: "IM Fell English SC", serif;
            --body-font: "Manrope", sans-serif;
            --gold-text: #a06800;
            --bg-deep: #0a0812;
            --bg-card: #12101a;
            --bg-bubble-lyra: #1a1625;
            --bg-bubble-user: #1e2a3a;
            --bubble-white: #ffffff;
            --bubble-text-dark: #1a1625;
            --bubble-text-muted: #4a4556;
            --bubble-border: rgba(26, 22, 37, 0.12);
            --bubble-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            --border-subtle: rgba(160, 104, 0, 0.2);
            --gold: #a06800;
            --gold-soft: #b87a0a;
            --gold-dim: rgba(160, 104, 0, 0.6);
            --text-primary: #f0ebe3;
            --text-secondary: #b8b0a0;
            --accent-mystic: #6b5b95;
            --radius: 16px;
            --radius-sm: 10px;
            --shadow-glow: 0 0 40px rgba(160, 104, 0, 0.08);
            --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--body-font);
            background: var(--bg-deep);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            background-image:
                radial-gradient(ellipse 80% 50% at 50% -20%, rgba(107, 91, 149, 0.12), transparent),
                radial-gradient(ellipse 60% 40% at 100% 100%, rgba(160, 104, 0, 0.06), transparent);
        }

        #video-background {
            position: fixed;
            inset: 0;
            z-index: -20;
        }
        #video-background > div:first-child {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.2);
            pointer-events: none;
        }
        #video-background img,
        #video-background video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .opt-in-page {
            position: relative;
            z-index: 0;
            min-height: 100vh;
            padding: 24px 0;
        }

        .chat-wrap {
            margin: 0 auto;
            min-height: 100vh;
            padding: 24px 16px 24px 16px;
            display: flex;
            flex-direction: column;
        }

        @media (max-width: 768px) {
            .opt-in-body .opt-in-page,
            main .opt-in-page {
                margin-left: 1rem;
                margin-right: 1rem;
                padding: 16px 0;
            }

            .chat-wrap {
                padding: 16px 12px 24px 12px;
            }
        }

        @media (max-width: 480px) {
            .opt-in-body .opt-in-page,
            main .opt-in-page {
                margin-left: 0.5rem;
                margin-right: 0.5rem;
                padding: 12px 0;
            }

            .opt-in-body .chat-wrap,
            main .chat-wrap,
            .opt-in-page .chat-wrap {
                margin-left: 0;
                margin-right: 0;
                padding: 12px 10px 20px 10px;
            }
        }

        /* Header card: Lyra row on top, progress block anchored to bottom */
        .chat-header-bar {
            position: sticky;
            top: 5px;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            padding: 0;
            margin-bottom: 16px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.99);
            border-radius: 20px;
            border: 1px solid rgba(191, 167, 121, 0.28);
            box-shadow: 0 2px 20px rgba(26, 22, 37, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }

        .chat-header-bar__top {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 18px;
        }

        .opt-in-step-footer {
            padding: 0 16px 14px;
            border-top: 1px solid rgba(191, 167, 121, 0.35);
            background: linear-gradient(180deg, rgba(248, 244, 236, 0.5) 0%, rgba(255, 255, 255, 0.65) 100%);
        }

        .opt-in-step-footer__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .opt-in-step-footer__label {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--gold-dim);
        }

        .opt-in-step-indicator {
            font-family: var(--body-font);
            font-size: 1rem;
            font-weight: 700;
            color: var(--bubble-text-dark);
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.02em;
        }

        .opt-in-step-footer__track {
            display: block;
            height: 8px;
            border-radius: 9999px;
            background: rgba(191, 167, 121, 0.25);
            overflow: hidden;
        }

        .opt-in-step-footer__fill {
            display: block;
            height: 100%;
            width: 14.29%;
            border-radius: 9999px;
            background: linear-gradient(90deg, var(--gold-soft), var(--gold));
            box-shadow: 0 0 12px rgba(160, 104, 0, 0.35);
            transition: width 0.35s ease;
        }

        @media (prefers-reduced-motion: reduce) {
            .opt-in-step-footer__fill {
                transition: none;
            }
        }

        .chat-header-avatar {
            flex-shrink: 0;
            position: relative;
        }

        .chat-header-avatar > span,
        .chat-header-avatar .relative {
            display: block;
            position: relative;
            width: 48px;
            height: 48px;
        }

        .chat-header-avatar img {
            width: 48px;
            height: 48px;
            object-fit: cover;
            border-radius: 50%;
        }

        .chat-header-avatar span span:last-child {
            position: absolute;
            top: 0;
            right: 0;
            width: 12px;
            height: 12px;
            background: #059669;
            border: 2px solid white;
            border-radius: 50%;
            animation: livePulse 1.5s ease-in-out infinite;
        }

        .chat-header-info {
            flex: 1;
            min-width: 0;
        }

        .chat-header-name {
            font-family: var(--head-font);
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--bubble-text-dark);
            margin: 0 0 2px 0;
            letter-spacing: 0.02em;
            line-height: 1.2;
        }

        .chat-header-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            color: #059669;
            font-weight: 500;
        }

        .chat-header-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #059669;
            animation: livePulse 1.5s ease-in-out infinite;
        }

        .chat-header-datetime {
            font-size: 0.72rem;
            color: var(--bubble-text-muted);
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }

        .chat-header-live {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(185, 28, 28, 0.08);
            border: 1px solid rgba(185, 28, 28, 0.2);
            border-radius: 9999px;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: #b91c1c;
        }

        .chat-header-live-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #b91c1c;
            animation: livePulse 1.5s ease-in-out infinite;
        }

        @keyframes livePulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.75; transform: scale(1.15); }
        }

        @media (max-width: 640px) {
            .chat-header-bar__top {
                padding: 12px 14px;
                gap: 12px;
                flex-wrap: wrap;
            }

            .opt-in-step-footer {
                padding: 0 12px 12px;
            }

            .chat-header-avatar > span,
            .chat-header-avatar .relative { width: 44px; height: 44px; }
            .chat-header-avatar img { width: 44px; height: 44px; }
            .chat-header-name { font-size: 1rem; }
            .chat-header-datetime {
                font-size: 0.68rem;
                flex-shrink: 1;
                min-width: 0;
                word-break: break-word;
            }
            .chat-header-live { padding: 5px 10px; font-size: 0.62rem; flex-shrink: 0; }
        }

        @media (max-width: 480px) {
            .chat-header-bar__top {
                padding: 10px 12px;
                gap: 10px;
            }

            .opt-in-step-indicator {
                font-size: 0.9rem;
            }

            .chat-header-avatar > span,
            .chat-header-avatar .relative { width: 40px; height: 40px; }
            .chat-header-avatar img { width: 40px; height: 40px; }
            .chat-header-name { font-size: 0.95rem; }
            .chat-header-datetime {
                font-size: 0.6rem;
                max-width: 100%;
            }
            .chat-header-status { font-size: 0.72rem; }
            .chat-header-live {
                padding: 4px 8px;
                font-size: 0.56rem;
                letter-spacing: 0.08em;
            }
        }

        @media (max-width: 360px) {
            .chat-header-bar__top {
                padding: 8px 10px;
                gap: 8px;
            }

            .opt-in-step-footer__label {
                font-size: 0.62rem;
            }

            .chat-header-avatar > span,
            .chat-header-avatar .relative { width: 36px; height: 36px; }
            .chat-header-avatar img { width: 36px; height: 36px; }
            .chat-header-avatar span span:last-child {
                width: 10px;
                height: 10px;
            }
            .chat-header-name { font-size: 0.9rem; }
            .chat-header-datetime { font-size: 0.55rem; }
        }

        @media (max-width: 480px) {
            .msg { gap: 8px; }
            .typing-indicator { gap: 8px; }
            .msg .bubble { padding: 8px 8px !important; font-size: 0.9rem; }
        }

        .chat-header {
            text-align: center;
            padding: 20px 0 24px;
            border-bottom: 1px solid var(--border-subtle);
            margin-bottom: 20px;
        }

        .chat-header h1 {
            font-family: var(--head-font);
            font-weight: 500;
            font-size: 1.35rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            word-spacing: 3px;
            color: var(--gold-text);
        }

        @media (max-width: 640px) {
            .chat-header {
                padding: 16px 0 20px;
                margin-bottom: 16px;
            }

            .chat-header picture img,
            .chat-header img {
                max-width: 200px;
                height: auto;
            }
        }

        @media (max-width: 480px) {
            .chat-header {
                padding: 12px 0 16px;
                margin-bottom: 12px;
            }
        }

        .messages {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }

        .msg {
            display: flex;
            gap: 11px;
            align-items: flex-start;
            opacity: 0;
            transform: translateY(12px);
            animation: msgIn var(--transition) forwards;
        }

        .msg.user {
            flex-direction: row-reverse;
        }

        .msg .avatar {
            width: clamp(32px, 8vw, 40px);
            height: clamp(32px, 8vw, 40px);
            min-width: clamp(32px, 8vw, 40px);
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-mystic), var(--gold-soft));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--head-font);
            font-size: 1rem;
            font-weight: 600;
            color: var(--bg-deep);
            box-shadow: 0 4px 12px rgba(160, 104, 0, 0.25);
            overflow: visible;
        }

        .msg .avatar.avatar-lyra,
        .typing-indicator .avatar.avatar-lyra {
            padding: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            overflow: visible;
        }

        .msg .avatar .lyra-avatar-img,
        .typing-indicator .avatar .lyra-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .msg.user .avatar {
            background: linear-gradient(135deg, var(--bg-bubble-user), #2a3f52);
            color: var(--gold-dim);
            font-size: 0.9rem;
        }

        .msg.user .avatar .lyra-avatar-img {
            display: none;
        }

        .msg .bubble {
            position: relative;
            max-width: 85%;
            padding: 14px 18px;
            border-radius: var(--radius);
            line-height: 1.4;
            font-size: 0.85rem;
            font-weight: 400;
        }

        .msg .bubble::after {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            border-style: solid;
            top: 50%;
            transform: translateY(-50%);
        }

        /* Lyra: tail on left edge, pointing left toward her avatar */
        .msg.lyra .bubble {
            background: var(--bubble-white);
            border: 1px solid var(--bubble-border);
            box-shadow: var(--bubble-shadow);
            color: var(--bubble-text-dark);
        }

        .msg.lyra .bubble::after {
            left: -10px;
            border-width: 8px 12px 8px 0;
            border-color: transparent var(--bubble-white) transparent transparent;
        }

        .msg.lyra .bubble .bubble-text-preline {
            white-space: pre-line;
        }

        /* User: tail on right edge, pointing right toward user avatar */
        .msg.user .bubble {
            background: var(--bubble-white);
            border: 1px solid var(--bubble-border);
            box-shadow: var(--bubble-shadow);
            color: var(--bubble-text-dark);
        }

        .msg.user .bubble::after {
            right: -10px;
            left: auto;
            border-width: 8px 0 8px 12px;
            border-color: transparent transparent transparent var(--bubble-white);
        }

        .msg .label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--bubble-text-muted);
            margin-bottom: 4px;
        }

        @keyframes msgIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .typing-indicator {
            display: flex;
            gap: 12px;
            align-items: center;
            padding: 0;
            margin: 0;
            opacity: 0;
            animation: msgIn 0.3s ease forwards;
        }

        .typing-indicator .avatar {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-mystic), var(--gold-soft));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--bg-deep);
        }

        .typing-content {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .typing-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-style: italic;
        }

        .typing-bubble {
            position: relative;
            display: inline-flex;
            align-self: flex-start;
            align-items: center;
            padding: 12px 20px;
            font-size: 0.95rem;
            background: var(--bubble-white);
            border: 1px solid var(--bubble-border);
            border-radius: 9999px;
            box-shadow: var(--bubble-shadow);
        }

        .typing-bubble::after {
            content: "";
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 8px 14px 8px 0;
            border-color: transparent var(--bubble-white) transparent transparent;
        }

        .typing-dots {
            display: flex;
            gap: 0.35em;
        }

        .typing-dots span {
            width: 0.5em;
            height: 0.5em;
            border-radius: 50%;
            background: var(--gold-soft);
            animation: typingBounce 1.2s ease-in-out infinite;
        }

        .typing-dots span:nth-child(2) { animation-delay: 0.15s; }
        .typing-dots span:nth-child(3) { animation-delay: 0.3s; }

        @keyframes typingBounce {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
            30% { transform: translateY(-6px); opacity: 1; }
        }

        .input-block {
            margin-top: 12px;
            padding: 16px 0;
            opacity: 0;
            transform: translateY(10px);
            animation: msgIn 0.5s ease 0.2s forwards;
            text-align: end;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            max-width: 320px;
            margin-left: auto;
        }

        @media (max-width: 480px) {
            .input-block {
                max-width: 100%;
                padding: 12px 0;
            }

            .input-block label {
                font-size: 0.7rem;
            }

            .input-block input[type="text"],
            .input-block input[type="email"],
            .input-block input[type="date"] {
                max-width: 100%;
                padding: 14px 16px;
            }
        }

        .input-block label {
            display: block;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gold-dim);
            margin-bottom: 10px;
        }

        .input-block input[type="text"],
        .input-block input[type="email"],
        .input-block input[type="date"] {
            width: 100%;
            max-width: 320px;
            min-height: 44px;
            box-sizing: border-box;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(191, 167, 121, 0.35);
            border-radius: 14px;
            color: var(--bubble-text-dark);
            font-family: inherit;
            font-size: 1rem;
            transition: border-color 0.25s, box-shadow 0.25s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        .input-block input::placeholder {
            color: var(--text-secondary);
            opacity: 0.8;
        }

        .input-block input:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        /* DOB: pill-shaped Month / Day / Year selects (horizontal) */
        .input-block:has(.dob-selects) {
            max-width: 520px;
        }

        .dob-selects {
            display: flex;
            flex-wrap: nowrap;
            gap: 12px;
            align-items: center;
            margin-bottom: 14px;
            justify-content: flex-end;
        }

        .dob-selects select {
            flex: 1 1 auto;
            min-width: 110px;
            max-width: 160px;
            min-height: 44px;
            box-sizing: border-box;
            padding: 14px 40px 14px 18px;
            background: #ffffff;
            border: 1px solid rgba(191, 167, 121, 0.35);
            border-radius: 9999px;
            color: var(--bubble-text-dark);
            font-family: var(--body-font);
            font-size: 0.95rem;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23BFA779' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: border-color 0.25s, box-shadow 0.25s;
            cursor: pointer;
            margin: 0 !important;
        }

        @media (max-width: 640px) {
            .input-block:has(.dob-selects) {
                max-width: 100%;
            }

            .dob-selects {
                flex-wrap: wrap;
                gap: 10px;
                justify-content: stretch;
            }

            .dob-selects select {
                min-width: 0;
                flex: 1 1 90px;
            }

            .dob-selects #birth-month {
                min-width: 0;
                flex: 1 1 120px;
            }
        }

        @media (max-width: 480px) {
            .dob-selects {
                gap: 8px;
                margin-bottom: 12px;
            }

            .dob-selects select {
                padding: 12px 36px 12px 14px;
                font-size: 0.9rem;
                background-position: right 10px center;
                background-size: 10px;
            }

            .dob-selects #birth-month {
                flex: 1 1 100px;
            }
        }

        @media (max-width: 360px) {
            .dob-selects {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .dob-selects select {
                flex: 1 1 auto;
                max-width: none;
                padding: 12px 36px 12px 14px;
            }

            .dob-selects #birth-month {
                flex: 1 1 auto;
            }
        }

        .dob-selects select:focus {
            outline: none;
            border-color: var(--gold-dim);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
        }

        .dob-selects #birth-month {
            min-width: 140px;
            max-width: 200px;
        }

        .dob-selects select option {
            color: var(--bubble-text-dark);
        }

        .dob-selects select option[value=""],
        .dob-selects select:invalid {
            color: #BFA779;
        }

        .gender-btns,
        .resonance-btns {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .gender-btns button,
        .resonance-btns button {
            min-height: 44px;
            min-width: 44px;
            padding: 0px clamp(16px, 5vw, 25px);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 248, 242, 0.98) 100%);
            border: 1px solid rgba(191, 167, 121, 0.4);
            border-radius: 9999px;
            color: var(--bubble-text-dark);
            font-family: inherit;
            font-size: clamp(0.85rem, 2.1vw, 1rem);
            font-weight: 600;
            letter-spacing: 0.02em;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .gender-btns button:hover,
        .resonance-btns button:hover {
            border-color: var(--gold-dim);
            color: var(--gold);
            box-shadow: 0 4px 16px rgba(160, 104, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            transform: translateY(-1px);
        }

        .gender-btns button.selected,
        .resonance-btns button.selected {
            background: linear-gradient(135deg, var(--gold-soft), var(--gold));
            border-color: var(--gold);
            color: var(--bg-deep);
            box-shadow: 0 4px 20px rgba(160, 104, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .submit-btn {
            min-height: 44px;
            margin-top: 14px;
            padding: 0px 25px;
            background: linear-gradient(135deg, #c9960f 0%, var(--gold) 50%, #8b5a00 100%);
            border: none;
            border-radius: 9999px;
            color: #fff;
            font-family: inherit;
            font-size: clamp(0.85rem, 2.1vw, 1rem);
            font-weight: 600;
            letter-spacing: 0.03em;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 16px rgba(160, 104, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(160, 104, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 2px 8px rgba(160, 104, 0, 0.15);
        }

        .input-block .input-error {
            color: #c66;
            font-size: 0.85rem;
            margin-top: 8px;
            text-align: right;
        }

        /* Premium loading screen – Lyra message style with sun/moon orbit */
        .loading-screen {
            gap: 12px;
            align-items: flex-start;
            padding: 0;
            margin-bottom: 6px;
            opacity: 0;
            animation: msgIn 0.5s ease forwards;
        }

        .loading-screen__bubble {
            flex: 1;
            min-width: 0;
            max-width: 85%;
            padding: 18px 20px;
            background-image: url("https://i.pinimg.com/1200x/e4/c9/50/e4c950e758ddb36c83e42cc81c5816ba.jpg");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border: 1px solid var(--bubble-border);
            border-radius: var(--radius);
            box-shadow: var(--bubble-shadow);
            position: relative;
            overflow: hidden;
        }

        /* Step 4 (after DOB): bright wealth imagery — dim layer + stacking over default bubble BG */
        .loading-screen__bubble--reading-path {
            background-size: cover;
            background-position: center;
        }
        .loading-screen__bubble--reading-path > .loading-screen__bubble-dim {
            position: absolute;
            inset: 0;
            border-radius: var(--radius);
            z-index: 0;
            pointer-events: none;
            background:
                radial-gradient(140px 100px at 50% 20%, rgba(10, 8, 18, 0.45), rgba(10, 8, 18, 0) 65%),
                linear-gradient(180deg, rgba(10, 8, 18, 0.78) 0%, rgba(10, 8, 18, 0.9) 100%);
        }
        .loading-screen__bubble--reading-path > *:not(.loading-screen__bubble-dim) {
            position: relative;
            z-index: 3;
        }
        .loading-screen--reading-path:not(.is-complete) .loading-screen__bubble--reading-path::before {
            opacity: 0.28;
        }

        /* After DOB: distinct “blueprint” loader — radial ring + pillars (not the post-email celestial card) */
        .loading-screen--blueprint .loading-screen__bubble--reading-path {
            position: relative;
            max-width: 92%;
            padding: 20px 18px 18px;
        }

        .loading-screen__blueprint {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 16px;
        }

        .loading-screen__blueprint-intro {
            text-align: center;
            padding: 4px 6px 0;
        }

        .loading-screen__blueprint-kicker {
            font-family: var(--body-font);
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: rgba(255, 232, 188, 0.55);
            margin: 0 0 8px;
        }

        .loading-screen__blueprint-lead {
            font-family: var(--head-font);
            font-size: clamp(1.05rem, 3.4vw, 1.2rem);
            line-height: 1.35;
            color: rgba(255, 232, 188, 0.96);
            margin: 0 0 10px;
            text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
        }

        .loading-screen__blueprint-copy {
            font-family: var(--body-font);
            font-size: clamp(0.82rem, 2.5vw, 0.9rem);
            line-height: 1.55;
            color: rgba(245, 239, 230, 0.82);
            margin: 0;
            font-weight: 500;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
        }

        .loading-screen__blueprint-stage {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .loading-screen__blueprint-ring-wrap {
            position: relative;
            width: min(200px, 58vw);
            aspect-ratio: 1;
            margin: 4px auto 0;
        }

        .loading-screen__blueprint-svg {
            width: 100%;
            height: 100%;
            display: block;
            transform: rotate(-90deg);
            filter: drop-shadow(0 4px 12px rgba(160, 104, 0, 0.25));
        }

        .loading-screen__blueprint-track {
            stroke: rgba(191, 167, 121, 0.22);
            stroke-width: 2.75;
        }

        .loading-screen__blueprint-arc {
            stroke: var(--gold-soft);
            stroke-width: 2.75;
            stroke-linecap: round;
            fill: none;
            transition: stroke-dashoffset 0.12s ease-out;
        }

        .loading-screen--blueprint.is-complete .loading-screen__blueprint-arc {
            stroke: #34d399;
        }

        .loading-screen__blueprint-counter {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        .loading-screen__blueprint-pct {
            font-family: var(--body-font);
            font-size: clamp(1.35rem, 5vw, 1.75rem);
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            color: rgba(255, 255, 255, 0.94);
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
            line-height: 1;
        }

        .loading-screen__blueprint-pillars {
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
            padding: 0 4px;
            gap: 4px;
        }

        .loading-screen__blueprint-pillars li {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .loading-screen__blueprint-pillars .pillar-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 1px solid rgba(212, 175, 55, 0.35);
            background: rgba(10, 8, 18, 0.5);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
            transition:
                background 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
        }

        .loading-screen__blueprint-pillars li.is-lit .pillar-dot {
            background: linear-gradient(145deg, var(--gold-soft), var(--gold));
            border-color: rgba(255, 232, 188, 0.45);
            box-shadow:
                0 0 0 3px rgba(160, 104, 0, 0.15),
                0 2px 8px rgba(160, 104, 0, 0.35);
        }

        .loading-screen--blueprint.is-complete .loading-screen__blueprint-pillars li.is-lit .pillar-dot {
            background: linear-gradient(145deg, #34d399, #059669);
            border-color: rgba(16, 185, 129, 0.45);
            box-shadow:
                0 0 0 3px rgba(16, 185, 129, 0.12),
                0 2px 8px rgba(16, 185, 129, 0.25);
        }

        .loading-screen__blueprint-pillars .pillar-name {
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: rgba(245, 239, 230, 0.38);
            transition: color 0.35s ease;
        }

        .loading-screen__blueprint-pillars li.is-lit .pillar-name {
            color: rgba(255, 232, 188, 0.88);
        }

        .loading-screen__blueprint-footer {
            display: flex;
            justify-content: center;
            padding-top: 2px;
        }

        .loading-screen__blueprint-complete {
            display: none;
            text-align: center;
            padding: 8px 8px 4px;
            border-radius: 16px;
            border: 1px solid rgba(255, 232, 188, 0.18);
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(2px);
        }

        .loading-screen__blueprint-complete .loading-screen__seal {
            margin-bottom: 12px;
        }

        .loading-screen__blueprint-complete .loading-screen__complete-title {
            margin-bottom: 4px;
        }

        .loading-screen--blueprint.is-complete .loading-screen__blueprint-intro,
        .loading-screen--blueprint.is-complete .loading-screen__blueprint-stage,
        .loading-screen--blueprint.is-complete .loading-screen__blueprint-footer {
            display: none;
        }

        .loading-screen--blueprint.is-complete .loading-screen__blueprint-complete {
            display: block;
            animation: blueprintCompleteIn 0.55s ease forwards;
        }

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

        @media (max-width: 400px) {
            .loading-screen__blueprint-pillars {
                max-width: 100%;
                padding: 0;
                gap: 2px;
            }

            .loading-screen__blueprint-pillars .pillar-dot {
                width: 8px;
                height: 8px;
            }

            .loading-screen__blueprint-pillars .pillar-name {
                font-size: 0.56rem;
            }

            .loading-screen__blueprint-ring-wrap {
                width: min(176px, 72vw);
            }
        }

        .loading-screen__blueprint-complete--solo {
            display: block;
            padding: 18px 14px 14px;
            border-radius: 16px;
            border: 1px solid rgba(255, 232, 188, 0.18);
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(2px);
        }

        .loading-screen__blueprint-complete--solo .loading-screen__seal {
            margin-bottom: 12px;
        }

        .loading-screen--blueprint .loading-progress--blueprint-sr {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            margin: 0;
            padding: 0;
            overflow: hidden;
            clip-path: inset(50%);
            border: 0;
        }

        /* Ensure bubble overlays never sit above content */
        .loading-screen__bubble > * {
            position: relative;
            z-index: 3;
        }
        .loading-screen__bubble::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: var(--radius);
            /* Darken for readability while keeping the stars visible */
            background:
                radial-gradient(120px 90px at 12% 0%, rgba(160, 104, 0, 0.22), rgba(10, 8, 18, 0) 60%),
                radial-gradient(140px 110px at 88% 100%, rgba(107, 91, 149, 0.22), rgba(10, 8, 18, 0) 62%),
                linear-gradient(180deg, rgba(10, 8, 18, 0.76) 0%, rgba(10, 8, 18, 0.88) 100%);
            /* Apply the “soft opacity” look across the entire bubble */
            backdrop-filter: blur(7px) saturate(0.9) contrast(1.05);
            pointer-events: none;
            z-index: 1;
        }
        .loading-screen__bubble::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: var(--radius);
            background:
                radial-gradient(110px 80px at 10% 0%, rgba(107, 91, 149, 0.10), transparent 60%),
                radial-gradient(140px 90px at 90% 100%, rgba(160, 104, 0, 0.08), transparent 65%),
                linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 60%);
            background-size: auto, auto, 220% 100%;
            background-position: 0 0, 0 0, 220% 0;
            opacity: 0.6;
            pointer-events: none;
            animation: loadingShimmer 2.8s ease-in-out infinite;
            z-index: 2;
        }
        .loading-screen.is-complete .loading-screen__bubble::before {
            animation: none;
            opacity: 0.35;
        }

        .loading-screen__bubble::after {
            content: "";
            position: absolute;
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 8px 12px 8px 0;
            border-color: transparent var(--bubble-white) transparent transparent;
        }

        .loading-screen__label {
            font-family: var(--body-font);
            font-size: 0.9rem;
            line-height: 1.5;
            color: #f5efe6;
            margin: 0 0 18px 0;
            font-weight: 500;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
        }
        .loading-screen__top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
            position: relative;
            z-index: 1;
        }
        /* Readability panel for the copy (keeps background art vivid) */
        .loading-screen__top {
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid rgba(255, 232, 188, 0.22);
            /* background:
                radial-gradient(120px 80px at 0% 0%, rgba(160, 104, 0, 0.22), rgba(10, 8, 18, 0) 60%),
                radial-gradient(140px 90px at 100% 100%, rgba(107, 91, 149, 0.22), rgba(10, 8, 18, 0) 62%),
                linear-gradient(180deg, rgba(10, 8, 18, 0.72) 0%, rgba(10, 8, 18, 0.84) 100%); */
            box-shadow:
                0 10px 26px rgba(0, 0, 0, 0.30),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(2px);
        }
        .loading-screen__label {
            margin: 0;
            font-weight: 600;
            letter-spacing: 0.01em;
        }
        .loading-screen__sub {
            display: block;
            font-weight: 500;
            color: rgba(245, 239, 230, 0.78);
            margin-top: 2px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
        }
        .loading-screen__status {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }
        .loading-screen__badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 9999px;
            border: 1px solid rgba(212, 175, 55, 0.38);
            background: rgba(10, 8, 18, 0.55);
            color: rgba(255, 232, 188, 0.95);
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
        }
        .loading-screen__pct {
            font-size: 0.9rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.92);
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
        }

        /* Emphasize the main line slightly more on the panel */
        .loading-screen__label {
            font-size: clamp(0.92rem, 2.6vw, 0.98rem);
            letter-spacing: 0.015em;
        }

        /* Completed block also gets a panel-like emphasis */
        .loading-screen__complete-wrap {
            border-radius: 16px;
            border: 1px solid rgba(255, 232, 188, 0.18);
            /* background: rgba(10, 8, 18, 0.42); */
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(2px);
            padding: 14px 14px 12px;
        }
        .loading-screen__badge::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gold-soft);
            box-shadow: 0 0 0 0 rgba(160, 104, 0, 0.35);
            animation: badgePulse 1.4s ease-in-out infinite;
        }
        .loading-screen.is-complete .loading-screen__badge {
            border-color: rgba(5, 150, 105, 0.35);
            background: rgba(5, 150, 105, 0.08);
            color: #047857;
        }
        .loading-screen.is-complete .loading-screen__badge::before {
            animation: none;
            background: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
        }

        .loading-screen__orbit-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
            min-height: 48px;
        }
        .loading-screen__orbit-wrap,
        .loading-screen .loading-progress {
            position: relative;
            z-index: 1;
        }

        /* Once completed, remove the progress bar entirely */
        .loading-screen.is-complete .loading-progress {
            display: none;
        }

        .loading-screen__art {
            position: relative;
            z-index: 1;
        }
        .loading-screen__complete-wrap {
            display: none;
            text-align: center;
            margin: 2px 0 18px;
            padding-top: 4px;
        }
        .loading-screen__seal {
            width: clamp(44px, 16vw, 64px);
            height: clamp(44px, 16vw, 64px);
            margin: 0 auto 10px;
            border-radius: 50%;
            border: 1px solid rgba(160, 104, 0, 0.35);
            background:
                radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 55%),
                radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0) 60%),
                conic-gradient(from 200deg, rgba(160, 104, 0, 0.10), rgba(107, 91, 149, 0.12), rgba(160, 104, 0, 0.10));
            box-shadow:
                0 10px 26px rgba(16, 185, 129, 0.10),
                0 0 0 6px rgba(16, 185, 129, 0.10);
            position: relative;
        }
        .loading-screen__seal::after {
            content: "✓";
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            font-size: 28px;
            font-weight: 900;
            color: #047857;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
        }
        .loading-screen__complete-title {
            font-family: var(--head-font);
            font-size: clamp(0.98rem, 3.1vw, 1.05rem);
            letter-spacing: 0.04em;
            color: rgba(255, 232, 188, 0.95);
            margin-bottom: 2px;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
        }
        .loading-screen__complete-sub {
            font-size: clamp(0.78rem, 2.6vw, 0.85rem);
            color: rgba(245, 239, 230, 0.78);
            font-weight: 600;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
        }

        /* Responsive: keep mapping panel readable on small viewports */
        @media (max-width: 480px) {
            .loading-screen__bubble {
                max-width: 92%;
                padding: 14px 14px;
            }

            .loading-screen__top {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 12px 12px;
            }

            .loading-screen__status {
                width: 100%;
                justify-content: space-between;
            }

            .loading-screen__badge {
                padding: 5px 9px;
                font-size: 0.64rem;
            }

            .loading-screen__pct {
                font-size: 0.84rem;
            }

            .loading-screen__seal {
                width: 56px;
                height: 56px;
            }

            .loading-screen__seal::after {
                font-size: 24px;
            }

            .loading-screen__complete-wrap {
                padding: 12px 12px 10px;
            }
        }

        @media (max-width: 360px) {
            .loading-screen__bubble {
                max-width: 96%;
                padding: 12px 12px;
            }

            .loading-screen__top {
                padding: 10px 10px;
            }

            .loading-screen__sub {
                font-size: 0.8rem;
            }
        }

        .loading-screen.is-complete .loading-screen__orbit-wrap {
            display: none;
        }
        .loading-screen.is-complete .loading-screen__complete-wrap {
            display: block;
        }

        .loading-screen__orbit {
            position: relative;
            width: 48px;
            height: 48px;
            animation: loadingOrbit 6s linear infinite;
        }
        .loading-screen.is-complete .loading-screen__orbit {
            animation-play-state: paused;
        }

        @keyframes loadingOrbit {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .loading-screen__orb-sun,
        .loading-screen__orb-moon {
            position: absolute;
            border-radius: 50%;
            z-index: 2;
        }

        .loading-screen__orb-sun {
            width: 14px;
            height: 14px;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            background: #E5A92B;
            animation: loadingOrbPulse 2s ease-in-out infinite;
        }
        .loading-screen.is-complete .loading-screen__orb-sun {
            animation-play-state: paused;
        }

        .loading-screen__orb-moon {
            width: 12px;
            height: 12px;
            top: auto;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            background: #C5CDD6;
            animation: loadingOrbPulse 2s ease-in-out 1s infinite;
        }
        .loading-screen.is-complete .loading-screen__orb-moon {
            animation-play-state: paused;
        }

        @keyframes loadingOrbPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        .loading-screen .loading-progress {
            margin-top: 0;
            width: 100%;
            height: 6px;
            background: rgba(191, 167, 121, 0.2);
            border-radius: 9999px;
            overflow: hidden;
        }

        .loading-screen .loading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--gold-soft), var(--gold));
            border-radius: 9999px;
            width: 0%;
            transition: width 0.15s ease-out;
        }
        .loading-screen .loading-progress-bar::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 18px;
            height: 100%;
            background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
            transform: translateX(8px);
            opacity: 0.75;
        }
        .loading-screen.is-complete .loading-progress-bar {
            background: linear-gradient(90deg, #10b981, #34d399);
        }

        @keyframes loadingShimmer {
            0% { background-position: 0 0, 0 0, 220% 0; }
            50% { background-position: 0 0, 0 0, 20% 0; }
            100% { background-position: 0 0, 0 0, -220% 0; }
        }
        @keyframes badgePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(160, 104, 0, 0.35); }
            50% { box-shadow: 0 0 0 6px rgba(160, 104, 0, 0); }
        }

        @media (max-width: 480px) {
            .loading-screen__bubble {
                padding: 14px 16px;
            }

            .loading-screen__label {
                font-size: 0.85rem;
            }
            .loading-screen__pct { font-size: 0.85rem; }
            .loading-screen__badge { font-size: 0.66rem; padding: 5px 9px; }

            .loading-screen__orbit-wrap {
                margin-bottom: 16px;
                min-height: 44px;
            }

            .loading-screen__orbit {
                width: 44px;
                height: 44px;
            }

            .loading-screen__orb-sun {
                width: 12px;
                height: 12px;
            }

            .loading-screen__orb-moon {
                width: 10px;
                height: 10px;
            }

            .loading-screen .loading-progress {
                height: 5px;
            }
        }

        .bubble ul {
            margin: 10px 0 0 18px;
            padding: 0;
        }

        .bubble li {
            margin-bottom: 4px;
        }

        .bubble strong {
            color: var(--gold-text);
            font-weight: 600;
        }

        .bubble-text {
            display: inline;
        }

        .typing-indicator .avatar.avatar-lyra {
            width: 40px;
            height: 40px;
            min-width: 40px;
            padding: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
        }

        /* Full-page redirect loader (opt-in → reading) */
        /* Opt-in connecting screen – 8s, exciting design with animations */
        .opt-in-connecting {
            position: fixed;
            inset: 0;
            z-index: 9998;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            opacity: 1;
            transition: opacity 0.4s ease;
        }

        .opt-in-connecting--exiting {
            opacity: 0;
        }

        .opt-in-connecting__burst {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            overflow: visible;
            z-index: 9999;
        }

        .opt-in-connecting__spark {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 4px;
            height: 4px;
            margin: -2px 0 0 -2px;
            background: var(--gold);
            border-radius: 50%;
            opacity: 0;
            box-shadow: 0 0 8px var(--gold-soft), 0 0 16px rgba(212, 175, 55, 0.5);
        }

        .opt-in-connecting__burst--active .opt-in-connecting__spark {
            animation: sparkOut 0.6s ease-out forwards;
        }

        .opt-in-connecting__spark--1 { --angle: 0deg; }
        .opt-in-connecting__spark--2 { --angle: 36deg; }
        .opt-in-connecting__spark--3 { --angle: 72deg; }
        .opt-in-connecting__spark--4 { --angle: 108deg; }
        .opt-in-connecting__spark--5 { --angle: 144deg; }
        .opt-in-connecting__spark--6 { --angle: 180deg; }
        .opt-in-connecting__spark--7 { --angle: 216deg; }
        .opt-in-connecting__spark--8 { --angle: 252deg; }
        .opt-in-connecting__spark--9 { --angle: 288deg; }
        .opt-in-connecting__spark--10 { --angle: 324deg; }

        @keyframes sparkOut {
            0% {
                opacity: 1;
                transform: rotate(var(--angle)) translate(0) scale(1);
            }
            100% {
                opacity: 0;
                transform: rotate(var(--angle)) translate(120px) scale(0);
            }
        }

        .opt-in-connecting__burst--active .opt-in-connecting__spark--1 { animation-delay: 0ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--2 { animation-delay: 30ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--3 { animation-delay: 60ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--4 { animation-delay: 90ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--5 { animation-delay: 120ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--6 { animation-delay: 30ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--7 { animation-delay: 60ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--8 { animation-delay: 90ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--9 { animation-delay: 120ms; }
        .opt-in-connecting__burst--active .opt-in-connecting__spark--10 { animation-delay: 150ms; }

        /* Main content entrance when sparks finish */
        #opt-in-main {
            opacity: 0;
        }

        #opt-in-main.opt-in-main--reveal {
            animation: mainReveal 0.5s 0.2s ease-out forwards;
        }

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

        .opt-in-connecting__overlay {
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 22, 37, 0.6) 0%, transparent 50%),
                radial-gradient(ellipse 60% 80% at 100% 100%, rgba(160, 104, 0, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse 50% 60% at 0% 100%, rgba(107, 91, 149, 0.1) 0%, transparent 50%),
                linear-gradient(180deg, rgba(10, 8, 18, 0.97) 0%, rgba(10, 8, 18, 0.92) 100%);
            pointer-events: none;
        }

        .opt-in-connecting__bg-anim {
            position: absolute;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .opt-in-connecting__orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(60px);
            opacity: 0.5;
        }

        .opt-in-connecting__orb--1 {
            width: 280px;
            height: 280px;
            left: -10%;
            top: -10%;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 70%);
            animation: orbFloat1 12s ease-in-out infinite;
        }

        .opt-in-connecting__orb--2 {
            width: 200px;
            height: 200px;
            right: -5%;
            top: 30%;
            background: radial-gradient(circle, rgba(160, 104, 0, 0.25) 0%, transparent 70%);
            animation: orbFloat2 10s ease-in-out infinite 1s;
        }

        .opt-in-connecting__orb--3 {
            width: 180px;
            height: 180px;
            left: 20%;
            bottom: -5%;
            background: radial-gradient(circle, rgba(107, 91, 149, 0.3) 0%, transparent 70%);
            animation: orbFloat3 14s ease-in-out infinite 2s;
        }

        .opt-in-connecting__orb--4 {
            width: 120px;
            height: 120px;
            right: 25%;
            top: 15%;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
            animation: orbFloat1 9s ease-in-out infinite 0.5s;
        }

        .opt-in-connecting__orb--5 {
            width: 160px;
            height: 160px;
            left: 40%;
            top: 60%;
            background: radial-gradient(circle, rgba(107, 91, 149, 0.2) 0%, transparent 70%);
            animation: orbFloat2 11s ease-in-out infinite 3s;
        }

        .opt-in-connecting__orb--6 {
            width: 100px;
            height: 100px;
            right: 15%;
            bottom: 20%;
            background: radial-gradient(circle, rgba(160, 104, 0, 0.2) 0%, transparent 70%);
            animation: orbFloat3 8s ease-in-out infinite 1.5s;
        }

        @keyframes orbFloat1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            25% { transform: translate(30px, -20px) scale(1.1); opacity: 0.7; }
            50% { transform: translate(-20px, 25px) scale(0.95); opacity: 0.4; }
            75% { transform: translate(15px, 15px) scale(1.05); opacity: 0.6; }
        }

        @keyframes orbFloat2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            33% { transform: translate(-40px, 10px) scale(1.15); opacity: 0.65; }
            66% { transform: translate(25px, -30px) scale(0.9); opacity: 0.45; }
        }

        @keyframes orbFloat3 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            25% { transform: translate(-25px, -35px) scale(1.08); opacity: 0.6; }
            50% { transform: translate(35px, 15px) scale(0.92); opacity: 0.4; }
            75% { transform: translate(-15px, 25px) scale(1.03); opacity: 0.55; }
        }

        .opt-in-connecting__shimmer {
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg,
                transparent 0%,
                transparent 40%,
                rgba(255, 255, 255, 0.02) 50%,
                transparent 60%,
                transparent 100%);
            background-size: 200% 100%;
            animation: shimmerSlide 4s ease-in-out infinite;
        }

        @keyframes shimmerSlide {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .opt-in-connecting__card {
            position: relative;
            z-index: 1;
            background: #1f1f1f url("https://i.pinimg.com/736x/d2/98/45/d298454d0ec1c4d186fa202143414dc8.jpg") center/cover no-repeat;
            border-radius: 28px;
            padding: 44px 48px 48px;
            text-align: center;
            max-width: 400px;
            border-top: 2px solid #B89C6F;
            animation: connectingCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            transform-origin: center center;
            overflow: hidden;
        }

        .opt-in-connecting__card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(31, 31, 31, 0.85) 0%, rgba(15, 15, 15, 0.92) 100%);
            border-radius: 28px;
            pointer-events: none;
        }

        .opt-in-connecting__card > * {
            position: relative;
            z-index: 1;
        }

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

        .opt-in-connecting__avatar-wrap {
            position: relative;
            width: 110px;
            height: 110px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: connectingTextIn 0.4s 0.15s ease-out backwards;
        }

        .opt-in-connecting__orbit {
            position: absolute;
            inset: 0;
            animation: orbOrbit 8s linear infinite;
        }

        @keyframes orbOrbit {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .opt-in-connecting__orb-sun,
        .opt-in-connecting__orb-moon {
            position: absolute;
            border-radius: 50%;
            z-index: 2;
        }

        .opt-in-connecting__orb-sun {
            width: 18px;
            height: 18px;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            background: #E5A92B;
        }

        .opt-in-connecting__orb-moon {
            width: 16px;
            height: 16px;
            top: auto;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            background: #C5CDD6;
        }

        .opt-in-connecting__avatar {
            width: 90px;
            height: 90px;
            margin: 0 auto;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid #B89C6F;
        }

        .opt-in-connecting__avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .opt-in-connecting__name {
            font-family: var(--head-font);
            font-size: 2.75rem;
            font-weight: 600;
            color: #ffffff;
            margin: 0 0 12px 0;
            letter-spacing: 0.02em;
            line-height: 1.15;
            animation: connectingTextIn 0.4s 0.2s ease-out backwards;
        }

        .opt-in-connecting__separator {
            display: block;
            width: 48px;
            height: 2px;
            margin: 0 auto 16px;
            background: #B89C6F;
            animation: connectingTextIn 0.4s 0.3s ease-out backwards;
        }

        .opt-in-connecting__title {
            font-family: var(--body-font);
            font-size: 1rem;
            color: #B89C6F;
            font-weight: 500;
            margin: 0 0 32px 0;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            animation: connectingTextIn 0.4s 0.35s ease-out backwards;
        }

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

        .opt-in-connecting__status-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-bottom: 32px;
            animation: connectingTextIn 0.4s 0.45s ease-out backwards;
        }

        .opt-in-connecting__status-label {
            font-family: var(--body-font);
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #8c8c8c;
        }

        .opt-in-connecting__status {
            font-family: var(--body-font);
            font-size: 1.125rem;
            font-weight: 500;
            color: #ffffff;
            text-align: center;
        }

        .opt-in-connecting__status-sub {
            font-family: var(--body-font);
            font-size: 1.125rem;
            font-weight: 500;
            color: #B89C6F;
            text-align: center;
        }

        .opt-in-connecting__timer-wrap {
            margin: 0 auto;
            text-align: center;
            animation: connectingTextIn 0.4s 0.55s ease-out backwards;
        }

        .opt-in-connecting__timer-text {
            font-family: "JetBrains Mono", "SF Mono", "Consolas", monospace;
            font-size: 4rem;
            font-weight: 700;
            color: #B89C6F;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.02em;
        }

        .opt-in-redirect-loader {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: auto;
        }
        .opt-in-redirect-loader[hidden] {
            display: none !important;
        }
        .opt-in-redirect-loader:not([hidden]) {
            opacity: 1;
        }
        .opt-in-redirect-loader__overlay {
            position: absolute;
            inset: 0;
            background: rgba(10, 8, 18, 0.92);
            pointer-events: auto;
        }
        .opt-in-redirect-loader__content {
            position: relative;
            text-align: center;
            padding: 2rem;
            z-index: 1;
        }
        .opt-in-redirect-loader__spinner {
            width: 56px;
            height: 56px;
            margin: 0 auto 1.5rem;
            border: 3px solid var(--border-subtle);
            border-top-color: var(--gold);
            border-radius: 50%;
            animation: opt-in-redirect-spin 1s linear infinite;
        }
        .opt-in-redirect-loader__label {
            font-family: var(--head-font);
            font-size: 1.25rem;
            color: var(--gold-soft);
            margin-bottom: 0.5rem;
        }
        .opt-in-redirect-loader__sub {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }
        @keyframes opt-in-redirect-spin {
            to { transform: rotate(360deg); }
        }

        .hidden {
            display: none !important;
        }

        .scroll-anchor {
            scroll-margin-bottom: 24px;
        }

        footer hr {
            margin-bottom: 20px;
        }
        footer a{
            margin: 0 10px !important;
        }