.student-showcase-page {
    --student-bg: #f6f2ea;
    --student-panel: rgba(255, 255, 255, 0.84);
    --student-panel-strong: rgba(255, 255, 255, 0.94);
    --student-line: rgba(148, 163, 184, 0.16);
    --student-ink: #1f2937;
    --student-muted: #667085;
    --student-accent: #0f766e;
    --student-accent-deep: #134e4a;
    --student-gold: #d97706;
    --student-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 28%),
        linear-gradient(180deg, #faf7f2 0%, #f2ece4 100%);
}

.student-showcase-page .site-shell {
    max-width: 1360px;
}

.student-showcase-page .site-header,
.student-showcase-page .site-footer {
    background: rgba(255, 252, 248, 0.82);
    border-color: var(--student-line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.student-showcase-page .brand-badge,
.student-showcase-page .btn.primary {
    background: linear-gradient(135deg, var(--student-accent), var(--student-accent-deep));
}

.student-showcase-page .page-content {
    gap: 26px;
}

.student-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 420px);
    gap: 20px;
    align-items: stretch;
}

.student-hero-copy,
.student-search-card,
.student-profile-card,
.student-score-card,
.student-log-card,
.student-empty-card {
    border-radius: 30px;
    border: 1px solid var(--student-line);
    background: var(--student-panel);
    box-shadow: var(--student-shadow);
    backdrop-filter: blur(16px);
}

.student-hero-copy {
    padding: 34px 36px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 238, 0.94));
}

.student-hero-copy h1 {
    margin: 10px 0 12px;
    color: var(--student-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.student-hero-copy p {
    margin: 0;
    max-width: 760px;
    color: var(--student-muted);
    font-size: 1.06rem;
    line-height: 1.9;
}

.student-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.student-hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--student-line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--student-muted);
    font-weight: 700;
}

.student-search-card {
    padding: 24px;
    display: grid;
    gap: 16px;
    align-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 243, 0.92)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.04), rgba(255, 255, 255, 0));
}

.student-search-field {
    display: grid;
    gap: 10px;
    color: var(--student-muted);
    font-weight: 700;
}

.student-search-field input {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid var(--student-line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--student-ink);
    padding: 0 18px;
    font-size: 1rem;
}

.student-search-card .btn {
    min-height: 54px;
    border-radius: 18px;
    font-weight: 800;
}

.student-dashboard {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.student-profile-card {
    position: sticky;
    top: 24px;
    padding: 26px;
    display: grid;
    gap: 18px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 250, 0.94));
}

.student-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-profile-badge,
.student-profile-rank {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
}

.student-profile-badge {
    background: rgba(15, 118, 110, 0.12);
    color: var(--student-accent);
}

.student-profile-rank {
    background: rgba(217, 119, 6, 0.12);
    color: var(--student-gold);
}

.student-profile-card .pet-avatar-wrap.large {
    min-height: 280px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.98), transparent 42%),
        linear-gradient(180deg, #fbfdff 0%, #f3f6f9 100%);
    border: 1px solid rgba(226, 232, 240, 0.86);
}

.student-profile-copy h2 {
    margin: 0 0 8px;
    color: var(--student-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.student-profile-copy p {
    margin: 0;
    color: var(--student-muted);
    line-height: 1.8;
}

.student-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.student-kpi {
    padding: 16px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.student-kpi span {
    display: block;
    color: var(--student-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.student-kpi strong {
    display: block;
    margin-top: 8px;
    color: var(--student-ink);
    font-size: 1.6rem;
    line-height: 1;
}

.student-meter-block {
    display: grid;
    gap: 8px;
}

.student-score-card,
.student-log-card {
    padding: 26px;
    background: var(--student-panel-strong);
}

.student-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.student-card-head h2 {
    margin: 8px 0 0;
    color: var(--student-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.08;
}

.student-score-list {
    display: grid;
    gap: 14px;
}

.student-score-row {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.student-score-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.student-score-copy strong {
    font-size: 1rem;
}

.student-score-copy span {
    color: var(--student-muted);
    font-weight: 700;
}

.student-score-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.14);
}

.student-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--student-accent), #1aa391);
}

.student-log-card {
    grid-column: 2;
}

.student-log-table-wrap {
    overflow-x: auto;
}

.student-log-table th,
.student-log-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.student-log-table th {
    color: var(--student-muted);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-empty-shell {
    display: grid;
}

.student-empty-card {
    padding: 34px 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 242, 0.96)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.04), rgba(255, 255, 255, 0));
}

.student-empty-card h2 {
    margin: 10px 0 12px;
    color: var(--student-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    line-height: 1.06;
}

.student-empty-card p {
    margin: 0;
    color: var(--student-muted);
    line-height: 1.85;
}

@media (max-width: 1080px) {
    .student-hero,
    .student-dashboard {
        grid-template-columns: 1fr;
    }

    .student-profile-card {
        position: static;
    }

    .student-log-card {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .student-showcase-page .site-shell {
        padding: 14px;
    }

    .student-hero-copy,
    .student-search-card,
    .student-profile-card,
    .student-score-card,
    .student-log-card,
    .student-empty-card {
        padding: 20px;
        border-radius: 24px;
    }

    .student-hero-copy h1 {
        font-size: 2.7rem;
    }

    .student-profile-copy h2,
    .student-card-head h2,
    .student-empty-card h2 {
        font-size: 2rem;
    }

    .student-kpi-grid {
        grid-template-columns: 1fr;
    }

    .student-score-copy {
        flex-direction: column;
        align-items: start;
    }
}
