/* Auth gate modal — matches login/register card design */
.feed-login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        linear-gradient(145deg, rgba(10, 8, 18, 0.88) 0%, rgba(18, 14, 28, 0.92) 45%, rgba(22, 16, 34, 0.9) 100%),
        rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.feed-login-overlay.is-open {
    display: flex;
}

.feed-login-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 36px 32px 32px;
    border-radius: 24px;
    text-align: left;
    background: linear-gradient(160deg, #252238 0%, #1a1728 100%);
    border: 1px solid rgba(167, 139, 250, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

.feed-login-modal__kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.feed-login-modal__kicker i {
    margin-right: 6px;
    opacity: 0.9;
}

.feed-login-modal__title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.feed-login-modal__lead {
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

.feed-login-modal__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.feed-login-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.feed-login-modal__btn--primary {
    border: 1px solid rgba(167, 139, 250, 0.45);
    background: linear-gradient(135deg, #7a51e2 0%, #a78bfa 100%);
    box-shadow: 0 4px 14px rgba(122, 81, 226, 0.28);
    color: #fff;
}

.feed-login-modal__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(122, 81, 226, 0.38);
    background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%);
    color: #fff;
}

.feed-login-modal__btn--secondary {
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(0, 0, 0, 0.18);
    color: #c4b5fd;
}

.feed-login-modal__btn--secondary:hover {
    transform: translateY(-1px);
    background: rgba(122, 81, 226, 0.14);
    border-color: rgba(167, 139, 250, 0.55);
    color: #ede0ff;
}

.feed-login-modal__footnote {
    margin: 20px 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

.feed-login-modal__footnote a {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
}

.feed-login-modal__footnote a:hover {
    color: #ede0ff;
    text-decoration: underline;
}

.feed-login-modal .auth-dismiss-btn {
    position: absolute;
}

button.feed-login-modal__btn {
    cursor: pointer;
}

/* Action modal (subscribe confirm, token warnings) — same design system */
.gdl-action-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        linear-gradient(145deg, rgba(10, 8, 18, 0.88) 0%, rgba(18, 14, 28, 0.92) 45%, rgba(22, 16, 34, 0.9) 100%),
        rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gdlModalFadeIn 0.25s ease;
}

.gdl-action-overlay.hiding {
    animation: gdlModalFadeOut 0.25s ease forwards;
}

.gdl-action-modal.feed-login-modal {
    text-align: left;
    padding: 32px 28px 28px;
    animation: gdlModalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gdl-action-modal.feed-login-modal.hiding {
    animation: gdlModalSlideOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feed-login-modal__kicker--warning {
    color: #fbbf24;
}

.gdl-action-modal__token {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(167, 139, 250, 0.22);
}

.gdl-action-modal__token-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c4b5fd;
    letter-spacing: -0.02em;
}

.gdl-action-modal__token-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

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

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

@keyframes gdlModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gdlModalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
}

/* Inline gate overlays (live stream, content blur, etc.) */
.gdl-inline-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(145deg, rgba(10, 8, 18, 0.88) 0%, rgba(18, 14, 28, 0.92) 45%, rgba(22, 16, 34, 0.9) 100%),
        rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
}

.gdl-inline-gate-card.feed-login-modal {
    width: min(420px, 100%);
    padding: 28px 24px 24px;
    text-align: left;
}

.gdl-inline-gate-card .feed-login-modal__title {
    font-size: 1.65rem;
}

.gdl-inline-gate-card .feed-login-modal__lead {
    margin-bottom: 20px;
}

.content-blur-overlay.gdl-inline-gate-overlay {
    border-radius: 0;
}

@media (max-width: 600px) {
    .feed-login-modal {
        padding: 28px 22px 24px;
    }

    .feed-login-modal__title {
        font-size: 1.65rem;
    }
}
