:root {
    color-scheme: dark;
    --night-950: #020914;
    --night-900: #04111f;
    --night-850: #07172a;
    --night-800: #0a1d34;
    --night-750: #0d2541;
    --line: rgba(117, 198, 229, 0.18);
    --line-strong: rgba(94, 203, 236, 0.34);
    --text: #edfaff;
    --muted: #93afc3;
    --muted-2: #68879e;
    --teal: #1ce0c1;
    --cyan: #32c8ff;
    --violet: #8d68ff;
    --coral: #ff6d78;
    --amber: #ffc95c;
    --success: #25e2bd;
    --danger: #ff7782;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--night-950);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(28, 224, 193, 0.28);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #03101d;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #03101d;
    border-radius: 99px;
    background: #24516a;
}

.shell {
    width: min(1180px, calc(100% - 44px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 11px 16px;
    transform: translateY(-150%);
    border-radius: 10px;
    background: var(--teal);
    color: #02101a;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin: 0;
    color: var(--teal);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.auth-page,
.dashboard-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 19%, rgba(20, 141, 176, 0.11), transparent 30%),
        radial-gradient(circle at 85% 60%, rgba(112, 72, 214, 0.08), transparent 28%),
        linear-gradient(145deg, #020914 0%, #04111f 48%, #030b17 100%);
}

.ambient {
    position: fixed;
    z-index: -2;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    opacity: 0.22;
    filter: blur(110px);
    pointer-events: none;
}

.ambient-one {
    top: -280px;
    left: -120px;
    background: #00b7c8;
    animation: ambientDrift 13s ease-in-out infinite alternate;
}

.ambient-two {
    right: -260px;
    bottom: -220px;
    background: #6146dd;
    animation: ambientDrift 17s ease-in-out infinite alternate-reverse;
}

.dashboard-ambient {
    top: 20%;
    right: -260px;
    background: linear-gradient(130deg, #0bbca7, #4934d5);
}

.star-field {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(circle, rgba(83, 226, 226, 0.8) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(126, 114, 255, 0.62) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 0.7px, transparent 1px);
    background-position: 18px 22px, 4px 8px, 0 0;
    background-size: 149px 163px, 211px 193px, 89px 113px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.site-header,
.dashboard-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border: 1px solid rgba(39, 226, 194, 0.28);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(18, 78, 99, 0.72), rgba(5, 24, 43, 0.9));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 9px 30px rgba(0, 196, 187, 0.12);
}

.brand-mark img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.live-chip,
.sync-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 25, 42, 0.67);
    color: var(--muted);
    font-size: 0.73rem;
    backdrop-filter: blur(16px);
}

.live-chip span,
.sync-chip span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(28, 224, 193, 0.08), 0 0 14px var(--teal);
    animation: livePulse 2.2s ease-out infinite;
}

.auth-layout {
    display: grid;
    min-height: calc(100vh - 164px);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.78fr);
    padding-block: 42px 56px;
}

.hero-panel {
    position: relative;
    max-width: 650px;
}

.hero-panel h1 {
    max-width: 640px;
    margin: 18px 0 20px;
    font-size: clamp(2.8rem, 5.6vw, 5.25rem);
    font-weight: 670;
    letter-spacing: -0.057em;
    line-height: 0.98;
}

.hero-panel h1 span {
    color: transparent;
    background: linear-gradient(90deg, #f1fdff 5%, #38e0d1 43%, #56c6ff 74%, #a899ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.72;
}

.orbit-showcase {
    position: relative;
    width: min(470px, 88%);
    aspect-ratio: 1.85 / 1;
    margin: 44px 0 35px 14px;
    perspective: 900px;
}

.orbit,
.dashboard-ring {
    position: absolute;
    border: 1px solid rgba(58, 211, 230, 0.32);
    border-radius: 50%;
}

.orbit-a {
    inset: 8% 0 8% 0;
    transform: rotate(-8deg);
    box-shadow: inset 0 0 34px rgba(19, 178, 205, 0.05);
    animation: orbitTilt 8s ease-in-out infinite alternate;
}

.orbit-b {
    inset: 18% 12%;
    border-color: rgba(134, 101, 255, 0.35);
    transform: rotate(9deg);
    animation: orbitTilt 10s ease-in-out infinite alternate-reverse;
}

.orbit::before,
.dashboard-ring::before {
    position: absolute;
    content: "";
    inset: -2px;
    border: 3px solid transparent;
    border-top-color: var(--teal);
    border-right-color: rgba(50, 200, 255, 0.65);
    border-radius: inherit;
    filter: drop-shadow(0 0 9px rgba(28, 224, 193, 0.55));
}

.orbit-a::before {
    transform: rotate(28deg);
}

.orbit-b::before {
    border-top-color: transparent;
    border-right-color: var(--violet);
    transform: rotate(122deg);
}

.progress-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 138px;
    height: 138px;
    place-content: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(43, 221, 211, 0.38);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(63, 224, 229, 0.23), transparent 38%),
        rgba(5, 25, 43, 0.88);
    box-shadow: 0 0 55px rgba(0, 194, 200, 0.13), inset 0 0 35px rgba(25, 182, 203, 0.07);
    text-align: center;
    backdrop-filter: blur(12px);
}

.progress-core span {
    font-size: 2.35rem;
    font-weight: 300;
    letter-spacing: -0.06em;
}

.progress-core small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.orbit-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #c7ffff;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 17px var(--cyan);
}

.dot-a {
    top: 11%;
    right: 18%;
    animation: dotFloat 4s ease-in-out infinite;
}

.dot-b {
    bottom: 9%;
    left: 22%;
    background: var(--violet);
    box-shadow: 0 0 17px var(--violet);
    animation: dotFloat 5s ease-in-out infinite reverse;
}

.floating-label {
    position: absolute;
    display: grid;
    gap: 2px;
    padding: 9px 13px;
    border: 1px solid rgba(122, 190, 224, 0.2);
    border-radius: 12px;
    background: rgba(8, 30, 50, 0.78);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.floating-label b {
    color: var(--text);
    font-size: 0.86rem;
}

.floating-label span {
    color: var(--muted-2);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.label-one {
    top: 2%;
    left: 3%;
}

.label-two {
    right: -3%;
    bottom: 4%;
}

.proof-row {
    display: grid;
    width: min(610px, 100%);
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.proof-row div {
    display: grid;
    gap: 5px;
    padding: 17px 14px;
}

.proof-row div + div {
    border-left: 1px solid var(--line);
}

.proof-row strong {
    font-size: 0.82rem;
}

.proof-row span {
    color: var(--muted-2);
    font-size: 0.7rem;
}

.auth-card,
.panel,
.system-card {
    position: relative;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(14, 42, 69, 0.86), rgba(5, 21, 38, 0.94) 72%);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(24px);
}

.auth-card {
    width: 100%;
    max-width: 470px;
    justify-self: end;
    overflow: hidden;
    padding: clamp(25px, 3.4vw, 38px);
    border-radius: var(--radius-lg);
}

.auth-card::after {
    position: absolute;
    top: 0;
    left: 18%;
    width: 64%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(73, 232, 217, 0.8), transparent);
}

.card-glow {
    position: absolute;
    top: -120px;
    right: -110px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(78, 73, 223, 0.14);
    filter: blur(55px);
    pointer-events: none;
}

.auth-intro {
    position: relative;
}

.auth-intro h2 {
    margin: 10px 0 7px;
    font-size: clamp(1.65rem, 4vw, 2.05rem);
    letter-spacing: -0.035em;
}

.auth-intro > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 27px 0 23px;
    padding: 5px;
    border: 1px solid rgba(119, 181, 211, 0.13);
    border-radius: 14px;
    background: rgba(2, 14, 27, 0.54);
}

.auth-tab {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    outline: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: 180ms ease;
}

.auth-tab:hover,
.auth-tab:focus-visible {
    color: var(--text);
}

.auth-tab.is-active {
    background: linear-gradient(145deg, rgba(25, 83, 105, 0.78), rgba(15, 49, 73, 0.9));
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(75, 214, 218, 0.15), 0 7px 24px rgba(0, 0, 0, 0.2);
}

.auth-view.is-active {
    animation: viewEnter 260ms ease both;
}

.field {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.field > span:first-child {
    color: #c7dce8;
    font-size: 0.75rem;
    font-weight: 650;
}

.field > span:first-child small {
    margin-left: 5px;
    color: var(--muted-2);
    font-size: 0.67rem;
    font-weight: 500;
}

.input-shell {
    position: relative;
    display: flex;
    min-height: 50px;
    align-items: center;
    border: 1px solid rgba(119, 190, 219, 0.17);
    border-radius: var(--radius-sm);
    background: rgba(2, 15, 28, 0.62);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.input-shell:focus-within {
    border-color: rgba(36, 224, 198, 0.62);
    box-shadow: 0 0 0 4px rgba(28, 224, 193, 0.07), 0 9px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.input-shell input {
    min-width: 0;
    flex: 1;
    align-self: stretch;
    padding: 0 12px 0 2px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.87rem;
}

.input-shell input::placeholder {
    color: #58768d;
}

.field-icon {
    display: grid;
    width: 43px;
    flex: 0 0 43px;
    place-items: center;
    color: #60b5c8;
    font-size: 0.8rem;
    font-weight: 800;
}

.lock-icon::before {
    width: 9px;
    height: 8px;
    content: "";
    border: 1.5px solid currentColor;
    border-radius: 2px;
    box-shadow: 0 -5px 0 -2px rgba(0, 0, 0, 0), 0 -5px 0 -1px currentColor;
}

.person-icon::before {
    width: 8px;
    height: 8px;
    content: "";
    border: 1.5px solid currentColor;
    border-radius: 50% 50% 43% 43%;
    box-shadow: 0 9px 0 2px rgba(96, 181, 200, 0.24);
}

.password-toggle {
    align-self: stretch;
    padding: 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 750;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--teal);
}

.text-button,
.back-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #67cdda;
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 700;
}

.text-button:hover,
.text-button:focus-visible,
.back-button:hover,
.back-button:focus-visible {
    color: var(--teal);
    text-decoration: underline;
}

.forgot-trigger {
    display: block;
    margin: -3px 0 17px auto;
}

.primary-button,
.primary-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(100deg, #16d6ba, #2bd9d2 55%, #37c8ee);
    box-shadow: 0 16px 35px rgba(15, 209, 191, 0.17), inset 0 1px rgba(255, 255, 255, 0.42);
    color: #02131d;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button {
    width: 100%;
    padding: 0 9px 0 19px;
}

.primary-link {
    padding: 0 9px 0 20px;
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible,
.primary-link:hover,
.primary-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 209, 191, 0.24), inset 0 1px rgba(255, 255, 255, 0.5);
    filter: saturate(1.08);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.button-arrow,
.primary-link > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: rgba(2, 24, 31, 0.13);
    font-size: 1.15rem;
}

.primary-button.is-loading .button-arrow {
    font-size: 0;
}

.primary-button.is-loading .button-arrow::after {
    width: 14px;
    height: 14px;
    content: "";
    border: 2px solid rgba(2, 24, 31, 0.3);
    border-top-color: #02131d;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.form-status,
.dashboard-alert {
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid rgba(76, 178, 210, 0.2);
    border-radius: 11px;
    background: rgba(38, 111, 141, 0.12);
    color: #bfe7f1;
    font-size: 0.76rem;
    line-height: 1.5;
}

.form-status[data-kind="success"],
.dashboard-alert[data-kind="success"] {
    border-color: rgba(37, 226, 189, 0.3);
    background: rgba(28, 153, 130, 0.13);
    color: #aaf4df;
}

.form-status[data-kind="error"],
.dashboard-alert[data-kind="error"] {
    border-color: rgba(255, 109, 120, 0.3);
    background: rgba(182, 51, 72, 0.13);
    color: #ffc0c5;
}

.resend-row {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.resend-row p {
    display: inline;
    margin: 0 7px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.terms-note,
.privacy-line {
    color: var(--muted-2);
    font-size: 0.66rem;
    line-height: 1.55;
}

.terms-note {
    margin: -2px 0 15px;
}

.privacy-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.shield-dot {
    width: 7px;
    height: 8px;
    border: 1px solid var(--teal);
    border-radius: 4px 4px 6px 6px;
    opacity: 0.8;
}

.back-button {
    margin-bottom: 22px;
}

.subview-heading {
    position: relative;
    padding-left: 56px;
    margin-bottom: 24px;
}

.subview-heading h3 {
    margin: 0 0 7px;
    font-size: 1.35rem;
}

.subview-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.subview-orb {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border: 1px solid rgba(56, 216, 207, 0.25);
    border-radius: 50%;
    background: rgba(20, 123, 128, 0.15);
    color: var(--teal);
}

.site-footer {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(104, 171, 200, 0.1);
    color: var(--muted-2);
    font-size: 0.67rem;
}

/* Dashboard */
.dashboard-page {
    padding-bottom: 46px;
}

.dashboard-header {
    position: sticky;
    top: 0;
    min-height: 78px;
    border-bottom: 1px solid rgba(104, 171, 200, 0.11);
    background: rgba(3, 14, 26, 0.72);
    backdrop-filter: blur(22px);
}

.dashboard-header::before {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    content: "";
    border-bottom: 1px solid rgba(104, 171, 200, 0.11);
    background: rgba(3, 14, 26, 0.72);
    backdrop-filter: blur(22px);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    background: rgba(46, 139, 161, 0.12);
    color: var(--text);
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-button,
.profile-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 31, 50, 0.78);
    color: var(--muted);
    cursor: pointer;
}

.icon-button:hover,
.profile-button:hover,
.icon-button:focus-visible,
.profile-button:focus-visible {
    border-color: var(--line-strong);
    color: var(--teal);
}

.profile-button span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(28, 224, 193, 0.25), rgba(92, 91, 230, 0.32));
    color: #dffeff;
    font-size: 0.72rem;
    font-weight: 850;
}

.profile-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    right: 0;
    width: 225px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: rgba(7, 28, 47, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.profile-menu strong,
.profile-menu small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu strong {
    font-size: 0.82rem;
}

.profile-menu small {
    margin: 5px 0 15px;
    color: var(--muted);
    font-size: 0.68rem;
}

.profile-menu button {
    width: 100%;
    padding: 9px;
    border: 1px solid rgba(255, 109, 120, 0.2);
    border-radius: 9px;
    background: rgba(157, 43, 63, 0.12);
    color: #ffadb5;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 750;
}

.dashboard-main {
    padding-block: 48px;
}

.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    margin: 10px 0 7px;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.045em;
}

.dashboard-welcome > div > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.sync-chip b {
    font-size: 0.68rem;
}

.sync-chip:not(.is-synced) span {
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(255, 201, 92, 0.08), 0 0 14px var(--amber);
}

.panel {
    border-radius: 24px;
}

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

.main-progress-card {
    min-height: 390px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 36px);
}

.main-progress-card::before,
.targets-panel::before {
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    content: "";
    border: 1px solid rgba(41, 210, 214, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 90px rgba(57, 63, 211, 0.07);
}

.panel-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h2 {
    margin: 8px 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.exam-chip,
.date-chip,
.roadmap-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(44, 213, 205, 0.2);
    border-radius: 999px;
    background: rgba(27, 148, 143, 0.1);
    color: #7de4db;
    font-size: 0.65rem;
    font-weight: 750;
}

.progress-stage {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 280px;
    align-items: center;
    gap: 30px;
    grid-template-columns: minmax(240px, 0.85fr) 1fr;
}

.dashboard-orbit {
    position: relative;
    width: min(280px, 100%);
    aspect-ratio: 1;
    justify-self: center;
}

.dashboard-ring {
    inset: 10%;
    animation: slowSpin 18s linear infinite;
}

.dashboard-ring::after {
    position: absolute;
    inset: 14%;
    content: "";
    border: 1px dashed rgba(122, 108, 247, 0.3);
    border-radius: 50%;
}

.dashboard-core {
    position: absolute;
    inset: 27%;
    display: grid;
    place-content: center;
    border: 1px solid rgba(40, 222, 211, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(43, 219, 217, 0.18), transparent 45%), #081c30;
    box-shadow: 0 0 45px rgba(17, 181, 184, 0.13), inset 0 0 25px rgba(47, 173, 190, 0.08);
    text-align: center;
}

.dashboard-core strong {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 320;
    letter-spacing: -0.06em;
}

.dashboard-core span {
    max-width: 80px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.59rem;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.progress-copy > p {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.target-date-row,
.sync-revision-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
}

.target-date-row strong,
.sync-revision-row strong {
    color: var(--text);
    font-size: 0.76rem;
}

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

.mini-stat {
    display: flex;
    min-height: 118px;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    padding: 20px;
}

.mini-stat::after {
    position: absolute;
    right: -26px;
    bottom: -35px;
    width: 90px;
    height: 90px;
    content: "";
    border-radius: 50%;
    background: currentColor;
    opacity: 0.05;
    filter: blur(5px);
}

.stat-symbol {
    display: grid;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 16px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    font-size: 1.1rem;
}

.mini-stat > div {
    display: grid;
    gap: 4px;
}

.mini-stat strong {
    color: var(--text);
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.mini-stat small {
    color: var(--muted);
    font-size: 0.66rem;
    text-transform: uppercase;
}

.accent-violet { color: #9577ff; }
.accent-cyan { color: #36cced; }
.accent-coral { color: #ff7883; }

.targets-panel {
    overflow: hidden;
    margin-top: 18px;
    padding: clamp(24px, 4vw, 34px);
}

.target-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 25px;
}

.target-item {
    padding: 18px;
    border: 1px solid rgba(111, 178, 208, 0.12);
    border-radius: 18px;
    background: rgba(3, 19, 34, 0.47);
}

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

.target-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(45, 198, 201, 0.12);
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 850;
}

.target-minutes .target-icon {
    background: rgba(128, 91, 236, 0.15);
    color: #a187ff;
}

.target-mcqs .target-icon {
    background: rgba(223, 82, 103, 0.13);
    color: #ff828c;
}

.target-topline strong {
    font-size: 1.15rem;
}

.target-topline b {
    font-weight: 750;
}

.target-item > span {
    display: block;
    margin: 10px 0 13px;
    color: var(--muted-2);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meter {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(98, 148, 175, 0.15);
}

.meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 0 10px currentColor;
    transition: width 600ms cubic-bezier(.2,.8,.2,1);
}

.target-minutes .meter i { background: linear-gradient(90deg, #8267f7, #b481ff); }
.target-mcqs .meter i { background: linear-gradient(90deg, #ff6a77, #ff9b81); }
.meter i.p0 { width: 0; }
.meter i.p5 { width: 5%; }
.meter i.p10 { width: 10%; }
.meter i.p15 { width: 15%; }
.meter i.p20 { width: 20%; }
.meter i.p25 { width: 25%; }
.meter i.p30 { width: 30%; }
.meter i.p35 { width: 35%; }
.meter i.p40 { width: 40%; }
.meter i.p45 { width: 45%; }
.meter i.p50 { width: 50%; }
.meter i.p55 { width: 55%; }
.meter i.p60 { width: 60%; }
.meter i.p65 { width: 65%; }
.meter i.p70 { width: 70%; }
.meter i.p75 { width: 75%; }
.meter i.p80 { width: 80%; }
.meter i.p85 { width: 85%; }
.meter i.p90 { width: 90%; }
.meter i.p95 { width: 95%; }
.meter i.p100 { width: 100%; }

.web-roadmap {
    display: grid;
    align-items: center;
    gap: 24px;
    grid-template-columns: auto 1fr auto;
    margin-top: 18px;
    padding: 28px 30px;
}

.roadmap-icon {
    display: grid;
    width: 61px;
    height: 61px;
    place-items: center;
    border: 1px solid rgba(32, 220, 194, 0.23);
    border-radius: 20px;
    background: radial-gradient(circle, rgba(35, 218, 197, 0.17), rgba(30, 101, 119, 0.08));
}

.roadmap-icon span {
    width: 24px;
    height: 24px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(28, 224, 193, 0.1), 0 0 15px rgba(28, 224, 193, 0.25);
}

.web-roadmap h2 {
    margin: 7px 0 8px;
    font-size: 1.2rem;
}

.web-roadmap > div:nth-child(2) > p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.mobile-nav {
    display: none;
}

.is-spinning {
    animation: spin 650ms linear infinite;
}

/* Verification, reset and system messages */
.system-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    place-items: center;
    padding: 25px;
    background:
        radial-gradient(circle at 50% 0%, rgba(29, 170, 188, 0.15), transparent 42%),
        linear-gradient(145deg, #020914, #061525);
}

.system-card {
    width: min(520px, 100%);
    padding: clamp(29px, 6vw, 48px);
    border-radius: 28px;
    text-align: center;
}

.system-logo {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;
    place-items: center;
    border: 1px solid rgba(37, 220, 194, 0.23);
    border-radius: 19px;
    background: rgba(13, 61, 78, 0.38);
}

.system-logo img {
    width: 49px;
}

.result-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 2px auto 23px;
    place-items: center;
    border: 1px solid rgba(36, 226, 189, 0.35);
    border-radius: 50%;
    background: rgba(30, 173, 144, 0.11);
    box-shadow: 0 0 35px rgba(36, 226, 189, 0.12);
    color: var(--success);
    font-size: 1.6rem;
}

.system-card.is-error .result-icon {
    border-color: rgba(255, 109, 120, 0.35);
    background: rgba(182, 51, 72, 0.11);
    box-shadow: 0 0 35px rgba(255, 109, 120, 0.1);
    color: var(--danger);
}

.system-card h1 {
    margin: 10px 0 13px;
    font-size: clamp(1.8rem, 6vw, 2.55rem);
    letter-spacing: -0.045em;
}

.system-card > p:not(.eyebrow) {
    margin: 0 auto 27px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.68;
}

.system-card .primary-link {
    margin: 0 auto;
}

.reset-card {
    text-align: left;
}

.reset-card .system-logo,
.reset-card .result-icon {
    margin-left: 0;
}

.reset-card > p:not(.eyebrow) {
    margin-left: 0;
}

.reset-form {
    margin-top: 22px;
}

@keyframes ambientDrift {
    from { transform: translate3d(0, 0, 0) scale(0.9); }
    to { transform: translate3d(70px, 35px, 0) scale(1.12); }
}

@keyframes livePulse {
    0%, 40% { box-shadow: 0 0 0 0 rgba(28, 224, 193, 0.25), 0 0 12px currentColor; }
    80%, 100% { box-shadow: 0 0 0 7px rgba(28, 224, 193, 0), 0 0 12px currentColor; }
}

@keyframes orbitTilt {
    from { transform: rotate(-8deg) rotateX(0); }
    to { transform: rotate(2deg) rotateX(8deg); }
}

@keyframes dotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes viewEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 940px) {
    .auth-layout {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .hero-panel {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }

    .hero-copy,
    .proof-row {
        margin-inline: auto;
    }

    .orbit-showcase {
        margin-inline: auto;
    }

    .auth-card {
        max-width: 560px;
        justify-self: center;
    }

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

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

    .mini-stat {
        min-height: 105px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 28px, 620px);
    }

    .site-header {
        min-height: 76px;
    }

    .live-chip {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.78rem;
    }

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

    .hero-panel h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .hero-copy {
        font-size: 0.94rem;
    }

    .orbit-showcase {
        width: 100%;
        margin-top: 32px;
    }

    .progress-core {
        width: 112px;
        height: 112px;
    }

    .progress-core span {
        font-size: 1.9rem;
    }

    .proof-row {
        grid-template-columns: 1fr;
    }

    .proof-row div {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 12px;
        padding: 12px 8px;
    }

    .proof-row div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .proof-row span {
        text-align: right;
    }

    .auth-layout {
        gap: 38px;
        padding-bottom: 40px;
    }

    .auth-card {
        border-radius: 24px;
    }

    .site-footer {
        justify-content: center;
        padding-block: 22px calc(22px + var(--safe-bottom));
        text-align: center;
    }

    .site-footer span:last-child {
        display: none;
    }

    .dashboard-page {
        padding-bottom: calc(94px + var(--safe-bottom));
    }

    .dashboard-header {
        min-height: 68px;
    }

    .dashboard-header::before {
        height: 68px;
    }

    .dashboard-header .brand-copy,
    .desktop-nav,
    .dashboard-header .icon-button {
        display: none;
    }

    .dashboard-main {
        padding-block: 32px 20px;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .dashboard-welcome h1 {
        font-size: 2.1rem;
    }

    .progress-stage {
        grid-template-columns: 1fr;
        padding-top: 15px;
    }

    .dashboard-orbit {
        width: min(265px, 82vw);
    }

    .stat-stack,
    .target-grid {
        grid-template-columns: 1fr;
    }

    .mini-stat {
        min-height: 96px;
    }

    .target-item {
        padding: 16px;
    }

    .web-roadmap {
        align-items: start;
        grid-template-columns: auto 1fr;
        padding: 24px;
    }

    .roadmap-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .mobile-nav {
        position: fixed;
        z-index: 100;
        right: 10px;
        bottom: calc(8px + var(--safe-bottom));
        left: 10px;
        display: grid;
        min-height: 66px;
        grid-template-columns: repeat(4, 1fr);
        padding: 6px;
        border: 1px solid var(--line-strong);
        border-radius: 20px;
        background: rgba(5, 24, 42, 0.91);
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(24px);
    }

    .mobile-nav a,
    .mobile-nav button {
        display: grid;
        place-content: center;
        gap: 3px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--muted-2);
        cursor: pointer;
        text-align: center;
        text-decoration: none;
    }

    .mobile-nav a.is-active {
        background: linear-gradient(145deg, rgba(28, 224, 193, 0.14), rgba(50, 200, 255, 0.06));
        color: var(--teal);
    }

    .mobile-nav span {
        font-size: 1.02rem;
    }

    .mobile-nav small {
        font-size: 0.56rem;
        font-weight: 700;
    }
}

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

    .hero-panel h1 {
        letter-spacing: -0.065em;
    }

    .floating-label {
        padding: 7px 10px;
    }

    .main-progress-card,
    .targets-panel {
        padding: 22px 18px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .web-roadmap {
        grid-template-columns: 1fr;
    }

    .roadmap-status {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Account safety feedback */
.password-feedback {
    display: grid;
    gap: 7px;
    margin-top: -5px;
}

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

.password-feedback-label {
    color: var(--muted-2);
    font-size: 0.66rem;
    font-weight: 700;
    transition: color 180ms ease;
}

.password-feedback-hint {
    color: #58768d;
    font-size: 0.61rem;
}

.strength-track {
    display: grid;
    height: 5px;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.strength-track i {
    display: block;
    border-radius: 999px;
    background: rgba(104, 148, 173, 0.18);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.password-feedback.is-weak .password-feedback-label,
.password-match.is-mismatch .password-feedback-label {
    color: #ff7782;
}

.password-feedback.is-weak .strength-track i:first-child,
.password-match.is-mismatch .strength-track i:first-child {
    background: #ff6574;
    box-shadow: 0 0 9px rgba(255, 101, 116, 0.42);
}

.password-feedback.is-fair .password-feedback-label {
    color: #ffc95c;
}

.password-feedback.is-fair .strength-track i:nth-child(-n + 2) {
    background: #ffc95c;
    box-shadow: 0 0 9px rgba(255, 201, 92, 0.35);
}

.password-feedback.is-good .password-feedback-label {
    color: #40d9e6;
}

.password-feedback.is-good .strength-track i:nth-child(-n + 3) {
    background: #40d9e6;
    box-shadow: 0 0 9px rgba(64, 217, 230, 0.34);
}

.password-feedback.is-strong .password-feedback-label,
.password-match.is-match .password-feedback-label {
    color: #25e2bd;
}

.password-feedback.is-strong .strength-track i,
.password-match.is-match .strength-track i {
    background: #25e2bd;
    box-shadow: 0 0 9px rgba(37, 226, 189, 0.38);
}

.password-match .strength-track {
    grid-template-columns: 1fr;
}

/* Performance mode for phones */
@media (max-width: 720px) {
    .auth-page,
    .dashboard-page,
    .system-page {
        background: linear-gradient(
            155deg,
            #020914 0%,
            #061626 55%,
            #060d1a 100%
        );
    }

    .ambient,
    .star-field,
    .orbit-showcase {
        display: none !important;
    }

    .auth-card,
    .panel,
    .system-card,
    .dashboard-header,
    .dashboard-header::before,
    .mobile-nav,
    .live-chip,
    .sync-chip {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .auth-card,
    .panel,
    .system-card {
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.28),
            inset 0 1px rgba(255, 255, 255, 0.03);
    }

    .card-glow,
    .main-progress-card::before,
    .targets-panel::before {
        display: none;
    }

    .hero-panel h1 {
        margin-bottom: 16px;
    }

    .proof-row {
        margin-top: 28px;
    }

    .dashboard-ring,
    .live-chip span,
    .sync-chip span {
        animation: none !important;
    }
}
