* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 198, 255, 0.12), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(255, 60, 172, 0.14), transparent 35%),
        linear-gradient(180deg, #03050c 0%, #02040b 100%);
    color: #fff;
}

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

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.mobile-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    padding: 18px 16px 28px;
    position: relative;
}

.auth-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.auth-logo {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #00c6ff, #a100ff, #ff3cac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #d8e1ff;
}

.auth-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    outline: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding: 16px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 15px;
    box-shadow: inset 0 0 12px rgba(255,255,255,0.02);
}

.auth-form input::placeholder {
    color: #9aa5c5;
}

.main-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #5a31ff 0%, #ff33c7 100%);
    box-shadow:
        0 0 22px rgba(93, 49, 255, 0.35),
        0 0 34px rgba(255, 51, 199, 0.22);
    cursor: pointer;
    text-align: center;
    display: block;
}

.ghost-btn {
    width: 100%;
    display: block;
    text-align: center;
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: #d8def6;
    font-size: 15px;
}

.auth-switch a {
    color: #70dfff;
}

.error-box, .success-box {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.error-box {
    background: rgba(255, 76, 76, 0.13);
    border: 1px solid rgba(255, 76, 76, 0.28);
}

.success-box {
    background: rgba(36, 199, 103, 0.14);
    border: 1px solid rgba(36, 199, 103, 0.30);
}

.top-mini {
    padding-top: 10px;
    text-align: center;
}

.brand-title {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #a100ff, #ff3cac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-card {
    margin-top: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 28px 22px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 0 30px rgba(0,0,0,0.24);
}

.landing-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.landing-subtitle {
    color: #bfc9eb;
    font-size: 15px;
    line-height: 1.6;
}

.landing-actions {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.small-note {
    margin-top: 16px;
    text-align: center;
    color: #94a1c7;
    font-size: 13px;
}

.small-note a {
    color: #7ce8ff;
}

.dashboard-shell {
    padding-bottom: 90px;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #fff;
}

.menu-icon,
.top-right-icons {
    width: 28px;
    text-align: center;
    opacity: 0.9;
    font-size: 21px;
}

.brand-gradient {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #a100ff, #ff3cac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-block {
    margin-top: 10px;
    margin-bottom: 18px;
}

.welcome-small {
    color: #d8e1ff;
    font-size: 14px;
    opacity: 0.95;
}

.welcome-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px;
}

.ring-section {
    display: flex;
    justify-content: center;
    margin: 14px 0 20px;
}

.outer-ring {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: conic-gradient(
        #00c6ff,
        #00c6ff 35%,
        #7b47ff 62%,
        #ff3cac 85%,
        #00c6ff 100%
    );
    box-shadow:
        0 0 25px rgba(0, 198, 255, 0.42),
        0 0 35px rgba(161, 0, 255, 0.22),
        0 0 46px rgba(255, 60, 172, 0.18);
    padding: 10px;
    position: relative;
}

.inner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(17, 23, 42, 0.9), rgba(3, 5, 12, 1) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 28px rgba(0,0,0,0.6);
}

.streak-label {
    font-size: 13px;
    letter-spacing: 1.2px;
    color: #d6ddff;
    margin-bottom: 6px;
}

.streak-days {
    font-size: 72px;
    line-height: 0.95;
    font-weight: 700;
}

.streak-days-text {
    font-size: 18px;
    font-weight: 500;
    margin-top: 4px;
}

.streak-time {
    margin-top: 14px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}

.streak-time-labels {
    margin-top: 6px;
    font-size: 11px;
    color: #b8c4e9;
    letter-spacing: 1px;
}

.dash-card,
.activity-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow:
        0 0 18px rgba(10, 18, 40, 0.35),
        inset 0 0 18px rgba(255,255,255,0.015);
}

.goal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    color: #dfe6ff;
    font-size: 14px;
    margin-bottom: 8px;
}

.goal-text {
    font-size: 18px;
    font-weight: 600;
}

.goal-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(161, 0, 255, 0.55);
    color: #b951ff;
    font-size: 28px;
    box-shadow: 0 0 18px rgba(161, 0, 255, 0.20);
}

.progress-block {
    margin-top: 18px;
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 600;
}

.progress-value {
    color: #ff4ff1;
}

.progress-bar-wrap {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b35ff 0%, #f93ce7 100%);
    box-shadow: 0 0 18px rgba(255, 60, 231, 0.35);
}

.progress-sub {
    font-size: 14px;
    color: #c2ccee;
    margin-top: 8px;
}

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

.activity-card {
    margin-top: 20px;
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.activity-item + .activity-item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.activity-date {
    font-size: 13px;
    color: #b9c4e8;
}

.activity-text {
    font-size: 16px;
    font-weight: 500;
    margin-top: 2px;
}

.activity-arrow {
    font-size: 28px;
    color: #d8def9;
    line-height: 1;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    background: rgba(4, 6, 15, 0.96);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 8px 12px;
    z-index: 99;
}

.nav-item {
    text-align: center;
    color: #8f97b6;
}

.nav-item.active {
    color: #5b5bff;
}

.nav-ico {
    font-size: 20px;
    line-height: 1;
}

.nav-label {
    font-size: 13px;
    margin-top: 4px;
}

.logout-nav-link {
    color: #8f97b6;
}

.admin-page {
    width: 100%;
    max-width: 500px;