.subscription-user-name {
    color: inherit !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.subscription-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: #f4b400;
    font-size: 0.9em;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    vertical-align: 0.06em;
}

.subscription-star::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 1060;
    width: max-content;
    max-width: 240px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -2px);
    transition: opacity 0.08s ease, transform 0.08s ease;
}

.subscription-star::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    z-index: 1061;
    border: 5px solid transparent;
    border-bottom-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.08s ease;
}

.subscription-star:hover::after,
.subscription-star:focus::after,
.subscription-star:hover::before,
.subscription-star:focus::before {
    opacity: 1;
}

.subscription-star:hover::after,
.subscription-star:focus::after {
    transform: translate(-50%, 0);
}

.subscription-avatar {
    border: 2px solid #f4b400 !important;
    box-shadow:
        0 0 0 3px rgba(244, 180, 0, 0.2),
        0 4px 12px rgba(88, 69, 0, 0.16);
}

.subscription-avatar--sm {
    width: 40px;
    height: 40px;
}

.subscription-row {
    background: linear-gradient(90deg, rgba(255, 243, 205, 0.62), rgba(255, 255, 255, 0));
    position: relative;
}

.table .subscription-row > th,
.table .subscription-row > td {
    --bs-table-bg: rgba(255, 248, 226, 0.78);
    --bs-table-striped-bg: rgba(255, 244, 209, 0.78);
    --bs-table-hover-bg: rgba(255, 238, 184, 0.84);
    background-color: var(--bs-table-bg);
}

.table .subscription-row > th:first-child,
.table .subscription-row > td:first-child,
.subscription-row.list-group-item {
    border-left: 3px solid #f4b400;
}

.subscription-row.list-group-item {
    background: linear-gradient(90deg, rgba(255, 243, 205, 0.7), rgba(255, 255, 255, 0.98));
}

.subscription-row.list-group-item:hover {
    background: linear-gradient(90deg, rgba(255, 236, 178, 0.82), rgba(255, 255, 255, 0.98));
}

.subscription-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
}

.subscription-star--expired {
    color: #9aa3af;
    text-shadow: none;
}

.training-target-nudge {
    animation: trainingTargetNudge 1.1s ease-in-out;
    box-shadow: 0 0 0 6px rgba(255, 216, 77, 0.38), 0 0 0 12px rgba(255, 216, 77, 0.18) !important;
}

.training-help-nudge {
    position: fixed;
    left: 50%;
    top: 118px;
    z-index: 1070;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff7d6;
    border: 1px solid rgba(244, 180, 0, 0.55);
    color: #4f3a00;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.training-help-nudge.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes trainingTargetNudge {
    0%, 100% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.015);
    }
}

#subject-nav-buttons .deep-prep-nav-locked {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 40px !important;
    color: rgba(51, 51, 51, 0.45) !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: auto;
    white-space: nowrap;
}

#subject-nav-buttons .deep-prep-nav-locked.auth-required-nav {
    cursor: pointer;
}

#subject-nav-buttons .deep-prep-nav-locked:hover,
#subject-nav-buttons .deep-prep-nav-locked:focus {
    color: rgba(51, 51, 51, 0.58) !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

#subject-nav-buttons .deep-prep-nav-locked .bi {
    font-size: 0.8em;
}

#subject-nav-buttons .deep-prep-nav-locked::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 1060;
    width: max-content;
    max-width: 240px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -2px);
    transition: opacity 0.08s ease, transform 0.08s ease;
}

#subject-nav-buttons .deep-prep-nav-locked::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    z-index: 1061;
    border: 5px solid transparent;
    border-bottom-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.08s ease;
}

#subject-nav-buttons .deep-prep-nav-locked:hover::after,
#subject-nav-buttons .deep-prep-nav-locked:focus::after,
#subject-nav-buttons .deep-prep-nav-locked:hover::before,
#subject-nav-buttons .deep-prep-nav-locked:focus::before {
    opacity: 1;
}

#subject-nav-buttons .deep-prep-nav-locked:hover::after,
#subject-nav-buttons .deep-prep-nav-locked:focus::after {
    transform: translate(-50%, 0);
}
