.tg-auth-wrap {
    max-width: 460px;
    margin: 24px auto;
}

.tg-manage-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.tg-card {
    background: var(--ui-block-bg, #ffffff);
    border: 1px solid var(--ui-block-border-color, #e6e8ec);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.tg-card-body {
    padding: 28px 24px;
}

.tg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tg-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tg-header-center {
    text-align: center;
    margin-bottom: 20px;
}

.tg-brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #229ed9;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tg-header-center .tg-brand-badge {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.tg-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading-color, #1e2022);
}

.tg-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-lighter-color, #6f7782);
}

.tg-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.tg-status-pill.is-bound {
    background: rgba(39, 174, 96, 0.12);
    color: #218838;
}

.tg-status-pill.is-unbound {
    background: rgba(111, 119, 130, 0.14);
    color: var(--text-lighter-color, #5c6570);
}

.tg-uid-box {
    background: var(--ui-block-bg-secondary, rgba(127, 140, 155, 0.08));
    border: 1px solid var(--ui-block-border-color, #e6e8ec);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.tg-uid-label {
    font-size: 13px;
    color: var(--text-lighter-color, #6f7782);
}

.tg-uid-value {
    font-size: 15px;
    font-weight: 600;
}

.tg-steps {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--text-body-color, #393d45);
    font-size: 14px;
    line-height: 1.7;
}

.tg-widget-box {
    border: 1px dashed var(--ui-block-border-color, #d5d9e0);
    border-radius: 6px;
    padding: 20px 16px;
    text-align: center;
    background: var(--ui-block-bg-secondary, rgba(127, 140, 155, 0.04));
    margin: 16px 0;
    min-height: 82px;
}

.tg-widget-fallback {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-lighter-color, #6f7782);
}

.tg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.tg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--text-lighter-color, #8c95a0);
    font-size: 13px;
}

.tg-divider::before,
.tg-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ui-block-border-color, #e6e8ec);
}

.tg-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tg-feature-item {
    background: var(--ui-block-bg, #ffffff);
    border: 1px solid var(--ui-block-border-color, #e6e8ec);
    border-radius: 6px;
    padding: 16px;
}

.tg-feature-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading-color, #1e2022);
}

.tg-feature-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-lighter-color, #6f7782);
}

.tg-rebind-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ui-block-border-color, #e6e8ec);
}

@media (max-width: 767px) {
    .tg-features {
        grid-template-columns: 1fr;
    }

    .tg-card-body {
        padding: 20px 16px;
    }
}
