* {
    box-sizing: border-box;
}

:root {
    --hi-green: #16a34a;
    --hi-green-dark: #166534;
    --hi-green-soft: #dcfce7;

    --hi-blue: #0ea5e9;
    --hi-blue-dark: #075985;
    --hi-blue-soft: #e0f2fe;

    --hi-amber: #f59e0b;
    --hi-amber-dark: #92400e;
    --hi-amber-soft: #fef3c7;

    --hi-red: #ef4444;
    --hi-red-soft: #fef2f2;

    --hi-text: #111827;
    --hi-muted: #6b7280;
    --hi-border: #e5e7eb;
    --hi-soft-border: #eef2f7;
    --hi-bg: #f8fafc;
    --hi-white: #ffffff;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--hi-bg);
    color: var(--hi-text);
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

section {
    width: 100%;
}

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

a {
    text-decoration: none;
}

.hi-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==================================================
   Header
================================================== */
.hi-header {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--hi-border);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.hi-header-inner {
    width: 100%;
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.hi-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--hi-text);
    line-height: 1;
    letter-spacing: -0.5px;
}

.hi-logo span {
    color: var(--hi-green);
}

.hi-nav {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.hi-nav a {
    color: #374151;
    font-weight: 700;
    font-size: 15px;
}

.hi-nav a:hover {
    color: var(--hi-green);
}

/* ==================================================
   Buttons
================================================== */
.hi-btn-primary,
.hi-btn-outline,
.hi-btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 850;
    line-height: 1.2;
    transition: 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
}

.hi-btn-primary {
    background: var(--hi-green);
    color: #ffffff !important;
    border-color: var(--hi-green);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.20);
}

.hi-btn-primary:hover {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
}

.hi-btn-blue {
    background: var(--hi-blue);
    color: #ffffff !important;
    border-color: var(--hi-blue);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
}

.hi-btn-blue:hover {
    background: #0284c7;
    border-color: #0284c7;
    transform: translateY(-1px);
}

.hi-btn-outline {
    background: #ffffff;
    color: var(--hi-green-dark) !important;
    border-color: rgba(22, 163, 74, 0.35);
}

.hi-btn-outline:hover {
    background: var(--hi-green-soft);
    transform: translateY(-1px);
}

/* ==================================================
   Hero / Landing
================================================== */
.hi-hero {
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
        linear-gradient(135deg, #f0fdf4, #ffffff 55%, #f0f9ff);
}

.hi-hero-inner {
    padding-top: 78px;
    padding-bottom: 78px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 40px;
    align-items: center;
}

.hi-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    background: var(--hi-green-soft);
    color: var(--hi-green-dark);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 850;
    border: 1px solid rgba(22, 163, 74, 0.18);
    line-height: 1.2;
}

.hi-badge-blue {
    background: var(--hi-blue-soft);
    color: var(--hi-blue-dark);
    border-color: rgba(14, 165, 233, 0.22);
}

.hi-badge-amber {
    background: var(--hi-amber-soft);
    color: var(--hi-amber-dark);
    border-color: rgba(245, 158, 11, 0.24);
}

.hi-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    margin: 0 0 18px 0;
    color: var(--hi-text);
    letter-spacing: -1.4px;
    font-weight: 950;
}

.hi-hero p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 28px 0;
    max-width: 720px;
}

.hi-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================================================
   Cards / General Components
================================================== */
.hi-card {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--hi-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.hi-hero-card {
    position: relative;
    overflow: hidden;
}

.hi-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.14), transparent 30%);
    pointer-events: none;
}

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

.hi-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--hi-text);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 900;
}

.hi-card p {
    color: var(--hi-muted);
    line-height: 1.7;
}

.hi-feature-list {
    display: grid;
    gap: 14px;
}

.hi-feature-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid var(--hi-soft-border);
}

.hi-feature-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--hi-text);
}

.hi-feature-item p {
    margin: 0;
    font-size: 14px;
    color: var(--hi-muted);
    line-height: 1.6;
}

/* ==================================================
   Sections
================================================== */
.hi-section {
    width: 100%;
    padding: 64px 0;
}

.hi-section-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    margin: 0 0 12px 0;
    letter-spacing: -0.8px;
    font-weight: 950;
    color: var(--hi-text);
}

.hi-section-desc {
    color: var(--hi-muted);
    margin: 0 0 24px 0;
    line-height: 1.75;
    font-size: 16px;
    max-width: 780px;
}

.hi-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.hi-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hi-path-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
}

.hi-path-card h3 {
    font-size: 26px;
    margin-bottom: 0;
}

.hi-path-card > p {
    margin: 0;
}

.hi-path-card .hi-btn-primary,
.hi-path-card .hi-btn-blue,
.hi-path-card .hi-btn-outline {
    margin-top: auto;
    width: fit-content;
}

.hi-list {
    display: grid;
    gap: 12px;
    margin: 8px 0 4px;
    padding: 0;
    list-style: none;
}

.hi-list li {
    position: relative;
    padding: 14px 14px 14px 44px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid var(--hi-border);
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
}

.hi-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--hi-green);
    box-shadow: 0 0 0 4px var(--hi-green-soft);
}

.hi-subject-card {
    background: #ffffff;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid var(--hi-border);
    height: 100%;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.hi-subject-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.hi-subject-card p {
    color: var(--hi-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==================================================
   Landing Content Preview Carousel
================================================== */
.hi-learning-preview-box {
    margin: 18px 0 6px;
    padding: 16px;
    background: #f8fafc;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    border-radius: 20px;
    overflow: hidden;
}

.hi-preview-title {
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
    margin: 14px 0 10px;
}

.hi-preview-title:first-child {
    margin-top: 0;
}

.hi-preview-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2px 0 8px;
    mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.hi-preview-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: hiMarqueeLeft 26s linear infinite;
}

.hi-preview-marquee:hover .hi-preview-track {
    animation-play-state: paused;
}

.hi-preview-chip {
    width: 230px;
    min-height: 96px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(22, 163, 74, 0.18);
    text-decoration: none;
    color: #0f172a;
    flex-shrink: 0;
    transition: 0.2s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.hi-preview-chip:hover {
    transform: translateY(-3px);
    border-color: var(--hi-green);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.12);
}

.hi-preview-chip span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: var(--hi-green);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hi-preview-chip strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: var(--hi-text);
}

.hi-preview-chip small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.hi-preview-chip-blue {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, 0.24);
}

.hi-preview-chip-blue span {
    color: var(--hi-blue);
}

.hi-preview-chip-blue:hover {
    border-color: var(--hi-blue);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
}

@keyframes hiMarqueeLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ==================================================
   Free / SaaS Sections
================================================== */
.hi-free {
    background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
}

.hi-free-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.hi-free-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--hi-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hi-free-box h3 {
    margin-top: 0;
}

.hi-free-box ul {
    line-height: 1.9;
    color: #374151;
    padding-left: 22px;
    margin-bottom: 22px;
}

.hi-free-box p {
    color: #4b5563;
    line-height: 1.7;
}

/* ==================================================
   Public Subject Page
================================================== */
.hi-subject-hero {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.14), transparent 30%),
        linear-gradient(135deg, #f0fdf4, #ffffff 58%, #f0f9ff);
    padding: 44px 0 30px 0;
}

.hi-subject-hero-card {
    background: #ffffff;
    border: 1px solid var(--hi-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.hi-subject-hero-card h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 12px 0 14px 0;
}

.hi-subject-desc {
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 20px 0;
    font-size: 17px;
}

.hi-subject-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.hi-subject-meta-card {
    background: #f9fafb;
    border: 1px solid var(--hi-border);
    border-radius: 16px;
    padding: 16px;
}

.hi-subject-meta-card span {
    display: block;
    color: var(--hi-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.hi-subject-meta-card strong {
    display: block;
    font-size: 16px;
}

.hi-subject-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.hi-lesson-card {
    background: #ffffff;
    border: 1px solid var(--hi-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.hi-lesson-card h3 {
    margin: 10px 0 10px 0;
    font-size: 23px;
    line-height: 1.3;
}

.hi-lesson-card p {
    color: #4b5563;
    line-height: 1.7;
}

.hi-lesson-meta {
    color: var(--hi-muted);
    font-size: 14px;
    margin: 12px 0 18px 0;
}

.hi-subject-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

/* ==================================================
   Public Question Preview Page
================================================== */
.hidden {
    display: none !important;
}

.hi-preview-body {
    background: var(--hi-bg);
}

.hi-preview-hero {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.14), transparent 30%),
        linear-gradient(135deg, #f0fdf4, #ffffff 58%, #f0f9ff);
    padding: 42px 0 24px 0;
}

.hi-preview-card {
    background: #ffffff;
    border: 1px solid var(--hi-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.hi-preview-card h1 {
    font-size: 36px;
    line-height: 1.25;
    margin: 12px 0 14px 0;
}

.hi-preview-desc {
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 16px 0;
    font-size: 17px;
}

.hi-preview-note {
    background: #f9fafb;
    border: 1px solid var(--hi-border);
    color: #4b5563;
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.6;
}

.hi-node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hi-node-tag {
    display: inline-block;
    background: var(--hi-green-soft);
    color: var(--hi-green-dark);
    border: 1px solid rgba(22, 163, 74, 0.22);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hi-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.hi-preview-main {
    min-width: 0;
}

.hi-preview-section-title {
    margin-bottom: 20px;
}

.hi-preview-section-title h2 {
    font-size: 28px;
    margin: 0 0 6px 0;
}

.hi-preview-section-title p {
    color: var(--hi-muted);
    margin: 0;
}

.hi-question-card {
    background: #ffffff;
    border: 1px solid var(--hi-border);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.hi-question-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hi-question-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 999px;
    background: var(--hi-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.hi-question-text {
    font-size: 20px;
    font-weight: 850;
    line-height: 1.7;
    flex: 1;
}

.hi-option-list {
    display: grid;
    gap: 10px;
}

.hi-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--hi-border);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: 0.15s ease;
    width: 100%;
}

.hi-option:hover {
    background: #f9fafb;
    border-color: rgba(22, 163, 74, 0.35);
}

.hi-option input {
    margin-top: 5px;
}

.hi-option-letter {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.hi-option-text {
    line-height: 1.7;
    font-size: 16px;
}

.hi-option.is-correct {
    background: #ecfdf5;
    border-color: #22c55e;
}

.hi-option.is-wrong {
    background: var(--hi-red-soft);
    border-color: var(--hi-red);
}

.hi-feedback {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 850;
    padding: 10px 12px;
    border-radius: 12px;
}

.hi-feedback.correct {
    color: var(--hi-green-dark);
    background: #ecfdf5;
}

.hi-feedback.wrong {
    color: #991b1b;
    background: var(--hi-red-soft);
}

.hi-feedback.warning {
    color: var(--hi-amber-dark);
    background: #fffbeb;
}

.hi-check-box {
    background: #ffffff;
    border: 1px solid var(--hi-border);
    border-radius: 20px;
    padding: 22px;
}

.hi-preview-result {
    margin-top: 16px;
    font-size: 20px;
    font-weight: 950;
    color: var(--hi-green-dark);
}

.hi-preview-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.hi-sidebar-login {
    margin-top: 10px;
}

.hi-sidebar-demo p {
    color: var(--hi-muted);
    line-height: 1.7;
}

/* ==================================================
   Footer
================================================== */
.hi-footer {
    width: 100%;
    max-width: 100%;
    background: #0f172a;
    color: #ffffff;
    margin-top: 0;
    overflow-x: hidden;
}

.hi-footer-inner {
    width: 100%;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr;
    gap: 28px;
    align-items: flex-start;
}

.hi-footer strong {
    color: #ffffff;
}

.hi-footer p {
    margin: 6px 0 0 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.hi-footer a {
    color: #cbd5e1;
}

.hi-footer a:hover {
    color: #ffffff !important;
}

/* ==================================================
   Public Form
================================================== */
.hi-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.hi-form-group {
    display: grid;
    gap: 7px;
}

.hi-form-group label {
    font-weight: 850;
    color: #374151;
    font-size: 14px;
}

.hi-form-group input,
.hi-form-group select,
.hi-form-group textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
}

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

.hi-form-group input:focus,
.hi-form-group select:focus,
.hi-form-group textarea:focus {
    outline: none;
    border-color: var(--hi-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.13);
}

.hi-form-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
}

.hi-alert-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: var(--hi-green-dark);
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* ==================================================
   Responsive - Tablet
================================================== */
@media (max-width: 900px) {
    .hi-hero-inner,
    .hi-free-inner,
    .hi-preview-layout,
    .hi-subject-layout,
    .hi-grid-2 {
        grid-template-columns: 1fr;
    }

    .hi-grid-3 {
        grid-template-columns: 1fr;
    }

    .hi-preview-sidebar,
    .hi-subject-sidebar {
        position: static;
    }

    .hi-subject-meta-grid {
        grid-template-columns: 1fr;
    }

    .hi-hero-inner {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .hi-hero h1 {
        font-size: 42px;
    }

    .hi-section-title {
        font-size: 32px;
    }

    .hi-preview-card h1 {
        font-size: 30px;
    }

    .hi-subject-hero-card h1 {
        font-size: 32px;
    }

    .hi-card,
    .hi-free-box,
    .hi-subject-card {
        padding: 22px;
    }

    .hi-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Responsive - Mobile
================================================== */
@media (max-width: 640px) {
    .hi-container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hi-header {
        width: 100%;
    }

    .hi-header-inner {
        min-height: auto;
        padding: 14px 0;
        align-items: stretch;
        gap: 12px;
        flex-direction: column;
        width: 100%;
    }

    .hi-logo {
        font-size: 22px;
        display: block;
    }

    .hi-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hi-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 800;
        border: 1px solid #d1fae5;
        background: #ffffff;
        color: var(--hi-green-dark);
    }

    .hi-nav a:hover {
        background: var(--hi-green-soft);
        color: var(--hi-green-dark);
    }

    .hi-nav .hi-btn-primary,
    .hi-nav .hi-btn-outline,
    .hi-nav .hi-btn-blue {
        width: 100%;
        min-height: 44px;
        border-radius: 12px;
    }

    .hi-nav .hi-btn-primary {
        background: var(--hi-green) !important;
        color: #ffffff !important;
        border-color: var(--hi-green) !important;
        box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
    }

    .hi-nav .hi-btn-primary:hover {
        background: #15803d !important;
        color: #ffffff !important;
    }

    .hi-nav .hi-btn-outline {
        background: #ffffff !important;
        color: var(--hi-green-dark) !important;
        border-color: rgba(22, 163, 74, 0.35) !important;
    }

    .hi-nav .hi-btn-outline:hover {
        background: var(--hi-green-soft) !important;
        color: var(--hi-green-dark) !important;
    }

    .hi-hero-inner {
        padding-top: 34px;
        padding-bottom: 40px;
        gap: 22px;
    }

    .hi-hero h1 {
        font-size: 30px;
        line-height: 1.14;
        letter-spacing: -0.7px;
    }

    .hi-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hi-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }

    .hi-section {
        padding: 42px 0;
    }

    .hi-section-title {
        font-size: 27px;
    }

    .hi-section-desc {
        font-size: 15px;
    }

    .hi-grid-2 {
        gap: 18px;
    }

    .hi-btn-primary,
    .hi-btn-outline,
    .hi-btn-blue {
        width: 100%;
        text-align: center;
        min-height: 52px;
    }

    .hi-path-card .hi-btn-primary,
    .hi-path-card .hi-btn-blue,
    .hi-path-card .hi-btn-outline {
        width: 100%;
    }

    .hi-card,
    .hi-free-box,
    .hi-subject-card,
    .hi-preview-card,
    .hi-question-card,
    .hi-check-box,
    .hi-subject-hero-card,
    .hi-lesson-card {
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
        padding: 18px;
    }

    .hi-learning-preview-box {
        padding: 13px;
        border-radius: 18px;
    }

    .hi-preview-chip {
        width: 205px;
        min-height: 90px;
        padding: 12px;
    }

    .hi-preview-track {
        animation-duration: 28s;
    }

    .hi-preview-hero,
    .hi-subject-hero {
        padding: 28px 0 18px 0;
    }

    .hi-preview-card h1,
    .hi-subject-hero-card h1 {
        font-size: 26px;
    }

    .hi-lesson-card h3 {
        font-size: 20px;
    }

    .hi-question-top {
        gap: 10px;
    }

    .hi-question-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .hi-question-text {
        font-size: 18px;
    }

    .hi-option {
        padding: 12px;
        gap: 10px;
    }

    .hi-option-text {
        font-size: 15px;
    }

    .hi-check-box .hi-btn-primary {
        width: 100%;
    }

    .hi-footer {
        width: 100%;
    }

    .hi-footer-inner {
        grid-template-columns: 1fr;
        padding: 28px 0;
        width: 100%;
    }
}@media (max-width: 380px) {
    .hi-hero h1 {
        font-size: 28px;
    }

    .hi-section-title {
        font-size: 25px;
    }

    .hi-badge {
        font-size: 12px;
    }

    .hi-preview-chip {
        width: 190px;
    }
}

/* ==================================================
   Reduced Motion
================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hi-preview-track {
        animation: none;
    }

    .hi-btn-primary:hover,
    .hi-btn-outline:hover,
    .hi-btn-blue:hover,
    .hi-preview-chip:hover {
        transform: none;
    }
}

/* ==================================================
   Auth Pages - Login / Register
================================================== */
.hi-auth-page {
    width: 100%;
    min-height: 100vh;
    padding: 34px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 34%),
        linear-gradient(135deg, #f0fdf4, #ffffff 55%, #f0f9ff);
}

.hi-auth-shell {
    width: 100%;
    max-width: 460px;
}

.hi-auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.hi-auth-logo {
    display: inline-block;
    color: #111827;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.8px;
    line-height: 1;
}

.hi-auth-logo span {
    color: var(--hi-green);
}

.hi-auth-header h1 {
    margin: 18px 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
    color: #111827;
}

.hi-auth-header p {
    margin: 0 auto;
    max-width: 390px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
}

.hi-auth-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}

.hi-auth-form {
    display: grid;
    gap: 18px;
}

.hi-auth-field {
    display: grid;
    gap: 8px;
}

.hi-auth-field label {
    font-size: 14px;
    font-weight: 850;
    color: #374151;
}

.hi-auth-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
}

.hi-auth-field input::placeholder {
    color: #94a3b8;
}

.hi-auth-field input:focus {
    outline: none;
    border-color: var(--hi-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13);
}

.hi-auth-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
}

.hi-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.hi-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.hi-auth-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--hi-green);
}

.hi-auth-link {
    color: var(--hi-green-dark);
    font-size: 14px;
    font-weight: 850;
}

.hi-auth-link:hover {
    color: #14532d;
}

.hi-auth-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    background: var(--hi-green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(22, 163, 74, 0.22);
    transition: 0.18s ease;
}

.hi-auth-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.hi-auth-register {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.hi-auth-register p {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.hi-auth-register a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--hi-green-dark);
    font-size: 14px;
    font-weight: 950;
}

.hi-auth-register a:hover {
    background: var(--hi-green-soft);
}

.hi-auth-home {
    margin-top: 18px;
    text-align: center;
}

.hi-auth-home a {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.hi-auth-home a:hover {
    color: #111827;
}

.hi-auth-note {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* Mobile Auth */
@media (max-width: 640px) {
    .hi-auth-page {
        align-items: flex-start;
        padding: 26px 14px;
    }

    .hi-auth-shell {
        max-width: 100%;
    }

    .hi-auth-logo {
        font-size: 28px;
    }

    .hi-auth-header h1 {
        font-size: 23px;
    }

    .hi-auth-header p {
        font-size: 14px;
    }

    .hi-auth-card {
        border-radius: 22px;
        padding: 22px;
    }

    .hi-auth-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hi-auth-field input {
        min-height: 52px;
        border-radius: 15px;
    }

    .hi-auth-btn {
        min-height: 54px;
    }
}

@media (max-width: 380px) {
    .hi-auth-card {
        padding: 18px;
    }

    .hi-auth-header h1 {
        font-size: 21px;
    }
}

/* ==================================================
   Auth Pages - Login / Register
================================================== */
.hi-auth-page {
    width: 100%;
    min-height: 100vh;
    padding: 34px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 34%),
        linear-gradient(135deg, #f0fdf4, #ffffff 55%, #f0f9ff);
}

.hi-auth-shell {
    width: 100%;
    max-width: 460px;
}

.hi-auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.hi-auth-logo {
    display: inline-block;
    color: #111827;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.8px;
    line-height: 1;
}

.hi-auth-logo span {
    color: var(--hi-green);
}

.hi-auth-header h1 {
    margin: 18px 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
    color: #111827;
}

.hi-auth-header p {
    margin: 0 auto;
    max-width: 390px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
}

.hi-auth-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}

.hi-auth-form {
    display: grid;
    gap: 18px;
}

.hi-auth-field {
    display: grid;
    gap: 8px;
}

.hi-auth-field label {
    font-size: 14px;
    font-weight: 850;
    color: #374151;
}

.hi-auth-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
}

.hi-auth-field input::placeholder {
    color: #94a3b8;
}

.hi-auth-field input:focus {
    outline: none;
    border-color: var(--hi-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13);
}

.hi-auth-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
}

.hi-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.hi-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.hi-auth-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--hi-green);
}

.hi-auth-link {
    color: var(--hi-green-dark);
    font-size: 14px;
    font-weight: 850;
}

.hi-auth-link:hover {
    color: #14532d;
}

.hi-auth-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    background: var(--hi-green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(22, 163, 74, 0.22);
    transition: 0.18s ease;
}

.hi-auth-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.hi-auth-register {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.hi-auth-register p {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.hi-auth-register a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--hi-green-dark);
    font-size: 14px;
    font-weight: 950;
}

.hi-auth-register a:hover {
    background: var(--hi-green-soft);
}

.hi-auth-home {
    margin-top: 18px;
    text-align: center;
}

.hi-auth-home a {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.hi-auth-home a:hover {
    color: #111827;
}

.hi-auth-note {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 640px) {
    .hi-auth-page {
        align-items: flex-start;
        padding: 26px 14px;
    }

    .hi-auth-shell {
        max-width: 100%;
    }

    .hi-auth-logo {
        font-size: 28px;
    }

    .hi-auth-header h1 {
        font-size: 23px;
    }

    .hi-auth-header p {
        font-size: 14px;
    }

    .hi-auth-card {
        border-radius: 22px;
        padding: 22px;
    }

    .hi-auth-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hi-auth-field input {
        min-height: 52px;
        border-radius: 15px;
    }

    .hi-auth-btn {
        min-height: 54px;
    }
}


/* ==================================================
   Auth Register Extra
================================================== */
.hi-auth-page-register {
    align-items: flex-start;
    padding-top: 34px;
    padding-bottom: 34px;
}

.hi-auth-shell-wide {
    max-width: 540px;
}

.hi-auth-field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
}

.hi-auth-field select:focus {
    outline: none;
    border-color: var(--hi-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13);
}

.hi-auth-help {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.hi-auth-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
    border-radius: 18px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.hi-auth-info strong {
    display: block;
    margin-bottom: 8px;
    color: #075985;
    font-weight: 900;
}

.hi-auth-info ul {
    margin: 0;
    padding-left: 18px;
}

.hi-auth-info li + li {
    margin-top: 5px;
}

@media (max-width: 640px) {
    .hi-auth-page-register {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .hi-auth-shell-wide {
        max-width: 100%;
    }

    .hi-auth-info {
        border-radius: 16px;
        padding: 14px;
        font-size: 13px;
    }
}

/* ==================================================
   Auth Register Extra - Force
================================================== */
.hi-auth-page-register {
    align-items: flex-start;
    padding-top: 34px;
    padding-bottom: 34px;
}

.hi-auth-shell-wide {
    max-width: 540px;
}

.hi-auth-field select {
    display: block;
    width: 100% !important;
    min-height: 52px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 16px !important;
    padding: 13px 42px 13px 15px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #111827 !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
}

.hi-auth-field select:focus {
    outline: none !important;
    border-color: var(--hi-green) !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13) !important;
}

.hi-auth-help {
    margin-top: 2px;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.hi-auth-info {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #075985 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.hi-auth-info strong {
    display: block;
    margin-bottom: 8px;
    color: #075985 !important;
    font-weight: 900;
}

.hi-auth-info ul {
    margin: 0;
    padding-left: 18px;
}

.hi-auth-info li + li {
    margin-top: 5px;
}

@media (max-width: 640px) {
    .hi-auth-page-register {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .hi-auth-shell-wide {
        max-width: 100%;
    }

    .hi-auth-info {
        border-radius: 16px !important;
        padding: 14px !important;
        font-size: 13px !important;
    }

    .hi-auth-field select {
        min-height: 52px !important;
        border-radius: 15px !important;
        font-size: 15px !important;
    }
}