.tg-feature-gate {
    position: relative;
}

.tg-feature-gate--locked {
    min-height: 30rem;
    overflow: hidden;
    border-radius: 0.75rem;
}

.tg-feature-gate--locked .tg-feature-gate__content {
    min-height: 30rem;
    pointer-events: none;
    user-select: none;
    opacity: 0.38;
    filter: blur(2px);
}

.tg-feature-gate--compact,
.tg-feature-gate--compact .tg-feature-gate__content {
    min-height: 18rem;
}

.tg-feature-gate__chart-preview {
    display: flex;
    height: 13rem;
    align-items: flex-end;
    gap: 5%;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom, rgb(241 245 249 / 0.6), rgb(226 232 240 / 0.9));
}

.tg-feature-gate__chart-preview span {
    flex: 1;
    border-radius: 0.35rem 0.35rem 0 0;
    background: rgb(25 199 193 / 0.7);
}

.tg-feature-gate__chart-preview span:nth-child(1) { height: 34%; }
.tg-feature-gate__chart-preview span:nth-child(2) { height: 52%; }
.tg-feature-gate__chart-preview span:nth-child(3) { height: 43%; }
.tg-feature-gate__chart-preview span:nth-child(4) { height: 69%; }
.tg-feature-gate__chart-preview span:nth-child(5) { height: 62%; }
.tg-feature-gate__chart-preview span:nth-child(6) { height: 86%; }

.tg-dashboard-feature-promo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgb(240 253 250), rgb(255 255 255) 52%);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.tg-dashboard-feature-promo__icon {
    display: grid;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: rgb(13 148 136);
    border-radius: 0.8rem;
    background: rgb(204 251 241);
}

.tg-dashboard-feature-promo__icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.tg-dashboard-feature-promo__copy {
    min-width: 0;
    flex: 1;
}

.tg-dashboard-feature-promo__badge {
    margin-bottom: 0.25rem;
    color: rgb(13 148 136);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tg-dashboard-feature-promo__title {
    color: rgb(17 24 39);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.tg-dashboard-feature-promo__description,
.tg-dashboard-feature-promo__hint {
    margin-top: 0.3rem;
    color: rgb(75 85 99);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tg-dashboard-feature-promo__action {
    flex: 0 0 auto;
}

.dark .tg-dashboard-feature-promo {
    border-color: rgb(255 255 255 / 0.12);
    background: linear-gradient(135deg, rgb(19 78 74 / 0.45), rgb(17 24 39) 52%);
}

.dark .tg-dashboard-feature-promo__title {
    color: white;
}

.dark .tg-dashboard-feature-promo__description,
.dark .tg-dashboard-feature-promo__hint {
    color: rgb(209 213 219);
}

.tg-feature-gate__overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgb(249 250 251 / 0.45);
    backdrop-filter: blur(1px);
}

.tg-feature-gate__card {
    width: min(100%, 34rem);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 20px 45px rgb(15 23 42 / 0.16);
}

.tg-feature-gate__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    place-items: center;
    color: rgb(13 148 136);
    border-radius: 9999px;
    background: rgb(204 251 241);
}

.tg-feature-gate__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.tg-feature-gate__badge {
    margin-bottom: 0.5rem;
    color: rgb(13 148 136);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tg-feature-gate__title {
    color: rgb(17 24 39);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.tg-feature-gate__description,
.tg-feature-gate__hint {
    margin: 0.75rem auto 1.25rem;
    color: rgb(75 85 99);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tg-feature-gate__hint {
    margin-bottom: 0;
}

.dark .tg-feature-gate__overlay {
    background: rgb(3 7 18 / 0.45);
}

.dark .tg-feature-gate__card {
    border-color: rgb(255 255 255 / 0.12);
    background: rgb(17 24 39 / 0.96);
}

.dark .tg-feature-gate__title {
    color: white;
}

.dark .tg-feature-gate__description,
.dark .tg-feature-gate__hint {
    color: rgb(209 213 219);
}

@media (max-width: 640px) {
    .tg-dashboard-feature-promo {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.25rem;
    }

    .tg-feature-gate__overlay {
        align-items: flex-start;
        padding: 1rem;
    }

    .tg-feature-gate__card {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}
