:root {
    --burgundy: #711d3c;
    --burgundy-dark: #431022;
    --burgundy-deep: #2b0b18;
    --burgundy-soft: #f3e5e9;

    --ivory: #f7f0e5;
    --paper: #fffdf9;
    --paper-soft: #f1e8dc;

    --charcoal: #292525;
    --muted: #766d67;
    --muted-light: #a49a92;

    --gold: #b18a52;
    --gold-light: #d2b47c;

    --border: #ddd2c4;
    --border-light: #eee6db;

    --white: #ffffff;
    --sidebar-bg: #292525;
    --sidebar-text: #ffffff;
    --sidebar-text-soft: #c5bdb8;
    --sidebar-text-muted: #8f8782;
    --sidebar-border: rgba(255, 255, 255, 0.10);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --sidebar-active-bg: #6f1d3a;
    --sidebar-active-border: #b18a52;
}


/* ============================================================
   RESET
============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: "Inter", Arial, sans-serif;
}

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

button,
input {
    font-family: inherit;
}

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


/* ============================================================
   MAIN LAYOUT
============================================================ */

.profile-layout {
    min-height: 100vh;
    display: flex;
    width: 100%;
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
    width: 258px;
    max-height: 100vh;
    flex-shrink: 0;
    overflow: hidden;

    padding: 30px 20px 22px;

    background: var(--sidebar-bg);

    color: var(--sidebar-text);

    display: flex;
    flex-direction: column;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 34px;
}

.brand-mark {
    width: 44px;
    height: 44px;

    border: 1px solid rgba(210, 180, 124, 0.7);

    color: var(--gold-light);

    display: grid;
    place-items: center;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text {
    min-width: 0;
}

.brand-text h1 {
    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}

.brand-text span {
    display: block;

    margin-top: 5px;

    color: #cdbeb4;

    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* ============================================================
   SIDEBAR NAV
============================================================ */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    min-height: 45px;

    padding: 0 13px;

    border-left: 2px solid transparent;

    display: flex;
    align-items: center;
    gap: 13px;

    color: var(--sidebar-text-soft);

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

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.nav-icon {
    width: 20px;

    color: currentColor;

    text-align: center;

    font-size: 15px;
}

.nav-item:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text);
    border-left-color: var(--sidebar-active-border);
}

.nav-item.active .nav-icon {
    color: currentColor;
}


/* ============================================================
   SIDEBAR USER
============================================================ */

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-user {
    padding: 20px 8px 15px;
    max-height: 100vh !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--gold);
    color: var(--burgundy-deep);

    display: grid;
    place-items: center;

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

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-info strong {
    display: block;

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

    font-size: 12px;
}

.sidebar-user-info span {
    display: block;

    margin-top: 3px;

    color: #bcaea7;

    font-size: 10px;
}


/* ============================================================
   LOGOUT
============================================================ */

.logout-button {
    width: 100%;
    min-height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    background: transparent;
    color: #d9cdc6;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 12px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    border-color: rgba(210, 180, 124, 0.35);
}


/* ============================================================
   MAIN CONTENT
============================================================ */

.main-content {
    min-width: 0;
    flex: 1;
    max-height: 100vh;
    overflow-y: auto;
    padding: 42px 48px 0;
}

.mobile-header {
    display: none;
}


/* ============================================================
   PAGE INTRO
============================================================ */

.page-intro {
    max-width: 1180px;
    min-height: 205px;

    margin: 0 auto;

    padding: 36px 42px;

    background:
        linear-gradient(135deg,
            #fffaf2 0%,
            #f1e5d7 100%);

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

    display: flex;
    align-items: center;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-intro h2 {
    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 48px;
    line-height: 0.95;
    font-weight: 700;
}

.page-intro p {
    max-width: 570px;

    margin-top: 13px;

    color: var(--muted);

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


/* ============================================================
   PROFILE SECTION
============================================================ */

.profile-section {
    max-width: 1180px;

    margin: 38px auto 0;
}

.profile-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.profile-card {
    background: var(--paper);

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

    padding: 28px;
}

.card-heading {
    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border-light);
}

.section-kicker {
    display: block;

    margin-bottom: 5px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.card-heading h3 {
    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 30px;
    line-height: 1;
    font-weight: 700;
}


/* ============================================================
   FORMS
============================================================ */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--charcoal);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    min-height: 46px;

    padding: 0 13px;

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

    background: #fffdfa;
    color: var(--charcoal);

    outline: none;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: var(--muted-light);
}

.form-group input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(177, 138, 82, 0.1);
}


/* ============================================================
   BUTTON
============================================================ */

.primary-button {
    width: 100%;
    min-height: 45px;

    margin-top: 4px;

    border: none;

    background: var(--burgundy);
    color: var(--white);

    cursor: pointer;

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

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.primary-button:hover {
    background: var(--burgundy-dark);

    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* ============================================================
   FORM MESSAGE
============================================================ */

.form-message {
    min-height: 20px;

    margin: 2px 0 8px;

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

.form-message.success {
    color: #557047;
}

.form-message.error {
    color: #9a3d3d;
}


/* ============================================================
   ACCOUNT NOTE
============================================================ */

.account-note {
    max-width: 1180px;

    margin: 25px auto 0;

    padding: 22px 25px;

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

    background:
        linear-gradient(135deg,
            #f4e9dc,
            #fffaf3);

    display: flex;
    align-items: center;
    gap: 17px;
}

.note-mark {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border: 1px solid var(--gold);

    color: var(--burgundy-dark);

    display: grid;
    place-items: center;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

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

.account-note h3 {
    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

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

.account-note p {
    margin-top: 5px;

    color: var(--muted);

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


/* ============================================================
   FOOTER
============================================================ */

.page-footer {
    max-width: 1180px;

    margin: 70px auto 0;

    padding: 22px 0 25px;

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

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

    gap: 20px;
}

.footer-brand strong {
    display: block;

    color: var(--burgundy-dark);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 19px;
}

.footer-brand span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}

.footer-copy {
    color: var(--muted-light);

    font-size: 9px;
}


/* ============================================================
   RESPONSIVE - 1000px
============================================================ */

@media (max-width: 1000px) {

    .main-content {
        padding-left: 30px;
        padding-right: 30px;
    }

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


/* ============================================================
   RESPONSIVE - 850px
============================================================ */

@media (max-width: 850px) {

    .sidebar {
        width: 220px;
    }

    .main-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .page-intro {
        padding: 30px;
    }

    .page-intro h2 {
        font-size: 42px;
    }
}


/* ============================================================
   MOBILE - 600px
============================================================ */

@media (max-width: 600px) {

    .profile-layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 0 15px;
    }

    .mobile-header {
        min-height: 68px;

        margin: 0 -15px;

        padding: 0 15px;

        background: var(--burgundy-dark);

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

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 9px;

        color: var(--white);
    }

    .mobile-brand-mark {
        width: 34px;
        height: 34px;

        border: 1px solid rgba(210, 180, 124, 0.65);

        color: var(--gold-light);

        display: grid;
        place-items: center;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

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

    .mobile-brand strong {
        display: block;

        font-family:
            "Cormorant Garamond",
            Georgia,
            serif;

        font-size: 18px;
    }

    .mobile-brand span {
        display: block;

        color: #bcaea7;

        font-size: 8px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .mobile-logout {
        width: 40px;
        height: 40px;

        border: 1px solid rgba(255, 255, 255, 0.15);

        background: transparent;

        color: var(--gold-light);

        cursor: pointer;

        font-size: 17px;
    }

    .page-intro {
        min-height: auto;

        margin-top: 18px;

        padding: 25px 21px;
    }

    .page-intro h2 {
        font-size: 39px;
    }

    .page-intro p {
        font-size: 12px;
    }

    .profile-section {
        margin-top: 25px;
    }

    .profile-card {
        padding: 21px;
    }

    .card-heading {
        margin-bottom: 21px;
    }

    .card-heading h3 {
        font-size: 27px;
    }

    .account-note {
        margin-top: 17px;

        padding: 19px;

        align-items: flex-start;
    }

    .account-note h3 {
        font-size: 21px;
    }

    .page-footer {
        margin-top: 48px;

        flex-direction: column;

        align-items: flex-start;
    }
}


/* ============================================================
   MOBILE - 450px
============================================================ */

@media (max-width: 450px) {

    .page-intro h2 {
        font-size: 36px;
    }

    .profile-card {
        padding: 18px;
    }

    .card-heading h3 {
        font-size: 25px;
    }

    .note-mark {
        width: 42px;
        height: 42px;

        font-size: 16px;
    }

    .account-note h3 {
        font-size: 19px;
    }
}


/* ============================================================
   MOBILE - 360px
============================================================ */

@media (max-width: 360px) {

    .main-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-header {
        margin-left: -12px;
        margin-right: -12px;
    }

    .page-intro {
        padding: 22px 17px;
    }

    .page-intro h2 {
        font-size: 33px;
    }

    .profile-card {
        padding: 16px;
    }
}