:root {
    --navy: #172235;
    --ink: #242738;
    --muted: #766878;
    --cream: #fff8f4;
    --cream-2: #f8eee9;
    --pudra: #f4dfe7;
    --pudra-2: #faeef2;
    --rose: #8f2e5b;
    --rose-2: #aa5677;
    --gold: #bd9651;
    --green: #4d957d;
    --line: #eadde0;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(80, 41, 57, 0.09);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.top-strip {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 7vw;
    color: #fff;
    background: linear-gradient(90deg, #6e2f4d, #8d3d61);
    font-size: 14px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 22px 7vw;
    background: rgba(255, 248, 244, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--navy);
    background: linear-gradient(145deg, #fff, #f2ded8);
    border: 2px solid rgba(189, 150, 81, 0.45);
    border-radius: 50% 50% 44% 44%;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    box-shadow: inset 0 -7px 0 rgba(189, 150, 81, 0.08);
}

.brand strong {
    display: block;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    letter-spacing: 8px;
}

.brand small {
    display: block;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.site-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    color: #3d3441;
    font-size: 15px;
}

.site-links a {
    position: relative;
    padding: 8px 0;
}

.site-links a.active,
.site-links a:hover {
    color: var(--rose);
}

.site-links a.active::after {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 2px;
    content: "";
    background: var(--rose);
}

.site-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--rose-2));
    box-shadow: 0 12px 30px rgba(143, 46, 91, 0.22);
}

.btn-ghost {
    color: var(--rose);
    background: #fff;
    border-color: var(--line);
}

.btn-soft {
    color: var(--rose);
    background: var(--pudra-2);
    border-color: #efdce4;
}

.btn-light {
    color: var(--rose);
    background: #fff;
}

.btn-small {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--rose);
    background: #fff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1.2fr);
    min-height: 690px;
    align-items: center;
    gap: 36px;
    padding: 56px 7vw 44px;
    background:
        linear-gradient(90deg, rgba(255, 248, 244, 0.96) 0%, rgba(255, 248, 244, 0.92) 40%, rgba(255, 248, 244, 0.4) 100%),
        radial-gradient(circle at 15% 25%, rgba(244, 223, 231, 0.7), transparent 34%);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.12;
}

.hero h1 {
    max-width: 720px;
    margin-top: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 5vw, 74px);
    font-weight: 500;
}

.hero p {
    max-width: 560px;
    margin: 22px 0 0;
    color: #665062;
    font-size: 22px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px 24px;
    max-width: 620px;
    margin: 38px 0;
    color: #6a5162;
}

.feature-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
}

.text-link {
    color: var(--rose);
    font-weight: 700;
}

.hero-image {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 0;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    filter: saturate(0.92) contrast(1.02);
}

.trust-card {
    position: absolute;
    right: 6%;
    bottom: 8%;
    width: min(330px, 82%);
    padding: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trust-card strong,
.trust-card span {
    display: block;
}

.trust-card strong {
    color: var(--navy);
    font-size: 18px;
}

.trust-card span {
    margin-top: 4px;
    color: var(--muted);
}

.quick-services,
.secure-access-band,
.section-grid,
.live-preview,
.why,
.footer {
    width: min(1480px, 88vw);
    margin: 0 auto;
}

.quick-services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    transform: translateY(-46px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-services a {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 28px;
    border-right: 1px solid var(--line);
}

.quick-services a:last-child {
    border-right: 0;
}

.quick-services span,
.metric-card > span,
.secure-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: 50%;
    font-size: 24px;
}

.quick-services strong,
.quick-services small {
    display: block;
}

.quick-services small {
    color: var(--muted);
}

.secure-access-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -20px;
    padding: 18px 24px;
    background: linear-gradient(90deg, #fff7f8, #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.secure-access-band > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.secure-access-band span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: 50%;
    font-size: 24px;
}

.secure-access-band strong,
.secure-access-band small {
    display: block;
}

.secure-access-band small {
    color: var(--muted);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    padding: 34px 0 70px;
}

.section-title span,
.live-preview > div > span {
    color: var(--rose);
    font-weight: 800;
}

.section-title h2,
.live-preview h2,
.why h2 {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
}

.section-title p,
.live-preview p {
    margin: 8px 0 0;
    color: var(--muted);
}

.course-grid.full {
    grid-column: 1 / -1;
}

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

.course-card,
.mini-course,
.panel-card,
.metric-card,
.auth-panel,
.auth-aside {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(80, 41, 57, 0.05);
}

.course-card {
    overflow: hidden;
}

.course-cover {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background-image: linear-gradient(0deg, rgba(23, 34, 53, 0.12), rgba(255, 248, 244, 0.08)), url("../img/selamet-hero.png");
    background-size: cover;
}

.course-cover.small {
    min-height: 104px;
    width: 210px;
    flex: 0 0 210px;
    border-radius: var(--radius);
}

.cover-quran {
    background-position: 45% 60%;
}

.cover-rosary {
    background-position: 60% 40%;
}

.cover-lantern {
    background-position: 78% 52%;
}

.cover-library {
    background-position: 35% 42%;
    filter: sepia(0.12);
}

.course-body {
    padding: 18px;
}

.course-body small {
    color: var(--rose);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.course-body h3,
.mini-course h3 {
    margin-top: 8px;
    font-size: 18px;
}

.course-body p,
.mini-course p {
    color: var(--muted);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--rose);
    font-weight: 800;
}

.live-preview {
    padding: 4px 0 72px;
}

.live-layout {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.featured-live,
.live-player {
    min-height: 330px;
    padding: 38px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(103, 35, 70, 0.94), rgba(166, 81, 113, 0.82)),
        url("../img/selamet-hero.png");
    background-position: center;
    background-size: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.featured-live h3,
.live-player h2 {
    margin: 28px 0 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
}

.featured-live p,
.live-player p {
    color: rgba(255, 255, 255, 0.85);
}

.live-list,
.timeline-list {
    display: grid;
    gap: 12px;
}

.live-list article,
.timeline-list > div,
.simple-list > div,
.audio-list article,
.application-list article {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.live-list span,
.timeline-list time {
    display: grid;
    width: 58px;
    min-width: 58px;
    height: 64px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: var(--radius);
    font-weight: 800;
}

.live-list small,
.timeline-list small,
.simple-list small {
    display: block;
    color: var(--muted);
}

.why {
    padding: 52px 0 74px;
    text-align: center;
}

.why > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.why article {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.why span {
    color: var(--rose);
    font-size: 24px;
}

.why small {
    color: var(--muted);
}

.footer {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 48px;
    padding: 56px 0;
    border-top: 1px solid var(--line);
}

.footer a,
.footer p {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.footer h4 {
    margin: 0 0 12px;
    color: var(--navy);
}

.footer-brand {
    margin-bottom: 16px;
}

.newsletter {
    display: grid;
    gap: 10px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: 0;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(143, 46, 91, 0.55);
    box-shadow: 0 0 0 4px rgba(143, 46, 91, 0.08);
}

.flash {
    margin: 16px 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 700;
}

.flash-success {
    color: #287862;
    background: #eaf7f1;
}

.flash-error {
    color: #9b3344;
    background: #fae4e9;
}

.flash-warning {
    color: #8b6730;
    background: #fff4de;
}

.flash-info {
    color: #2b6979;
    background: #e4f2f5;
}

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

.verification-grid article {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.verification-grid p {
    margin: 0;
    color: var(--muted);
}

.copyright {
    padding: 14px 7vw;
    color: #fff;
    background: #8a3c5e;
    font-size: 13px;
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(360px, 560px) minmax(360px, 1fr);
    gap: 24px;
    width: min(1180px, 90vw);
    min-height: calc(100vh - 176px);
    align-items: center;
    margin: 0 auto;
    padding: 54px 0;
}

.auth-panel {
    padding: 38px;
}

.auth-panel.wide {
    grid-column: 1 / -1;
    max-width: 860px;
    margin: 0 auto;
}

.auth-panel h1 {
    margin: 18px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
}

.auth-panel p {
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.auth-form.two-col,
.panel-form.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.auth-form label,
.panel-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 700;
}

.full-field {
    grid-column: 1 / -1;
}

.check {
    display: flex !important;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted) !important;
    font-weight: 500 !important;
}

.check input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.auth-aside {
    overflow: hidden;
}

.auth-aside img {
    height: 420px;
    width: 100%;
    object-fit: cover;
}

.auth-aside blockquote {
    margin: 0;
    padding: 28px;
    color: var(--rose);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.app-shell {
    display: grid;
    grid-template-columns: 292px 1fr;
    min-height: 100vh;
    background: #fffaf7;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 20px;
    background: #fff;
    border-right: 1px solid var(--line);
}

.sidebar-brand {
    margin-bottom: 24px;
}

.sidebar-brand .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.sidebar-brand strong {
    font-size: 22px;
}

.secure-card,
.support-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #733050, #9c4268);
    border-radius: var(--radius);
}

.secure-card small,
.support-card small {
    color: rgba(255, 255, 255, 0.78);
}

.secure-card .secure-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.side-nav {
    display: grid;
    gap: 6px;
    margin: 22px 0;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    color: #463848;
    border-radius: var(--radius);
    font-weight: 700;
}

.side-nav a span {
    width: 22px;
    color: var(--rose);
    text-align: center;
}

.side-nav a.active,
.side-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--rose-2));
    box-shadow: 0 10px 24px rgba(143, 46, 91, 0.2);
}

.side-nav a.active span,
.side-nav a:hover span {
    color: #fff;
}

.support-card {
    margin-top: 22px;
    color: var(--navy);
    background: #fffaf7;
    border: 1px solid var(--line);
}

.support-card small {
    color: var(--muted);
}

.sidebar-art {
    min-height: 170px;
    margin-top: 22px;
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.1), #fff),
        url("../img/selamet-hero.png");
    background-size: cover;
    background-position: 72% center;
    border-radius: var(--radius);
}

.app-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(520px, 48vw);
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.search-box input {
    border: 0;
    box-shadow: none;
}

.search-box input:focus {
    box-shadow: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-actions > a {
    color: var(--navy);
    font-weight: 700;
}

.icon-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--rose);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.icon-button span {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: var(--rose);
    border-radius: 999px;
    font-size: 11px;
}

.profile-chip {
    display: grid;
    grid-template-columns: 46px auto;
    column-gap: 10px;
    align-items: center;
}

.profile-chip > span {
    display: grid;
    grid-row: span 2;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--navy));
    border-radius: 50%;
    font-weight: 800;
}

.profile-chip strong {
    color: var(--navy);
}

.profile-chip small {
    color: var(--muted);
}

.content-wrap {
    padding: 28px 36px 48px;
}

.breadcrumb {
    margin-bottom: 14px;
    color: var(--rose);
    font-size: 14px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.page-heading h1 {
    font-size: 32px;
}

.page-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.role-switcher,
.filter-pills {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.role-switcher a,
.filter-pills button {
    min-height: 34px;
    padding: 0 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
}

.role-switcher a.active,
.filter-pills button.active {
    color: var(--rose);
    background: var(--pudra-2);
}

.student-top-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(520px, 1.65fr);
    gap: 18px;
    margin-bottom: 22px;
}

.welcome-band {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    min-height: 190px;
    overflow: hidden;
    margin-bottom: 0;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.welcome-band h2 {
    margin: 4px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 500;
}

.welcome-band h2 small {
    font-family: inherit;
    font-size: 22px;
}

.welcome-band p,
.welcome-band span {
    color: var(--rose);
}

.welcome-band small {
    color: var(--muted);
}

.welcome-band img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 470px;
    height: 100%;
    object-fit: cover;
    object-position: 66% center;
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
    mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.dashboard-metrics {
    margin-bottom: 0;
}

.dashboard-metrics .metric-card {
    min-height: 190px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.metric-card {
    display: grid;
    gap: 7px;
    padding: 22px;
}

.metric-card strong {
    color: var(--navy);
    font-size: 28px;
}

.metric-card small {
    color: var(--muted);
}

.metric-card a {
    margin-top: 8px;
    color: var(--rose);
    font-weight: 800;
}

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

.dashboard-reference {
    grid-template-columns: minmax(360px, 1.22fr) minmax(340px, 1fr) minmax(300px, 0.85fr);
    align-items: start;
}

.panel-card {
    min-width: 0;
    padding: 22px;
}

.notice-card {
    margin-bottom: 18px;
    color: #6f3650;
    background: linear-gradient(135deg, #fff7fa, #f7e4eb);
}

.notice-card p,
.muted-text {
    color: var(--muted);
}

.wide-card {
    grid-column: span 2;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.card-title a {
    color: var(--rose);
    font-weight: 800;
}

.progress-summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
}

.donut {
    position: relative;
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    margin: auto;
    background: conic-gradient(var(--rose) calc(var(--value) * 1%), #f1dfe5 0);
    border-radius: 50%;
}

.donut::after {
    position: absolute;
    width: 118px;
    height: 118px;
    content: "";
    background: #fff;
    border-radius: 50%;
}

.donut strong,
.donut span {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.donut strong {
    font-size: 28px;
}

.donut span {
    color: var(--muted);
    font-size: 13px;
}

.stack-list {
    display: grid;
    gap: 16px;
}

.stack-list > div {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(120px, 220px) 46px;
    gap: 12px;
    align-items: center;
}

.progress {
    display: block;
    height: 7px;
    overflow: hidden;
    background: #f1e2e7;
    border-radius: 999px;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--rose), #d995ae);
    border-radius: inherit;
}

.timeline-list.full-width > div {
    display: grid;
    grid-template-columns: 58px minmax(180px, 1fr) auto 42px;
}

.simple-list {
    display: grid;
    gap: 12px;
}

.simple-list.compact {
    margin-top: 14px;
}

.simple-list > div {
    justify-content: space-between;
}

.simple-list > div > span {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: 50%;
}

.simple-list p {
    flex: 1;
    margin: 0;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-grid a {
    display: grid;
    min-height: 70px;
    place-items: center;
    color: var(--rose);
    background: #fff8fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
}

.quick-action-grid .wide-action {
    grid-column: 1 / -1;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--rose-2));
}

.calendar-card {
    align-self: stretch;
}

.mini-calendar {
    display: grid;
    gap: 16px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-head button {
    width: 36px;
    height: 36px;
    color: var(--rose);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 22px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.calendar-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.calendar-grid b,
.calendar-grid small {
    display: grid;
    min-height: 30px;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
}

.calendar-grid small {
    color: #b7adb3;
}

.calendar-grid .active {
    color: #fff;
    background: var(--rose);
}

.quote-card {
    display: grid;
    min-height: 234px;
    align-content: center;
    gap: 10px;
    padding: 28px;
    color: var(--rose);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 246, 249, 0.86)),
        url("../img/selamet-hero.png");
    background-position: 82% center;
    background-size: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.quote-card strong {
    color: var(--rose);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
}

.quote-card small {
    color: var(--muted);
}

.planning-band {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 26px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(119, 35, 74, 0.98), rgba(143, 46, 91, 0.92)),
        url("../img/selamet-hero.png");
    background-position: right center;
    background-size: cover;
    border-radius: var(--radius);
}

.planning-band > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--rose);
    background: #fff;
    border-radius: 50%;
    font-size: 28px;
}

.planning-band strong,
.planning-band small {
    display: block;
}

.planning-band strong {
    font-size: 22px;
}

.planning-band small {
    color: rgba(255, 255, 255, 0.84);
}

.access-card,
.profile-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 18px;
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.access-card strong,
.profile-summary strong {
    color: var(--navy);
    font-size: 18px;
}

.access-card span,
.profile-summary span {
    color: var(--muted);
}

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

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

.course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: -4px 0 22px;
    border-bottom: 1px solid var(--line);
}

.course-tabs a {
    position: relative;
    padding: 0 0 14px;
    color: var(--muted);
    font-weight: 800;
}

.course-tabs a.active {
    color: var(--rose);
}

.course-tabs a.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--rose);
}

.course-side {
    display: grid;
    gap: 18px;
}

.course-list article {
    display: grid;
    grid-template-columns: 210px 1fr 48px auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.course-cover button,
.round-play {
    position: absolute;
    inset: 0;
    width: 54px;
    height: 54px;
    margin: auto;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    border-radius: 50%;
    font-weight: 800;
}

.recommended {
    margin-top: 18px;
}

.courses-layout .recommended {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.small-donut {
    width: 150px;
    height: 150px;
    margin: 20px auto;
}

.small-donut::after {
    width: 96px;
    height: 96px;
}

.small-donut strong {
    font-size: 22px;
}

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

.legend-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.legend-list b {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
}

.legend-list span:nth-child(2) b {
    background: var(--rose);
}

.legend-list span:nth-child(3) b {
    background: #eadde0;
}

.weekly-goal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
    color: var(--rose);
}

.weekly-goal strong {
    font-size: 30px;
}

.compact-quote {
    min-height: 178px;
}

.lesson-sequence,
.exam-grid,
.certificate-grid {
    display: grid;
    gap: 14px;
}

.lesson-sequence article,
.lesson-sequence > div,
.exam-grid article,
.certificate-grid article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.lesson-sequence.mini > div {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 12px;
}

.lesson-sequence article > span,
.lesson-sequence > div > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: 50%;
    font-weight: 900;
}

.lesson-sequence.mini > div > span {
    width: 36px;
    height: 36px;
}

.lesson-sequence h3,
.exam-grid h3,
.certificate-grid h3 {
    font-size: 17px;
}

.lesson-sequence p,
.exam-grid p,
.certificate-grid p {
    margin: 4px 0;
    color: var(--muted);
}

.lesson-sequence small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.lesson-sequence .locked,
.exam-grid .locked {
    background: #fbf6f7;
}

.lesson-sequence .locked > span {
    color: #8a7f86;
    background: #eee7ea;
}

.exam-grid article {
    grid-template-columns: minmax(0, 1fr) 86px auto auto;
}

.exam-grid.single article {
    grid-template-columns: minmax(0, 1fr) 72px auto;
}

.exam-score {
    display: grid;
    min-width: 70px;
    justify-items: center;
    padding: 10px;
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.exam-score strong {
    color: var(--rose);
    font-size: 24px;
}

.exam-score small {
    color: var(--muted);
}

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

.certificate-grid.single {
    grid-template-columns: 1fr;
}

.certificate-grid article {
    grid-template-columns: 1fr;
    align-content: start;
}

.certificate-grid article > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--gold);
    background: #fff5df;
    border-radius: 50%;
    font-size: 24px;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.teacher-grid article {
    display: grid;
    gap: 10px;
    padding: 20px;
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.teacher-grid article > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: 50%;
    font-size: 24px;
}

.teacher-grid p {
    color: var(--muted);
}

.mini-course {
    overflow: hidden;
    padding-bottom: 16px;
}

.mini-course h3,
.mini-course p,
.mini-course button {
    margin-right: 16px;
    margin-left: 16px;
}

.mini-course h3 {
    margin-top: 16px;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
}

.live-player {
    min-height: 360px;
}

.live-player.compact {
    min-height: auto;
}

.live-side-stack {
    display: grid;
    gap: 18px;
}

.reminder-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #fff8fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.reminder-row > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--rose);
    background: var(--pudra-2);
    border-radius: 50%;
}

.reminder-row p {
    flex: 1;
    margin: 0;
}

.reminder-row small {
    display: block;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-live,
.badge-warning {
    color: #893856;
    background: #fff2d9;
}

.badge-success {
    color: #287862;
    background: #e4f4ee;
}

.badge-danger {
    color: #9b3344;
    background: #fae4e9;
}

.badge-info {
    color: #2b6979;
    background: #e4f2f5;
}

.badge-muted {
    color: var(--muted);
    background: #f3eef0;
}

.audio-player {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    max-width: 600px;
    margin-top: 26px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.audio-player button {
    width: 48px;
    height: 48px;
    color: var(--rose);
    background: #fff;
    border: 0;
    border-radius: 50%;
    font-weight: 800;
}

.audio-player div {
    height: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.audio-player div span {
    display: block;
    width: 42%;
    height: 100%;
    background: #fff;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.audio-player.is-playing div span {
    width: 78%;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.player-meta span {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
}

.audio-list {
    display: grid;
    gap: 12px;
}

.audio-list article {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr auto auto auto;
}

.material-audio {
    display: block;
    width: min(100%, 520px);
    height: 38px;
    margin-top: 10px;
    accent-color: var(--rose);
}

.stream-audio {
    display: block;
    width: min(100%, 620px);
    height: 42px;
    margin-top: 18px;
    accent-color: var(--rose);
}

.round-play {
    position: static;
    display: grid;
    place-items: center;
    margin: 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.panel-form {
    display: grid;
    gap: 16px;
}

.file-drop {
    min-height: 106px;
    place-items: center;
    color: var(--rose) !important;
    background: #fff9fb;
    border: 1px dashed #ddb8c6;
    border-radius: var(--radius);
}

.file-drop input {
    display: none;
}

.question-list,
.question-answer-list,
.application-list {
    display: grid;
    gap: 12px;
}

.question-list > div,
.question-answer-list article {
    padding: 16px;
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.question-list p {
    color: var(--muted);
}

.question-list small {
    color: var(--rose);
    font-weight: 800;
}

.question-answer-list article {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
    gap: 16px;
}

.question-answer-list form {
    display: grid;
    gap: 10px;
}

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

.security-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: #eadde0;
    border: 0;
    border-radius: 999px;
}

.switch::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    content: "";
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s ease;
}

.switch.active {
    background: var(--rose);
}

.switch.active::after {
    left: 26px;
}

.application-list article {
    align-items: flex-start;
}

.application-list article > div:first-child {
    flex: 1;
}

.application-list p {
    margin: 8px 0 0;
    color: var(--muted);
}

.row-actions {
    display: flex;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.check-steps {
    display: grid;
    gap: 12px;
}

.check-steps div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff9fb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.check-steps strong {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--rose);
    background: #fff;
    border-radius: 50%;
}

.check-steps .done strong {
    color: #fff;
    background: var(--green);
}

.mobile-only {
    display: none;
}

.scrim {
    display: none;
}

@media (max-width: 1180px) {
    .site-nav {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .site-links,
    .site-actions {
        display: none;
    }

    .site-links.open {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 4px;
    }

    .site-links.open a {
        padding: 12px;
        border-bottom: 1px solid var(--line);
    }

    .hero,
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .quick-services,
    .dashboard-metrics,
    .course-grid,
    .teacher-grid,
    .why > div,
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-top-grid,
    .courses-layout,
    .dashboard-reference {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 30;
        width: 292px;
        transform: translateX(-110%);
        transition: transform 0.2s ease;
    }

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

    .scrim.open {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        background: rgba(23, 34, 53, 0.42);
    }

    .mobile-only {
        display: grid;
    }

    .app-topbar {
        justify-content: flex-start;
    }

    .search-box {
        width: min(520px, 100%);
    }

    .topbar-actions > a,
    .profile-chip small {
        display: none;
    }
}

@media (max-width: 860px) {
    .top-strip {
        flex-direction: column;
        gap: 4px;
        padding: 10px 5vw;
    }

    .site-nav,
    .hero,
    .content-wrap,
    .app-topbar {
        padding-right: 5vw;
        padding-left: 5vw;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-image,
    .hero-image img {
        min-height: 330px;
        height: 330px;
    }

    .feature-list,
    .quick-services,
    .secure-access-band,
    .section-grid,
    .course-grid,
    .teacher-grid,
    .live-layout,
    .why > div,
    .footer,
    .metric-grid,
    .dashboard-grid,
    .dashboard-reference,
    .split-grid,
    .auth-form.two-col,
    .panel-form.two-col,
    .progress-summary,
    .verification-grid,
    .student-top-grid,
    .courses-layout,
    .planning-band {
        grid-template-columns: 1fr;
    }

    .courses-layout .recommended {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .secure-access-band {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-services {
        transform: none;
        width: min(90vw, 520px);
        margin-top: 22px;
    }

    .quick-services a,
    .quick-services a:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .section-grid {
        padding-top: 54px;
    }

    .wide-card {
        grid-column: auto;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .role-switcher {
        width: 100%;
        overflow-x: auto;
    }

    .welcome-band {
        grid-template-columns: 1fr;
        min-height: 250px;
    }

    .welcome-band img {
        width: 100%;
        opacity: 0.35;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .course-list article {
        grid-template-columns: 1fr;
    }

    .course-cover.small {
        width: 100%;
    }

    .timeline-list.full-width > div,
    .audio-list article,
    .question-answer-list article,
    .lesson-sequence article,
    .lesson-sequence > div,
    .exam-grid article,
    .exam-grid.single article,
    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .auth-wrap {
        width: min(92vw, 680px);
    }

    .auth-aside {
        display: none;
    }

.topbar-actions .icon-button:nth-of-type(2) {
        display: none;
    }
}

.checkbox-stack {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-stack label,
.check-row {
    align-items: center;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
}

.checkbox-stack input,
.check-row input {
    accent-color: var(--rose);
    width: auto;
}

.inline-form {
    align-items: center;
    display: flex;
    gap: 8px;
}

.inline-form input,
.inline-form select,
td select {
    min-width: 130px;
}

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

.question-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px;
}

.question-card legend {
    color: var(--ink);
    font-weight: 800;
    padding: 0 8px;
}

.question-card label {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    line-height: 1.5;
}

.certificate-view {
    margin: 0 auto;
    max-width: 900px;
}

.certificate-view h1 {
    font-family: var(--serif);
    font-size: 42px;
    margin: 10px 0;
}

.certificate-box {
    background: linear-gradient(135deg, #fff7f4, #fbf1f4);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 28px;
}

.certificate-box strong {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 28px;
}

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

@media (max-width: 560px) {
    .brand strong {
        font-size: 21px;
        letter-spacing: 5px;
    }

    .brand small {
        letter-spacing: 3px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-actions,
    .row-actions {
        flex-direction: column;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .quick-services a {
        grid-template-columns: 44px 1fr;
        padding: 20px;
    }

    .app-topbar {
        gap: 10px;
    }

    .search-box {
        min-width: 0;
    }

    .topbar-actions {
        gap: 8px;
    }

    .profile-chip strong {
        display: none;
    }

    .profile-chip {
        grid-template-columns: 42px;
    }
}
