/* ============================================================
   StarLMS - Main Stylesheet
   ============================================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1f6f5b;
    --primary-dark: #155041;
    --primary-light: #7fb7a5;
    --secondary: #2368a2;
    --accent: #c88a2d;
    --success: #258a52;
    --warning: #c87b1e;
    --danger: #c2413a;
    --info: #207f9f;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --sidebar-bg: #14231f;
    --sidebar-text: #b9c9c1;
    --sidebar-hover: #203832;
    --sidebar-active: var(--primary);

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-sm: 0 1px 2px rgba(20,35,31,0.06);
    --shadow: 0 1px 3px rgba(20,35,31,0.1), 0 1px 2px rgba(20,35,31,0.06);
    --shadow-md: 0 8px 20px rgba(20,35,31,0.11);
    --shadow-lg: 0 24px 60px rgba(20,35,31,0.18);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: #f6f7f2;
    min-height: 100vh;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img { max-width: 100%; height: auto; }

/* ============================================================
   Public Landing / Auth Pages
   ============================================================ */
.public-page {
    min-height: 100vh;
    background: #fff;
    color: #14231f;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #e6eadf;
    backdrop-filter: blur(12px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #14231f;
    text-decoration: none;
}

.public-brand:hover {
    color: #14231f;
    text-decoration: none;
}

.public-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #14231f;
    background: linear-gradient(135deg, #f4c56e, #c88a2d);
    font-weight: 850;
    letter-spacing: 0.02em;
}

.public-brand strong,
.public-brand small {
    display: block;
    line-height: 1.1;
}

.public-brand small {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.16em;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    font-size: 0.92rem;
    font-weight: 650;
}

.public-nav a {
    color: #35463f;
}

.public-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.public-nav-cta {
    padding: 0.55rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 7px;
    color: var(--primary) !important;
}

.public-hero,
.public-section,
.public-strip,
.public-footer {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.public-hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
}

.public-kicker {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.public-hero h1 {
    max-width: 720px;
    margin-bottom: 1rem;
    color: #14231f;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    line-height: 1.02;
    font-weight: 850;
}

.public-lede {
    max-width: 650px;
    color: #54645d;
    font-size: 1.15rem;
    line-height: 1.65;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.75rem;
}

.public-hero-visual {
    min-height: 430px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(20,35,31,0.04), rgba(20,35,31,0.48)),
        linear-gradient(135deg, #e9efe7, #f9eed7 48%, #c9dcd2);
    border: 1px solid #e0e6da;
    overflow: hidden;
}

.public-dashboard-preview {
    width: min(390px, calc(100% - 2rem));
    padding: 1.25rem;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.preview-top {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.preview-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9dfd4;
}

.preview-stat {
    padding: 1rem;
    border-radius: 8px;
    background: #e9f3ee;
    margin-bottom: 1rem;
}

.preview-stat strong,
.preview-stat span {
    display: block;
}

.preview-stat strong {
    color: var(--primary-dark);
    font-size: 2.4rem;
    line-height: 1;
}

.preview-stat span {
    color: #53665d;
    font-size: 0.9rem;
}

.preview-list {
    display: grid;
    gap: 0.65rem;
}

.preview-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e9e0;
    border-radius: 7px;
    font-size: 0.86rem;
}

.preview-list strong {
    color: var(--primary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.public-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-bottom: 4rem;
    border: 1px solid #e3e8df;
    background: #e3e8df;
    border-radius: 8px;
    overflow: hidden;
}

.public-strip div {
    padding: 1.1rem;
    background: #fbfbf7;
}

.public-strip strong,
.public-strip span {
    display: block;
}

.public-strip strong {
    margin-bottom: 0.3rem;
    color: #14231f;
    font-size: 1.05rem;
}

.public-strip span {
    color: #61736b;
    font-size: 0.86rem;
}

.public-section {
    padding: 4rem 0;
}

.public-section-heading {
    max-width: 760px;
    margin-bottom: 1.75rem;
}

.public-section h2 {
    color: #14231f;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
}

.program-grid,
.benefit-grid {
    display: grid;
    gap: 1rem;
}

.program-grid {
    grid-template-columns: repeat(3, 1fr);
}

.program-card,
.benefit-grid div {
    padding: 1.35rem;
    border: 1px solid #e3e8df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20,35,31,0.05);
}

.program-card span {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #e8f3ee;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
}

.program-card h3,
.benefit-grid h3 {
    margin-bottom: 0.5rem;
    color: #14231f;
    font-size: 1.12rem;
}

.program-card p,
.benefit-grid p,
.public-teams p,
.signin-copy p,
.public-faq p {
    color: #60726a;
}

.public-benefits {
    width: 100%;
    max-width: none;
    padding-left: max(1rem, calc((100% - 1160px) / 2));
    padding-right: max(1rem, calc((100% - 1160px) / 2));
    background: #f7f8f2;
}

.benefit-grid {
    grid-template-columns: repeat(4, 1fr);
}

.public-teams,
.signin-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    align-items: center;
    gap: 2rem;
}

.team-metrics {
    display: grid;
    gap: 0.8rem;
}

.team-metrics div {
    padding: 1.1rem;
    border-radius: 8px;
    background: #14231f;
    color: #fff;
}

.team-metrics strong,
.team-metrics span {
    display: block;
}

.team-metrics strong {
    color: #f2c66d;
    font-size: 2rem;
    line-height: 1;
}

.team-metrics span {
    margin-top: 0.35rem;
    color: #d7e0dc;
    font-size: 0.9rem;
}

.signin-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f7f0;
    border: 1px solid #e3e8df;
    border-radius: 8px;
}

.signin-copy {
    max-width: 580px;
}

.public-auth-card {
    padding: 2rem;
    border: 1px solid #e0e6da;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.public-faq {
    padding-top: 2rem;
}

.public-faq details {
    border-top: 1px solid #e3e8df;
    padding: 1.1rem 0;
}

.public-faq details:last-child {
    border-bottom: 1px solid #e3e8df;
}

.public-faq summary {
    cursor: pointer;
    color: #14231f;
    font-weight: 750;
}

.public-faq p {
    margin-top: 0.65rem;
    max-width: 760px;
}

.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    color: #60726a;
    border-top: 1px solid #e3e8df;
}

.register-page {
    background:
        linear-gradient(180deg, #fff 0, #f8f7f0 620px, #fff 100%);
}

.register-shell {
    width: min(1160px, calc(100% - 2rem));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    align-items: start;
    gap: 3rem;
}

.register-intro {
    position: sticky;
    top: 104px;
    padding: 2rem 0;
}

.register-intro h1 {
    max-width: 560px;
    margin-bottom: 1rem;
    color: #14231f;
    font-size: clamp(2.15rem, 4vw, 4rem);
    line-height: 1.04;
    font-weight: 850;
}

.register-intro p {
    max-width: 540px;
    color: #60726a;
    font-size: 1.05rem;
    line-height: 1.65;
}

.register-benefits {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
}

.register-benefits div {
    padding: 1rem;
    border: 1px solid #e3e8df;
    border-radius: 8px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 1px 2px rgba(20,35,31,0.04);
}

.register-benefits strong,
.register-benefits span {
    display: block;
}

.register-benefits strong {
    margin-bottom: 0.25rem;
    color: #14231f;
    font-size: 0.96rem;
}

.register-benefits span {
    color: #61736b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.register-card {
    align-self: center;
}

.auth-wrapper {
    display: grid;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(20, 35, 31, 0.72), rgba(20, 35, 31, 0.76)),
        linear-gradient(135deg, #2f4d43 0%, #7d6143 48%, #b7833e 100%);
    padding: 2rem;
}

.auth-shell {
    width: min(1040px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    background: #fff;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 640px;
    padding: 3rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(20,35,31,0.1) 0%, rgba(20,35,31,0.92) 100%),
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='900' height='720' viewBox='0 0 900 720'%3e%3crect width='900' height='720' fill='%233f5c51'/%3e%3cpath d='M0 520 C140 470 250 505 370 455 C520 392 630 328 900 370 L900 720 L0 720 Z' fill='%2322322d'/%3e%3cpath d='M0 585 C180 530 310 590 492 522 C640 466 746 458 900 500 L900 720 L0 720 Z' fill='%23a87435' fill-opacity='0.58'/%3e%3cpath d='M185 236 C228 178 312 178 351 238 C362 255 355 280 334 288 L311 297 L316 345 L282 345 L271 304 L222 304 L210 345 L176 345 L189 291 C169 282 168 258 185 236 Z' fill='%23f6eee0' fill-opacity='0.78'/%3e%3cpath d='M332 222 L390 204 L356 252 Z' fill='%23f6eee0' fill-opacity='0.78'/%3e%3ccircle cx='312' cy='232' r='5' fill='%2314231f'/%3e%3cpath d='M238 195 C224 156 254 124 300 126 C330 127 353 145 361 173 C319 163 285 172 238 195 Z' fill='%2314231f' fill-opacity='0.64'/%3e%3cpath d='M120 390 L770 390' stroke='%23f6eee0' stroke-opacity='0.28' stroke-width='3'/%3e%3cpath d='M138 420 L742 420' stroke='%23f6eee0' stroke-opacity='0.18' stroke-width='2'/%3e%3c/svg%3e");
    background-size: cover;
    background-position: center;
}

.auth-brand-mark,
.auth-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-brand-mark {
    position: absolute;
    top: 2rem;
    left: 3rem;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.32);
}

.auth-kicker {
    margin-bottom: 0.75rem;
    color: #f2c57a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel h1 {
    max-width: 620px;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.03;
    font-weight: 750;
}

.auth-lede {
    max-width: 560px;
    color: rgba(255,255,255,0.84);
    font-size: 1.05rem;
}

.auth-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.auth-highlights div {
    min-width: 0;
    padding: 0.85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
}

.auth-highlights strong,
.auth-highlights span {
    display: block;
}

.auth-highlights strong {
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 0.88rem;
}

.auth-highlights span {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    line-height: 1.35;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: none;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    margin-bottom: 1.25rem;
    background: #e7f0eb;
    color: var(--primary-dark);
}

.auth-logo h2 {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
    color: var(--gray-900);
}

.auth-logo p {
    color: var(--gray-500);
    font-size: 0.94rem;
}

.auth-form .btn-lg {
    min-height: 48px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.86rem;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 650;
    margin-bottom: 0.45rem;
    color: var(--gray-700);
    font-size: 0.84rem;
}

.form-control {
    width: 100%;
    padding: 0.72rem 0.82rem;
    border: 1px solid #cfd8d2;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-800);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.14);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 7px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: linear-gradient(180deg, #247d66 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31,111,91,0.18);
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}
.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #16a34a;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}
.btn-outline:hover {
    background: var(--gray-100);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #fca5a5;
    color: #dc2626;
}
.btn-danger-outline:hover {
    background: #fef2f2;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   Alerts / Flash Messages
   ============================================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-danger, .alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* ============================================================
   Sidebar Layout
   ============================================================ */
.app-layout {
    background:
        radial-gradient(circle at top right, rgba(200,138,45,0.12), transparent 32rem),
        linear-gradient(180deg, #fbfbf7 0, #f6f7f2 320px, #f6f7f2 100%);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background:
        radial-gradient(circle at 50% 0, rgba(240,194,113,0.18), transparent 13rem),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
        var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    padding: 1.15rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 74px;
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f7d17a, #c88a2d);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #14231f;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(200,138,45,0.22);
}

.sidebar-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text {
    font-weight: 780;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-brand-subtitle {
    color: #a8bbb2;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-brand-subtitle,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-badge {
    display: none;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem 0;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #93aaa0;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 1.15rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    margin: 0.16rem 0.65rem;
    border-radius: 8px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(135deg, #f4c56e, #c88a2d);
    color: #14231f;
    font-weight: 650;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.nav-icon .bi,
.stat-icon .bi,
.gamification-icon .bi,
.header-notif-btn .bi,
.card-header h3 .bi {
    display: inline-flex;
    line-height: 1;
}

.nav-label {
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.9rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.nav-item.logout { color: #f87171; }
.nav-item.logout:hover { background: #7f1d1d; color: #fff; }

/* Sidebar User */
.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2b8068, #14231f);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.user-info { overflow: hidden; }

.user-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: #8fa59b;
    text-transform: capitalize;
}

.sidebar.collapsed .user-info { display: none; }

/* Sidebar Toggle */
.sidebar-toggle {
    position: absolute;
    right: -12px;
    top: 72px;
    width: 24px;
    height: 24px;
    background: var(--sidebar-bg);
    border: 2px solid #334155;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text);
    font-size: 0.75rem;
    transition: all 0.2s;
    z-index: 1001;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }

/* Main Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background: transparent;
}

.sidebar.collapsed + .main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.top-header {
    background: rgba(255,255,255,0.9);
    padding: 0.8rem 2rem;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e8df;
    box-shadow: none;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title-block {
    min-width: 0;
}

.page-eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-title {
    font-size: 1.45rem;
    font-weight: 750;
    color: #172a25;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-date {
    color: #60726a;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #e3e8df;
    border-radius: 999px;
    background: #fbfbf7;
}

.header-notif-btn {
    position: relative;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.375rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.header-notif-btn:hover { background: var(--gray-100); }

.header-notif-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.main-content {
    padding: 2rem;
    max-width: 1480px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active { display: block; }

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(20,35,31,0.05);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e3e8df;
    background: #fbfbf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 780;
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e3e8df;
    background: #fafaf5;
}

/* ============================================================
   Dashboard Stat Cards
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(20,35,31,0.055);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(20,35,31,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon .bi {
    font-size: 1.45rem;
}

.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.blue { background: #e9f0f5; color: var(--secondary); }
.stat-icon.green { background: #e8f4ee; color: var(--primary); }
.stat-icon.purple { background: #eef4f8; color: var(--secondary); }
.stat-icon.orange { background: #fff4df; color: var(--accent); }
.stat-icon.red { background: #fdf0ee; color: var(--danger); }
.stat-icon.teal { background: #e7f3f1; color: #18756f; }

.stat-info h3 {
    font-size: 0.8125rem;
    font-weight: 750;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #14231f;
    line-height: 1.2;
}

.stat-change {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.82rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

table th {
    background: #fbfbf7;
    font-weight: 800;
    font-size: 0.8125rem;
    color: #52645c;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

table td {
    font-size: 0.875rem;
}

table tbody tr:hover {
    background: #fbfbf7;
}

/* ============================================================
   Badges / Status
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 750;
}

.badge-primary { background: #e8f3ee; color: #155041; }
.badge-success { background: #e8f3ee; color: #155041; }
.badge-warning { background: #fff4df; color: #8a551a; }
.badge-danger { background: #fdf0ee; color: #9c2d27; }
.badge-info { background: #e9f0f5; color: #1e5a86; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ============================================================
   Progress Bar
   ============================================================ */
.progress {
    height: 8px;
    background: #e2e8df;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-bar.green { background: var(--success); }
.progress-bar.orange { background: var(--warning); }
.progress-bar.red { background: var(--danger); }

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.progress-bar-sm {
    height: 6px;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
    width: 80px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.375rem;
}

.progress-bar-sm .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.breadcrumb li { color: var(--gray-500); }

.breadcrumb li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--gray-400);
}

.breadcrumb li.active {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin-top: 1.5rem;
    justify-content: center;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--gray-100);
    text-decoration: none;
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   Empty States
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #60726a;
    background: #fbfbf7;
    border: 1px dashed #dbe4d8;
    border-radius: 8px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.8125rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .public-header {
        padding: 0 1rem;
    }

    .public-nav {
        gap: 0.75rem;
        font-size: 0.86rem;
    }

    .public-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 2rem;
        padding: 3rem 0;
    }

    .public-hero-visual {
        min-height: 360px;
    }

    .program-grid,
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-teams,
    .signin-section {
        grid-template-columns: 1fr;
    }

    .register-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .register-intro {
        position: static;
        padding: 0;
    }

    .auth-wrapper {
        padding: 1rem;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-panel {
        min-height: 420px;
        padding: 2rem;
    }

    .auth-brand-mark {
        left: 2rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-toggle { display: none; }

    .main-wrapper { margin-left: 0 !important; }

    .mobile-menu-btn { display: flex !important; }

    .sidebar-overlay.active { display: block; }
}

@media (max-width: 768px) {
    .public-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .public-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .public-nav a {
        white-space: nowrap;
    }

    .public-hero,
    .public-section,
    .public-strip,
    .public-footer {
        width: min(100% - 1.5rem, 1160px);
    }

    .public-hero h1 {
        font-size: 2.35rem;
    }

    .public-lede {
        font-size: 1rem;
    }

    .public-hero-actions .btn {
        width: 100%;
    }

    .public-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 2rem;
    }

    .public-section {
        padding: 2.5rem 0;
    }

    .signin-section {
        padding: 1rem;
    }

    .public-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-shell {
        width: min(100% - 1.5rem, 1160px);
        padding: 2rem 0;
    }

    .register-intro h1 {
        font-size: 2.15rem;
    }

    .main-content { padding: 1rem; }
    .top-header {
        padding: 0.75rem 1rem;
        min-height: 64px;
    }

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

    .auth-highlights {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .report-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions > span { display: none; }
}

@media (max-width: 480px) {
    .public-brand-mark {
        width: 38px;
        height: 38px;
    }

    .public-nav {
        gap: 0.55rem;
    }

    .public-nav-cta {
        padding: 0.45rem 0.75rem;
    }

    .public-hero {
        padding: 2rem 0;
    }

    .public-hero h1 {
        font-size: 2rem;
    }

    .public-hero-visual {
        min-height: 300px;
    }

    .program-grid,
    .benefit-grid,
    .public-strip {
        grid-template-columns: 1fr;
    }

    .register-card.public-auth-card {
        padding: 1.25rem;
    }

    .auth-wrapper {
        padding: 0;
        align-items: stretch;
    }

    .auth-shell {
        border-radius: 0;
        min-height: 100vh;
    }

    .auth-panel {
        min-height: 320px;
        padding: 5rem 1.25rem 1.25rem;
    }

    .auth-brand-mark {
        top: 1.25rem;
        left: 1.25rem;
    }

    .auth-panel h1 {
        font-size: 1.85rem;
    }

    .auth-lede {
        font-size: 0.95rem;
    }

    .auth-card {
        border-radius: 0;
        min-height: auto;
        padding: 1.25rem;
    }
}

/* ============================================================
   ENGAGEMENT FEATURES — Q&A, Notes, Reviews, Gamification
   ============================================================ */

/* Star ratings (inline) */
.star-rating-inline { display: inline-flex; align-items: center; gap: 0.25rem; }
.star-rating-inline .star { font-size: 0.8rem; }
.course-rating { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.375rem; }

/* Course catalog star display */
.course-stars { font-size: 0.75rem; }

/* Tab count badge */
.tab-count {
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.4;
}

/* Alert variants */
.alert-error  { background: #fef2f2; border-left: 3px solid var(--danger);  color: #7f1d1d; }
.alert-warning{ background: #fffbeb; border-left: 3px solid var(--warning); color: #78350f; }
.alert-info   { background: #eff6ff; border-left: 3px solid var(--info);    color: #1e3a5f; }

/* Badge danger */
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Review panel */
.reviews-panel .qa-avatar { background: var(--accent); }

/* Gamification bar on dashboard */
.gamification-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.gamification-stat,
.gamification-link {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.gamification-link:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.gamification-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.gamification-value { font-size: 1rem; font-weight: 700; color: var(--gray-800); line-height: 1.2; }
.gamification-label { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }

/* Badges grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}
.badge-item {
    text-align: center;
    padding: 0.875rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fffbf0, #fff);
    transition: transform 0.15s, box-shadow 0.15s;
}
.badge-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.badge-icon  { font-size: 1.75rem; margin-bottom: 0.25rem; }
.badge-name  { font-weight: 600; font-size: 0.75rem; color: var(--gray-800); margin-bottom: 0.125rem; }
.badge-desc  { font-size: 0.65rem; color: var(--gray-500); line-height: 1.3; }

/* Leaderboard */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
}
.podium-place {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.25rem; padding: 1.25rem 1.5rem;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); min-width: 110px;
    box-shadow: var(--shadow-sm);
}
.podium-1 { padding-bottom: 2rem; background: linear-gradient(135deg,#fffbf0,#fff8e1); border-color: #f59e0b; }
.podium-2 { background: linear-gradient(135deg,#f8fafc,#f1f5f9); }
.podium-3 { background: linear-gradient(135deg,#fff5f0,#fff); border-color: #d97706; }
.podium-me { outline: 2px solid var(--primary); }
.podium-medal  { font-size: 1.75rem; }
.podium-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; }
.podium-name   { font-weight: 700; font-size: 0.875rem; }
.podium-points { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.podium-streak { font-size: 0.7rem; color: #c2410c; }

.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th { padding: 0.625rem 1.25rem; background: var(--gray-50); font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--gray-200); text-align: left; }
.leaderboard-table td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tbody tr:hover td { background: var(--gray-50); }
.leaderboard-me td { background: #f0f9ff !important; }
.leaderboard-rank { font-size: 1rem; text-align: center; }
.lb-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.streak-badge { background: #fff7ed; color: #c2410c; padding: 1px 7px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; }

/* Points guide */
.points-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem; }
.points-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; background: var(--gray-50); border-radius: var(--radius); font-size: 0.85rem; }
.points-amt  { font-weight: 700; color: var(--primary); min-width: 38px; }

/* Learning paths */
.paths-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.path-card  { overflow: hidden; }
.path-card .card-body { padding: 1rem; }
.path-thumb { height: 155px; background-size: cover; background-position: center; }
.path-thumb-default { height: 155px; display: flex; align-items: center; justify-content: center; font-size: 2.75rem; background: linear-gradient(135deg, #1a5f8e, #2368a2); color: rgba(255,255,255,0.4); }
.path-title { font-size: 1rem; margin: 0 0 0.5rem; }

/* Learning path detail */
.path-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.path-course-thumb { width: 68px; height: 50px; border-radius: var(--radius); background-size: cover; background-position: center; flex-shrink: 0; }
.path-course-thumb-default { width: 68px; height: 50px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }

/* Gamification mini (leaderboard header) */
.gamification-mini { background: var(--gray-100); border-radius: var(--radius); padding: 0.375rem 0.75rem; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
    .gamification-bar { grid-template-columns: 1fr 1fr; }
    .podium { gap: 0.5rem; }
    .podium-place { min-width: 90px; padding: 0.875rem 0.75rem; }
}
@media (max-width: 540px) {
    .gamification-bar { grid-template-columns: 1fr; }
    .badges-grid { grid-template-columns: repeat(3, 1fr); }
}
