:root {
    --app-bg: #f4f6fb;
    --app-surface: #ffffff;
    --app-ink: #172033;
    --app-muted: #6b7280;
    --app-soft: #f8f9fd;
    --app-primary: #4f46e5;
    --app-primary-dark: #3730a3;
    --app-primary-soft: #eef2ff;
    --app-accent: #f59e0b;
    --app-accent-soft: #fff7ed;
    --app-success: #059669;
    --app-success-soft: #ecfdf5;
    --app-danger: #dc2626;
    --app-danger-soft: #fef2f2;
    --app-info: #0284c7;
    --app-info-soft: #f0f9ff;
    --app-border: #e5e7eb;
    --app-radius: 18px;
    --app-radius-lg: 24px;
    --app-shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
    --app-shadow-sm: 0 8px 24px rgba(23, 32, 51, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

main {
    flex: 1;
}

a {
    color: var(--app-primary);
    text-decoration: none;
}

a:hover {
    color: var(--app-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-navbar {
    background: linear-gradient(120deg, #101827 0%, #1f2937 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

.brand-mark-lg {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 1.55rem;
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    padding: 0.55rem 0.85rem !important;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #3b2503;
    font-weight: 800;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-meta strong {
    color: #fff;
    font-size: 0.82rem;
}

.user-meta small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.app-footer {
    padding: 1.3rem 0;
    color: var(--app-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.65);
}

.messages-stack {
    margin-bottom: 1.25rem;
}

.messages-stack .alert {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--app-shadow-sm);
}

.page-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.page-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--app-primary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
}

.page-title {
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    margin: 0;
}

.page-subtitle {
    color: var(--app-muted);
    margin: 0.4rem 0 0;
    max-width: 680px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--app-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(79, 70, 229, 0.28);
    margin-bottom: 1.6rem;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.hero-card::before {
    width: 280px;
    height: 280px;
    right: -90px;
    top: -130px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-card::after {
    width: 180px;
    height: 180px;
    right: 100px;
    bottom: -120px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero-card h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    margin-bottom: 0.6rem;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.hero-points {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 1.25rem;
}

.hero-points strong {
    font-size: 1.8rem;
    line-height: 1;
}

.hero-points span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.stat-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--app-shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 92px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.stat-icon.primary { background: var(--app-primary-soft); color: var(--app-primary); }
.stat-icon.accent { background: var(--app-accent-soft); color: #d97706; }
.stat-icon.success { background: var(--app-success-soft); color: var(--app-success); }
.stat-icon.info { background: var(--app-info-soft); color: var(--app-info); }

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.surface-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    padding: 1.3rem;
}

.surface-card-lg {
    padding: clamp(1.3rem, 2.4vw, 2rem);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.12rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--app-primary);
}

.section-link {
    font-size: 0.82rem;
    font-weight: 700;
}

.btn {
    border-radius: 11px;
    font-weight: 700;
    padding: 0.55rem 1rem;
}

.btn-lg {
    border-radius: 13px;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-accent {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #3b2503;
}

.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.btn-soft {
    background: var(--app-primary-soft);
    border-color: transparent;
    color: var(--app-primary-dark);
}

.btn-soft:hover {
    background: #e0e7ff;
    color: var(--app-primary-dark);
}

.btn-outline-primary {
    border-color: #c7d2fe;
    color: var(--app-primary-dark);
}

.btn-outline-primary:hover {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.form-label {
    font-weight: 700;
    font-size: 0.84rem;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border-radius: 11px;
    border-color: #dfe3eb;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 0.22rem rgba(79, 70, 229, 0.12);
}

.form-text {
    font-size: 0.75rem;
    color: var(--app-muted);
}

.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: end;
    padding: 0.9rem;
    border-radius: 15px;
    background: var(--app-soft);
    border: 1px solid var(--app-border);
}

.filter-bar .form-control,
.filter-bar .form-select {
    min-width: 160px;
    background: #fff;
}

.filter-bar .mb-3 {
    margin-bottom: 0 !important;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.65rem;
    border-bottom-color: #eef0f5;
}

.table thead th {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--app-border);
    white-space: nowrap;
}

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

.table-hover tbody tr:hover {
    background: #fafbff;
}

.table-responsive {
    border-radius: 13px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
    font-weight: 800;
    flex: 0 0 auto;
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 190px;
}

.person-name {
    font-weight: 700;
    line-height: 1.2;
}

.person-meta {
    color: var(--app-muted);
    font-size: 0.73rem;
}

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--app-accent-soft);
    color: #a16207;
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
}

.points-badge i {
    font-size: 0.8rem;
}

.points-badge.lg {
    font-size: 1rem;
    padding: 0.5rem 0.9rem;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge-soft.success { background: var(--app-success-soft); color: var(--app-success); }
.badge-soft.warning { background: var(--app-accent-soft); color: #b45309; }
.badge-soft.danger { background: var(--app-danger-soft); color: var(--app-danger); }
.badge-soft.info { background: var(--app-info-soft); color: var(--app-info); }
.badge-soft.secondary { background: #f1f5f9; color: #475569; }
.badge-soft.primary { background: var(--app-primary-soft); color: var(--app-primary-dark); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
}

.status-badge.success { background: var(--app-success-soft); color: var(--app-success); }
.status-badge.warning { background: var(--app-accent-soft); color: #b45309; }
.status-badge.danger { background: var(--app-danger-soft); color: var(--app-danger); }
.status-badge.secondary { background: #f1f5f9; color: #475569; }

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

.quick-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 15px;
    background: #fff;
    border: 1px solid var(--app-border);
    color: var(--app-ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-sm);
    border-color: #c7d2fe;
    color: var(--app-ink);
}

.quick-card i {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 1.15rem;
}

.quick-card strong {
    display: block;
    font-size: 0.88rem;
}

.quick-card small {
    color: var(--app-muted);
    font-size: 0.73rem;
}

.teacher-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.teacher-balance-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: var(--app-radius);
    background: #fff;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-sm);
}

.teacher-balance-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.teacher-balance-name {
    font-weight: 800;
    line-height: 1.2;
}

.teacher-balance-subject {
    color: var(--app-muted);
    font-size: 0.74rem;
}

.teacher-balance-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--app-primary-dark);
}

.teacher-balance-value small {
    font-size: 0.72rem;
    color: var(--app-muted);
    font-weight: 700;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.reward-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--app-radius);
    background: #fff;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reward-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--app-shadow);
}

.reward-cover {
    position: relative;
    height: 155px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f5f3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reward-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-cover-placeholder {
    font-size: 2.4rem;
    color: #818cf8;
}

.reward-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.reward-stock {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.reward-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    flex: 1;
}

.reward-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.reward-description {
    color: var(--app-muted);
    font-size: 0.8rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reward-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid #f0f2f7;
}

.reward-teacher {
    color: var(--app-muted);
    font-size: 0.72rem;
}

.reward-teacher strong {
    color: var(--app-ink);
}

.reward-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1rem 1rem;
}

.teacher-section {
    margin-bottom: 2rem;
}

.teacher-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.teacher-section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.catalog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.catalog-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: #fff;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.catalog-pill:hover,
.catalog-pill.active {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.reward-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.4rem;
    align-items: start;
}

.reward-detail-cover {
    min-height: 320px;
    border-radius: var(--app-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    font-size: 4rem;
}

.reward-detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.buy-card {
    position: sticky;
    top: 90px;
}

.balance-available {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--app-border);
}

.balance-available:last-of-type {
    border-bottom: 0;
}

.balance-available span {
    color: var(--app-muted);
    font-size: 0.8rem;
}

.balance-available strong {
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 2.6rem 1.2rem;
    border: 1px dashed #d8ddea;
    border-radius: var(--app-radius);
    background: linear-gradient(180deg, #fff, #fafbff);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
}

.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.empty-state p {
    color: var(--app-muted);
    font-size: 0.84rem;
    max-width: 440px;
    margin: 0 auto 1rem;
}

.history-amount {
    font-weight: 800;
    white-space: nowrap;
}

.history-amount.positive { color: var(--app-success); }
.history-amount.negative { color: var(--app-danger); }

.hint-box {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 13px;
    background: var(--app-info-soft);
    border: 1px solid #bae6fd;
    color: #075985;
    font-size: 0.8rem;
}

.hint-box i {
    font-size: 1rem;
    margin-top: 0.05rem;
}

.hint-box.warning {
    background: var(--app-accent-soft);
    border-color: #fed7aa;
    color: #9a3412;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 220px;
}

.review-form textarea {
    font-size: 0.8rem;
    min-height: 52px;
}

.review-actions {
    display: flex;
    gap: 0.45rem;
}

.review-actions .btn {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.76rem;
}

.small-muted {
    color: var(--app-muted);
    font-size: 0.76rem;
}

.divider {
    height: 1px;
    background: var(--app-border);
    margin: 1rem 0;
}

/* Auth */
.auth-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(129, 140, 248, 0.25), transparent 28rem),
        radial-gradient(circle at 88% 82%, rgba(245, 158, 11, 0.15), transparent 24rem),
        #eef1f9;
}

.auth-page .app-footer {
    display: none;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.2rem, 4vw, 3rem);
}

.auth-shell {
    width: min(100%, 1060px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(30, 41, 59, 0.18);
    background: #fff;
}

.auth-card {
    padding: clamp(2rem, 5vw, 3.6rem);
    background: #fff;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.auth-eyebrow {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-card h1 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--app-muted);
    margin-bottom: 1.6rem;
}

.auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--app-muted);
    font-size: 0.76rem;
    margin: 1.25rem 0 0;
}

.auth-side {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 3.6rem);
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 14rem),
        linear-gradient(145deg, #312e81, #4f46e5 55%, #7c3aed);
    color: #fff;
}

.auth-side::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    right: -120px;
    bottom: -160px;
}

.auth-side-label {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.auth-side h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: 0.9rem;
}

.auth-side p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 420px;
}

.auth-side-points {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    align-self: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.auth-side-points i {
    color: #fbbf24;
    font-size: 1.3rem;
}

.auth-side-points span {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.auth-side-points small {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 991.98px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .reward-detail-layout {
        grid-template-columns: 1fr;
    }

    .buy-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .app-navbar .navbar-collapse {
        padding-top: 0.7rem;
    }

    .user-chip {
        align-self: flex-start;
        margin-bottom: 0.4rem;
    }

    .stat-card {
        min-height: 84px;
        padding: 0.9rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 1.55rem;
    }

    .surface-card {
        padding: 1rem;
    }

    .teacher-balance-grid,
    .reward-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        align-items: stretch;
    }

    .filter-bar .form-control,
    .filter-bar .form-select {
        min-width: 0;
    }

    .review-form {
        min-width: 180px;
    }

    .table-responsive {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 1.3rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}
