:root {
    --background: #09090f;
    --surface: #111119;
    --surface-light: #171722;
    --surface-hover: #1c1c29;

    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;

    --primary-rgb: 139, 92, 246;
    --primary-light-rgb: 167, 139, 250;
    --primary-dark-rgb: 109, 40, 217;

    --text: #ffffff;
    --text-secondary: #b7b7c8;
    --text-muted: #77778c;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.13);

    --success: #48d597;
    --danger: #ff6b7a;

    --navigation-height: 78px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family: "Inter", sans-serif;

    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button {
    color: inherit;
}

.backgroundGlow {
    position: fixed;

    z-index: -1;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(115px);
    opacity: 0.17;

    pointer-events: none;
}

.backgroundGlowOne {
    top: -220px;
    right: -220px;

    background: var(--primary);
}

.backgroundGlowTwo {
    left: -240px;
    bottom: 80px;

    background: #4f46e5;
}

.app {
    width: 100%;
    min-height: 100vh;

    padding-bottom:
        calc(
            var(--navigation-height) +
            36px +
            env(safe-area-inset-bottom)
        );
}

.appHeader {
    position: sticky;
    top: 0;

    z-index: 100;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        calc(18px + env(safe-area-inset-top))
        20px
        16px;

    background: rgba(9, 9, 15, 0.82);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.greeting {
    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 500;
}

.appHeader h1 {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.profileButton {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;

    color: white;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 10px 28px rgba(var(--primary-dark-rgb), 0.32);
}

.profileButton:active {
    transform: scale(0.95);
}

.appMain {
    width: min(100% - 32px, 620px);

    margin: 0 auto;
    padding-top: 24px;
}

.welcomeSection {
    margin-bottom: 21px;
}

.sectionLabel {
    display: block;

    margin-bottom: 7px;

    color: var(--primary-light);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.welcomeSection h2 {
    max-width: 340px;

    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.07;
    letter-spacing: -1.6px;
}

.welcomeSection p {
    max-width: 360px;

    margin-top: 11px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.6;
}

.progressCard {
    position: relative;

    overflow: hidden;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(var(--primary-rgb), 0.14),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid var(--border-strong);
    border-radius: 26px;

    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.32);
}

.progressCard::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -70px;

    width: 210px;
    height: 210px;

    background: var(--primary);

    border-radius: 50%;

    filter: blur(80px);
    opacity: 0.16;

    pointer-events: none;
}

.progressCardHeader {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.progressCardHeader > div:first-child {
    min-width: 0;
}

.progressCardHeader span {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 500;
}

.progressCardHeader strong {
    display: block;

    margin-top: 5px;

    font-size: 40px;
    line-height: 1;
    letter-spacing: -2px;
}

.progressCardHeader p {
    max-width: 190px;

    margin-top: 8px;

    color: var(--text-muted);

    font-size: 10px;
    line-height: 1.45;
}

.progressCircle {
    position: relative;

    width: 103px;
    height: 103px;

    flex-shrink: 0;
}

.progressCircle svg {
    width: 100%;
    height: 100%;

    transform: rotate(-90deg);
}

.progressTrack,
.progressValue {
    fill: none;

    stroke-width: 9;
}

.progressTrack {
    stroke: rgba(255, 255, 255, 0.08);
}

.progressValue {
    stroke: var(--primary-light);
    stroke-linecap: round;

    stroke-dasharray: 301.59;
    stroke-dashoffset: 301.59;

    transition: stroke-dashoffset 500ms ease;
}

.progressCircle > span {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: var(--text);

    font-size: 17px;
    font-weight: 750;
}

.statsGrid {
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.statItem {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;
}

.statItem strong {
    font-size: 18px;
}

.statItem span {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 500;
}

.statDivider {
    width: 1px;
    height: 28px;

    background: var(--border);
}

.quickActionsSection {
    margin-top: 29px;
}

.sectionHeader {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}

.sectionHeader h2 {
    font-size: 18px;
    letter-spacing: -0.6px;
}

.quickActionsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.quickActionCard {
    min-width: 0;
    min-height: 142px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    padding: 17px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;

    text-align: left;

    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.quickActionCard:hover {
    background: var(--surface-light);
    border-color: var(--border-strong);
}

.quickActionCard:active {
    transform: scale(0.97);
}

.primaryQuickAction {
    background:
        linear-gradient(
            145deg,
            rgba(var(--primary-rgb), 0.22),
            rgba(var(--primary-rgb), 0.08)
        );

    border-color: rgba(var(--primary-light-rgb), 0.24);
}

.quickActionIcon {
    width: 41px;
    height: 41px;

    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 13px;

    color: var(--primary-light);
}

.primaryQuickAction .quickActionIcon {
    background: var(--primary);

    color: white;

    box-shadow:
        0 10px 26px rgba(var(--primary-dark-rgb), 0.32);
}

.quickActionIcon svg {
    width: 21px;
    height: 21px;
}

.quickActionText {
    min-width: 0;
}

.quickActionText strong {
    display: block;

    margin-bottom: 5px;

    font-size: 13px;
    font-weight: 700;
}

.quickActionText small {
    display: block;

    color: var(--text-muted);

    font-size: 9px;
    line-height: 1.35;
}

.assignmentForm {
    margin-top: 20px;
    padding: 20px;

    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 24px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.3);

    animation: formEnter 220ms ease;
}

@keyframes formEnter {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.assignmentForm.hidden {
    display: none;
}

.formHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 20px;
}

.formHeader h2 {
    font-size: 20px;
    letter-spacing: -0.7px;
}

.closeButton {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--text-secondary);

    font-size: 23px;
    line-height: 1;
}

.closeButton:hover {
    background: var(--surface-hover);
}

.formField {
    display: block;

    margin-bottom: 15px;
}

.formField > span {
    display: block;

    margin-bottom: 7px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}

.formField input {
    width: 100%;
    min-height: 51px;

    padding: 0 15px;

    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;

    color: var(--text);

    font-size: 16px;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.formField input::placeholder {
    color: #555568;
}

.formField input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(var(--primary-rgb), 0.13);
}

.formField input[type="date"] {
    color-scheme: dark;
}

.saveAssignmentButton {
    width: 100%;
    min-height: 52px;

    margin-top: 4px;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );

    border: 0;
    border-radius: 15px;

    color: white;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 14px 32px rgba(var(--primary-dark-rgb), 0.3);
}

.saveAssignmentButton:active {
    transform: scale(0.98);
}

.assignmentsSection {
    margin-top: 30px;
}

.assignmentFilter {
    min-height: 38px;

    padding: 0 30px 0 12px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.assignmentList {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.assignmentItem {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;

    gap: 12px;

    padding: 14px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    transition:
        background 150ms ease,
        transform 150ms ease;
}

.assignmentItem:active {
    transform: scale(0.985);
}

.assignmentCheckbox {
    width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: transparent;
    border: 2px solid #4f4f62;
    border-radius: 8px;

    color: white;
}

.assignmentCheckbox.completed {
    background: var(--primary);
    border-color: var(--primary);
}

.assignmentCheckbox svg {
    width: 14px;
    height: 14px;
}

.assignmentDetails {
    min-width: 0;
}

.assignmentDetails strong {
    display: block;

    overflow: hidden;

    font-size: 13px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignmentDetails span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;
}

.assignmentItem.completed .assignmentDetails strong {
    color: var(--text-muted);

    text-decoration: line-through;
}

.assignmentDate {
    padding: 6px 8px;

    background: rgba(var(--primary-rgb), 0.11);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 9px;

    color: var(--primary-light);

    font-size: 9px;
    font-weight: 650;
    white-space: nowrap;
}

.emptyState {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: 22px;

    text-align: center;
}

.emptyState.hidden {
    display: none;
}

.emptyStateIcon {
    width: 51px;
    height: 51px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 16px;

    color: var(--primary-light);
}

.emptyStateIcon svg {
    width: 24px;
    height: 24px;
}

.emptyState strong {
    font-size: 14px;
}

.emptyState p {
    max-width: 230px;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 10px;
    line-height: 1.55;
}

.bottomNavigation {
    position: fixed;

    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));

    z-index: 1000;

    height: var(--navigation-height);

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;

    padding: 8px;

    background: rgba(20, 20, 29, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: 25px;

    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);

    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.58);
}

.navigationItem {
    min-width: 0;
    height: 57px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 17px;

    color: var(--text-muted);

    transition:
        background 150ms ease,
        color 150ms ease;
}

.navigationItem svg {
    width: 21px;
    height: 21px;
}

.navigationItem span {
    font-size: 9px;
    font-weight: 600;
}

.navigationItem.active {
    background: rgba(var(--primary-rgb), 0.13);

    color: var(--primary-light);
}

.navigationAddButton {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin: -31px auto 0;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );

    border: 5px solid var(--background);
    border-radius: 18px;

    color: white;

    box-shadow:
        0 14px 32px rgba(var(--primary-dark-rgb), 0.42);

    transition: transform 150ms ease;
}

.navigationAddButton:active {
    transform: scale(0.92);
}

.navigationAddButton svg {
    width: 23px;
    height: 23px;
}

.toast {
    position: fixed;

    left: 50%;
    bottom:
        calc(
            var(--navigation-height) +
            30px +
            env(safe-area-inset-bottom)
        );

    z-index: 2000;

    width: max-content;
    max-width: calc(100% - 36px);

    padding: 12px 17px;

    background: rgba(33, 33, 44, 0.96);
    border: 1px solid var(--border-strong);
    border-radius: 13px;

    color: var(--text);

    font-size: 11px;
    font-weight: 600;

    transform: translateX(-50%);

    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.38);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.toast.hidden {
    opacity: 0;

    transform:
        translateX(-50%)
        translateY(10px);

    pointer-events: none;
}

@media (min-width: 700px) {
    .appMain {
        padding-top: 36px;
    }

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

    .bottomNavigation {
        width: min(590px, calc(100% - 32px));

        left: 50%;
        right: auto;

        transform: translateX(-50%);
    }
}

@media (max-width: 370px) {
    .appMain {
        width: min(100% - 24px, 620px);
    }

    .appHeader {
        padding-inline: 14px;
    }

    .progressCard {
        padding: 18px;
    }

    .progressCircle {
        width: 88px;
        height: 88px;
    }

    .progressCardHeader strong {
        font-size: 34px;
    }

    .quickActionCard {
        min-height: 132px;
        padding: 14px;
    }

    .bottomNavigation {
        left: 7px;
        right: 7px;
    }

    .navigationItem span {
        font-size: 8px;
    }
}

.assignmentActions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.deleteAssignmentButton {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;

    color: var(--text-muted);
}

.deleteAssignmentButton:hover {
    background: rgba(255, 107, 122, 0.1);
    border-color: rgba(255, 107, 122, 0.15);

    color: var(--danger);
}

.deleteAssignmentButton:active {
    transform: scale(0.92);
}

.deleteAssignmentButton svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 390px) {
    .assignmentItem {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .assignmentActions {
        grid-column: 2;

        justify-content: space-between;
    }
}

/* -----------------------------------------
   Multi-page mobile navigation
----------------------------------------- */

.pageView[hidden] {
    display: none;
}

.pageView.active {
    animation: pageEnter 180ms ease;
}

@keyframes pageEnter {
    from {
        transform: translateY(7px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pageIntro {
    margin-bottom: 22px;
}

.pageIntro h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.06;
    letter-spacing: -1.7px;
}

.pageIntro p {
    max-width: 390px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.pageContentSection {
    margin-top: 28px;
}

.pageSummaryCard {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 18px 14px;
    background:
        linear-gradient(
            145deg,
            rgba(var(--primary-rgb), 0.13),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid var(--border-strong);
    border-radius: 22px;
}

.pageSummaryItem {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.pageSummaryItem strong {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.pageSummaryItem span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

.pageSummaryDivider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.pageEmptyState {
    min-height: 235px;
}

/* -----------------------------------------
   Classes page
----------------------------------------- */

.classList,
.subjectProgressList {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.classCard {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 19px;
}

.classIcon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: rgba(var(--primary-rgb), 0.14);
    border: 1px solid rgba(var(--primary-light-rgb), 0.18);
    border-radius: 14px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.classDetails {
    min-width: 0;
}

.classDetails strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classDetails span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.classProgressSummary {
    min-width: 52px;
    text-align: right;
}

.classProgressSummary strong {
    display: block;
    color: var(--primary-light);
    font-size: 13px;
}

.classProgressSummary span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 8px;
}

.miniProgressTrack {
    grid-column: 2 / -1;
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.065);
    border-radius: 999px;
}

.miniProgressValue {
    display: block;
    width: 0;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );
    border-radius: inherit;
    transition: width 420ms ease;
}

/* -----------------------------------------
   Progress page
----------------------------------------- */

.detailedProgressCard {
    padding: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(var(--primary-rgb), 0.15),
            rgba(255, 255, 255, 0.035)
        );
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
}

.detailedProgressTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.detailedProgressTop > div:first-child {
    min-width: 0;
}

.detailedProgressTop > div:first-child > strong {
    display: block;
    margin-top: 4px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -2px;
}

.detailedProgressTop p {
    max-width: 205px;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.detailedProgressCircle {
    width: 106px;
    height: 106px;
}

.completionBar {
    height: 7px;
    overflow: hidden;
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.completionBar span {
    display: block;
    width: 0;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-light)
        );
    border-radius: inherit;
    transition: width 500ms ease;
}

.progressOverviewGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.progressStatCard {
    min-width: 0;
    padding: 15px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.progressStatCard span {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

.progressStatCard strong {
    display: block;
    margin-top: 7px;
    font-size: 22px;
    letter-spacing: -0.8px;
}

.subjectProgressItem {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 19px;
}

.subjectProgressHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.subjectProgressHeader strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subjectProgressHeader span {
    flex-shrink: 0;
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
}

.subjectProgressMeta {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 9px;
}

.subjectProgressItem .miniProgressTrack {
    margin-top: 12px;
}

/* -----------------------------------------
   Settings page and themes
----------------------------------------- */

.settingsCard {
    margin-bottom: 13px;
    padding: 19px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

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

.compactSettingsHeader {
    margin-bottom: 14px;
}

.settingsCardHeader h3,
.appInfoCard h3 {
    font-size: 17px;
    letter-spacing: -0.55px;
}

.appearancePreview {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-light-rgb), 0.2);
    border-radius: 16px;
}

.appearancePreview span {
    width: 23px;
    height: 23px;
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(var(--primary-dark-rgb), 0.34);
}

.themeGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.themeOption {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 650;
    text-align: left;
}

.themeOption > span {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
}

.themeOption.active {
    background: rgba(var(--primary-rgb), 0.13);
    border-color: rgba(var(--primary-light-rgb), 0.34);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.customColorRow {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
}

#customThemeColor {
    width: 48px;
    height: 48px;
    padding: 5px;
    overflow: hidden;
    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 14px;
}

#customThemeColor::-webkit-color-swatch-wrapper {
    padding: 0;
}

#customThemeColor::-webkit-color-swatch {
    border: 0;
    border-radius: 9px;
}

#customThemeColor::-moz-color-swatch {
    border: 0;
    border-radius: 9px;
}

#customThemeHex {
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

#customThemeHex:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.13);
}

.applyCustomColorButton {
    min-width: 68px;
    height: 48px;
    padding: 0 14px;
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );
    border: 0;
    border-radius: 14px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(var(--primary-dark-rgb), 0.28);
}

.specialThemeGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.specialThemeButton {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 650;
}

.specialThemeButton.active {
    background: rgba(var(--primary-rgb), 0.13);
    border-color: rgba(var(--primary-light-rgb), 0.34);
    color: var(--text);
}

.rainbowDot,
.systemDot {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 5px;
}

.rainbowDot {
    background:
        conic-gradient(
            #ef4444,
            #f59e0b,
            #22c55e,
            #3b82f6,
            #8b5cf6,
            #ec4899,
            #ef4444
        );
}

.systemDot {
    background:
        linear-gradient(
            135deg,
            #2563eb 50%,
            #7c3aed 50%
        );
}

.settingsHint {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.5;
}

.appInfoCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.appInfoCard p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 10px;
}

.versionBadge {
    padding: 7px 10px;
    background: rgba(var(--primary-rgb), 0.14);
    border: 1px solid rgba(var(--primary-light-rgb), 0.2);
    border-radius: 10px;
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 800;
}

@media (min-width: 560px) {
    .themeGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 370px) {
    .customColorRow {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    #customThemeColor {
        width: 44px;
    }

    .applyCustomColorButton {
        grid-column: 1 / -1;
        width: 100%;
    }

    .detailedProgressTop > div:first-child > strong {
        font-size: 36px;
    }

    .detailedProgressCircle {
        width: 88px;
        height: 88px;
    }
}

.profileImage {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}