/* Shared role-home styles consolidated from per-view inline CSS */

/* Full-bleed container margin */
.container-fluid.full-bleed {
    padding-left: 7px !important;
    padding-right: 7px !important;
    box-sizing: border-box;
}

/* Stronger rules to override layout/container padding coming from parent layout */
body > .container.flex-grow-1 > .container-fluid.full-bleed,
.container.flex-grow-1 > .container-fluid.full-bleed,
.container > .container-fluid.full-bleed {
    padding-left: 7px !important;
    padding-right: 7px !important;
}
.assessment-icon-small {
    width: 20px;
    height: 20px;
}
.assessment-icon-small .assessment-main-icon {
    font-size: 0.9rem;
    line-height: 20px;
}

/* Additional specific selectors covering common layout nesting (main element or extra wrapper) */
.container.flex-grow-1 > main > .container-fluid.full-bleed,
.container.flex-grow-1 main .container-fluid.full-bleed,
.container > main > .container-fluid.full-bleed,
body .container > main .container-fluid.full-bleed {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

/* Main role-home content rhythm */
body.role-home-page #studentCenterContent {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

body.role-home-page #studentCenterContent > * {
    width: 100%;
}

body.role-home-page #studentCenterContent > .rh-evalix-hero-section,
body.role-home-page #studentCenterContent > .gd-coins-section,
body.role-home-page #studentCenterContent > .refer-section,
body.role-home-page #studentCenterContent > .tips-section,
body.role-home-page #studentCenterContent > .enrollment-assessment-section,
body.role-home-page #studentCenterContent > .selected-child-profile-card,
body.role-home-page #studentCenterContent > #student-welcome-journey-container {
    margin-bottom: 0 !important;
}

/* When rendering RoleHomePages, the body will include a `role-home-page` class.
   Use this to keep container padding aligned with the top-navigation-only layout. */
body.role-home-page .container-fluid.full-bleed {
    padding-left: 7px !important;
    padding-right: 7px !important;
}
body.role-home-page .container.flex-grow-1 > .container-fluid.full-bleed {
    padding-left: 7px !important;
    padding-right: 7px !important;
}
body.role-home-page
    .container.flex-grow-1
    > main
    > .container-fluid.full-bleed {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

/* Right-column card header visibility - do not override gradient headers */
aside.custom-col-2-5
    .card-header:not(.bg-gradient-coins):not(.bg-gradient-refer),
aside.custom-col-right
    .card-header:not(.bg-gradient-coins):not(.bg-gradient-refer) {
    background-color: #e9ecef !important; /* slightly darker than page background */
    color: #495057 !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Card and header styles for parent profile forms */
.card {
    border-radius: 4px;
    border: 1px solid #e9ecef;
}
.pin-header {
    background-color: #e9ecef;
    color: #495057;
}
.pin-header h3 {
    margin: 0;
}
.pin-header h6 {
    margin: 0;
    color: #6c757d;
}

/* Form focus / selection visual */
input:focus,
select:focus,
textarea:focus {
    background-color: #f8f9fa !important;
    outline: none !important;
    box-shadow: none !important;
}
.btn:focus,
.btn:active,
.btn.active {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

/* Small helper for injected content alignment */
#mainContent.gd-no-top-gap > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive column aliases kept in views; base widths preserved here if needed */
@media (min-width: 768px) {
    .custom-col-2-5 {
        flex: 0 0 20.8333333%;
        max-width: 20.8333333%;
    }
    .custom-col-7 {
        flex: 0 0 54.1666667%;
        max-width: 54.1666667%;
    }
}

/* Mobile Responsive Styles for Role Home Pages */
@media (max-width: 767px) {
    /* Stack all columns vertically on mobile */
    .custom-col-2-5,
    .custom-col-7,
    .custom-col-left,
    .custom-col-center,
    .custom-col-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }

    /* Full width main content on mobile */
    main.custom-col-7,
    main.custom-col-center {
        padding: 0 10px !important;
    }

    /* Reduce container padding on mobile */
    .container-fluid.full-bleed {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.role-home-page .container-fluid.full-bleed,
    body.role-home-page .container.flex-grow-1 > .container-fluid.full-bleed,
    body.role-home-page
        .container.flex-grow-1
        > main
        > .container-fluid.full-bleed {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Adjust column gaps on mobile */
    .row > aside:first-of-type,
    .row > main,
    .row > aside:last-of-type {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Dashboard header adjustments */
    .container-fluid.bg-white {
        padding: 0.75rem 10px !important;
    }

    .container-fluid.bg-white h5 {
        font-size: 1.1rem !important;
    }

    .container-fluid.bg-white .container {
        padding: 0 !important;
    }

    /* Card adjustments for mobile */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .card-header {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Right column (Company News, etc.) full width on mobile */
    aside.custom-col-2-5:last-child,
    aside.custom-col-right {
        display: block !important;
        order: 3; /* Show after main content */
    }

    /* Left menu now stays fixed-width on mobile and does not change page layout state */

    /* Ensure row has no horizontal overflow */
    .row.gx-0 {
        margin-left: 0;
        margin-right: 0;
    }

    body.role-home-page #studentCenterContent {
        gap: 1rem;
    }

    /* Adjust GD Coins and Refer sections for mobile */
    .coins-balance-badge {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
        gap: 0.55rem;
    }

    .coins-balance-icon {
        width: 2rem;
        height: 2rem;
    }

    .coins-balance-value {
        font-size: 0.9rem;
    }

    .coin-earn-box {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .coins-visual-wrapper {
        padding: 1.5rem 0.5rem;
    }

    /* Referral code box mobile adjustments */
    .referral-code-box {
        padding: 0.8rem;
    }

    .referral-code-display {
        font-size: 1.1rem !important;
    }

    .refer-summary-panel {
        margin-top: 1rem;
    }

    .refer-summary-icon {
        font-size: 4rem;
    }

    .gd-metric-grid,
    .refer-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* GD Coins and Refer section styles shared across role homes */
.gd-coins-section .card,
.refer-section .card {
    border-radius: 28px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    box-shadow: 0 24px 56px rgba(18, 38, 63, 0.1);
    overflow: hidden;
}

.bg-gradient-coins,
.bg-gradient-refer {
    background: linear-gradient(135deg, #052f8b 0%, #1248b3 48%, #15c5cf 100%);
}

.card-header.bg-gradient-coins,
.card-header.bg-gradient-refer {
    position: relative;
    padding: 1.7rem 1.75rem 1.55rem !important;
    background: linear-gradient(
        135deg,
        #052f8b 0%,
        #1248b3 48%,
        #15c5cf 100%
    ) !important;
    color: #fff !important;
    border: 0 !important;
}

.card-header.bg-gradient-coins::before,
.card-header.bg-gradient-refer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at left 18%,
            rgba(255, 255, 255, 0.1),
            transparent 22%
        );
    pointer-events: none;
}

.gd-section-header {
    position: relative;
    z-index: 1;
}

.gd-section-header-copy {
    max-width: 760px;
}

.gd-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.gd-section-icon i {
    font-size: 1.9rem;
    line-height: 1;
}

.gd-section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gd-section-header h3 {
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gd-section-subtitle {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
}

.subscription-section {
    position: relative;
}

.subscription-section .subscription-card {
    overflow: hidden;
    border: 1px solid rgba(5, 47, 139, 0.1);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 56px rgba(18, 38, 63, 0.1);
}

.subscription-section .subscription-header {
    position: relative;
    padding: 1.6rem 1.75rem;
    color: #fff;
    background: linear-gradient(135deg, #052f8b 0%, #1248b3 54%, #15c5cf 100%);
}

.subscription-section .subscription-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at left 20%, rgba(255, 255, 255, 0.08), transparent 22%);
    pointer-events: none;
}

.subscription-section .subscription-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
    gap: 1.25rem;
    align-items: center;
}

.subscription-section .subscription-eyebrow,
.subscription-section .subscription-section-kicker,
.subscription-section .premium-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.subscription-section .subscription-eyebrow {
    margin-bottom: 0.9rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-section .subscription-icon-wrapper {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.subscription-section .subscription-header h2 {
    color: #fff;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.subscription-section .subscription-header p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
}

.subscription-section .subscription-hero-stats {
    display: grid;
    gap: 0.8rem;
}

.subscription-section .subscription-hero-stat {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.subscription-section .subscription-hero-stat span {
    display: block;
    margin-bottom: 0.22rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.subscription-section .subscription-hero-stat strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.subscription-section .subscription-benefits-section-premium,
.subscription-section .premium-access-section,
.subscription-section .payment-methods-section,
.subscription-section .guarantee-section {
    border: 1px solid rgba(5, 47, 139, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(18, 38, 63, 0.06);
}

.subscription-section .subscription-benefits-section-premium {
    padding: 1.2rem;
}

.subscription-section .subscription-benefits-head h5,
.subscription-section .premium-access-head h5 {
    color: #10243f;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.subscription-section .subscription-benefits-intro,
.subscription-section .premium-access-copy {
    color: #5f728c;
    line-height: 1.8;
}

.subscription-section .subscription-section-kicker {
    margin-bottom: 0.75rem;
    background: rgba(5, 47, 139, 0.08);
    border: 1px solid rgba(5, 47, 139, 0.08);
    color: #052f8b;
}

.subscription-section .premium-access-section {
    padding: 1.15rem;
}

.subscription-section .premium-access-head {
    margin-bottom: 1rem;
}

.subscription-section .premium-access-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(5, 47, 139, 0.08), rgba(21, 197, 207, 0.12));
    border: 1px solid rgba(5, 47, 139, 0.08);
    color: #052f8b;
}

.subscription-section .subscription-card .card-body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.subscription-section .card.subscription-card {
    border: 1px solid rgba(5, 47, 139, 0.08) !important;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.06) !important;
}

.subscription-section .card.subscription-card .card-body {
    background: #fff;
}

.subscription-section .card.subscription-card .card-title .text-primary,
.subscription-section .card.subscription-card .card-subtitle {
    color: #10243f !important;
}

.subscription-section .subscription-coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(5, 47, 139, 0.08);
    color: #052f8b;
    font-size: 0.8rem;
    font-weight: 800;
}

.subscription-section .card.subscription-card .btn-primary {
    background: linear-gradient(135deg, #052f8b 0%, #1248b3 55%, #15c5cf 100%);
    border: 0;
    box-shadow: 0 14px 30px rgba(5, 47, 139, 0.16);
}

.subscription-section .card.subscription-card .btn-primary:hover,
.subscription-section .card.subscription-card .btn-primary:focus {
    background: linear-gradient(135deg, #04256d 0%, #0f3f9b 55%, #10aeb8 100%);
    box-shadow: 0 16px 34px rgba(5, 47, 139, 0.22);
}

.subscription-section .payment-methods-section,
.subscription-section .guarantee-section {
    padding: 1rem 1.1rem;
}

.subscription-section .payment-icon-box {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: #052f8b;
}

.subscription-section .guarantee-section h6,
.subscription-section .guarantee-section p,
.subscription-section .payment-methods-section h6,
.subscription-section .payment-methods-section p {
    color: #10243f;
}

.subscription-section .guarantee-section p,
.subscription-section .payment-methods-section p {
    color: #5f728c;
}

.subscription-section .guarantee-icon {
    color: #198754;
}

.coin-icon-header {
    animation: coinRotate 3s ease-in-out infinite;
}

@keyframes coinRotate {
    0%,
    100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

.gd-coins-section .card-body,
.refer-section .card-body {
    padding: 2rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.gd-content-panel {
    height: 100%;
}

.gd-content-intro {
    margin-bottom: 1.4rem;
}

.gd-content-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(5, 47, 139, 0.08);
    border: 1px solid rgba(5, 47, 139, 0.08);
    color: #052f8b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gd-content-title {
    margin: 1rem 0 0.65rem;
    color: #10243f;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.gd-content-copy {
    margin: 0;
    color: #5f728c;
    font-size: 1rem;
    line-height: 1.9;
}

.coins-balance-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 200px;
    padding: 0.68rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.12)
    );
    box-shadow: 0 14px 30px rgba(3, 28, 84, 0.16);
    color: #fff;
}

.coins-balance-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.coins-balance-icon i {
    font-size: 1rem;
    line-height: 1;
}

.coins-balance-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.coins-balance-label {
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.coins-balance-value {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
}

.coins-balance-badge-referral {
    min-width: 220px;
}

.coin-earn-box,
.refer-benefit-item,
.refer-method-box {
    height: 100%;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #f9fcff);
    border-radius: 18px;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    border: 1px solid rgba(5, 47, 139, 0.08);
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.05);
}

.gd-coins-section .card-header.bg-gradient-coins,
.refer-section .card-header.bg-gradient-refer {
    color: #fff !important;
}

.gd-coins-section .gd-section-kicker,
.refer-section .gd-section-kicker,
.gd-coins-section .gd-section-subtitle,
.refer-section .gd-section-subtitle,
.gd-coins-section .coins-balance-label,
.refer-section .coins-balance-label {
    color: rgba(255, 255, 255, 0.86);
}

.gd-coins-section .gd-content-title,
.refer-section .gd-content-title,
.gd-coins-section .gd-balance-value,
.refer-section .refer-summary-title,
.gd-coins-section .refer-summary-title,
.refer-section .refer-step-copy strong,
.gd-coins-section .refer-step-copy strong,
.gd-coins-section .refer-stat-value,
.refer-section .refer-stat-value,
.gd-coins-section .coin-earn-box strong,
.refer-section .refer-benefit-item strong {
    color: #10243f;
}

.gd-coins-section .gd-content-copy,
.refer-section .gd-content-copy,
.gd-coins-section .gd-balance-caption,
.refer-section .refer-step-copy span,
.gd-coins-section .refer-step-copy span,
.gd-coins-section .gd-empty-state-note,
.refer-section .refer-summary-note,
.gd-coins-section .refer-summary-note,
.gd-coins-section .coin-earn-box p,
.refer-section .refer-benefit-item p,
.gd-coins-section .refer-benefit-item p {
    color: #5f728c;
}

.gd-coins-section .coins-visual-wrapper,
.refer-section .refer-summary-panel {
    background: linear-gradient(180deg, rgba(5, 47, 139, 0.04), rgba(21, 197, 207, 0.09));
}

.gd-coins-section .gd-metric-card,
.refer-section .refer-stat-card,
.gd-coins-section .refer-process-step {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.gd-coins-section .gd-metric-card-accent {
    background: linear-gradient(180deg, rgba(5, 47, 139, 0.06), rgba(21, 197, 207, 0.12));
}

.refer-section .refer-summary-icon {
    color: #052f8b;
}

.refer-section .refer-step-number {
    box-shadow: 0 10px 22px rgba(5, 47, 139, 0.18);
}

.gd-coins-section .card,
.refer-section .card {
    position: relative;
}

.gd-coins-section .card::before,
.refer-section .card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.coin-earn-box:hover,
.refer-benefit-item:hover,
.refer-method-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.1);
    border-color: rgba(5, 47, 139, 0.14);
}

.coin-earn-box strong,
.refer-benefit-item strong {
    display: block;
    margin-bottom: 0.28rem;
    color: #10243f;
    font-size: 1rem;
    font-weight: 800;
}

.coin-earn-box p,
.refer-benefit-item p,
.refer-benefit-item div {
    color: #5f728c;
    line-height: 1.7;
}

.coin-icon-wrapper,
.refer-icon-wrapper {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(18, 38, 63, 0.12);
}

.coin-icon-wrapper i,
.refer-icon-wrapper i {
    font-size: 1.15rem;
}

.gd-action-row {
    margin-top: 1.25rem;
}

.gd-coins-section .btn,
.refer-section .btn {
    border-radius: 999px;
    font-weight: 700;
    min-height: 46px;
    padding-inline: 1.1rem;
}

.gd-coins-section .btn-success,
.refer-section .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #052f8b 0%, #1248b3 100%);
    box-shadow: 0 14px 28px rgba(5, 47, 139, 0.18);
}

.gd-coins-section .btn-outline-primary,
.gd-coins-section .btn-outline-secondary,
.refer-section .btn-outline-primary {
    border-color: rgba(5, 47, 139, 0.18);
    color: #052f8b;
    background: rgba(5, 47, 139, 0.03);
}

.gd-coins-section .btn:hover,
.refer-section .btn:hover {
    transform: translateY(-2px);
}

.coins-visual-wrapper,
.refer-summary-panel {
    position: relative;
    height: 100%;
    padding: 1.45rem;
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.03),
        rgba(21, 197, 207, 0.08)
    );
    border: 1px solid rgba(5, 47, 139, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gd-coins-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.gd-coins-summary-top {
    margin-bottom: 1.25rem;
    text-align: center;
}

.coin-stack-animation {
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.gd-coins-orb {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 32px;
    background: radial-gradient(
        circle at 30% 25%,
        #ffe082 0%,
        #ffc107 45%,
        #f5a300 100%
    );
    box-shadow: 0 22px 40px rgba(245, 163, 0, 0.22);
}

.coin-icon-display {
    position: relative;
    z-index: 1;
    color: #7a4d00;
    font-size: 3.25rem;
    line-height: 1;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.coin-glow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 20px;
    background: radial-gradient(
        ellipse,
        rgba(255, 193, 7, 0.38) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.35;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.65;
        transform: translateX(-50%) scale(1.14);
    }
}

.gd-balance-value {
    margin: 0.85rem 0 0.45rem;
    color: #10243f;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.gd-balance-value small {
    font-size: 0.55em;
    font-weight: 700;
    color: #5f728c;
}

.gd-balance-caption {
    margin: 0 0 1.1rem;
    color: #5f728c;
    line-height: 1.75;
}

.gd-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.refer-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.gd-metric-card,
.refer-stat-card {
    padding: 0.95rem 0.85rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(5, 47, 139, 0.08);
    box-shadow: 0 12px 24px rgba(18, 38, 63, 0.05);
}

.gd-metric-card span,
.refer-stat-label {
    display: block;
    color: #6b778c;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}

.gd-metric-card strong,
.refer-stat-value {
    display: block;
    margin-top: 0.35rem;
    color: #10243f;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
}

.gd-metric-card-accent {
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.06),
        rgba(21, 197, 207, 0.08)
    );
}

.gd-empty-state-note,
.refer-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    margin-top: 1rem;
    border-radius: 18px;
    background: rgba(5, 47, 139, 0.05);
    border: 1px solid rgba(5, 47, 139, 0.08);
    color: #415067;
}

.gd-empty-state-note i,
.refer-summary-note i {
    color: #1248b3;
    margin-top: 0.1rem;
}

.referral-code-box {
    padding: 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f9fcff);
    border: 1px dashed rgba(5, 47, 139, 0.18);
    box-shadow: 0 14px 30px rgba(18, 38, 63, 0.06);
}

.referral-code {
    font-size: 1.6rem;
    font-weight: 800;
    color: #052f8b;
    letter-spacing: 0.16em;
    font-family: "Courier New", monospace;
}

#teacherReferLink {
    border-radius: 999px;
    border: 1px solid rgba(5, 47, 139, 0.14);
    background: rgba(5, 47, 139, 0.03);
    min-height: 44px;
}

.referral-link-input {
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 100%;
}

.refer-method-box {
    cursor: pointer;
    text-align: center;
}

.refer-method-box-compact {
    padding: 0.9rem 0.55rem;
}

.refer-icon-wrapper {
    margin: 0 auto 0.65rem;
    transition: transform 0.22s ease;
}

.refer-icon-compact {
    width: 44px;
    height: 44px;
}

.refer-method-box:hover .refer-icon-wrapper {
    transform: scale(1.08) rotate(4deg);
}

.refer-benefit-check {
    font-size: 1.2rem;
}

.refer-summary-panel {
    justify-content: center;
}

.refer-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 1rem;
    border-radius: 28px;
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.1),
        rgba(21, 197, 207, 0.16)
    );
    color: #1248b3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.refer-summary-icon i {
    font-size: 3rem;
}

.refer-summary-title {
    color: #052f8b;
}

.refer-stat-value.is-success {
    color: #198754;
}

.refer-process-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.refer-process-step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(5, 47, 139, 0.08);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.05);
    color: #415067;
}

.refer-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #052f8b 0%, #15c5cf 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.refer-step-copy strong {
    display: block;
    color: #10243f;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.refer-step-copy span {
    display: block;
    color: #5f728c;
    line-height: 1.6;
}

.refer-empty-state {
    max-width: 340px;
    margin: 0 auto;
}

/* Shared polish for role-home utility cards */
.selected-child-profile-card {
    border-radius: 22px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 16px 34px rgba(18, 38, 63, 0.08);
}

.selected-child-profile-card .card-body {
    padding: 1rem 1.1rem !important;
}

.selected-child-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 3px solid rgba(5, 47, 139, 0.08);
    box-shadow: 0 10px 18px rgba(18, 38, 63, 0.1);
}

.tips-section .card {
    border-radius: 20px;
    border: 1px solid rgba(255, 193, 7, 0.18);
    background: linear-gradient(180deg, #fffdf4, #fff8df) !important;
    box-shadow: 0 14px 28px rgba(197, 146, 0, 0.08);
}

.tips-section .card-body {
    padding: 1rem 1.1rem !important;
}

.tips-icon {
    font-size: 2rem;
    line-height: 1;
}

body.role-home-page .gd-coins-section table,
body.role-home-page .refer-section table,
body.role-home-page .card table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Assessment section styles (shared between StudentHome and ParentHome) */
.assessment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0;
    border-radius: 15px;
}
.assessment-section .card {
    border-radius: 15px;
    overflow: hidden;
}
.assessment-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    animation: rh-pulse 2s infinite;
}
@keyframes rh-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
.assessment-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
}
.assessment-main-icon {
    color: white;
    font-size: 1.5rem;
    line-height: 80px;
}
.assessment-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
}
.assessment-details .detail-box {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid #0d6efd;
}
.assessment-details .detail-box:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.assessment-details .detail-box i {
    font-size: 1.25rem;
    vertical-align: middle;
}
.assessment-details .detail-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #212529;
}
.assessment-instructions ul {
    list-style: none;
    padding-left: 1.5rem;
}
.assessment-instructions ul li {
    position: relative;
    margin-bottom: 0.5rem;
}
.assessment-instructions ul li::before {
    content: "✓";
    position: absolute;
    left: -1.5rem;
    color: #198754;
    font-weight: bold;
}

/* Reusable role-based Evalix hero */
.rh-evalix-hero-section {
    position: relative;
}

.rh-evalix-hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 2.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #052f8b 0%, #1248b3 45%, #15c5cf 100%);
    box-shadow: 0 24px 60px rgba(5, 47, 139, 0.18);
}

.rh-evalix-hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.14),
            transparent 24%
        ),
        radial-gradient(
            circle at left 16%,
            rgba(255, 255, 255, 0.08),
            transparent 22%
        );
    pointer-events: none;
}

.rh-evalix-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.rh-evalix-copy {
    max-width: 540px;
}

.rh-evalix-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rh-evalix-title {
    margin-top: 1.3rem;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #fff;
}

.rh-evalix-body {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.03rem;
    line-height: 1.9;
}

.rh-evalix-actions {
    margin-top: 1.8rem;
}

.rh-evalix-btn {
    min-height: 50px;
    padding: 0.88rem 1.3rem;
    border-radius: 999px;
    background: #fff;
    color: #052f8b;
    font-weight: 800;
    border: 0;
    box-shadow: 0 18px 34px rgba(3, 28, 84, 0.18);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.rh-evalix-btn:hover,
.rh-evalix-btn:focus {
    color: #031c54;
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(3, 28, 84, 0.22);
}

.rh-evalix-dashboard-wrap {
    display: flex;
    justify-content: center;
}

.rh-evalix-dashboard-card {
    width: 100%;
    max-width: 560px;
    padding: 1.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 28px 54px rgba(3, 28, 84, 0.18);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.rh-evalix-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 62px rgba(3, 28, 84, 0.22);
}

.rh-evalix-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rh-evalix-dashboard-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rh-evalix-dashboard-header h3 {
    margin: 0;
    color: #10243f;
    font-size: 1.15rem;
    font-weight: 800;
}

.rh-evalix-dashboard-status {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(21, 197, 207, 0.12);
    color: #0f7f98;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.rh-evalix-dashboard-visual {
    min-height: 230px;
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(5, 47, 139, 0.14);
    background:
        linear-gradient(
            135deg,
            rgba(5, 47, 139, 0.05),
            rgba(21, 197, 207, 0.08)
        ),
        #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #052f8b;
    text-align: left;
}

.rh-evalix-dashboard-visual > div {
    max-width: 28rem;
}

.rh-evalix-placeholder-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(5, 47, 139, 0.08);
    color: #052f8b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rh-evalix-dashboard-visual p {
    margin: 0;
    color: #5f728c;
    line-height: 1.8;
}

.rh-evalix-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.rh-evalix-widget-card {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(5, 47, 139, 0.08);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
}

.rh-evalix-widget-card span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.rh-evalix-widget-card strong {
    display: block;
    color: #10243f;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.45;
}

.rh-evalix-widget-card-accent {
    background: linear-gradient(
        180deg,
        rgba(5, 47, 139, 0.05),
        rgba(21, 197, 207, 0.08)
    );
}

@media (max-width: 991.98px) {
    .rh-evalix-hero-shell {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .rh-evalix-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .rh-evalix-copy {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .rh-evalix-hero-shell {
        padding: 1.5rem 1rem;
        border-radius: 22px;
    }

    .rh-evalix-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rh-evalix-widget-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium role-home chrome overrides */
body.premium-ui-page.role-home-page .card {
    border-radius: 22px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    box-shadow: 0 16px 38px rgba(18, 38, 63, 0.08);
    overflow: hidden;
}

body.premium-ui-page.role-home-page .pin-header {
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.08),
        rgba(21, 197, 207, 0.1)
    );
    border: 1px solid rgba(5, 47, 139, 0.1);
    color: #132238;
    border-radius: 20px;
}

body.premium-ui-page.role-home-page .pin-header h3 {
    color: #132238;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.premium-ui-page.role-home-page .pin-header h6 {
    color: #5d6b82;
}

body.premium-ui-page.role-home-page .student-profile-card,
body.premium-ui-page.role-home-page .teacher-profile-card,
body.premium-ui-page.role-home-page .user-profile-card {
    background: linear-gradient(135deg, #052f8b 0%, #1248b3 48%, #15c5cf 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(5, 47, 139, 0.18);
}

body.premium-ui-page.role-home-page .student-profile-card::before,
body.premium-ui-page.role-home-page .teacher-profile-card::before,
body.premium-ui-page.role-home-page .user-profile-card::before {
    opacity: 0.9;
}

body.premium-ui-page.role-home-page .profile-toggle-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(3, 28, 84, 0.12);
}

body.premium-ui-page.role-home-page .profile-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

body.premium-ui-page.role-home-page .student-name {
    text-shadow: 0 1px 10px rgba(3, 28, 84, 0.18);
    font-weight: 600;
}

body.premium-ui-page.role-home-page .role-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 500;
}

body.premium-ui-page.role-home-page .profile-details-grid {
    border-top-color: rgba(255, 255, 255, 0.15);
}

body.premium-ui-page.role-home-page .detail-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 6px 16px rgba(18, 38, 63, 0.08);
}

body.premium-ui-page.role-home-page .detail-label {
    color: #5d6b82;
}

body.premium-ui-page.role-home-page .detail-value {
    color: #132238;
}

body.premium-ui-page.role-home-page .student-profile-card,
body.premium-ui-page.role-home-page .teacher-profile-card,
body.premium-ui-page.role-home-page .user-profile-card {
    position: relative;
    overflow: visible;
}

body.premium-ui-page.role-home-page .profile-header {
    position: relative;
    z-index: 2;
}

body.premium-ui-page.role-home-page .profile-details {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(320px, calc(100vw - 1rem));
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 54px rgba(18, 38, 63, 0.16);
    backdrop-filter: blur(18px);
    z-index: 1085;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.985);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        max-height 0.2s ease;
}

body.premium-ui-page.role-home-page .profile-details.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

body.premium-ui-page.role-home-page .profile-details-grid {
    gap: 0.45rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

body.premium-ui-page.role-home-page .children-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(5, 47, 139, 0.08);
}

body.premium-ui-page.role-home-page .children-header {
    flex-wrap: wrap;
}

body.premium-ui-page.role-home-page .children-title {
    color: #132238;
    font-weight: 800;
}

body.premium-ui-page.role-home-page .children-subtitle {
    color: #5d6b82;
}

body.premium-ui-page.role-home-page .student-box {
    border-radius: 999px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(18, 38, 63, 0.05);
    color: #132238;
}

body.premium-ui-page.role-home-page .student-box.active {
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.08),
        rgba(21, 197, 207, 0.12)
    );
    color: #052f8b;
    border-color: rgba(5, 47, 139, 0.16);
}

body.premium-ui-page.role-home-page #childProfileArea {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.06),
        rgba(21, 197, 207, 0.08)
    );
    border: 1px solid rgba(5, 47, 139, 0.1);
    border-radius: 18px;
}

body.premium-ui-page.role-home-page .gd-header-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 0.18rem 0.22rem;
    box-shadow: 0 10px 22px rgba(18, 38, 63, 0.06);
    backdrop-filter: blur(16px);
}

body.premium-ui-page.role-home-page .gd-header-profile-trigger:hover {
    border-color: rgba(5, 47, 139, 0.18);
    background: rgba(255, 255, 255, 0.95);
}

body.premium-ui-page.role-home-page .gd-header-profile-panel {
    width: min(282px, calc(100vw - 1rem));
    padding: 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 50px rgba(18, 38, 63, 0.16);
    backdrop-filter: blur(18px);
}

body.premium-ui-page.role-home-page .gd-header-profile-summary {
    border-bottom-color: rgba(5, 47, 139, 0.08);
}

body.premium-ui-page.role-home-page .gd-header-profile-summary .student-name {
    color: #132238;
    text-shadow: none;
}

body.premium-ui-page.role-home-page .gd-header-profile-summary .role-badge {
    background: rgba(5, 47, 139, 0.08);
    color: #052f8b;
    border: 1px solid rgba(5, 47, 139, 0.12);
}

body.premium-ui-page.role-home-page .gd-header-profile-detail {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    border: 1px solid rgba(18, 38, 63, 0.08);
    border-radius: 14px;
}

body.premium-ui-page.role-home-page .gd-header-profile-logout {
    border: 1px solid rgba(5, 47, 139, 0.14);
    background: linear-gradient(135deg, #052f8b 0%, #15c5cf 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(5, 47, 139, 0.18);
    font-weight: 600;
}

body.premium-ui-page.role-home-page .gd-header-profile-logout:hover {
    background: linear-gradient(135deg, #1248b3 0%, #19b9c8 100%);
}

body.premium-ui-page.role-home-page #topMenusPlaceholder {
    gap: 0.5rem;
}

body.premium-ui-page.role-home-page #topMenusPlaceholder .top-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    padding-bottom: 0.4rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #132238 !important;
    box-shadow: none;
    font-weight: 400;
    position: relative;
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

body.premium-ui-page.role-home-page #topMenusPlaceholder .top-menu:hover,
body.premium-ui-page.role-home-page #topMenusPlaceholder .top-menu.active,
body.premium-ui-page.role-home-page #topMenusPlaceholder .top-menu:focus {
    color: #052f8b !important;
    background: transparent;
    border-color: transparent;
    transform: none;
}

body.premium-ui-page.role-home-page
    #topMenusPlaceholder
    .top-menu.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #052f8b 0%, #15c5cf 100%);
}

body.premium-ui-page.role-home-page .gd-top-menu-dropdown {
    min-width: 300px;
    max-width: 400px;
    padding: 0.6rem;
    border: 1px solid rgba(5, 47, 139, 0.1);
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

body.premium-ui-page.role-home-page .gd-top-menu-group {
    padding: 0.1rem 0;
}

body.premium-ui-page.role-home-page .gd-top-menu-open,
body.premium-ui-page.role-home-page .gd-top-menu-level2,
body.premium-ui-page.role-home-page .gd-top-menu-level3 {
    border-radius: 0;

    padding: 0.22rem 0.45rem;

    font-weight: 400;
}

body.premium-ui-page.role-home-page .gd-top-menu-heading {
    cursor: default;

    pointer-events: none;
}

body.premium-ui-page.role-home-page .gd-top-menu-open:hover,
body.premium-ui-page.role-home-page .gd-top-menu-level2:hover,
body.premium-ui-page.role-home-page .gd-top-menu-level3:hover,
body.premium-ui-page.role-home-page .gd-top-menu-open:focus,
body.premium-ui-page.role-home-page .gd-top-menu-level2:focus,
body.premium-ui-page.role-home-page .gd-top-menu-level3:focus,
body.premium-ui-page.role-home-page .gd-top-menu-heading:hover,
body.premium-ui-page.role-home-page .gd-top-menu-heading:focus {
    background: transparent;

    color: #052f8b !important;

    text-decoration: none;
}

body.premium-ui-page.role-home-page .gd-top-menu-level3-list {
    margin-top: 0.15rem;
    padding-left: 0.4rem;
    border-left: 1px solid rgba(5, 47, 139, 0.08);
    display: grid;
    gap: 0.1rem;
}

body.premium-ui-page.role-home-page
    .gd-top-menu-dropdown
    .dropdown-item.active::after,
body.premium-ui-page.role-home-page
    .gd-top-menu-dropdown
    .dropdown-item:active::after {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.16rem;
}

body.premium-ui-page.role-home-page .gd-top-menu-dropdown .dropdown-divider {
    margin: 0.2rem 0;
}

body.premium-ui-page.role-home-page .teacher-home-page {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.premium-ui-page.role-home-page .teacher-home-shell {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

body.premium-ui-page.role-home-page .teacher-home-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 28px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(21, 197, 207, 0.18),
            transparent 24%
        ),
        linear-gradient(135deg, #052f8b 0%, #1248b3 50%, #15c5cf 100%);
    color: #fff;
    box-shadow: 0 20px 46px rgba(5, 47, 139, 0.18);
}

body.premium-ui-page.role-home-page .teacher-home-copy {
    min-width: 0;
}

body.premium-ui-page.role-home-page .teacher-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.premium-ui-page.role-home-page .teacher-home-copy h1 {
    margin: 0.85rem 0 0;
    font-size: clamp(1.65rem, 3.6vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

body.premium-ui-page.role-home-page .teacher-home-copy p {
    margin: 0.8rem 0 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

body.premium-ui-page.role-home-page .teacher-home-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-self: stretch;
    min-width: min(480px, 100%);
}

body.premium-ui-page.role-home-page .teacher-home-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.premium-ui-page.role-home-page .teacher-home-metric span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

body.premium-ui-page.role-home-page .teacher-home-metric strong {
    font-size: 0.96rem;
    color: #fff;
    line-height: 1.3;
}

body.premium-ui-page.role-home-page .teacher-home-sections {
    display: grid;
    gap: 1rem;
}

body.premium-ui-page.role-home-page .teacher-home-alert {
    border-radius: 20px;
    border: 1px solid rgba(5, 47, 139, 0.1);
    background: linear-gradient(
        135deg,
        rgba(5, 47, 139, 0.08),
        rgba(21, 197, 207, 0.1)
    );
    color: #132238;
    box-shadow: 0 12px 28px rgba(5, 47, 139, 0.08);
}

body.premium-ui-page.role-home-page .teacher-home-alert .btn {
    border-radius: 999px;
}

@media (max-width: 768px) {
    body.premium-ui-page.role-home-page .teacher-home-hero {
        flex-direction: column;
    }

    body.premium-ui-page.role-home-page .teacher-home-metric-grid {
        min-width: 0;
        grid-template-columns: 1fr;
    }
}
