/* Learner engagement — shared kid-friendly cards */
.le-badge-section,
.le-quest-card,
.le-weekly-card,
.le-a365-section,
.le-program-points {
    margin: 0.75rem 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #efefef;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.le-badge-header,
.le-quest-card-head,
.le-weekly-head,
.le-a365-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.le-badge-title,
.le-quest-card-title,
.le-weekly-title,
.le-a365-title,
.le-program-points-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #262626;
}

.le-badge-count,
.le-weekly-week,
.le-a365-teacher {
    font-size: 0.72rem;
    color: #737373;
}

.le-badge-loading,
.le-badge-empty,
.le-weekly-empty,
.le-quest-done-msg,
.le-program-points-empty {
    margin: 0;
    font-size: 0.82rem;
    color: #737373;
    line-height: 1.45;
}

.le-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.le-badge-grid--trophy {
    grid-template-columns: repeat(auto-fill, minmax(3.75rem, 1fr));
    gap: 0.5rem;
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.le-badge-grid--expanded {
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.le-trophy-page .le-badge-grid--expanded {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.le-trophy-page .le-badge-section {
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 1rem 1rem;
}

.le-trophy-page .le-badge-item {
    padding: 0.65rem 0.35rem 0.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.le-trophy-page .le-badge-item--locked {
    background: #fafafa;
}

.le-badge-item-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
}

.le-badge-fallback--hidden {
    display: none;
}

.le-trophy-page .le-badge-img {
    width: 3rem;
    height: 3rem;
}

.le-trophy-page .le-badge-fallback {
    font-size: 1.85rem;
}

.le-trophy-page .le-badge-name {
    font-size: 0.68rem;
    margin-top: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.le-trophy-page .le-badge-hint,
.le-trophy-page .le-badge-awarded {
    font-size: 0.58rem;
    margin-top: 0.1rem;
}

@media (min-width: 480px) {
    .le-badge-grid--expanded,
    .le-trophy-page .le-badge-grid--expanded {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.le-badge-awarded {
    font-size: 0.55rem;
    font-weight: 600;
    color: #16a34a;
    line-height: 1.15;
}

.le-trophy-page {
    padding: 0 0 5.5rem;
}

.le-trophy-page-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem 0.35rem;
}

.le-trophy-page-head-text {
    min-width: 0;
}

.le-trophy-page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #171717;
}

.le-trophy-page-summary {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #737373;
}

.le-trophy-page .segment-tab-bar {
    margin: 0.5rem 1rem 0.85rem;
}

.le-trophy-page .le-badge-section--list {
    margin: 0 1rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.le-badge-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.le-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.le-badge-row-art {
    position: relative;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.le-badge-row-img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.le-badge-row--locked .le-badge-row-img {
    filter: grayscale(1);
    opacity: 0.55;
}

.le-badge-row-fallback {
    font-size: 1.55rem;
    line-height: 1;
}

.le-badge-row-fallback--hidden {
    display: none;
}

.le-badge-row--locked {
    opacity: 0.85;
    background: #fafafa;
}

.le-badge-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.le-badge-row-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
}

.le-badge-row-desc {
    font-size: 0.74rem;
    font-weight: 500;
    color: #737373;
    line-height: 1.35;
}

.le-badge-row-meta {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #16a34a;
    line-height: 1.3;
    text-align: right;
    max-width: 6.5rem;
}

.le-badge-row-meta--hint {
    color: #a3a3a3;
}

.le-trophy-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #efefef;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    color: inherit;
    text-decoration: none;
}

.le-trophy-cta:hover {
    border-color: #e5e5e5;
    background: #fafafa;
}

.le-trophy-cta-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.le-trophy-cta-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #262626;
}

.le-trophy-cta-desc {
    font-size: 0.72rem;
    font-weight: 600;
    color: #737373;
}

.le-trophy-cta-arrow {
    font-size: 1.35rem;
    font-weight: 700;
    color: #a3a3a3;
    line-height: 1;
}

.le-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}

.le-badge-item--locked {
    opacity: 0.55;
}

.le-badge-item--locked .le-badge-img {
    filter: grayscale(1);
    opacity: 0.65;
}

.le-badge-img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.le-badge-grid--trophy .le-badge-img {
    width: 2.35rem;
    height: 2.35rem;
}

.le-badge-fallback {
    font-size: 1.75rem;
    line-height: 1;
}

.le-badge-grid--trophy .le-badge-fallback {
    font-size: 1.45rem;
}

.le-badge-name {
    font-size: 0.62rem;
    font-weight: 600;
    color: #525252;
    line-height: 1.2;
}

.le-badge-hint {
    font-size: 0.58rem;
    font-weight: 600;
    color: #a3a3a3;
    line-height: 1.15;
}

.le-quest-progress-wrap {
    margin-bottom: 0.65rem;
}

.le-quest-progress-track,
.le-weekly-bar {
    height: 0.32rem;
    border-radius: 999px;
    background: #f3f4f6;
    overflow: hidden;
}

.le-quest-progress-fill,
.le-weekly-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 0.3s ease;
}

.le-quest-progress-meta,
.le-weekly-meta {
    margin: 0.15rem 0 0;
    font-size: 0.65rem;
    color: #737373;
}

.le-quest-steps {
    margin: 0 0 0.65rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.le-quest-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #525252;
}

.le-quest-step--done {
    color: #16a34a;
}

.le-quest-step-icon {
    width: 1rem;
    text-align: center;
    font-weight: 700;
}

.le-quest-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
}

.le-quest-badge--done {
    background: #dcfce7;
    color: #15803d;
}

.le-quest-claim-btn {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.le-quest-claim-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.le-quest-error,
.le-a365-error {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: #b91c1c;
}

.le-weekly-summary {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6366f1;
}

.le-weekly-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.le-weekly-item {
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #f3f4f6;
}

.le-weekly-item--done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.le-weekly-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.le-weekly-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.le-weekly-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #262626;
    line-height: 1.2;
}

.le-weekly-angel-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: #fce7f3;
    color: #be185d;
    font-size: 0.62rem;
    font-weight: 700;
    vertical-align: middle;
}

.le-weekly-reward {
    font-size: 0.68rem;
    font-weight: 700;
    color: #f59e0b;
    white-space: nowrap;
}

.le-weekly-collect-btn {
    padding: 0.2rem 0.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}

.le-weekly-desc {
    margin: 0.12rem 0 0.22rem;
    font-size: 0.68rem;
    line-height: 1.25;
    color: #737373;
}

.le-weekly-progress-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.le-weekly-progress-row .le-weekly-bar {
    flex: 1;
    min-width: 0;
}

.le-weekly-meta-inline {
    font-size: 0.65rem;
    font-weight: 600;
    color: #737373;
    white-space: nowrap;
    flex-shrink: 0;
}

.le-a365-streak {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ea580c;
}

.le-a365-habits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.le-a365-habit {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.le-a365-habit--done {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.le-a365-habit-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    font-size: 0.72rem;
    font-weight: 800;
}

.le-a365-habit--done .le-a365-habit-check {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

/* Activities hub — activity boxes */
.le-activities-hub {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.le-activities-hub-head {
    margin-bottom: 1rem;
}

.le-activities-hub-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #262626;
}

.le-activities-hub-sub {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.le-activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 720px) {
    .le-activities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .le-activities-grid--with-wordle,
    .le-activities-grid--extra-1 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .le-activities-grid--extra-2 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.le-activities-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    min-height: 8rem;
    padding: 1rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.le-activities-box:hover {
    border-color: #ea580c;
    background: #fff7ed;
}

.le-activities-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: #ea580c;
}

.le-activities-box-icon svg {
    width: 100%;
    height: 100%;
}

.le-activities-box-title {
    font-size: 1rem;
    font-weight: 800;
    color: #262626;
}

.le-activities-box-sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.le-activities-box--locked {
    position: relative;
    overflow: hidden;
    filter: grayscale(0.55);
    opacity: 0.88;
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.le-activities-box--locked:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.le-activities-box--locked .le-activities-box-icon,
.le-activities-box--locked .le-activities-box-title,
.le-activities-box--locked .le-activities-box-sub {
    opacity: 0.55;
}

.le-activities-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(248, 250, 252, 0.35), rgba(226, 232, 240, 0.55));
}

.le-activities-lock-chains {
    position: absolute;
    inset: 8% 4%;
    width: 92%;
    height: 84%;
    color: #64748b;
    opacity: 0.85;
}

.le-activities-lock-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

.le-activities-lock-badge svg {
    width: 1.25rem;
    height: 1.25rem;
}

.le-activities-lock-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.45);
}

.le-activities-lock-modal {
    width: min(22rem, 100%);
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.le-activities-lock-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
}

.le-activities-lock-modal-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.le-activities-lock-modal-title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.le-activities-lock-modal-text {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #64748b;
}

.le-activities-lock-modal .btn-primary {
    min-width: 6.5rem;
}

/* Activities mini-tabs (Daily / Shop / 365 days) — legacy; hub replaced entry flow */
.le-activities-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
    padding: 0.3rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.cosmetic-shop-page .le-activities-tabs,
.le-a365-page .le-activities-tabs {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.le-activities-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.4rem 0.55rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
}

.le-activities-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.7);
}

.le-activities-tab--active {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.le-a365-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.le-a365-page-status {
    margin: 1.5rem 0;
    text-align: center;
    color: #737373;
    font-size: 0.9rem;
}

.le-a365-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 2rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.le-a365-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.le-a365-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #262626;
}

.le-a365-card-text {
    margin: 0;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}

.le-a365-card--locked {
    background: #fafafa;
}

.le-a365-card--soon {
    background: linear-gradient(160deg, #fff7ed 0%, #fff 55%);
    border-color: #fed7aa;
}

.le-program-points-balance {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.le-program-points-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #6366f1;
}

.le-program-points-label {
    font-size: 0.82rem;
    color: #737373;
}

.le-program-points-role {
    margin: 0;
    font-size: 0.75rem;
    color: #737373;
}

.le-profile-links {
    margin: 0.75rem 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #efefef;
}

.le-profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #262626;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.le-profile-link:hover {
    background: #fafafa;
}

.le-profile-link::after {
    content: "›";
    color: #a8a8a8;
}

.le-profile-link--angel {
    color: #7c3aed;
    font-weight: 700;
}

.le-leaderboard-card {
    margin: 0.75rem 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #efefef;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.le-leaderboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.le-leaderboard-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #262626;
}

.le-leaderboard-scope {
    font-size: 0.72rem;
    color: #737373;
    text-transform: capitalize;
}

.le-leaderboard-desc,
.le-leaderboard-loading,
.le-leaderboard-empty,
.le-leaderboard-error {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: #737373;
    line-height: 1.45;
}

.le-leaderboard-error {
    color: #dc2626;
}

.le-leaderboard-opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #262626;
    cursor: pointer;
}

.le-leaderboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.le-leaderboard-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.84rem;
}

.le-leaderboard-item--me {
    background: #faf5ff;
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    font-weight: 700;
}

.le-leaderboard-rank {
    color: #737373;
    font-weight: 700;
}

.le-leaderboard-score {
    color: #7c3aed;
    font-weight: 700;
    white-space: nowrap;
}

.le-friend-strip {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #efefef;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.le-friend-strip-checkin {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7c3aed;
}

.le-friend-strip-fire {
    margin-right: 0.25rem;
}

.le-friend-strip-scroll {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.le-friend-strip-item {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 14rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ede9fe;
    color: inherit;
    text-decoration: none;
}

.le-friend-strip-item--static {
    cursor: default;
}

.le-friend-strip-body {
    min-width: 0;
}

.le-friend-strip-msg {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #262626;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.le-friend-strip-time {
    font-size: 0.65rem;
    color: #a3a3a3;
}

.ig-profile-avatar--angel .ig-profile-avatar-inner .forum-avatar--lg,
.ig-profile-avatar--angel:not(:has(.ig-profile-avatar-xp)) .forum-avatar--lg {
    box-shadow: 0 0 0 3px #fbcfe8, 0 0 0 5px #f472b6, 0 0 12px rgba(244, 114, 182, 0.35);
}

.ig-profile-avatar--angel .ig-profile-xp-ring-fill {
    stroke: #ec4899;
}

/* ── Cosmetic shop + equipped display ───────────────────────────────────── */

.forum-avatar-wrap {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px;
}

.cosmetic-name-flair {
    margin-left: 0.25rem;
    font-size: 0.85em;
    line-height: 1;
}

.le-weekly-reward--xp {
    color: #7c3aed;
}

.le-weekly-collected-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cosmetic-frame-bronze.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-bronze {
    background: linear-gradient(135deg, #cd7f32, #e8b87a);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(205, 127, 50, 0.45);
}

.cosmetic-frame-silver.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-silver {
    background: linear-gradient(135deg, #9ca3af, #f3f4f6);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(156, 163, 175, 0.45);
}

.cosmetic-frame-gold.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-gold {
    background: linear-gradient(135deg, #f59e0b, #fde68a);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(245, 158, 11, 0.5);
}

.cosmetic-frame-rainbow.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-rainbow {
    background: linear-gradient(135deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(168, 85, 247, 0.35);
}

.cosmetic-frame-angel.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-angel {
    background: linear-gradient(135deg, #fbcfe8, #f9a8d4, #fff);
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(244, 114, 182, 0.55);
}

/* Neon rings */
.cosmetic-frame-neon-blue.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-neon-blue {
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 0 0 2px #fff, 0 0 6px #38bdf8, 0 0 14px rgba(56, 189, 248, 0.85);
}

.cosmetic-frame-neon-purple.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-neon-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0 0 2px #fff, 0 0 6px #c084fc, 0 0 14px rgba(168, 85, 247, 0.85);
}

.cosmetic-frame-neon-pink.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-neon-pink {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    box-shadow: 0 0 0 2px #fff, 0 0 6px #f9a8d4, 0 0 14px rgba(244, 114, 182, 0.85);
}

.cosmetic-frame-neon-green.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-neon-green {
    background: linear-gradient(135deg, #22c55e, #a3e635);
    box-shadow: 0 0 0 2px #fff, 0 0 6px #86efac, 0 0 14px rgba(34, 197, 94, 0.85);
}

/* Glow rings */
.cosmetic-frame-aqua-glow.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-aqua-glow {
    background: linear-gradient(135deg, #06b6d4, #67e8f9);
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(34, 211, 238, 0.7);
}

.cosmetic-frame-ember-glow.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-ember-glow {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(249, 115, 22, 0.65);
}

/* Faded / pastel rings */
.cosmetic-frame-faded-rose.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-faded-rose {
    background: linear-gradient(135deg, #fecdd3, #fee2e2);
    box-shadow: 0 0 0 2px #fff;
}

.cosmetic-frame-faded-sky.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-faded-sky {
    background: linear-gradient(135deg, #bae6fd, #e0f2fe);
    box-shadow: 0 0 0 2px #fff;
}

.cosmetic-frame-faded-mint.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-faded-mint {
    background: linear-gradient(135deg, #a7f3d0, #d1fae5);
    box-shadow: 0 0 0 2px #fff;
}

/* Premium rings */
.cosmetic-frame-aurora.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-aurora {
    background: linear-gradient(135deg, #34d399, #22d3ee, #818cf8, #c084fc);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(129, 140, 248, 0.55);
}

.cosmetic-frame-galaxy.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-galaxy {
    background: radial-gradient(circle at 30% 30%, #6366f1, #1e1b4b 70%);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(99, 102, 241, 0.6);
}

.cosmetic-frame-fire.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-fire {
    background: linear-gradient(135deg, #f97316, #ef4444, #fbbf24);
    box-shadow: 0 0 0 2px #fff, 0 0 8px #f97316, 0 0 16px rgba(239, 68, 68, 0.75);
}

/* Metals and gems */
.cosmetic-frame-rose-gold.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-rose-gold {
    background: linear-gradient(135deg, #b76e79, #e8c4a8, #f5d0c5);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(183, 110, 121, 0.5);
}

.cosmetic-frame-platinum.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-platinum {
    background: linear-gradient(135deg, #a8a9ad, #e5e4e2, #f8f8f8);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(168, 169, 173, 0.55);
}

.cosmetic-frame-copper.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-copper {
    background: linear-gradient(135deg, #b87333, #da8a67, #e8b87a);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(184, 115, 51, 0.45);
}

.cosmetic-frame-ruby.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-ruby {
    background: linear-gradient(135deg, #9b1c31, #ef4444, #fca5a5);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(239, 68, 68, 0.55);
}

.cosmetic-frame-emerald.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-emerald {
    background: linear-gradient(135deg, #047857, #10b981, #6ee7b7);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(16, 185, 129, 0.5);
}

.cosmetic-frame-sapphire.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-sapphire {
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #93c5fd);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(37, 99, 235, 0.55);
}

.cosmetic-frame-amethyst.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-amethyst {
    background: linear-gradient(135deg, #6b21a8, #a855f7, #d8b4fe);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(168, 85, 247, 0.5);
}

.cosmetic-frame-topaz.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-topaz {
    background: linear-gradient(135deg, #d97706, #fbbf24, #fde68a);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(251, 191, 36, 0.5);
}

.cosmetic-frame-obsidian.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-obsidian {
    background: linear-gradient(135deg, #1c1917, #44403c, #78716c);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(28, 25, 23, 0.6);
}

.cosmetic-frame-pearl.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-pearl {
    background: linear-gradient(135deg, #f5f5f4, #fafaf9, #e7e5e4);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(231, 229, 228, 0.8);
}

/* Ocean and sky */
.cosmetic-frame-teal-tide.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-teal-tide {
    background: linear-gradient(135deg, #0d9488, #2dd4bf, #99f6e4);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(45, 212, 191, 0.5);
}

.cosmetic-frame-deep-sea.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-deep-sea {
    background: linear-gradient(135deg, #0c4a6e, #0369a1, #0284c7);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(3, 105, 161, 0.55);
}

.cosmetic-frame-coral-reef.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-coral-reef {
    background: linear-gradient(135deg, #f97316, #fb7185, #fda4af);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(251, 113, 133, 0.45);
}

.cosmetic-frame-sunset-sky.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-sunset-sky {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(236, 72, 153, 0.45);
}

.cosmetic-frame-dawn.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-dawn {
    background: linear-gradient(135deg, #fdba74, #fcd34d, #fef3c7);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(253, 186, 116, 0.4);
}

.cosmetic-frame-dusk.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-dusk {
    background: linear-gradient(135deg, #6366f1, #a855f7, #c084fc);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(99, 102, 241, 0.45);
}

.cosmetic-frame-storm.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-storm {
    background: linear-gradient(135deg, #334155, #475569, #64748b);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(71, 85, 105, 0.55);
}

.cosmetic-frame-arctic.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-arctic {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd, #7dd3fc);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(125, 211, 252, 0.5);
}

/* Nature and floral */
.cosmetic-frame-sakura.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-sakura {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8, #f9a8d4);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(249, 168, 212, 0.4);
}

.cosmetic-frame-lavender.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-lavender {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd, #a78bfa);
    box-shadow: 0 0 0 2px #fff;
}

.cosmetic-frame-sunflower.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-sunflower {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fcd34d);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(245, 158, 11, 0.4);
}

.cosmetic-frame-forest.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-forest {
    background: linear-gradient(135deg, #14532d, #166534, #22c55e);
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(22, 101, 52, 0.45);
}

.cosmetic-frame-moss.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-moss {
    background: linear-gradient(135deg, #4d7c0f, #65a30d, #a3e635);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(101, 163, 13, 0.4);
}

.cosmetic-frame-autumn-leaf.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-autumn-leaf {
    background: linear-gradient(135deg, #c2410c, #ea580c, #fbbf24);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(234, 88, 12, 0.4);
}

.cosmetic-frame-cherry.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-cherry {
    background: linear-gradient(135deg, #be123c, #e11d48, #fda4af);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(225, 29, 72, 0.4);
}

.cosmetic-frame-peach.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-peach {
    background: linear-gradient(135deg, #fed7aa, #fdba74, #fb923c);
    box-shadow: 0 0 0 2px #fff;
}

/* Candy and pastel */
.cosmetic-frame-bubblegum.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-bubblegum {
    background: linear-gradient(135deg, #f472b6, #fb7185, #fda4af);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(244, 114, 182, 0.4);
}

.cosmetic-frame-cotton-candy.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-cotton-candy {
    background: linear-gradient(135deg, #fbcfe8, #ddd6fe, #bfdbfe);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(221, 214, 254, 0.5);
}

.cosmetic-frame-mint-cream.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-mint-cream {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0, #6ee7b7);
    box-shadow: 0 0 0 2px #fff;
}

.cosmetic-frame-lemon-drop.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-lemon-drop {
    background: linear-gradient(135deg, #fef08a, #fde047, #facc15);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(250, 204, 21, 0.4);
}

.cosmetic-frame-grape-soda.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-grape-soda {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(168, 85, 247, 0.45);
}

.cosmetic-frame-blue-raspberry.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-blue-raspberry {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #93c5fd);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(59, 130, 246, 0.45);
}

.cosmetic-frame-caramel.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-caramel {
    background: linear-gradient(135deg, #92400e, #b45309, #d97706);
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(180, 83, 9, 0.4);
}

/* Fire and energy */
.cosmetic-frame-magma.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-magma {
    background: linear-gradient(135deg, #7f1d1d, #dc2626, #f97316);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(220, 38, 38, 0.6);
}

.cosmetic-frame-plasma.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-plasma {
    background: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899, #fbbf24);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 8px #a855f7, 0 0 16px rgba(124, 58, 237, 0.7);
}

.cosmetic-frame-solar-flare.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-solar-flare {
    background: linear-gradient(135deg, #fef08a, #fbbf24, #f97316, #ef4444);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 10px #fbbf24, 0 0 18px rgba(249, 115, 22, 0.75);
}

.cosmetic-frame-electric.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-electric {
    background: linear-gradient(135deg, #fef08a, #facc15, #eab308);
    box-shadow: 0 0 0 2px #fff, 0 0 6px #fde047, 0 0 14px rgba(234, 179, 8, 0.85);
}

.cosmetic-frame-toxic.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-toxic {
    background: linear-gradient(135deg, #84cc16, #a3e635, #bef264);
    box-shadow: 0 0 0 2px #fff, 0 0 6px #84cc16, 0 0 14px rgba(132, 204, 22, 0.85);
}

.cosmetic-frame-inferno.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-inferno {
    background: linear-gradient(135deg, #991b1b, #ef4444, #f97316, #fbbf24);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.75);
}

/* Cosmic and premium */
.cosmetic-frame-nebula.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-nebula {
    background: linear-gradient(135deg, #581c87, #7c3aed, #ec4899, #06b6d4);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(124, 58, 237, 0.6);
}

.cosmetic-frame-comet.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-comet {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #6366f1, #e0e7ff);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(99, 102, 241, 0.6);
}

.cosmetic-frame-starfield.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-starfield {
    background: radial-gradient(circle at 20% 30%, #fef08a 0%, transparent 8%), radial-gradient(circle at 70% 60%, #fef08a 0%, transparent 6%), radial-gradient(circle at 40% 80%, #fff 0%, transparent 4%), linear-gradient(135deg, #0f172a, #1e1b4b);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(30, 27, 75, 0.7);
}

.cosmetic-frame-moonlight.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-moonlight {
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0, #f1f5f9);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(203, 213, 225, 0.7);
}

.cosmetic-frame-eclipse.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-eclipse {
    background: radial-gradient(circle at 50% 50%, #fbbf24 0%, #f59e0b 15%, #1e1b4b 40%, #0f172a 70%);
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(251, 191, 36, 0.5);
}

.cosmetic-frame-prism.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-prism {
    background: linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #a855f7);
    background-size: 400% 400%;
    box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(168, 85, 247, 0.45);
}

.cosmetic-frame-holographic.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-holographic {
    background: linear-gradient(135deg, #22d3ee, #a855f7, #ec4899, #fbbf24, #22c55e, #22d3ee);
    background-size: 400% 400%;
    box-shadow: 0 0 0 2px #fff, 0 0 8px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.6);
}

.cosmetic-frame-opal.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-opal {
    background: linear-gradient(135deg, #fbcfe8, #ddd6fe, #bae6fd, #a7f3d0);
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(186, 230, 253, 0.55);
}

.cosmetic-frame-rainbow-pulse.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-rainbow-pulse {
    background: linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #a855f7, #ef4444);
    background-size: 400% 400%;
    box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(168, 85, 247, 0.45);
}

.cosmetic-frame-gilded-shimmer.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-gilded-shimmer {
    background: linear-gradient(135deg, #b45309, #f59e0b, #fde68a, #f59e0b, #b45309);
    background-size: 300% 300%;
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(245, 158, 11, 0.6);
}

.cosmetic-frame-frost-glow.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-frame-frost-glow {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd, #7dd3fc, #38bdf8);
    box-shadow: 0 0 0 2px #fff, 0 0 8px #7dd3fc, 0 0 16px rgba(56, 189, 248, 0.65);
}

/* Orbit ring frames — oval Saturn band overlapping avatar + orbiting objects */
.cosmetic-orbit.forum-avatar-wrap,
.ig-profile-avatar-frame.cosmetic-orbit {
    position: relative;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    --orbit-color: #fbbf24;
    --orbit-r: 0.78em;
    --orbit-oy: 0.46;
    --orbit-oy-inv: 2.174;
    --orbit-tilt: -18deg;
    --orbit-ring-w: 152%;
    --orbit-ring-h: 60%;
    font-size: 2.75rem;
}

.cosmetic-orbit.forum-avatar-wrap:has(.forum-avatar--lg) {
    font-size: 4.5rem;
}

.cosmetic-orbit.forum-avatar-wrap:has(.forum-avatar--sm) {
    font-size: 2rem;
}

.cosmetic-orbit.forum-avatar-wrap:has(.forum-avatar--xs) {
    font-size: 1.5rem;
}

.ig-profile-avatar-frame.cosmetic-orbit {
    font-size: 5.5rem;
}

.cosmetic-orbit.forum-avatar-wrap > .forum-avatar,
.ig-profile-avatar-frame.cosmetic-orbit > .forum-avatar,
.ig-profile-avatar-frame.cosmetic-orbit > .ig-profile-avatar-xp {
    position: relative;
    z-index: 1;
}

.cosmetic-orbit-fx {
    position: absolute;
    inset: -14%;
    pointer-events: none;
    overflow: visible;
}

.cosmetic-orbit-fx--back {
    z-index: 0;
}

.cosmetic-orbit-fx--front {
    z-index: 2;
}

.cosmetic-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orbit-ring-w);
    height: var(--orbit-ring-h);
    border: 2px solid var(--orbit-color);
    border-radius: 50%;
    box-sizing: border-box;
    opacity: 0.88;
    transform: translate(-50%, -50%) rotate(var(--orbit-tilt));
    box-shadow: 0 0 6px color-mix(in srgb, var(--orbit-color) 45%, transparent);
}

.cosmetic-orbit-ring--front {
    clip-path: inset(50% -20% -20% -20%);
}

.cosmetic-orbit-ring--2 {
    display: none;
    width: calc(var(--orbit-ring-w) + 10%);
    height: calc(var(--orbit-ring-h) + 6%);
    opacity: 0.55;
    border-width: 1px;
}

.cosmetic-orbit-track {
    position: absolute;
    inset: 0;
    transform: rotate(var(--orbit-tilt)) scaleY(var(--orbit-oy));
    transform-origin: center center;
}

.cosmetic-orbit-obj {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

/* Moon */
.cosmetic-orbit-obj--moon,
.cosmetic-orbit-obj--moon2 {
    width: 0.14em;
    height: 0.14em;
    min-width: 0.28rem;
    min-height: 0.28rem;
    max-width: 0.42rem;
    max-height: 0.42rem;
    border-radius: 50%;
    background: var(--orbit-color);
    box-shadow:
        0 0 0.12em var(--orbit-color),
        0 0 0.35em color-mix(in srgb, var(--orbit-color) 55%, transparent);
}

.cosmetic-orbit-obj--moon {
    --a: 35deg;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--a))) scaleY(var(--orbit-oy-inv));
}

.cosmetic-orbit-obj--moon2 {
    --a: 215deg;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--a))) scaleY(var(--orbit-oy-inv));
}

/* Star */
.cosmetic-orbit-obj--star {
    width: 0.18em;
    height: 0.18em;
    min-width: 0.32rem;
    min-height: 0.32rem;
    background: #fef08a;
    clip-path: polygon(50% 0%, 61% 38%, 98% 38%, 68% 59%, 79% 96%, 50% 74%, 21% 96%, 32% 59%, 2% 38%, 39% 38%);
    box-shadow: 0 0 0.2em #fde047, 0 0 0.45em rgba(253, 224, 71, 0.65);
    --a: 125deg;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--a))) scaleY(var(--orbit-oy-inv));
}

/* Meteorites */
.cosmetic-orbit-obj--meteor,
.cosmetic-orbit-obj--meteor2,
.cosmetic-orbit-obj--meteor3 {
    width: 0.11em;
    height: 0.09em;
    min-width: 0.22rem;
    min-height: 0.18rem;
    border-radius: 40% 60% 50% 50%;
    background: #78716c;
}

.cosmetic-orbit-obj--meteor {
    --a: 55deg;
    box-shadow: -0.08em 0.02em 0.1em rgba(120, 113, 108, 0.85), -0.14em 0.04em 0.18em rgba(168, 162, 158, 0.45);
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--a))) scaleY(var(--orbit-oy-inv));
}

.cosmetic-orbit-obj--meteor2 {
    --a: 195deg;
    width: 0.09em;
    height: 0.07em;
    box-shadow: -0.06em 0.02em 0.08em rgba(87, 83, 78, 0.8), -0.1em 0.03em 0.14em rgba(168, 162, 158, 0.4);
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(calc(var(--orbit-r) * 0.92)) rotate(calc(-1 * var(--a))) scaleY(var(--orbit-oy-inv));
}

.cosmetic-orbit-obj--meteor3 {
    --a: 305deg;
    width: 0.08em;
    height: 0.06em;
    background: #57534e;
    box-shadow: -0.05em 0.01em 0.07em rgba(68, 64, 60, 0.75), -0.09em 0.02em 0.12em rgba(120, 113, 108, 0.35);
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(calc(var(--orbit-r) * 1.05)) rotate(calc(-1 * var(--a))) scaleY(var(--orbit-oy-inv));
}

/* Color modifiers */
.cosmetic-orbit--c-slate { --orbit-color: #9ca3af; }
.cosmetic-orbit--c-amber { --orbit-color: #fbbf24; }
.cosmetic-orbit--c-blue { --orbit-color: #2563eb; }
.cosmetic-orbit--c-red { --orbit-color: #dc2626; }
.cosmetic-orbit--c-orange { --orbit-color: #d97706; }
.cosmetic-orbit--c-gold { --orbit-color: #fde68a; }
.cosmetic-orbit--c-cyan { --orbit-color: #22d3ee; }
.cosmetic-orbit--c-indigo { --orbit-color: #1d4ed8; }
.cosmetic-orbit--c-violet { --orbit-color: #c4b5fd; }
.cosmetic-orbit--c-pearl { --orbit-color: #e5e7eb; }

/* Design modifiers — ring visibility */
.cosmetic-orbit--d-moon .cosmetic-orbit-ring,
.cosmetic-orbit--d-moon .cosmetic-orbit-ring--2,
.cosmetic-orbit--d-star .cosmetic-orbit-ring,
.cosmetic-orbit--d-star .cosmetic-orbit-ring--2,
.cosmetic-orbit--d-meteor .cosmetic-orbit-ring,
.cosmetic-orbit--d-meteor .cosmetic-orbit-ring--2 {
    display: none;
}

.cosmetic-orbit--d-double .cosmetic-orbit-ring--2 {
    display: block;
}

/* Design modifiers — object visibility */
.cosmetic-orbit--d-ring .cosmetic-orbit-obj {
    display: none;
}

.cosmetic-orbit--d-ring-moon .cosmetic-orbit-obj--moon,
.cosmetic-orbit--d-ring-star .cosmetic-orbit-obj--star,
.cosmetic-orbit--d-ring-meteor .cosmetic-orbit-obj--meteor,
.cosmetic-orbit--d-ring-meteor .cosmetic-orbit-obj--meteor2,
.cosmetic-orbit--d-ring-meteor .cosmetic-orbit-obj--meteor3,
.cosmetic-orbit--d-moon .cosmetic-orbit-obj--moon,
.cosmetic-orbit--d-star .cosmetic-orbit-obj--star,
.cosmetic-orbit--d-meteor .cosmetic-orbit-obj--meteor,
.cosmetic-orbit--d-meteor .cosmetic-orbit-obj--meteor2,
.cosmetic-orbit--d-meteor .cosmetic-orbit-obj--meteor3,
.cosmetic-orbit--d-ring-moon2 .cosmetic-orbit-obj--moon,
.cosmetic-orbit--d-ring-moon2 .cosmetic-orbit-obj--moon2,
.cosmetic-orbit--d-ring-star-moon .cosmetic-orbit-obj--star,
.cosmetic-orbit--d-ring-star-moon .cosmetic-orbit-obj--moon {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .cosmetic-frame-neon-blue.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-neon-blue,
    .cosmetic-frame-neon-purple.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-neon-purple,
    .cosmetic-frame-neon-pink.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-neon-pink,
    .cosmetic-frame-neon-green.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-neon-green {
        animation: cosmetic-neon-pulse 1.8s ease-in-out infinite;
    }

    .cosmetic-frame-aurora.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-aurora {
        animation: cosmetic-aurora-shift 6s ease infinite;
    }

    .cosmetic-frame-fire.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-fire {
        animation: cosmetic-fire-flicker 1.2s ease-in-out infinite;
    }

    .cosmetic-frame-plasma.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-plasma,
    .cosmetic-frame-solar-flare.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-solar-flare,
    .cosmetic-frame-inferno.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-inferno,
    .cosmetic-frame-nebula.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-nebula,
    .cosmetic-frame-comet.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-comet,
    .cosmetic-frame-prism.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-prism,
    .cosmetic-frame-holographic.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-holographic,
    .cosmetic-frame-rainbow-pulse.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-rainbow-pulse,
    .cosmetic-frame-gilded-shimmer.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-gilded-shimmer {
        animation: cosmetic-aurora-shift 6s ease infinite;
    }

    .cosmetic-frame-electric.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-electric,
    .cosmetic-frame-toxic.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-toxic,
    .cosmetic-frame-frost-glow.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-frost-glow {
        animation: cosmetic-neon-pulse 1.8s ease-in-out infinite;
    }

    .cosmetic-frame-magma.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-magma {
        animation: cosmetic-fire-flicker 1.4s ease-in-out infinite;
    }

    .cosmetic-frame-eclipse.forum-avatar-wrap,
    .ig-profile-avatar-frame.cosmetic-frame-eclipse {
        animation: cosmetic-shimmer 4s ease-in-out infinite;
    }

    .cosmetic-orbit--live .cosmetic-orbit-obj--moon {
        animation: cosmetic-orbit-revolve 7s linear infinite;
    }

    .cosmetic-orbit--live .cosmetic-orbit-obj--moon2 {
        animation: cosmetic-orbit-revolve 9s linear infinite;
        animation-delay: -3s;
    }

    .cosmetic-orbit--live .cosmetic-orbit-obj--star {
        animation: cosmetic-orbit-revolve 8s linear infinite;
        animation-delay: -1.5s;
    }

    .cosmetic-orbit--live .cosmetic-orbit-obj--meteor {
        animation: cosmetic-orbit-revolve 6.5s linear infinite;
    }

    .cosmetic-orbit--live .cosmetic-orbit-obj--meteor2 {
        animation: cosmetic-orbit-revolve 7.5s linear infinite;
        animation-delay: -2s;
    }

    .cosmetic-orbit--live .cosmetic-orbit-obj--meteor3 {
        animation: cosmetic-orbit-revolve 8.5s linear infinite;
        animation-delay: -4s;
    }
}

@keyframes cosmetic-neon-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.22); }
}

@keyframes cosmetic-aurora-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cosmetic-fire-flicker {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

@keyframes cosmetic-shimmer {
    0%, 100% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.15) contrast(1.08); }
}

@keyframes cosmetic-orbit-revolve {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-r)) rotate(0deg) scaleY(var(--orbit-oy-inv));
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg) scaleY(var(--orbit-oy-inv));
    }
}

.cosmetic-shop-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.cosmetic-shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 768px) {
    .cosmetic-shop-layout {
        grid-template-columns: minmax(0, 1fr) 17rem;
        gap: 1.25rem;
    }
}

.cosmetic-shop-main {
    min-width: 0;
}

.cosmetic-shop-preview {
    position: sticky;
    top: 0.75rem;
    padding: 1rem;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.cosmetic-shop-preview--compact {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0;
}

.cosmetic-shop-layout > .cosmetic-shop-preview:not(.cosmetic-shop-preview--compact) {
    display: none;
}

@media (min-width: 768px) {
    .cosmetic-shop-preview--compact {
        display: none;
    }

    .cosmetic-shop-layout > .cosmetic-shop-preview:not(.cosmetic-shop-preview--compact) {
        display: block;
    }
}

.cosmetic-shop-preview-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #262626;
}

.cosmetic-shop-preview-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.cosmetic-shop-back {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #262626;
    text-decoration: none;
    padding: 0.1rem 0.25rem;
}

.cosmetic-shop-preview-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #737373;
    line-height: 1.45;
}

.cosmetic-shop-preview-mock {
    margin-bottom: 0.85rem;
}

.cosmetic-shop-preview-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cosmetic-shop-preview-avatar-col {
    flex-shrink: 0;
}

.cosmetic-shop-preview-mock--dialog {
    margin-bottom: 1rem;
}

.cosmetic-shop-preview-profile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 0;
    background: #fafafa;
    overflow: visible;
}

.cosmetic-shop-preview--compact .cosmetic-shop-preview-profile-inner {
    padding: 0.65rem;
}

.cosmetic-shop-preview-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.cosmetic-shop-preview-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #262626;
}

.cosmetic-shop-preview-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding-top: 0;
    border-top: none;
}

.cosmetic-shop-preview--compact .cosmetic-shop-preview-details {
    padding-top: 0;
    border-top: none;
}

.cosmetic-shop-preview-item-name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
}

.cosmetic-shop-preview-item-meta {
    margin: 0;
    font-size: 0.78rem;
    color: #737373;
}

.cosmetic-shop-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.cosmetic-shop-preview-equipped-msg {
    font-size: 0.78rem;
    font-weight: 600;
    color: #15803d;
}

.cosmetic-shop-btn--full {
    width: 100%;
}

.cosmetic-shop-balance {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
}

.cosmetic-shop-balance-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #c2410c;
}

.cosmetic-shop-balance-value--pop {
    animation: dr-balance-pop 0.65s ease;
}

.cosmetic-shop-message {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.85rem;
}

.cosmetic-shop-message--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cosmetic-shop-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cosmetic-shop-section {
    margin-bottom: 2rem;
}

.cosmetic-shop-section-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.cosmetic-shop-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.cosmetic-shop-tab {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #737373;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cosmetic-shop-tab--active {
    background: #fff;
    color: #262626;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cosmetic-shop-empty {
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    background: #fafafa;
    border: 1px dashed #e5e5e5;
    font-size: 0.82rem;
    color: #737373;
    line-height: 1.45;
    text-align: center;
}

.cosmetic-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.cosmetic-shop-grid--locked {
    padding: 0.75rem;
    border-radius: 0;
    background: #fafafa;
    border: 1px dashed #e5e5e5;
}

.cosmetic-shop-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cosmetic-shop-item:hover {
    border-color: #d4d4d4;
}

.cosmetic-shop-item--selected {
    border-color: #ea580c;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22);
    background: #fff7ed;
}

.cosmetic-shop-item--equipped {
    border-color: #86efac;
    background: #f0fdf4;
}

.cosmetic-shop-item--selected.cosmetic-shop-item--equipped {
    border-color: #ea580c;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22);
    background: #fff7ed;
}

.cosmetic-shop-family-card {
    position: relative;
}

.cosmetic-shop-item-selected-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.2rem 0.45rem;
    background: #ea580c;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    z-index: 1;
}

.cosmetic-shop-item--locked {
    opacity: 0.88;
}

.cosmetic-shop-item--locked:not(.cosmetic-shop-item--selected) {
    background: #fafafa;
}

.cosmetic-shop-item-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    padding: 0.35rem;
    overflow: visible;
}

.cosmetic-shop-item-preview--frame .forum-avatar--md {
    width: 3rem;
    height: 3rem;
    font-size: 0.9rem;
}

.cosmetic-shop-flair-demo {
    font-size: 2rem;
    line-height: 1;
}

.cosmetic-shop-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cosmetic-shop-family-card .cosmetic-shop-item-body {
    gap: 0.35rem;
}

.cosmetic-shop-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.15rem;
}

.cosmetic-shop-swatch {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--swatch-color, #888);
    box-shadow: 0 0 0 1px #d4d4d4;
    cursor: pointer;
    flex-shrink: 0;
}

.cosmetic-shop-swatch--active {
    box-shadow: 0 0 0 2px #ea580c;
}

.cosmetic-shop-swatch--equipped {
    box-shadow: 0 0 0 2px #22c55e, 0 0 0 1px #d4d4d4;
}

.cosmetic-shop-swatch--equipped.cosmetic-shop-swatch--active {
    box-shadow: 0 0 0 2px #ea580c, 0 0 0 3px #22c55e;
}

.cosmetic-shop-swatch--locked {
    opacity: 0.45;
}

.cosmetic-shop-swatch-row--preview {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
}

.cosmetic-shop-swatch-picker {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.cosmetic-shop-swatch-nav {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: #fff;
    color: #525252;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.cosmetic-shop-swatch-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.cosmetic-shop-swatch-nav:not(:disabled):hover {
    border-color: #ea580c;
    color: #ea580c;
}

.cosmetic-shop-swatch--preview {
    width: 1.4rem;
    height: 1.4rem;
}

.cosmetic-shop-item-name {
    font-size: 0.82rem;
    font-weight: 700;
}

.cosmetic-shop-angel-tag,
.cosmetic-shop-owned-tag,
.cosmetic-shop-equipped-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cosmetic-shop-angel-tag {
    background: #fce7f3;
    color: #be185d;
}

.cosmetic-shop-owned-tag {
    background: #dbeafe;
    color: #1d4ed8;
}

.cosmetic-shop-equipped-tag {
    background: #dcfce7;
    color: #15803d;
}

.cosmetic-shop-item-meta {
    font-size: 0.75rem;
    color: #737373;
}

.cosmetic-shop-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.cosmetic-shop-btn--buy {
    background: #ea580c;
    color: #fff;
}

.cosmetic-shop-btn--buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cosmetic-shop-btn--equip {
    background: #fff;
    border: 1px solid #d4d4d4;
    color: #262626;
}

.cosmetic-shop-btn--secondary {
    background: #fff;
    border: 1px solid #d4d4d4;
    color: #525252;
}

.cosmetic-shop-btn--secondary:disabled,
.cosmetic-shop-btn--equip:disabled,
.cosmetic-shop-btn--unequip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cosmetic-shop-btn--unequip {
    background: #fff;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ── Shop dialog modals ─────────────────────────────────────────────────── */

.cosmetic-shop-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

.cosmetic-shop-dialog {
    width: min(100%, 22rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.cosmetic-shop-dialog-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.cosmetic-shop-dialog-lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #525252;
}

.cosmetic-shop-dialog-stats {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.cosmetic-shop-dialog-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.cosmetic-shop-dialog-stat dt {
    margin: 0;
    font-size: 0.78rem;
    color: #737373;
}

.cosmetic-shop-dialog-stat dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #262626;
}

.cosmetic-shop-dialog-stat--highlight dd {
    color: #c2410c;
}

.cosmetic-shop-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cosmetic-shop-dialog-actions--split {
    flex-direction: row;
}

.cosmetic-shop-dialog-actions--split .cosmetic-shop-btn--full {
    flex: 1;
}

@media (max-width: 767px) {
    .app-content:has(.cosmetic-shop-page) {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .cosmetic-shop-page {
        max-width: none;
        padding: 0.5rem 0 5rem;
    }

    .cosmetic-shop-preview--compact {
        padding: 1.1rem 1.15rem;
    }

    .cosmetic-shop-preview--compact .cosmetic-shop-preview-actions {
        gap: 0.5rem;
    }

    .cosmetic-shop-preview--compact .cosmetic-shop-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }

    .cosmetic-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .cosmetic-shop-item {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }

    .cosmetic-shop-item-preview {
        min-height: 4.25rem;
    }

    .cosmetic-shop-item-preview--frame .forum-avatar--md {
        width: 3rem;
        height: 3rem;
        font-size: 0.9rem;
    }

    .cosmetic-shop-dialog-actions--split {
        flex-direction: column;
    }
}

/* Wordle */
.wordle-page {
    max-width: 28rem;
    margin: 0 auto;
    padding: 0.75rem 0.75rem 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.wordle-head {
    text-align: center;
}

.wordle-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #262626;
}

.wordle-sub {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.wordle-toast {
    position: sticky;
    top: 0.5rem;
    z-index: 2;
    padding: 0.45rem 0.85rem;
    background: #262626;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0;
}

.wordle-board {
    display: grid;
    gap: 0.35rem;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 3.15rem);
    gap: 0.35rem;
}

.wordle-cell {
    width: 3.15rem;
    height: 3.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4d4d8;
    background: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #262626;
}

.wordle-cell--filled {
    border-color: #a1a1aa;
}

.wordle-cell--correct {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.wordle-cell--present {
    border-color: #ca8a04;
    background: #ca8a04;
    color: #fff;
}

.wordle-cell--absent {
    border-color: #71717a;
    background: #71717a;
    color: #fff;
}

.wordle-result {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.wordle-result-title {
    margin: 0;
    font-weight: 800;
    color: #262626;
}

.wordle-result-answer {
    margin: 0.35rem 0 0;
    color: #475569;
}

.wordle-def {
    margin-top: 0.75rem;
    text-align: left;
}

.wordle-def-word {
    margin: 0;
    font-weight: 800;
    text-transform: capitalize;
}

.wordle-def-phonetic {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.wordle-def-pos {
    margin: 0.55rem 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ea580c;
}

.wordle-def-text {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.4;
}

.wordle-keyboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.wordle-kb-row {
    display: flex;
    justify-content: center;
    gap: 0.28rem;
}

.wordle-key {
    min-width: 1.7rem;
    height: 3rem;
    padding: 0 0.35rem;
    border: 0;
    border-radius: 4px;
    background: #e4e4e7;
    color: #262626;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.wordle-key:disabled {
    opacity: 0.55;
    cursor: default;
}

.wordle-key--wide {
    min-width: 3.1rem;
    font-size: 0.7rem;
}

.wordle-key--correct {
    background: #16a34a;
    color: #fff;
}

.wordle-key--present {
    background: #ca8a04;
    color: #fff;
}

.wordle-key--absent {
    background: #71717a;
    color: #fff;
}

@media (max-width: 420px) {
    .wordle-row {
        grid-template-columns: repeat(5, 2.7rem);
        gap: 0.28rem;
    }

    .wordle-cell {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.15rem;
    }

    .wordle-key {
        min-width: 1.45rem;
        height: 2.75rem;
        font-size: 0.7rem;
    }

    .wordle-key--wide {
        min-width: 2.6rem;
    }
}

.wordle-status {
    margin: 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.wordle-locked-banner {
    margin: 0;
    padding: 0.65rem 0.85rem;
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    line-height: 1.45;
}

.wordle-locked-link {
    display: inline;
    margin-left: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: #ea580c;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.wordle-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15, 23, 42, 0.55);
}

.wordle-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 510;
    width: min(92vw, 22rem);
    transform: translate(-50%, -50%);
    padding: 1.25rem 1.15rem 1.1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.wordle-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #262626;
}

.wordle-modal-answer {
    margin: 0.55rem 0 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ea580c;
}

.wordle-modal-phonetic {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.wordle-modal-pos {
    margin: 0.75rem 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ea580c;
}

.wordle-modal-def {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #334155;
    text-align: left;
}

.wordle-modal-close {
    margin-top: 1rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    background: #ea580c;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.wordle-modal-close:hover {
    background: #c2410c;
}


/* Daily Spin the Wheel — carnival stage */
.spin-stage {
    --spin-amber: #f59e0b;
    --spin-orange: #ea580c;
    --spin-gold: #fbbf24;
    --spin-navy: #0c1222;
    --spin-ink: #1c1917;
    position: relative;
    min-height: calc(100dvh - 3.5rem);
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    padding: 1rem 1rem 5.75rem;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(234, 88, 12, 0.38), transparent 55%),
        radial-gradient(ellipse 70% 40% at 80% 90%, rgba(245, 158, 11, 0.12), transparent 50%),
        linear-gradient(165deg, #0c1222 0%, #1a2440 42%, #12182b 100%);
    color: #f8fafc;
    overflow-x: clip;
}

.spin-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.35) 0 1px, transparent 1.5px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(251, 191, 36, 0.25) 0 1px, transparent 1.5px);
    background-size: 48px 48px, 36px 36px, 56px 56px;
}

.spin-stage--spinning {
    animation: spin-stage-pulse 1.2s ease-in-out infinite;
}

.spin-stage--spinning::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 38%, transparent 28%, rgba(0, 0, 0, 0.35) 100%);
}

.spin-stage-glow {
    position: absolute;
    left: 50%;
    top: 34%;
    width: min(90vw, 26rem);
    height: min(90vw, 26rem);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.28), transparent 68%);
    pointer-events: none;
    filter: blur(8px);
}

.spin-stage-inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
}

.spin-head { text-align: center; }

.spin-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--spin-gold);
}

.spin-title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #fff7ed;
    text-shadow: 0 2px 18px rgba(234, 88, 12, 0.45);
}

.spin-sub {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #cbd5e1;
    max-width: 22rem;
}

.spin-status { color: #94a3b8; font-size: 0.9rem; }

.spin-stage .state-card {
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.spin-toast {
    position: sticky;
    top: 0.5rem;
    z-index: 3;
    padding: 0.5rem 0.95rem;
    background: var(--spin-ink);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.spin-hud-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.spin-hud-chip--ready {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(20, 83, 45, 0.45);
}

.spin-hud-chip--wait {
    color: #fed7aa;
    border-color: rgba(234, 88, 12, 0.4);
}

.spin-hud-chip strong { color: #fff; font-variant-numeric: tabular-nums; }

.spin-hud-chip-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: spin-ready-dot 1.4s ease-out infinite;
}

.spin-wheel-wrap {
    position: relative;
    width: min(86vw, 22rem);
    height: min(86vw, 22rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.35rem 0 0.15rem;
}

.spin-wheel-wrap--idle {
    animation: spin-wheel-breathe 5.5s ease-in-out infinite;
}

.spin-wheel-wrap--jackpot .spin-wheel {
    filter: drop-shadow(0 0 22px rgba(248, 113, 113, 0.75));
}

.spin-wheel-frame {
    position: absolute;
    inset: -0.55rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 62%, #1c1917 63%, #292524 70%, #0c0a09 72%, transparent 73%),
        conic-gradient(from 0deg, #fbbf24, #ea580c, #f59e0b, #fde68a, #ea580c, #fbbf24);
    box-shadow:
        0 0 0 3px #1c1917,
        0 14px 36px rgba(0, 0, 0, 0.45),
        inset 0 0 28px rgba(0, 0, 0, 0.35);
}

.spin-wheel-bulb {
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffbeb, #fbbf24 55%, #ea580c);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.85);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--bulb-a, 0deg)) translateY(calc(-1 * (min(43vw, 11rem) + 0.45rem)));
}

.spin-wheel-bulb:nth-child(1) { --bulb-a: 0deg; }
.spin-wheel-bulb:nth-child(2) { --bulb-a: 30deg; }
.spin-wheel-bulb:nth-child(3) { --bulb-a: 60deg; }
.spin-wheel-bulb:nth-child(4) { --bulb-a: 90deg; }
.spin-wheel-bulb:nth-child(5) { --bulb-a: 120deg; }
.spin-wheel-bulb:nth-child(6) { --bulb-a: 150deg; }
.spin-wheel-bulb:nth-child(7) { --bulb-a: 180deg; }
.spin-wheel-bulb:nth-child(8) { --bulb-a: 210deg; }
.spin-wheel-bulb:nth-child(9) { --bulb-a: 240deg; }
.spin-wheel-bulb:nth-child(10) { --bulb-a: 270deg; }
.spin-wheel-bulb:nth-child(11) { --bulb-a: 300deg; }
.spin-wheel-bulb:nth-child(12) { --bulb-a: 330deg; }

.spin-wheel-wrap--idle .spin-wheel-bulb:nth-child(odd) {
    animation: spin-bulb-twinkle 1.8s ease-in-out infinite;
}
.spin-wheel-wrap--idle .spin-wheel-bulb:nth-child(even) {
    animation: spin-bulb-twinkle 1.8s ease-in-out 0.9s infinite;
}

.spin-pointer {
    position: absolute;
    top: -0.35rem;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    width: 1.35rem;
    height: 1.7rem;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
    animation: spin-pointer-bob 1.6s ease-in-out infinite;
}

.spin-pointer-gem {
    width: 0;
    height: 0;
    border-left: 0.65rem solid transparent;
    border-right: 0.65rem solid transparent;
    border-top: 1.25rem solid #fbbf24;
    position: relative;
}

.spin-pointer-gem::after {
    content: "";
    position: absolute;
    left: -0.38rem;
    top: -1.2rem;
    width: 0;
    height: 0;
    border-left: 0.38rem solid transparent;
    border-right: 0.38rem solid transparent;
    border-top: 0.7rem solid #fff7ed;
}

.spin-wheel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.15),
        0 8px 28px rgba(0, 0, 0, 0.35);
    will-change: transform;
}

.spin-wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: saturate(1.15) contrast(1.05);
}

.spin-hub-label {
    font-size: 5.5px;
    font-weight: 900;
    fill: #1c1917;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.spin-seg-label {
    font-size: 7.5px;
    font-weight: 800;
    fill: #fff;
    pointer-events: none;
}

.spin-btn {
    margin-top: 0.25rem;
    min-width: 12.5rem;
    padding: 0.95rem 2rem;
    border: 0;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #fbbf24 0%, #ea580c 48%, #c2410c 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    cursor: pointer;
    box-shadow:
        0 0 0 2px #1c1917,
        0 0 0 4px rgba(251, 191, 36, 0.55),
        0 10px 24px rgba(234, 88, 12, 0.45);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.12s ease, filter 0.15s ease;
}

.spin-btn:hover:not(:disabled) { filter: brightness(1.06); }

.spin-btn:active:not(:disabled) { transform: scale(0.96); }

.spin-btn--ready {
    animation: spin-btn-pulse 1.8s ease-in-out infinite;
}

.spin-btn--disabled,
.spin-btn:disabled {
    background: linear-gradient(180deg, #78716c 0%, #57534e 100%);
    box-shadow: 0 0 0 2px #292524, 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
    animation: none;
    color: #d6d3d1;
}

.spin-meta {
    text-align: center;
    font-size: 0.86rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spin-last span { font-weight: 700; color: #fde68a; }
.spin-next { font-size: 0.78rem; color: #64748b; }

.spin-section-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.spin-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff7ed;
    letter-spacing: 0.02em;
}

.spin-section-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.spin-fab-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(8, 12, 24, 0.45);
}

.spin-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 36;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: none;
}

.spin-fab > * { pointer-events: auto; }

.spin-fab-main {
    position: relative;
    width: 3.65rem;
    height: 3.65rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #fbbf24 0%, #ea580c 55%, #c2410c 100%);
    color: #1c1917;
    cursor: pointer;
    box-shadow:
        0 0 0 3px #1c1917,
        0 10px 24px rgba(234, 88, 12, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.spin-fab-main:hover { filter: brightness(1.06); }
.spin-fab-main:active { transform: scale(0.95); }

.spin-fab--open .spin-fab-main {
    background: linear-gradient(180deg, #475569, #1e293b);
    color: #f8fafc;
    box-shadow: 0 0 0 3px #0f172a, 0 8px 18px rgba(0, 0, 0, 0.4);
}

.spin-fab-main-icon {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
}

.spin-fab-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.1rem;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    border: 2px solid #0f172a;
}

.spin-fab-menu {
    width: min(calc(100vw - 2rem), 18.5rem);
    padding: 0.75rem 0.7rem 0.8rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    animation: spin-fab-menu-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.spin-fab-menu[hidden] { display: none !important; }

.spin-fab-menu-title {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fde68a;
    text-align: left;
}

.spin-fab-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.spin-booster-active--fab {
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
}

.spin-history {
    width: 100%;
    margin-top: 0.35rem;
}

.spin-inv-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.15rem 0.4rem 0.7rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.spin-inv-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.55rem;
    right: 0.55rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
}

.spin-inv-item--hint::before { background: #fbbf24; }
.spin-inv-item--mystery::before { background: #f97316; }
.spin-inv-item--booster::before { background: #38bdf8; }

.spin-inv-icon { font-size: 1.45rem; line-height: 1; margin-top: 0.2rem; }
.spin-inv-label { font-size: 0.72rem; color: #cbd5e1; font-weight: 600; }

.spin-inv-qty {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--spin-orange, #ea580c);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.spin-inv-info {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    z-index: 2;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spin-inv-tip {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: calc(100% + 0.3rem);
    transform: translateX(-50%);
    width: max-content;
    max-width: 9.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    background: #0f172a;
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #e2e8f0;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.spin-inv-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(251, 191, 36, 0.45);
}

.spin-inv-tip--up {
    top: auto;
    bottom: calc(100% + 0.35rem);
}

.spin-inv-tip--up::before {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: rgba(251, 191, 36, 0.45);
}

.spin-inv-info:hover + .spin-inv-tip,
.spin-inv-info:focus-visible + .spin-inv-tip,
.spin-inv-info--open + .spin-inv-tip {
    opacity: 1;
    visibility: visible;
}

.spin-inv-action {
    margin-top: 0.3rem;
    border: 0;
    border-radius: 0.35rem;
    background: linear-gradient(180deg, #f59e0b, #ea580c);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.32rem 0.7rem;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.spin-inv-action:disabled {
    background: #57534e;
    color: #a8a29e;
    cursor: not-allowed;
}

.spin-booster-active {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    color: #7dd3fc;
    font-weight: 700;
    text-align: center;
}

.spin-booster-active--inline {
    margin: 0;
    font-size: 0.75rem;
}

.spin-history {
    padding: 0.75rem 0.7rem 0.85rem;
    background: rgba(12, 18, 34, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

.spin-history-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.spin-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.spin-history-list li {
    display: grid;
    grid-template-columns: 1.75rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.45rem;
    font-size: 0.84rem;
}

.spin-history-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: rgba(234, 88, 12, 0.2);
    font-size: 0.95rem;
}

.spin-history-name { font-weight: 700; color: #f1f5f9; }
.spin-history-date { font-size: 0.7rem; color: #64748b; font-variant-numeric: tabular-nums; }

.spin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(3px);
    z-index: 40;
}

.spin-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 41;
    width: min(92vw, 22rem);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    padding: 1.5rem 1.2rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(234, 88, 12, 0.2);
    overflow: hidden;
    animation: spin-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.spin-modal--jackpot {
    border-color: #f87171;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(248, 113, 113, 0.55),
        0 0 48px rgba(239, 68, 68, 0.35);
}

.spin-modal-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--spin-gold);
}

.spin-modal--jackpot .spin-modal-eyebrow { color: #fca5a5; }

.spin-modal-icon-plate {
    margin: 0.65rem auto 0.45rem;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff7ed, #fbbf24 55%, #ea580c);
    box-shadow: 0 0 28px rgba(234, 88, 12, 0.55);
    animation: spin-icon-pop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.spin-modal-icon {
    font-size: 2.4rem;
    margin: 0;
    line-height: 1;
}

.spin-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff7ed;
}

.spin-modal-desc {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.spin-modal-claim {
    margin-top: 1.1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #fbbf24, #ea580c);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.spin-modal-claim:hover { filter: brightness(1.05); }

.spin-modal-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.spin-confetti-piece {
    position: absolute;
    top: -0.5rem;
    width: 0.45rem;
    height: 0.7rem;
    animation: spin-confetti-fall 1.6s ease-in forwards;
}

.spin-confetti-piece--0 { left: 8%; background: #ef4444; animation-delay: 0s; }
.spin-confetti-piece--1 { left: 22%; background: #f59e0b; animation-delay: 0.1s; }
.spin-confetti-piece--2 { left: 38%; background: #22c55e; animation-delay: 0.05s; }
.spin-confetti-piece--3 { left: 54%; background: #3b82f6; animation-delay: 0.15s; }
.spin-confetti-piece--4 { left: 70%; background: #fbbf24; animation-delay: 0.08s; }
.spin-confetti-piece--5 { left: 86%; background: #ec4899; animation-delay: 0.18s; }

@keyframes spin-confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(14rem) rotate(220deg); opacity: 0; }
}

@keyframes spin-pointer-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(0.2rem); }
}

@keyframes spin-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #1c1917, 0 0 0 4px rgba(251, 191, 36, 0.55), 0 10px 24px rgba(234, 88, 12, 0.45); }
    50% { box-shadow: 0 0 0 2px #1c1917, 0 0 0 7px rgba(251, 191, 36, 0.35), 0 12px 28px rgba(234, 88, 12, 0.55); }
}

@keyframes spin-icon-pop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin-modal-in {
    0% { transform: translate(-50%, -46%) scale(0.92); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes spin-ready-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 0.45rem rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes spin-stage-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.06); }
}

@keyframes spin-wheel-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.012); }
}

@keyframes spin-bulb-twinkle {
    0%, 100% { opacity: 0.55; filter: brightness(0.85); }
    50% { opacity: 1; filter: brightness(1.25); }
}

@keyframes spin-fab-menu-in {
    0% { transform: translateY(0.5rem) scale(0.92); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 380px) {
    .spin-fab-items {
        grid-template-columns: 1fr;
    }

    .spin-inv-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem 0.75rem 0.7rem;
        gap: 0.35rem 0.6rem;
    }

    .spin-inv-tip {
        max-width: min(12rem, 70vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spin-btn--ready,
    .spin-pointer,
    .spin-wheel-wrap--idle,
    .spin-wheel-wrap--idle .spin-wheel-bulb,
    .spin-hud-chip-dot,
    .spin-stage--spinning,
    .spin-modal,
    .spin-modal-icon-plate {
        animation: none !important;
    }
}

.wordle-hint-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
}

.wordle-hint-btn {
    border: 0;
    background: #7c3aed;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
}

.wordle-hint-btn:disabled {
    background: #d4d4d8;
    cursor: not-allowed;
}

.wordle-hint-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.wordle-cell--hint {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}

/* ── Activity 365 ladder ─────────────────────────────────────────────────── */
.a365-ladder-page {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem 1rem 5rem;
}

.a365-ladder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.a365-ladder-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ea580c;
}

.a365-ladder-title {
    margin: 0.15rem 0 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: #262626;
}

.a365-ladder-meta {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #737373;
}

.a365-ladder-hint {
    margin: 0.45rem 0 0;
    max-width: 18rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
}

.a365-complete-banner {
    margin: 0 0 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(120deg, #ecfdf5, #fef9c3);
    border: 1px solid #86efac;
    color: #166534;
    font-size: 0.88rem;
    font-weight: 800;
}

.a365-bulb-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 3.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: linear-gradient(160deg, #fef9c3, #fff);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.18);
}

.a365-bulb-btn span:first-child {
    font-size: 1.35rem;
    line-height: 1;
}

.a365-bulb-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #a16207;
}

.a365-toast {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 600;
}

.a365-ladder-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.a365-ladder-page-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.a365-path {
    position: relative;
    width: 100%;
    margin: 0.25rem 0 0;
    padding: 0.35rem 0.25rem 0.75rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 8%, #bbf7d0 0%, transparent 42%),
        radial-gradient(circle at 82% 35%, #fde68a 0%, transparent 38%),
        radial-gradient(circle at 28% 78%, #c7d2fe 0%, transparent 42%),
        linear-gradient(180deg, #ecfdf5 0%, #fefce8 48%, #eff6ff 100%);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: a365-map-drift 14s ease-in-out infinite alternate;
}

@keyframes a365-map-drift {
    from { background-position: 0% 0%, 100% 20%, 10% 100%, 0 0; }
    to { background-position: 8% 6%, 92% 28%, 18% 94%, 0 0; }
}

.a365-path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.a365-path-ribbon {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.a365-path-ribbon--edge {
    stroke: #e8d4a8;
    stroke-width: 28;
}

.a365-path-ribbon--road {
    stroke: #f7ebc8;
    stroke-width: 22;
}

.a365-path-ribbon--dash {
    stroke: #e11d48;
    stroke-width: 5;
    stroke-dasharray: 11 16;
    animation: a365-path-flow 3.2s linear infinite;
}

@keyframes a365-path-flow {
    to { stroke-dashoffset: -54; }
}

.a365-node {
    position: absolute;
    z-index: 1;
    width: 3.1rem;
    height: 3.1rem;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(-50%);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

.a365-node:not(:disabled):hover {
    transform: translateX(-50%) translateY(-2px);
}

.a365-node:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.a365-node:focus {
    outline: none;
}

.a365-node:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.a365-node-num {
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
}

.a365-node-mark {
    font-size: 0.62rem;
    line-height: 1;
    margin-top: 0.05rem;
}

.a365-node--locked {
    background: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
}

.a365-node--available {
    background: linear-gradient(160deg, #fb7185, #ec4899);
    color: #fff;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.45);
    animation: a365-available-pulse 1.8s ease-in-out infinite;
}

@keyframes a365-available-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 2px 10px rgba(236, 72, 153, 0.45);
    }
    50% {
        transform: translateX(-50%) scale(1.06);
        box-shadow: 0 4px 18px rgba(236, 72, 153, 0.65);
    }
}

.a365-node--pending {
    background: linear-gradient(160deg, #fde047, #facc15);
    color: #854d0e;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
}

.a365-node--approved {
    background: linear-gradient(160deg, #4ade80, #22c55e);
    color: #14532d;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
}

.a365-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.a365-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.a365-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    display: inline-block;
}

.a365-dot--available { background: #ec4899; }
.a365-dot--pending { background: #eab308; }
.a365-dot--approved { background: #22c55e; }
.a365-dot--locked { background: #d1d5db; }

.a365-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

@media (min-width: 640px) {
    .a365-modal-backdrop {
        align-items: center;
    }
}

.a365-modal {
    position: relative;
    width: min(100%, 24rem);
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem 1.15rem 1.35rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.a365-modal-close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.a365-modal-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ea580c;
}

.a365-modal-title {
    margin: 0.2rem 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: #262626;
}

.a365-ref-image-wrap,
.a365-day-preview {
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.a365-ref-image,
.a365-day-preview img {
    display: block;
    width: 100%;
    max-height: 16rem;
    object-fit: contain;
    background: #fff;
}

.a365-ref-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 10rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.a365-ref-placeholder span {
    font-size: 2rem;
}

.a365-mini-bulb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    font-size: 0.78rem;
    font-weight: 700;
    color: #a16207;
    cursor: pointer;
}

.a365-upload {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.a365-upload-name {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.a365-submit-btn {
    width: 100%;
}

.a365-day-approved {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Teacher approvals */
.a365-teacher-page {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

.a365-teacher-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.a365-teacher-title {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.a365-teacher-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #737373;
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
}

.a365-teacher-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.a365-teacher-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.a365-teacher-table th,
.a365-teacher-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.a365-teacher-table th {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    background: #f8fafc;
}

.a365-teacher-table tbody tr:last-child td {
    border-bottom: 0;
}

.a365-teacher-table tbody tr:hover {
    background: #fffbeb;
}

.a365-teacher-table-thumb {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f1f5f9;
}

.a365-teacher-table-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a365-teacher-table-action {
    text-align: right;
}

.a365-teacher-student {
    margin-bottom: 1.25rem;
}

.a365-teacher-student-head {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.a365-teacher-student-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.a365-teacher-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.a365-teacher-card {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.a365-teacher-card--pending {
    border-color: #fde68a;
    background: #fffbeb;
}

.a365-teacher-card--approved {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.a365-teacher-thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a365-teacher-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a365-teacher-thumb-empty {
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
    padding: 0.25rem;
}

.a365-teacher-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.a365-teacher-status {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.a365-teacher-card--pending .a365-teacher-status {
    color: #a16207;
}

.a365-teacher-card--approved .a365-teacher-status {
    color: #15803d;
}

.a365-teacher-done {
    font-size: 0.78rem;
    font-weight: 700;
    color: #15803d;
}

@media (max-width: 520px) {
    .a365-teacher-card {
        grid-template-columns: 3.75rem 1fr;
    }

    .a365-teacher-card-actions {
        grid-column: 1 / -1;
    }

    .a365-teacher-card-actions .btn-primary {
        width: 100%;
    }
}

