.premium-gate-host {
    position: relative;
}

.premium-gate-host--dimmed > :not([data-premium-gate-overlay]) {
    pointer-events: none;
    user-select: none;
}

.premium-gate-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: inherit;
    pointer-events: auto;
}

.premium-gate-overlay--fixed-panel {
    position: absolute;
    inset: 0;
}

.premium-gate-card {
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.premium-gate-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.premium-gate-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1E4B70;
    letter-spacing: -0.01em;
}

.premium-gate-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #4b5563;
}

.premium-gate-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1E4B70 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 75, 112, 0.28);
}

.premium-gate-cta:active {
    transform: scale(0.98);
}

/* Legacy paywall panels – same look */
.po-paywall,
.paywall-panel {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    pointer-events: auto;
}

.po-paywall.hidden,
.paywall-panel.hidden {
    display: none;
}

.po-paywall-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.po-paywall-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1E4B70;
    margin: 0;
}

.po-paywall-text {
    font-size: 0.84rem;
    color: #4b5563;
    margin: 8px 0 0;
    max-width: 280px;
    line-height: 1.5;
}

.po-paywall-btn {
    margin-top: 14px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1E4B70 0%, #2563eb 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
}

.po-stats-dimmed {
    opacity: 0.35;
    pointer-events: none;
}

.meal-photo-premium-hint {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 75, 112, 0.06) 0%, rgba(37, 99, 235, 0.09) 100%);
    border: 1px solid rgba(30, 75, 112, 0.18);
    box-shadow: 0 2px 10px rgba(30, 75, 112, 0.07);
}

.meal-photo-premium-hint.hidden {
    display: none;
}

.meal-photo-premium-hint__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meal-photo-premium-hint__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.meal-photo-premium-hint__title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1E4B70;
    letter-spacing: -0.01em;
}

.meal-photo-premium-hint__text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #4b5563;
}

.meal-photo-premium-hint__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 2px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1E4B70 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(30, 75, 112, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.meal-photo-premium-hint__cta:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(30, 75, 112, 0.2);
}
