/* Menasa — modern private-label theme */
:root {
    --m-primary: #5b4dff;
    --m-primary-dark: #4338ca;
    --m-primary-light: #eef2ff;
    --m-accent: #06b6d4;
    --m-bg: #f4f6fb;
    --m-surface: #ffffff;
    --m-text: #0f172a;
    --m-text-muted: #64748b;
    --m-border: #e2e8f0;
    --m-radius: 16px;
    --m-radius-lg: 24px;
    --m-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --m-shadow-lg: 0 20px 50px rgba(91, 77, 255, 0.15);
    --m-font: "Tajawal", system-ui, sans-serif;
    --m-nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.m-body {
    font-family: var(--m-font);
    background: var(--m-bg);
    color: var(--m-text);
    line-height: 1.7;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.m-main { flex: 1; }

/* —— Navbar —— */
.m-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--m-border);
    min-height: var(--m-nav-h);
}

.m-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--m-text) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.m-nav .navbar-brand img {
    height: 40px;
    width: auto;
}

.m-nav .nav-link {
    color: var(--m-text-muted) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.m-nav .nav-link:hover,
.m-nav .nav-link.active {
    color: var(--m-primary) !important;
    background: var(--m-primary-light);
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.m-btn:hover { transform: translateY(-1px); text-decoration: none; }

.m-btn--primary {
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-primary-dark) 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(91, 77, 255, 0.35);
}

.m-btn--primary:hover {
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(91, 77, 255, 0.45);
}

.m-btn--ghost {
    background: var(--m-surface);
    color: var(--m-text) !important;
    border: 1px solid var(--m-border);
}

.m-btn--ghost:hover {
    border-color: var(--m-primary);
    color: var(--m-primary) !important;
}

.m-btn--outline-light {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.m-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.m-btn--sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* —— Hero (home) —— */
.m-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(145deg, #1e1b4b 0%, #3730a3 40%, #5b4dff 100%);
    color: #fff;
}

.m-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.2) 0%, transparent 45%);
    pointer-events: none;
}

.m-hero .container { position: relative; z-index: 1; }

.m-hero__badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.m-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.m-hero__lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.m-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.m-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.m-hero__card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--m-radius-lg);
    padding: 1.5rem;
    text-align: center;
    max-width: 320px;
    box-shadow: var(--m-shadow-lg);
}

.m-hero__card img {
    width: 240px;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    border-radius: 1.25rem;
    border: 4px solid rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.m-hero__card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.m-hero__card-bio {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.6;
}

/* —— Page hero (inner pages) —— */
.m-page-hero {
    background: linear-gradient(135deg, var(--m-primary-light) 0%, #fff 100%);
    border-bottom: 1px solid var(--m-border);
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.m-page-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--m-text);
    margin-bottom: 0.5rem;
}

.m-page-hero p {
    color: var(--m-text-muted);
    margin-bottom: 0;
}

.m-page-hero .breadcrumb {
    margin-top: 1rem;
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.m-page-hero .breadcrumb-item a {
    color: var(--m-primary);
    text-decoration: none;
}

.m-page-hero .breadcrumb-item.active {
    color: var(--m-text-muted);
}

/* —— Sections —— */
.m-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.m-section--alt { background: var(--m-surface); }

.m-section__head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.m-section__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.m-section__head p {
    color: var(--m-text-muted);
    margin: 0;
}

/* —— Feature cards —— */
.m-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.m-feature {
    background: var(--m-surface);
    border-radius: var(--m-radius);
    padding: 1.75rem;
    border: 1px solid var(--m-border);
    transition: transform 0.25s, box-shadow 0.25s;
}

.m-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--m-shadow);
}

.m-feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--m-primary-light);
    color: var(--m-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.m-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.m-feature p {
    color: var(--m-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.m-feature--done {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, var(--m-surface) 55%);
    position: relative;
}

.m-feature--done .m-feature__icon {
    background: #dcfce7;
    color: #15803d;
}

.m-feature__done-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
}

/* —— Teacher profile —— */
.m-teacher {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--m-surface);
    border-radius: var(--m-radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow);
}

@media (min-width: 768px) {
    .m-teacher { grid-template-columns: 280px 1fr; }
}

.m-teacher__photo img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--m-radius-lg);
    display: block;
    margin: 0 auto;
    box-shadow: var(--m-shadow-lg);
}

/* Home index only: show the full photo (no crop) so the head is visible */
.m-teacher__photo--home img {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
    border-radius: 1rem;
    background: #e8e8e8;
}

.m-teacher__name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--m-primary-dark);
    margin-bottom: 1rem;
}

.m-teacher__bio {
    color: var(--m-text-muted);
    margin-bottom: 1rem;
}

.m-teacher__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.m-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--m-primary-light);
    color: var(--m-primary-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* —— Lesson cards —— */
.m-lessons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.m-lesson {
    background: var(--m-surface);
    border-radius: var(--m-radius);
    overflow: hidden;
    border: 1px solid var(--m-border);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.m-lesson:hover {
    transform: translateY(-6px);
    box-shadow: var(--m-shadow-lg);
}

.m-lesson__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--m-primary-light);
}

.m-lesson__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.m-lesson:hover .m-lesson__thumb img {
    transform: scale(1.05);
}

.m-lesson__price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--m-surface);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--m-primary-dark);
    box-shadow: var(--m-shadow);
}

.m-lesson__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.m-lesson__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.m-lesson__body h3 a {
    color: var(--m-text);
    text-decoration: none;
}

.m-lesson__body h3 a:hover { color: var(--m-primary); }

.m-lesson__body p {
    color: var(--m-text-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.m-lesson__footer {
    margin-top: auto;
}

.m-empty {
    text-align: center;
    padding: 3rem;
    color: var(--m-text-muted);
    background: var(--m-surface);
    border-radius: var(--m-radius);
    border: 1px dashed var(--m-border);
}

/* —— Content pages (about, video detail) —— */
.m-content-card {
    background: var(--m-surface);
    border-radius: var(--m-radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow);
    margin-bottom: 2rem;
}

.m-content-card img.img-fluid,
.m-content-card .img-fluid {
    border-radius: var(--m-radius);
    max-width: 100%;
    height: auto;
}

.m-content-card h1,
.m-content-card h2 {
    font-weight: 800;
    color: var(--m-text);
}

.m-content-card .pinkcolor,
.m-content-card .page-title2 {
    color: var(--m-primary) !important;
    font-weight: 700;
}

/* —— Video embed —— */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--m-shadow-lg);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* —— Forms (login, register, contact) —— */
.m-form-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--m-surface);
    border-radius: var(--m-radius-lg);
    padding: 2rem;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow);
}

.contact-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--m-text);
}

.form-contact .form-control,
.m-form-card .form-control {
    border-radius: 12px;
    border: 1px solid var(--m-border);
    padding: 0.75rem 1rem;
    font-family: var(--m-font);
}

.form-contact .form-control:focus,
.m-form-card .form-control:focus {
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.15);
}

.contact-section .btn,
.form-contact .btn,
#btnLogin {
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 2rem;
    font-weight: 700;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--m-border);
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--m-primary-light);
    color: var(--m-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* —— Footer —— */
.m-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
}

.m-footer a { color: #cbd5e1; text-decoration: none; }
.m-footer a:hover { color: #fff; }

.m-footer__top {
    padding: 3rem 0 2rem;
}

.m-footer__brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.m-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.m-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.m-footer__social a:hover { background: var(--m-primary); }

.m-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.m-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-footer__links li { margin-bottom: 0.5rem; }

/* —— Legacy shims —— */
.border-btn, .border-btn2 {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: var(--m-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border: none;
}

.border-btn:hover, .border-btn2:hover {
    color: #fff !important;
    opacity: 0.9;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--m-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-decoration: none;
    box-shadow: var(--m-shadow-lg);
}

.error { color: #dc2626 !important; }

.hero-btn, .btn.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-primary-dark) 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border: none;
}

/* Hide old preloader */
#preloader-active { display: none !important; }

/* User dropdown in nav */
.m-nav .dropdown-menu {
    border-radius: var(--m-radius);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-lg);
    padding: 0.5rem;
}

.m-nav .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.m-nav .dropdown-item:hover {
    background: var(--m-primary-light);
    color: var(--m-primary);
}

.m-nav .navbar-toggler {
    border: 1px solid var(--m-border);
    padding: 0.4rem 0.6rem;
}

.m-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.2);
}

/* —— Course catalog —— */
.m-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.m-catalog-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.m-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--m-shadow-lg);
    border-color: var(--m-primary);
    color: inherit;
}

.m-catalog-card__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--m-primary-light);
    color: var(--m-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.m-catalog-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--m-primary-dark);
    background: var(--m-primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.m-catalog-card__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.m-catalog-card__body p {
    font-size: 0.9rem;
    color: var(--m-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.m-catalog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--m-text-muted);
}

.m-grade-block__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--m-primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--m-primary-light);
}

.m-unit-block__head {
    margin-bottom: 1.25rem;
    padding-right: 0.75rem;
    border-right: 4px solid var(--m-primary);
}

@media (max-width: 991px) {
    .m-nav .m-btn { width: 100%; margin-top: 0.5rem; }
    .m-hero__visual { margin-top: 2rem; }
}

/* —— Admin panel —— */
.m-admin-body .m-admin-nav {
    border-bottom: 1px solid var(--m-border);
    background: rgba(255, 255, 255, 0.95);
}

.m-admin-body .m-admin-nav .navbar-brand span {
    color: var(--m-primary);
}

.m-admin-section {
    padding: 1.5rem 0 3rem;
}

.m-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.m-admin-toolbar .form-select,
.m-admin-toolbar .form-control {
    width: auto;
    min-width: 140px;
}

.m-admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
}

.m-admin-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.m-admin-table th,
.m-admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--m-border);
    vertical-align: middle;
    text-align: right;
}

.m-admin-table thead th {
    background: var(--m-primary-light);
    color: var(--m-primary-dark);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--m-border);
}

.m-admin-table tbody tr:hover td {
    background: #f8fafc;
}

.m-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.m-admin-table img.thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--m-border);
}

.m-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--m-primary-light);
    color: var(--m-primary-dark);
}

.m-admin-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.m-admin-badge--warn {
    background: #fef3c7;
    color: #92400e;
}

.m-admin-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.m-admin-badge--muted {
    background: #f1f5f9;
    color: #64748b;
}

.m-admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    margin-inline-start: 0.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    background: #dc2626;
    color: #fff;
    vertical-align: middle;
}

.m-admin-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.m-admin-dash-card {
    display: block;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    color: var(--m-text);
    box-shadow: var(--m-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.m-admin-dash-card:hover {
    transform: translateY(-2px);
    border-color: var(--m-primary);
    box-shadow: var(--m-shadow-lg);
    color: var(--m-text);
    text-decoration: none;
}

.m-admin-dash-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--m-primary);
}

.m-admin-dash-card p {
    margin: 0;
    color: var(--m-text-muted);
    font-size: 0.9rem;
}

.m-admin-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--m-text);
}

.m-admin-form .form-control,
.m-admin-form .form-select,
.m-admin-form textarea,
.m-admin-form input:not([type=checkbox]):not([type=radio]),
.m-admin-form select {
    border: 1px solid var(--m-border) !important;
    border-radius: 12px !important;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.85rem;
    width: 100%;
    background: #fff;
}

.m-admin-form .form-control:focus,
.m-admin-form .form-select:focus {
    border-color: var(--m-primary) !important;
    box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.15);
}

.m-admin-hint {
    background: var(--m-primary-light);
    border: 1px solid #c7d2fe;
    border-radius: var(--m-radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--m-text);
}

.m-admin-subcard {
    background: #f8fafc;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.m-admin-subcard--accent {
    border-color: var(--m-primary);
    border-width: 2px;
    background: #fff;
}

.m-btn--danger {
    background: #dc2626;
    color: #fff !important;
}

.m-btn--danger:hover {
    background: #b91c1c;
    color: #fff !important;
}

.m-btn--info {
    background: #0ea5e9;
    color: #fff !important;
}

.m-btn--info:hover {
    background: #0284c7;
    color: #fff !important;
}

.m-footer__bottom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.m-footer__bottom a:hover {
    color: #fff;
}

@media print {
    .m-nav, .m-footer, .m-admin-toolbar, .no-print { display: none !important; }
}

/* —— Lesson packages —— */
.m-package-card {
    position: relative;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--m-shadow);
    height: 100%;
    text-align: center;
}
.m-package-card--featured {
    border-color: var(--m-primary);
    box-shadow: var(--m-shadow-lg);
}
.m-package-card__badge {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    background: var(--m-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}
.m-package-card h3 {
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.m-package-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.m-package-card__amount {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--m-primary);
}
.m-package-card__currency {
    font-weight: 700;
    color: var(--m-text-muted);
}
.m-package-card__duration {
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.m-package-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: right;
    color: var(--m-text-muted);
}
.m-package-card__list li {
    padding: 0.35rem 0;
}
.m-package-card__list li::before {
    content: "✓ ";
    color: var(--m-primary);
    font-weight: 700;
}
