/* ═══════════════════════════════════════════════════════════
   Paywall Modal Styles — Free Trial CTA
   ═══════════════════════════════════════════════════════════ */

/* Fullscreen overlay */
#paywallModal .modal-dialog {
    max-width: 420px;
    margin: auto;
}

#paywallModal .modal-content {
    background: linear-gradient(160deg, #0f0c29 0%, #1a1333 40%, #24243e 100%);
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Layout wrapper */
.paywall-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image carousel area */
.paywall-image-carousel {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.paywall-image-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.paywall-image-carousel img.active {
    opacity: 1;
}

/* Gradient overlay on image */
.paywall-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #0f0c29 0%, rgba(15, 12, 41, 0.8) 40%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Character face overlay (when in chat) */
.paywall-character-face {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(181, 138, 254, 0.6);
    object-fit: cover;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Trial badge */
.paywall-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(181, 138, 254, 0.25) 0%, rgba(108, 92, 231, 0.25) 100%);
    border: 1px solid rgba(181, 138, 254, 0.4);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
}

.paywall-trial-badge i {
    font-size: 0.85rem;
    color: #b58afe;
}

/* Main content */
.paywall-body {
    padding: 24px 28px 28px;
    text-align: center;
    position: relative;
    z-index: 5;
    margin-top: -40px;
}

.paywall-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.paywall-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Feature pills */
.paywall-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.paywall-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.paywall-feature-pill i {
    font-size: 0.75rem;
    color: #b58afe;
}

/* CTA Button */
.paywall-cta-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #b58afe 0%, #6c5ce7 50%, #a855f7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(181, 138, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.paywall-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.paywall-cta-btn:hover::before {
    left: 100%;
}

.paywall-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(181, 138, 254, 0.55);
}

.paywall-cta-btn:active {
    transform: translateY(0);
}

.paywall-cta-subtext {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
}

/* Dismiss link */
.paywall-dismiss {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.paywall-dismiss:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll content wrapper — default just flows */
.paywall-scroll-content {
    /* Flows normally on non-mobile */
}

/* CTA footer wrapper — default just flows */
.paywall-cta-footer {
    /* Flows normally on non-mobile */
}

/* ─── One-Time Offer urgency badge ─── */
.paywall-onetime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(251, 113, 3, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
    border: 1px solid rgba(251, 113, 3, 0.5);
    color: #fdba74;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 20px;
    position: relative;
}

.paywall-onetime-badge i {
    color: #fb7103;
    font-size: 0.75rem;
}

.paywall-onetime-pulse {
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb7103;
    animation: paywallOnetimePulse 1.5s infinite;
}

@keyframes paywallOnetimePulse {
    0%   { box-shadow: 0 0 0 0 rgba(251, 113, 3, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(251, 113, 3, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 113, 3, 0); }
}

/* Urgency note below subtitle */
.paywall-urgency-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #fca5a5;
    margin-bottom: 18px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 6px 12px;
}

.paywall-urgency-note i {
    color: #f87171;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   Last Chance Modal Styles
   ═══════════════════════════════════════════════════════════ */

.paywall-lastchance-modal {
    background: linear-gradient(160deg, #0f0c29 0%, #1c1040 40%, #2d1b4e 100%);
    border: 1px solid rgba(251, 113, 3, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(251, 113, 3, 0.1);
}

.paywall-lastchance-body {
    padding: 32px 28px 28px;
    text-align: center;
}

/* Last chance urgency badge */
.paywall-lastchance-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    position: relative;
    margin-bottom: 20px;
}

.paywall-lastchance-badge i {
    color: #ef4444;
}

.paywall-lastchance-pulse {
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: paywallLastchancePulse 1.2s infinite;
}

@keyframes paywallLastchancePulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
    70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Icon */
.paywall-lastchance-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
    animation: paywallGiftBounce 2s ease-in-out infinite;
}

@keyframes paywallGiftBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Title */
.paywall-lastchance-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.paywall-lastchance-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Deal box */
.paywall-lastchance-deal-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(181, 138, 254, 0.25);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paywall-lastchance-deal-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.paywall-lastchance-deal-item .deal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(181, 138, 254, 0.3) 0%, rgba(108, 92, 231, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #c4b5fd;
    flex-shrink: 0;
}

.paywall-lastchance-deal-item .deal-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.paywall-lastchance-deal-item .deal-text strong {
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 700;
}

.paywall-lastchance-deal-item .deal-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* CTA button */
.paywall-lastchance-cta-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #dc2626 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    position: relative;
    overflow: hidden;
}

.paywall-lastchance-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.paywall-lastchance-cta-btn:hover::before {
    left: 100%;
}

.paywall-lastchance-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.55);
}

.paywall-lastchance-cta-btn:active {
    transform: translateY(0);
}

.paywall-lastchance-cta-subtext {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Decline button */
.paywall-lastchance-decline-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
}

.paywall-lastchance-decline-btn:hover {
    color: rgba(255, 255, 255, 0.55);
}

/* Animation for last-chance modal entrance */
#paywallLastChanceModal.show .modal-dialog {
    animation: paywallLastChanceSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes paywallLastChanceSlideUp {
    from {
        transform: translateY(80px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Messages remaining counter */
.paywall-msg-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.paywall-msg-counter i {
    color: #f87171;
}

/* Inline paywall banner (shown in chat) */
.paywall-inline-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(181, 138, 254, 0.15) 0%, rgba(108, 92, 231, 0.15) 100%);
    border: 1px solid rgba(181, 138, 254, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 12px auto;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paywall-inline-banner:hover {
    background: linear-gradient(135deg, rgba(181, 138, 254, 0.25) 0%, rgba(108, 92, 231, 0.25) 100%);
    border-color: rgba(181, 138, 254, 0.5);
    transform: translateY(-1px);
}

.paywall-inline-banner .banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(181, 138, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #b58afe;
    flex-shrink: 0;
}

.paywall-inline-banner .banner-text {
    flex: 1;
}

.paywall-inline-banner .banner-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.paywall-inline-banner .banner-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.paywall-inline-banner .banner-arrow {
    color: rgba(181, 138, 254, 0.6);
    font-size: 1rem;
}

/* Dots for carousel */
.paywall-carousel-dots {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.paywall-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.paywall-carousel-dots .dot.active {
    background: #b58afe;
    width: 18px;
    border-radius: 3px;
}

/* Animation for modal entrance */
#paywallModal.show .modal-dialog {
    animation: paywallSlideUp 0.4s ease-out;
}

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

/* ─── Large screens: side-by-side portrait layout ─── */
@media (min-width: 768px) {
    #paywallModal .modal-dialog {
        max-width: 780px;
    }

    .paywall-layout {
        flex-direction: row;
        min-height: 520px;
    }

    .paywall-image-carousel {
        width: 45%;
        flex-shrink: 0;
        height: auto;
        min-height: 520px;
        border-radius: 24px 0 0 24px;
    }

    .paywall-image-overlay {
        height: 40%;
        background: linear-gradient(to top, #0f0c29 0%, rgba(15, 12, 41, 0.6) 50%, transparent 100%);
    }

    .paywall-carousel-dots {
        bottom: 20px;
    }

    .paywall-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 0;
        padding: 32px 36px;
        overflow: hidden;
    }

    .paywall-scroll-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .paywall-scroll-content::-webkit-scrollbar {
        display: none;
    }
}

/* ─── Mobile: Scroll-over-image bottom sheet ─── */
@media (max-width: 480px) {
    /* Modal fills the full screen */
    #paywallModal .modal-dialog {
        max-width: 100%;
        height: 100dvh;
        height: 100vh; /* fallback */
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    #paywallModal .modal-content {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /*
     * Layout becomes a BLOCK scroll container.
     * The image is sticky at the top; the body slides up over it
     * as the user scrolls. The body's min-height ensures there is
     * enough scroll distance to push the image almost fully offscreen.
     */
    .paywall-layout {
        flex: 1;
        display: block;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .paywall-layout::-webkit-scrollbar {
        display: none;
    }

    /* Image: sticky at top — stays put while body scrolls over it */
    .paywall-image-carousel {
        height: 62vh;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 1;
        width: 100%;
    }

    /* Body: rides in normal flow below the image, slides over it */
    .paywall-body {
        position: relative;
        z-index: 2;
        margin-top: -60px;       /* peek ~60px of sheet above image bottom */
        padding: 0;
        border-radius: 24px 24px 0 0;
        background: linear-gradient(170deg, #120e30 0%, #1a1333 40%, #24243e 100%);
        min-height: 90vh;        /* tall enough so full scroll ~= 90% image hidden */
        display: flex;
        flex-direction: column;
    }

    /* Drag-handle pill at the top of the sheet */
    .paywall-body::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.22);
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    /* Scrollable content: natural flow, no inner overflow */
    .paywall-scroll-content {
        padding: 14px 20px 8px;
        overflow: visible;
        flex: 1;
    }

    /* CTA footer: sticky at the bottom of the scroll viewport — always visible */
    .paywall-cta-footer {
        position: sticky;
        bottom: 0;
        padding: 4px 20px 32px;
        z-index: 10;
        background: linear-gradient(to bottom, rgba(18, 14, 48, 0.95) 0%, #1a1333 60%, #24243e 100%);
    }

    /* Fade-out above CTA to signal more content */
    .paywall-cta-footer::before {
        content: '';
        position: absolute;
        top: -28px;
        left: 0;
        right: 0;
        height: 28px;
        background: linear-gradient(to bottom, transparent, rgba(18, 14, 48, 0.95));
        pointer-events: none;
    }

    /* Slightly smaller title on mobile */
    .paywall-title {
        font-size: 1.35rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Gallery Premium Upsell — Shared Lock Overlay Styles
   Used across dashboard, chat, and character pages
   ═══════════════════════════════════════════════════════════ */

/* Trial badge in lock overlays */
.ig-lock-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 2px;
}

/* Orange CTA button for gallery premium upsell */
.ig-lock-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.4);
    text-decoration: none;
    white-space: nowrap;
    margin-top: 4px;
}

.ig-lock-cta-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 5px 18px rgba(255, 107, 0, 0.55);
}

.ig-lock-cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* Premium unlock text in overlays */
.gallery-premium-unlock-text {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    padding: 0 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ═══════════════════════════════════════════════════════════
   Gallery Teaser — Blurred intro image on new chat
   ═══════════════════════════════════════════════════════════ */

/* Card wrapper */
.gallery-teaser-card {
    position: relative;
    max-width: 270px;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(244, 114, 182, 0.6);
    box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(244, 114, 182, 0.22);
}

/* Image wrap */
.gti-image-wrap {
    position: relative;
    line-height: 0;
    min-height: 280px;
}

/* Blurred photo */
.gti-img {
    display: block;
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    filter: blur(8px) brightness(0.52) saturate(1.1);
    transform: scale(1.06);
    transition: filter 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

/* Revealed (premium tapped "View") */
.gti-img--revealed {
    filter: none !important;
    transform: scale(1) !important;
}

/* Full overlay backdrop */
.gti-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    /* Reset line-height: 0 inherited from .gti-image-wrap */
    line-height: normal;
    background: linear-gradient(
        180deg,
        rgba(12, 8, 28, 0.42) 0%,
        rgba(22, 8, 38, 0.68) 45%,
        rgba(8, 4, 20, 0.95) 100%
    );
}

/* ── Corner badges ──────────────────────────────────────── */
.gti-corner-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gti-badge {
    font-size: 0.62rem;
    line-height: 1.4;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.gti-badge--fire {
    background: rgba(251, 113, 73, 0.2);
    border-color: rgba(251, 113, 73, 0.35);
    color: #fdba74;
}

/* ── Center content block ───────────────────────────────── */
.gti-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 52px 20px 16px;
    text-align: center;
}

/* Styled icon replacing emoji */
.gti-icon i {
    font-size: 2.6rem;
    color: rgba(244, 114, 182, 0.9);
    filter:
        drop-shadow(0 0 10px rgba(244, 114, 182, 0.7))
        drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    animation: gti-icon-pulse 2.8s ease-in-out infinite;
}

.gti-icon--premium i {
    color: #fcd34d;
    filter:
        drop-shadow(0 0 10px rgba(252, 211, 77, 0.65))
        drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@keyframes gti-icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(0.94); }
}

/* Hint text — tight, centered */
.gti-hint {
    color: #f0d9ff;
    font-size: 0.86rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    letter-spacing: 0.01em;
}

/* ── Unlock CTA button ──────────────────────────────────── */
.gti-unlock-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 28px;
    background: linear-gradient(125deg, #f472b6 0%, #c026d3 55%, #7c3aed 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.4),
        0 4px 20px rgba(192, 38, 211, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.gti-unlock-btn:hover,
.gti-unlock-btn:focus {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.5),
        0 6px 28px rgba(192, 38, 211, 0.75),
        inset 0 1px 0 rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}

/* Shine sweep animation */
.gti-btn-shine {
    position: absolute;
    top: 0;
    left: -110%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 100%
    );
    transform: skewX(-18deg);
    animation: gti-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gti-shine {
    0%   { left: -110%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

/* ── Image tools strip ──────────────────────────────────── */
.gti-tools-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 14px 14px;
    background: rgba(0, 0, 0, 0.35);
}

/* Faded gradient separator — transparent at both edges */
.gti-tools-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(244, 114, 182, 0.45) 25%,
        rgba(244, 114, 182, 0.45) 75%,
        transparent 100%
    );
}

.gti-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(245, 208, 254, 0.65);
    font-size: 0.6rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex: 1;
}

.gti-tool i {
    font-size: 1.05rem;
    color: rgba(244, 114, 182, 0.8);
    transition: color 0.15s;
}

.gti-tool:hover i {
    color: #f9a8d4;
}

/* ═══════════════════════════════════════════════════════════
   In-Chat Limit Banner — shown in #chatMessages when free
   message limit is reached
   ═══════════════════════════════════════════════════════════ */

.chat-paywall-limit-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 20px 12px 8px;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.92) 0%, rgba(26, 19, 51, 0.96) 100%);
    border: 1px solid rgba(181, 138, 254, 0.35);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(181, 138, 254, 0.12);
}

.chat-paywall-limit-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 4px;
}

.chat-paywall-limit-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-paywall-limit-title {
    color: #f0e6ff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
}

.chat-paywall-limit-subtitle {
    color: #a78bca;
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
}

.chat-paywall-limit-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #b58afe, #a855f7);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

.chat-paywall-limit-cta:hover,
.chat-paywall-limit-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
    color: #fff;
    text-decoration: none;
}
