
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

:root {
    --bg: #101411;
    --surface: #191f1a;
    --surface-light: #202820;
    --sage: #a3b5a2;
    --sage-light: #d3e2cc;
    --ivory: #eae6dc;
    --muted: #858d83;
    --line: rgba(211, 226, 204, 0.14);
    --mono: "DM Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(104, 134, 110, 0.09), transparent 32%),
        var(--bg);
    color: var(--ivory);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.profile-page {
    width: min(1440px, 100%);
    margin: auto;
    padding: 0 7%;
}

/* NAVIGATION */

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--sage);
    color: var(--bg);
    border-radius: 11px 11px 11px 3px;
}

.nav-label,
.exit-link {
    font: 10px var(--mono);
    letter-spacing: 1px;
}

.nav-label {
    color: var(--muted);
}

.exit-link {
    color: var(--sage);
    transition: color 0.2s ease;
}

.exit-link:hover {
    color: var(--ivory);
}

/* INTRO */

.intro {
    padding: 62px 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font: 10px var(--mono);
    letter-spacing: 1.3px;
    margin-bottom: 22px;
}

.eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 12px rgba(163, 181, 162, 0.5);
}

.intro h1 {
    font-size: clamp(43px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: -3.5px;
    line-height: 1.04;
}

.intro h1 em {
    font-family: "Playfair Display", serif;
    color: var(--sage-light);
    font-weight: 500;
}

.intro-description {
    max-width: 410px;
    margin-top: 18px;
    color: #a5aca2;
    font-size: 13px;
    line-height: 1.9;
}

.progress {
    width: 245px;
    flex-shrink: 0;
    padding-bottom: 6px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    font: 9px var(--mono);
    letter-spacing: 1px;
}

.progress-top > span:first-child {
    color: var(--muted);
}

.progress-top i {
    color: var(--muted);
    font-style: normal;
}

.progress-track {
    height: 2px;
    background: var(--line);
    margin-top: 15px;
}

.progress-track span {
    display: block;
    width: 33.333%;
    height: 100%;
    background: var(--sage-light);
}

.progress > p {
    margin-top: 12px;
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 0.5px;
}

/* MAIN LAYOUT */

.identity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: clamp(35px, 6vw, 85px);
    align-items: start;
    padding: 35px 0 70px;
}

.identity-form {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 28px;
}

.section-number {
    padding-top: 5px;
    color: var(--sage);
    font: 10px var(--mono);
}

.section-heading h2 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.6px;
}

.section-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

/* PERSONAL IDENTITY */

.identity-fields {
    padding: 0 0 38px 32px;
}

.avatar-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.avatar-placeholder {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(211, 226, 204, 0.35);
    border-radius: 50%;
    background: rgba(163, 181, 162, 0.06);
    color: var(--sage-light);
    font-size: 24px;
    transition: background 0.25s ease;
}

.avatar-placeholder:hover {
    background: rgba(163, 181, 162, 0.14);
}

.avatar-area strong {
    font-size: 12px;
    font-weight: 600;
}

.avatar-area p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 23px;
}

.field label {
    margin-bottom: 10px;
    color: #b1b9ad;
    font: 9px var(--mono);
    letter-spacing: 0.8px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    background: rgba(25, 31, 26, 0.7);
    color: var(--ivory);
    font-size: 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

input {
    padding: 14px 15px;
}

textarea {
    padding: 14px 15px;
    resize: vertical;
    min-height: 92px;
    line-height: 1.7;
}

input::placeholder,
textarea::placeholder {
    color: #646e63;
}

input:focus,
textarea:focus {
    border-color: var(--sage);
    background: var(--surface);
}

/* SKILL SECTIONS */

.skill-heading {
    margin-top: 8px;
}

.skill-editor {
    margin: 0 0 38px 32px;
    padding: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(140deg, rgba(32, 40, 32, 0.78), rgba(25, 31, 26, 0.55));
    position: relative;
    overflow: hidden;
}

.skill-editor::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -80px;
    top: -85px;
    border: 1px solid rgba(211, 226, 204, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 20px rgba(211, 226, 204, 0.02),
        0 0 0 40px rgba(211, 226, 204, 0.015);
    pointer-events: none;
}

.teach-editor {
    border-left: 2px solid var(--sage);
}

.learn-editor {
    border-left: 2px solid #c6b59b;
}

.editor-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.editor-symbol {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: rgba(163, 181, 162, 0.12);
    color: var(--sage-light);
    font-size: 17px;
}

.learn-editor .editor-symbol {
    background: rgba(198, 181, 155, 0.1);
    color: #d6c5a9;
}

.editor-label {
    color: var(--sage);
    font: 9px var(--mono);
    letter-spacing: 1px;
}

.learn-editor .editor-label {
    color: #d6c5a9;
}

.skill-editor h3 {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.skill-editor > p {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.skill-input {
    display: flex;
    margin-top: 22px;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.skill-input input {
    min-width: 0;
    background: rgba(16, 20, 17, 0.75);
}

.skill-input button {
    width: 46px;
    flex-shrink: 0;
    border: 1px solid var(--sage);
    background: var(--sage);
    color: var(--bg);
    font-size: 23px;
    transition: background 0.2s ease;
}

.skill-input button:hover {
    background: var(--sage-light);
}

.example-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.example-skills span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: #b1b9ad;
    font-size: 10px;
}

.learn-editor .example-skills span {
    border-color: rgba(198, 181, 155, 0.17);
}

/* CONTINUE */

.continue-button {
    width: calc(100% - 32px);
    margin-left: 32px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--sage-light);
    background: var(--sage-light);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.25s ease;
}

.continue-button span {
    font-size: 20px;
}

.continue-button:hover {
    background: var(--ivory);
    transform: translateY(-2px);
}

.form-note {
    margin: 16px 0 0 32px;
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 0.7px;
}

/* IDENTITY PREVIEW */

.identity-preview {
    position: sticky;
    top: 25px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 50% 34%, rgba(104, 134, 110, 0.13), transparent 47%),
        #141a15;
    overflow: hidden;
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font: 8px var(--mono);
    letter-spacing: 0.6px;
}

.preview-top > span:first-child {
    color: var(--muted);
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sage);
    white-space: nowrap;
}

.preview-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sage);
}

/* CONSTELLATION */

.constellation {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.94;
    margin-top: 20px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.constellation::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 181, 162, 0.1), transparent 68%);
}

.constellation-ring {
    position: absolute;
    border: 1px solid rgba(163, 181, 162, 0.15);
    border-radius: 50%;
}

.ring-one {
    width: 76%;
    height: 76%;
    transform: rotate(-28deg) scaleY(0.75);
}

.ring-two {
    width: 58%;
    height: 58%;
    transform: rotate(30deg) scaleY(0.82);
    border-style: dashed;
    border-color: rgba(163, 181, 162, 0.2);
    animation: orbit 45s linear infinite;
}

.ring-three {
    width: 96%;
    height: 96%;
    border-color: rgba(163, 181, 162, 0.07);
}

.preview-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(211, 226, 204, 0.65);
    border-radius: 50%;
    background: linear-gradient(145deg, #29382c, #172019);
    color: var(--sage-light);
    font-family: "Playfair Display", serif;
    font-size: 39px;
    z-index: 2;
    box-shadow: 0 0 35px rgba(163, 181, 162, 0.09);
}

.star {
    position: absolute;
    color: var(--sage-light);
}

.star-one {
    top: 20%;
    left: 25%;
    font-size: 17px;
}

.star-two {
    top: 28%;
    right: 21%;
    font-size: 13px;
}

.star-three {
    bottom: 21%;
    left: 24%;
    font-size: 28px;
}

.star-four {
    bottom: 26%;
    right: 20%;
    font-size: 17px;
}

.constellation-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font: 7px var(--mono);
    letter-spacing: 0.7px;
}

.constellation-label i {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--sage);
}

.label-top {
    top: 8%;
    right: 4%;
}

.label-bottom {
    bottom: 8%;
    left: 4%;
}

.preview-name {
    padding: 5px 4px 22px;
    text-align: center;
}

.preview-overline {
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 1.2px;
}

.preview-name h2 {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
}

.preview-name h2 span {
    color: var(--sage);
}

.preview-name p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.preview-divider {
    height: 1px;
    background: var(--line);
}

.preview-skills {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.preview-skills > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
}

.preview-skills > div + div {
    border-top: 1px solid rgba(211, 226, 204, 0.07);
}

.preview-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(163, 181, 162, 0.1);
    color: var(--sage-light);
    font-size: 17px;
}

.learn-icon {
    background: rgba(198, 181, 155, 0.1);
    color: #d6c5a9;
}

.preview-skills small {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 0.5px;
}

.preview-skills strong {
    font-size: 12px;
    font-weight: 500;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 0.4px;
}

.preview-footer span:last-child {
    color: var(--sage);
}

/* FOOTER */

.page-footer {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 0.6px;
}

/* ANIMATIONS */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.intro,
.identity-form,
.identity-preview {
    animation: fade-up 0.7s ease both;
}

.identity-preview {
    animation-delay: 0.12s;
}

@keyframes orbit {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/* TABLET */

@media (max-width: 950px) {
    .profile-page {
        padding: 0 5%;
    }

    .identity-layout {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
        gap: 28px;
    }

    .intro h1 {
        font-size: 54px;
    }

    .progress {
        width: 210px;
    }

    .skill-editor {
        padding: 19px;
    }

    .identity-preview {
        padding: 16px;
    }

    .preview-top {
        flex-wrap: wrap;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .profile-page {
        padding: 0 20px;
    }

    .navbar {
        min-height: 70px;
    }

    .brand {
        font-size: 20px;
    }

    .nav-label {
        display: none;
    }

    .intro {
        padding: 43px 0 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .intro h1 {
        font-size: clamp(43px, 10vw, 59px);
        letter-spacing: -2.5px;
    }

    .intro-description {
        max-width: 390px;
    }

    .progress {
        width: 100%;
    }

    .identity-layout {
        grid-template-columns: 1fr;
        padding-top: 20px;
        gap: 45px;
    }

    .identity-fields {
        padding-left: 0;
    }

    .skill-editor {
        margin-left: 0;
    }

    .continue-button {
        width: 100%;
        margin-left: 0;
    }

    .form-note {
        margin-left: 0;
    }

    .identity-preview {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 480px;
        justify-self: center;
        padding: 22px;
    }

    .constellation {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-footer {
        padding: 18px 0;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .profile-page {
        padding: 0 15px;
    }

    .skill-editor {
        padding: 17px;
    }

    .identity-preview {
        padding: 16px;
    }

    .preview-top {
        font-size: 7px;
    }

    .constellation-label {
        font-size: 6px;
    }
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sage-light);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* SIDE MENU */

.menu-toggle {
    background: none;
    border: 1px solid #c8d5c5;
    color: inherit;
    font-size: 25px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
    background: var(--sage);
    color: var(--bg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 85%;
    height: 100vh;
    height: 100dvh;
    background: #f3f5ed;
    color: #243b2d;
    padding: 35px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.active {
    transform: translateX(0);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: inherit;
}

.menu-label {
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 35px;
}

.side-menu h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 15px 0 30px;
}

.side-menu h2 em {
    color: #789477;
}

.menu-links {
    display: flex;
    flex-direction: column;
}

.menu-links a {
    padding: 15px 0;
    border-bottom: 1px solid #d7dfd2;
    color: inherit;
    text-decoration: none;
    font-size: 15px;
}

.menu-links a:hover {
    color: #789477;
}

.logout-button {
    margin-top: auto;
    padding: 13px;
    background: #243b2d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.logout-button:hover {
    background: #395a43;
}

/* BACK BUTTON */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.back-button:hover {
    background: var(--sage-light);
    color: var(--bg);
}

.page-back {
    padding-top: 22px;
}

/* PROFILE PHOTO UPLOAD */

.avatar-area {
    align-items: center;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-placeholder {
    width: 57px;
    height: 57px;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-upload-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--sage);
    border-radius: 3px;
    background: rgba(163, 181, 162, 0.08);
    color: var(--sage-light);
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.upload-button:hover {
    background: var(--sage);
    color: var(--bg);
}

.remove-photo-button {
    padding: 5px 0;
    border: none;
    background: transparent;
    color: #c58f82;
    font-size: 10px;
    cursor: pointer;
}

.remove-photo-button:hover {
    color: #e4aa9d;
}

.image-upload-message {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* PREVIEW PROFILE PHOTO */

.preview-avatar {
    overflow: hidden;
}

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

/* HIDDEN ELEMENTS */

[hidden] {
    display: none !important;
}

/* MOBILE PHOTO UPLOAD */

@media (max-width: 380px) {
    .avatar-area {
        gap: 11px;
    }

    .avatar-upload-info {
        gap: 6px;
    }

    .upload-button {
        padding: 7px 9px;
        font-size: 9px;
    }
}

/* FINAL PROFILE PHOTO FIX */

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
    min-width: 0;
}

.avatar-placeholder,
.profile-image-preview {
    width: 57px;
    height: 57px;
    min-width: 57px;
    max-width: 57px;
    flex: 0 0 57px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-placeholder {
    display: grid;
    place-items: center;
    padding: 0;
}

.profile-image-preview {
    display: block;
    object-fit: cover;
}

.preview-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    flex: 0 0 88px;
    border-radius: 50%;
    overflow: hidden;
}

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

[hidden] {
    display: none !important;
}

/* DELETE ACCOUNT */

.delete-account-button {
    width: 100%;
    margin-top: 12px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(151, 69, 61, 0.07);
    color: #a85f56;
    border: 1px solid rgba(168, 95, 86, 0.28);
    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;

    transition: all 0.25s ease;
}

.delete-account-button::after {
    content: "→";
    font-size: 17px;
    transition: transform 0.25s ease;
}

.delete-account-button:hover {
    background: #963f38;
    color: #fff;
    border-color: #963f38;
    box-shadow: 0 5px 18px rgba(150, 63, 56, 0.18);
}

.delete-account-button:hover::after {
    transform: translateX(4px);
}

.delete-account-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* NOTIFICATIONS */

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 22px;
}

.notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(163, 181, 162, 0.06);
    color: var(--sage-light);
    font-size: 23px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.notification-button:hover {
    background: rgba(163, 181, 162, 0.15);
    border-color: var(--sage);
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
    border-radius: 20px;
    background: #c58f82;
    color: #fff;
    font: 9px var(--mono);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    z-index: 999;
    width: 340px;
    max-width: calc(100vw - 40px);
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--line);
    background: #191f1a;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px;
    border-bottom: 1px solid var(--line);
}

.notification-eyebrow {
    color: var(--muted);
    font: 8px var(--mono);
    letter-spacing: 1px;
}

.notification-header h3 {
    margin-top: 6px;
    color: var(--ivory);
    font-size: 17px;
}

.mark-all-read {
    border: none;
    background: transparent;
    color: var(--sage);
    font-size: 10px;
}

.mark-all-read:hover {
    color: var(--sage-light);
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    padding: 16px 19px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--surface-light);
}

.notification-item.unread {
    background: rgba(163, 181, 162, 0.07);
}

.notification-item strong {
    display: block;
    color: var(--ivory);
    font-size: 12px;
    font-weight: 600;
}

.notification-item p {
    margin-top: 6px;
    color: #a5aca2;
    font-size: 11px;
    line-height: 1.6;
}

.notification-item small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font: 8px var(--mono);
}

.notification-loading,
.notification-empty,
.notification-error {
    padding: 25px 19px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 700px) {
    .notification-wrapper {
        margin-left: auto;
        margin-right: 12px;
    }

    .notification-dropdown {
        right: -55px;
        width: 320px;
    }
}

@media (max-width: 380px) {
    .notification-dropdown {
        right: -48px;
        width: calc(100vw - 30px);
    }
}

/* NOTIFICATION BUTTON RESET */

.notification-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.notification-item:disabled {
    cursor: default;
    opacity: 0.75;
}

.mark-all-read:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* NAVBAR NOTIFICATION SPACING FIX */

.notification-wrapper {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 22px;
}

.nav-label {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 0;
    margin-right: 22px;
}

.menu-toggle {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .notification-wrapper {
        margin-right: 12px;
    }

    .nav-label {
        display: none;
    }
}
/* NOTIFICATION ICON POLISH */

.notification-icon {
    display: grid;
    place-items: center;
    color: var(--sage-light);
}

.notification-icon svg {
    display: block;
}

/* READ INDICATOR */

.notification-read-check {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    margin-top: 10px;
    border-radius: 50%;
    background: rgba(163, 181, 162, 0.13);
    color: var(--sage-light);
    font-size: 12px;
    font-weight: 700;
}