* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --auth-primary: #ff5c00;
    --auth-primary-hover: #ff7433;
    --auth-panel: rgba(22, 22, 22, 0.86);
    --auth-card: rgba(22, 22, 22, 0.86);
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-text-strong: #f1f1f1;
    --auth-text-soft: rgba(255, 255, 255, 0.6);
    --auth-text-muted: rgba(255, 255, 255, 0.5);
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0d0d0d;
    color: var(--auth-text-strong);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.auth-loading {
    overflow: hidden;
}

body.auth-loading .auth-nav,
body.auth-loading .auth-shell,
body.auth-loading .dashboard-shell {
    visibility: hidden;
}

.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    z-index: 10000;
}

.app-loading-card {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1.2rem;
    border-radius: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--auth-text-strong);
    font-family: 'Sora', sans-serif;
    font-size: 0.92rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.app-loading-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff5c00;
    animation: app-loading-spin 0.8s linear infinite;
}

@keyframes app-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-nav {
    padding: 0.7rem 2rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--auth-border);
    backdrop-filter: blur(8px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    margin-left: 1.5rem;
}

.nav-cta {
    margin-right: 1.5rem;
}

.logo-img {
    height: 22px;
    width: auto;
}

.nav-cta-button {
    text-decoration: none;
    color: var(--auth-text-strong);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    min-height: 34px;
    padding: 0 0.9rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-cta-button:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.08);
}

.auth-shell {
    flex: 1;
    width: min(460px, 100%);
    margin: 0 auto;
    padding: clamp(1.2rem, 3.5vw, 2.5rem) 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-shell {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0 0 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.is-hidden {
    display: none !important;
}

.dashboard-nav {
    width: 100%;
    min-height: 58px;
    padding: 0.7rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 18, 0.88);
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.dashboard-brand {
    display: inline-flex;
    align-items: center;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.dashboard-hamburger-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    padding: 0.55rem;
    color: rgba(255, 255, 255, 0.72);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dashboard-hamburger-btn:hover {
    background: rgba(255, 92, 0, 0.14);
    border-color: rgba(255, 92, 0, 0.26);
    color: #ff7433;
}

.dashboard-hamburger-btn:active {
    transform: translateY(1px);
}

.dashboard-hamburger-icon {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.dashboard-brand-image {
    display: block;
    height: 22px;
    width: auto;
}

.dashboard-nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.dashboard-link {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    min-height: 36px;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.dashboard-link.is-active {
    background: #ff5c00;
    box-shadow: 0 0 0 1px rgba(255, 92, 0, 0.18) inset;
    color: #fff;
}

.dashboard-link:hover {
    background: rgba(255, 92, 0, 0.12);
    color: #ff7433;
}

.dashboard-nav-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end;
    margin-right: 1.5rem;
}

.dashboard-user-email {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.dashboard-add-btn,
.dashboard-more-btn {
    border: none;
    border-radius: 10px;
    background: #171717;
    color: #fff;
    cursor: pointer;
    min-height: 38px;
    padding: 0 1rem;
}

.dashboard-add-btn {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-more-btn {
    min-width: 38px;
    padding: 0;
}

.dashboard-menu-button {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-right: 1.5rem;
}

.dashboard-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: 192px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #1a1a1a;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 30;
}

.dashboard-menu-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #f1f1f1;
    min-height: 44px;
    padding: 0 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    font: inherit;
    text-decoration: none;
}

.dashboard-menu-item-compact {
    min-height: 36px;
    font-size: 0.85rem;
    padding: 0 0.8rem;
}

.dashboard-menu-item + .dashboard-menu-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Mobile Navigation Menu */
.dashboard-mobile-menu {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.dashboard-mobile-menu:not(.is-hidden) {
    display: block;
}

.dashboard-mobile-menu.is-hidden {
    display: none !important;
}

.dashboard-mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dashboard-mobile-menu-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 82vh;
    background: rgba(18, 18, 18, 0.98);
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow-y: auto;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.dashboard-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
}

.dashboard-mobile-menu-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f1f1;
}

.dashboard-mobile-menu-close {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.dashboard-mobile-menu-close:hover {
    color: #f1f1f1;
}

.dashboard-mobile-menu-user {
    padding: 0 1.2rem 1rem;
}

.dashboard-mobile-user-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    word-break: break-all;
}

.dashboard-mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
}

.dashboard-mobile-menu-link {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    min-height: 44px;
    margin: 0 1rem;
    padding: 0 1rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.dashboard-mobile-menu-link:hover {
    background: rgba(255, 92, 0, 0.12);
    color: #ff7433;
}

.dashboard-mobile-menu-link.is-active {
    background: #ff5c00;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(255, 92, 0, 0.18) inset;
}

.dashboard-mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    margin-top: auto;
}

.dashboard-mobile-menu-action {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #f1f1f1;
    min-height: 40px;
    padding: 0 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dashboard-mobile-menu-action:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-mobile-menu-action-logout {
    border-color: rgba(255, 92, 0, 0.4);
    background: rgba(255, 92, 0, 0.1);
    color: #ff7433;
}

.dashboard-mobile-menu-action:hover,
.dashboard-mobile-menu-action:focus-visible {
    border-color: rgba(255, 92, 0, 0.45);
    background: rgba(255, 92, 0, 0.14);
    color: #ff7433;
}

.dashboard-mobile-menu-action-logout:hover {
    border-color: rgba(255, 92, 0, 0.6);
    background: rgba(255, 92, 0, 0.15);
}

.dashboard-content {
    display: grid;
    gap: 1rem;
    padding: 0 2rem;
    margin-top: 1rem;
}

.dashboard-section {
    display: none;
}

.dashboard-section.is-active {
    display: grid;
    gap: 1rem;
}

.dashboard-card,
.dashboard-panel {
    background: rgba(24, 24, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.dashboard-card {
    padding: 1.6rem;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-card-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.dashboard-card-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dashboard-card-copy {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    max-width: 40rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-panel {
    padding: 1.2rem;
}

.dashboard-panel-label {
    display: block;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    margin-bottom: 0.6rem;
}

.dashboard-panel strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.7rem;
    color: #ff5c00;
    margin-bottom: 0.3rem;
}

.dashboard-panel p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

.auth-board {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--auth-border);
    overflow: hidden;
    background: rgba(18, 18, 18, 0.94);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    isolation: isolate;
}

.auth-board::before,
.auth-board::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(82px);
    opacity: 0.65;
}

.auth-board::before {
    width: 320px;
    height: 320px;
    top: -130px;
    right: -95px;
    background: rgba(255, 92, 0, 0.52);
    animation: auth-card-glow-a 9s ease-in-out infinite alternate;
}

.auth-board::after {
    width: 300px;
    height: 300px;
    bottom: -145px;
    left: -85px;
    background: rgba(255, 116, 51, 0.38);
    animation: auth-card-glow-b 11s ease-in-out infinite alternate;
}

.auth-visual {
    background: var(--auth-panel);
    padding: clamp(1rem, 2.2vw, 1.45rem);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.auth-chip {
    width: fit-content;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-primary);
    border: 1px solid rgba(255, 92, 0, 0.36);
    background: rgba(255, 92, 0, 0.1);
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
}

.auth-visual h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    line-height: 1.3;
}

.auth-visual-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.auth-visual-static {
    color: var(--auth-text-strong);
}

.auth-visual-dynamic {
    color: var(--auth-primary);
    min-height: 1.3em;
}

.auth-visual-copy {
    color: var(--auth-text-soft);
    max-width: 44ch;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 0.65rem;
}

.auth-stat-grid {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.auth-stat-grid article {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0.62rem 0.58rem;
    background: rgba(0, 0, 0, 0.16);
}

.auth-stat-grid span {
    display: block;
    font-family: 'Sora', sans-serif;
    color: var(--auth-primary);
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.auth-stat-grid p {
    color: var(--auth-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-card {
    background: var(--auth-card);
    padding: clamp(1.4rem, 3.2vw, 2rem);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

@keyframes auth-card-glow-a {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-36px, 28px, 0) scale(1.14);
    }
}

@keyframes auth-card-glow-b {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(32px, -26px, 0) scale(1.1);
    }
}

.auth-heading {
    margin-bottom: 0.8rem;
}

.auth-heading h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.auth-typewriter {
    position: relative;
    width: fit-content;
}

.auth-typewriter.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.9em;
    margin-left: 0.14em;
    background: var(--auth-primary);
    border-radius: 2px;
    vertical-align: -0.08em;
    animation: auth-caret-blink 0.9s steps(1, end) infinite;
}

@keyframes auth-caret-blink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

.auth-heading p {
    color: var(--auth-text-soft);
    font-size: 0.82rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 0.8rem;
}

.auth-tab {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--auth-text-muted);
    font-family: 'Sora', sans-serif;
    font-size: 0.83rem;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-tab.is-active {
    color: var(--auth-text-strong);
    background: rgba(0, 0, 0, 0.4);
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: block;
}

.auth-field {
    margin-bottom: 0.7rem;
}

.auth-verification-block {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-verification-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--auth-text-strong);
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.auth-verification-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-verification-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.4);
    flex: 0 0 auto;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-verification-check:checked + .auth-verification-box {
    background: rgba(255, 92, 0, 0.85);
    border-color: rgba(255, 92, 0, 0.9);
}

.auth-verification-check:checked + .auth-verification-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.auth-verification-note {
    margin: 0.45rem 0 0;
    color: var(--auth-text-soft);
    font-size: 0.73rem;
    line-height: 1.35;
}

.auth-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 4.1rem;
}

.auth-login-password-field {
    margin-bottom: 0.95rem;
}

.auth-eye-btn {
    position: absolute;
    right: 0.38rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    min-height: 28px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--auth-text-soft);
    font-size: 0.72rem;
    cursor: pointer;
}

.auth-eye-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--auth-text-strong);
}

.auth-meta-row {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.auth-toggle-btn {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-text-soft);
    font-size: 0.78rem;
    cursor: pointer;
}

.auth-toggle-track {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    padding: 2px;
    transition: background-color 0.2s ease;
}

.auth-toggle-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.auth-toggle-btn.is-active .auth-toggle-track {
    background: rgba(255, 92, 0, 0.58);
}

.auth-toggle-btn.is-active .auth-toggle-thumb {
    transform: translateX(14px);
}

.auth-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--auth-text-soft);
    margin-bottom: 0.32rem;
}

.auth-input {
    width: 100%;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    color: var(--auth-text-strong);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
    padding: 0.56rem 0.65rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--auth-text-strong) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4) inset !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    caret-color: var(--auth-text-strong);
    transition: background-color 9999s ease-in-out 0s;
}

.auth-input:-webkit-autofill::first-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(255, 92, 0, 0.78);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.18);
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 0.78rem;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
}

.auth-submit {
    width: 100%;
    min-height: 39px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff6f1f 0%, #ff5c00 100%);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 0.84rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
    filter: brightness(1.08);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    filter: saturate(0.72) brightness(0.82);
}

.auth-qr-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    padding: 0.9rem;
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    text-align: center;
}

.auth-qr-title {
    color: var(--auth-text-strong);
    font-family: 'Sora', sans-serif;
    font-size: 0.86rem;
}

.auth-qr-image {
    width: min(130px, 100%);
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: block;
    margin: 0.5rem 0;
    object-fit: contain;
}

.auth-qr-frame {
    width: min(130px, 100%);
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    margin: 0.5rem 0;
}

.auth-qr-loader {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    inset: 0;
}

.auth-qr-loader-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff5c00;
    animation: auth-qr-spin 0.8s linear infinite;
}

@keyframes auth-qr-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-qr-frame.is-loading .auth-qr-loader {
    display: flex;
}

.auth-qr-frame.is-loading .auth-qr-image {
    opacity: 0;
}

.auth-store-actions {
    width: 100%;
    display: grid;
    gap: 0.5rem;
}

.auth-qr-caption {
    color: var(--auth-text-soft);
    font-size: 0.76rem;
    line-height: 1.4;
}

.auth-qr-cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.is-hidden {
    display: none !important;
}

.auth-divider {
    margin: 0.78rem 0;
    color: var(--auth-text-muted);
    font-size: 0.72rem;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.6rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
}

.auth-alt-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.4);
    color: var(--auth-text-strong);
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.auth-alt-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.auth-social-actions {
    display: grid;
    gap: 0.55rem;
}

.auth-feedback {
    min-height: 0;
    margin-top: 0;
    font-size: 0.74rem;
    color: var(--auth-primary-hover);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease, margin-top 0.2s ease;
}

.auth-feedback.is-error {
    color: #ff9f8f;
}

.auth-feedback.has-message {
    opacity: 1;
    max-height: 2.2em;
    margin-top: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
    .auth-board::before,
    .auth-board::after {
        animation: none;
    }

    .auth-typewriter.is-typing::after {
        animation: none;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem 1rem 1.2rem;
    border-radius: 8px;
    border: none;
    animation: slideInRight 0.3s ease-out;
    min-width: 280px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ff5c00;
    color: white;
}

.toast-close {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0;
}

.toast-close:hover {
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(420px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(420px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out;
}

/* Sign Out Confirmation Modal */
.dashboard-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.dashboard-modal.is-hidden {
    display: none !important;
}

.dashboard-modal:not(.is-hidden) {
    display: flex;
}

.dashboard-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.dashboard-modal-content {
    position: relative;
    background: rgba(22, 22, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    color: #f1f1f1;
    margin-bottom: 0.8rem;
}

.dashboard-modal-message {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.6rem;
}

.dashboard-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.dashboard-modal-btn {
    border: none;
    border-radius: 8px;
    min-height: 40px;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f1f1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-modal-btn-confirm {
    background: #ff5c00;
    color: white;
}

.dashboard-modal-btn-confirm:hover {
    background: #ff7433;
}

.dashboard-modal-btn-confirm:active {
    transform: translateY(1px);
}

@media (max-width: 900px) {
    .auth-meta-row {
        margin-bottom: 0.85rem;
    }

    .dashboard-nav {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        padding: 0.7rem 1rem;
    }

    .dashboard-brand {
        margin-left: 0;
        margin-right: 0.5rem;
    }

    .dashboard-hamburger-btn {
        display: flex;
        justify-self: end;
        grid-column: 3;
        margin-left: auto;
    }

    .dashboard-nav-links {
        display: none;
    }

    .dashboard-nav-actions {
        justify-self: end;
        width: auto;
        margin-right: 0;
        display: none;
    }

    .dashboard-user-email {
        display: none;
    }

    .dashboard-menu-button,
    .dashboard-menu {
        display: none !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 0 1rem;
    }
}

@media (max-width: 540px) {
    .auth-nav {
        padding: 0.6rem 0.8rem;
    }

    .nav-logo {
        margin-left: 0;
    }

    .nav-cta {
        margin-right: 0;
    }

    .logo-img {
        height: 21px;
    }

    .nav-cta-button {
        min-height: 31px;
        padding: 0 0.75rem;
        font-size: 0.72rem;
    }

    .auth-shell {
        padding: 0.8rem 0.7rem 1.4rem;
    }

    .auth-visual,
    .auth-card {
        padding: 0.82rem;
    }

    .auth-visual-copy {
        font-size: 0.84rem;
    }

    .auth-stat-grid {
        grid-template-columns: 1fr;
    }

    .auth-visual-dynamic {
        min-height: 1.45em;
    }

    .auth-visual-static {
        line-height: 1.42;
    }

    .auth-meta-row {
        flex-wrap: wrap;
    }
}

.auth-reset-header {
    margin-bottom: 0.6rem;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: transparent;
    color: var(--auth-primary);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.auth-back-btn:hover {
    color: var(--auth-primary-hover);
}

/* Activities Page Styles */
.activities-header-card {
    padding: 0.8rem 1.6rem;
    margin-bottom: 0.5rem;
}

.activities-header-card h1 {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.activities-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.58);
    margin: 0;
}

.activities-calendar {
    padding: 0;
}

.activities-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.6rem;
}

.activities-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    flex: 1;
    justify-items: center;
}

.activities-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 56px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 0.4rem;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
}

.activities-day:hover {
    background: rgba(255, 92, 0, 0.08);
    border-color: rgba(255, 92, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.activities-day.is-selected {
    background: #ff5c00;
    border-color: #ff7433;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 92, 0, 0.18) inset;
}

.activities-day.is-disabled {
    opacity: 0.38;
    cursor: not-allowed !important;
}

.activities-day.is-disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.38);
}

.activities-day-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.75;
}

.activities-day-number {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.activities-calendar-nav {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
}

.activities-calendar-nav:hover {
    background: rgba(255, 92, 0, 0.12);
    border-color: rgba(255, 92, 0, 0.3);
    color: #ff7433;
}

.activities-calendar-nav:active {
    transform: translateY(1px);
}

.activities-timeline {
    min-height: 300px;
    padding: 1.2rem 1.6rem;
}

.activities-timeline-header {
    margin-bottom: 1.2rem;
}

.activities-timeline-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.activities-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.activities-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.85rem;
}

.activities-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.activities-timeline-item:hover {
    background: rgba(255, 92, 0, 0.05);
    border-color: rgba(255, 92, 0, 0.2);
}

.activities-timeline-marker {
    width: 3px;
    border-radius: 2px;
    background: #ff5c00;
    flex: 0 0 auto;
}

.activities-timeline-content-inner {
    flex: 1;
}

.activities-timeline-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.activities-timeline-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.activities-timeline-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 768px) {
    .activities-week-grid {
        grid-template-columns: repeat(7, minmax(45px, 1fr));
        gap: 0.3rem;
    }

    .activities-day {
        max-width: none;
        max-width: 50px;
    }

    .activities-day-label {
        font-size: 0.6rem;
    }

    .activities-day-number {
        font-size: 0.9rem;
    }

    .activities-calendar-header {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .activities-calendar-nav {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .activities-week-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.3rem;
    }

    .activities-calendar-header {
        flex-wrap: wrap;
        padding: 0.8rem 0.8rem;
    }

    .activities-day {
        max-width: none;
        aspect-ratio: 1;
        padding: 0.35rem;
    }

    .activities-day-label {
        font-size: 0.55rem;
    }

    .activities-day-number {
        font-size: 0.85rem;
    }

    .activities-timeline {
        min-height: 200px;
    }

    .activities-timeline-item {
        padding: 0.6rem;
    }

    .activities-timeline-title {
        font-size: 0.75rem;
    }

    .activities-timeline-description {
        font-size: 0.7rem;
    }
}

/* Account Section Styles */
.account-header-card {
    padding: 1rem 1.2rem;
}

.account-header-row {
    align-items: flex-start;
}

.account-subtitle {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

.account-card {
    padding: 1.2rem;
}

.account-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f3f3f3;
    margin-bottom: 0.3rem;
}

.account-card-copy {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.account-form {
    display: grid;
    gap: 0.85rem;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: start;
}

.account-form-grid-single {
    grid-template-columns: 1fr;
    max-width: 440px;
}

.account-field {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    align-self: start;
}

.account-field > * {
    align-self: start;
}

.account-field span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
}

.account-email-row {
    display: block;
}

.account-email-row .account-input {
    width: 100%;
}

.account-email-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.account-input.is-readonly {
    opacity: 0.9;
    cursor: not-allowed;
}

.account-email-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    white-space: nowrap;
}

.account-email-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9f76;
}

.account-email-status.is-verified {
    border-color: rgba(38, 182, 98, 0.42);
    color: #aef0c8;
    background: rgba(38, 182, 98, 0.12);
}

.account-email-status.is-verified .account-email-status-dot {
    background: #2bd77f;
}

.account-verify-btn {
    border: 1px solid rgba(255, 92, 0, 0.35);
    background: rgba(255, 92, 0, 0.12);
    color: #ff9f76;
    border-radius: 8px;
    min-height: 29px;
    padding: 0 0.65rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.account-verify-btn:hover {
    border-color: rgba(255, 92, 0, 0.55);
    background: rgba(255, 92, 0, 0.18);
    color: #ffb18a;
}

.account-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .account-email-meta {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
}

.account-input {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #f1f1f1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
    padding: 0.5rem 0.62rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-input:-webkit-autofill,
.account-input:-webkit-autofill:hover,
.account-input:-webkit-autofill:focus,
.account-input:-webkit-autofill:active {
    -webkit-text-fill-color: #f1f1f1 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.35) inset !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.35) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    caret-color: #f1f1f1;
    transition: background-color 9999s ease-in-out 0s;
}

.account-input:-webkit-autofill::first-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
}

.account-input:focus {
    outline: none;
    border-color: rgba(255, 92, 0, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.16);
}

.account-password-wrap .account-input {
    padding-right: 4.1rem;
}

.account-eye-btn {
    min-height: 27px;
}

.account-form-actions {
    display: flex;
    justify-content: flex-end;
}

.account-form-actions .dashboard-modal-btn {
    min-width: 150px;
}

.danger-zone-card {
    border-color: rgba(255, 92, 0, 0.35);
    background: linear-gradient(180deg, rgba(44, 21, 12, 0.7) 0%, rgba(24, 14, 10, 0.95) 100%);
}

.danger-zone-subtitle {
    color: #ff9f76;
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
}

.danger-zone-list {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.81rem;
    line-height: 1.5;
}

.danger-zone-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #f1f1f1;
    font-size: 0.83rem;
    margin-bottom: 0.55rem;
    cursor: pointer;
}

.danger-zone-check .auth-verification-box {
    width: 15px;
    height: 15px;
}

.danger-zone-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
    max-width: 78ch;
}

.account-delete-btn {
    background: rgba(197, 57, 24, 0.95);
    color: #fff;
}

.account-delete-btn:hover {
    background: rgba(222, 72, 36, 1);
}

.delete-account-cooldown-message {
    color: #ffb18a;
    margin-top: -0.5rem;
}

.dashboard-modal-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    filter: saturate(0.7);
}

@media (max-width: 900px) {
    .account-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .account-header-card,
    .account-card {
        padding: 0.95rem;
    }

    .account-form-actions {
        justify-content: stretch;
    }

    .account-form-actions .dashboard-modal-btn {
        width: 100%;
    }
}
