/* =========================================================
   SMART TO-DO — PROFILE
   GREIGE / GRAY + AI VIOLET DESIGN SYSTEM
   ========================================================= */

:root {

    --bg: #F5F2ED;
    --bg-soft: #EEE9E2;

    --white: #FFFFFF;

    --greige-light: #E6D9C9;
    --greige: #D8CBBB;

    --mineral: #B4ACA1;

    --taupe: #A6988A;
    --taupe-dark: #8D837A;

    --charcoal: #292725;
    --sidebar: #4A4640;

    --text: #3F3A35;
    --muted: #777069;

    --border: #D8D1C8;

    --green: #87927F;
    --blue-gray: #7F8B8D;
    --rose-gray: #A98983;

    /* AI ACCENT */
    --ai: #7D7180;
    --ai-light: #D9D1D9;
    --ai-soft: #ECE7ED;

    --shadow:
        0 18px 50px rgba(72, 63, 54, 0.10);

    --shadow-soft:
        0 8px 25px rgba(72, 63, 54, 0.07);

    --radius: 18px;

    --container: 1180px;
}



/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "DM Sans",
        sans-serif;

    background:
        var(--bg);

    color:
        var(--charcoal);

    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}



/* ================= CONTAINER ================= */

.container {

    width:
        min(
            var(--container),
            calc(100% - 80px)
        );

    margin-inline:
        auto;
}



/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background:
        rgba(245, 242, 237, 0.94);

    backdrop-filter:
        blur(15px);

    border-bottom:
        1px solid rgba(216, 209, 200, 0.65);

    transition:
        0.3s ease;
}

.navbar.scrolled {

    box-shadow:
        0 8px 30px
        rgba(70, 61, 52, 0.08);
}

.nav-inner {

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}



/* ================= BRAND ================= */

.brand {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    font-size: 21px;

    font-weight: 700;

    letter-spacing: -0.7px;
}

.brand > span:last-child > span {

    color:
        var(--taupe-dark);
}

.brand-mark {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    background:
        var(--sidebar);

    color: white;

    border-radius: 10px;

    font-size: 17px;
}



/* ================= NAV LINKS ================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-links a {

    position: relative;

    color:
        var(--muted);

    font-size: 14px;

    font-weight: 600;

    transition:
        0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {

    color:
        var(--charcoal);
}

.nav-links a.active::after {

    content: "";

    position: absolute;

    bottom: -10px;

    left: 50%;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--taupe-dark);

    transform:
        translateX(-50%);
}

.login-link {

    padding:
        11px 21px;

    background:
        var(--sidebar);

    color: white !important;

    border-radius:
        999px;
}

.login-link::after {
    display: none;
}



/* ================= MOBILE ================= */

.menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background:
        transparent;
}

.menu-toggle span {

    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    background:
        var(--sidebar);
}



/* =========================================================
   PROFILE HEADER
   ========================================================= */

.profile-header {

    position: relative;

    padding-top: 155px;
    padding-bottom: 90px;

    background:

        radial-gradient(
            circle at 85% 25%,
            rgba(216,203,187,0.55),
            transparent 34%
        ),

        var(--bg);

    overflow: hidden;
}

.profile-header::before {

    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -80px;
    bottom: -100px;

    border:
        1px solid
        rgba(125,113,128,0.12);

    border-radius: 50%;
}

.profile-header-content {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;
}

.eyebrow {

    color:
        var(--taupe-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 16px;
}

.profile-header h1 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(50px, 7vw, 78px);

    line-height:
        0.95;

    letter-spacing:
        -3px;

    margin-bottom:
        25px;
}

.profile-header h1 span {

    color:
        var(--taupe-dark);
}

.header-description {

    max-width: 570px;

    color:
        var(--muted);

    font-size: 15px;

    line-height: 1.8;
}



/* ================= PROFILE INTRO ================= */

.profile-intro {

    min-width: 300px;

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 17px 20px;

    background:
        rgba(255,255,255,0.72);

    border:
        1px solid var(--border);

    border-radius:
        17px;

    box-shadow:
        var(--shadow-soft);
}

.profile-avatar {

    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    background:
        var(--sidebar);

    color:
        #E2D5C7;

    border-radius:
        18px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 20px;
}

.profile-intro span {

    display: block;

    color:
        var(--taupe-dark);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 2px;
}

.profile-intro strong {

    display: block;

    margin-top: 2px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 20px;
}

.profile-intro small {

    display: block;

    color:
        var(--muted);

    font-size: 10px;

    margin-top: 2px;
}



/* =========================================================
   ACCOUNT SECTION
   ========================================================= */

.account-section {

    padding:
        85px 0 105px;

    background:
        #ECE7E0;
}

.section-intro {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 42px;
}

.section-label {

    color:
        var(--taupe-dark);

    font-size: 10px;

    letter-spacing: 3px;

    font-weight: 700;

    margin-bottom: 13px;
}

.section-intro h2 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(38px, 5vw, 55px);

    line-height:
        1;

    letter-spacing:
        -1.5px;
}

.section-intro h2 span {

    color:
        var(--taupe-dark);
}

.section-note {

    max-width: 300px;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 5px;
}



/* ================= ACCOUNT LAYOUT ================= */

.account-layout {

    display: grid;

    grid-template-columns:
        1.6fr 0.8fr;

    gap: 22px;
}



/* =========================================================
   ACCOUNT CARD
   ========================================================= */

.account-card {

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        22px;

    box-shadow:
        var(--shadow-soft);

    overflow:
        hidden;
}

.card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        30px 32px;

    border-bottom:
        1px solid var(--border);
}

.card-label {

    color:
        var(--taupe-dark);

    font-size: 8px;

    letter-spacing: 2px;

    font-weight: 700;
}

.card-top h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size: 28px;

    margin-top: 4px;
}

.card-symbol {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    background:
        var(--greige-light);

    color:
        var(--sidebar);

    border-radius:
        15px;

    font-size: 24px;
}



/* ================= PROFILE FIELDS ================= */

.profile-fields {

    padding:
        10px 32px;
}

.profile-field {

    min-height: 88px;

    display: flex;

    align-items: center;

    gap: 15px;

    border-bottom:
        1px solid var(--border);
}

.profile-field:last-child {
    border-bottom: 0;
}

.field-icon {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    background:
        var(--bg-soft);

    color:
        var(--sidebar);

    border-radius:
        12px;

    font-size: 12px;

    font-weight: 700;
}

.field-content {

    flex: 1;

    min-width: 0;
}

.field-content label {

    display: block;

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform:
        uppercase;

    margin-bottom: 3px;
}

.field-content input {

    width: 100%;

    border: 0;

    outline: none;

    background:
        transparent;

    color:
        var(--charcoal);

    font-size: 13px;

    font-weight: 600;

    padding: 0;
}

.field-content input:not(:read-only) {

    padding:
        7px 10px;

    background:
        #FAF8F5;

    border:
        1px solid var(--border);

    border-radius:
        8px;
}

.edit-btn {

    padding:
        7px 12px;

    border:
        1px solid var(--border);

    background:
        transparent;

    color:
        var(--muted);

    border-radius:
        999px;

    font-size: 9px;

    font-weight: 700;

    transition:
        0.2s ease;
}

.edit-btn:hover {

    background:
        var(--greige-light);

    color:
        var(--sidebar);

    border-color:
        var(--greige);
}

.verified {

    padding:
        6px 10px;

    background:
        #E6E9E3;

    color:
        var(--green);

    border-radius:
        999px;

    font-size: 8px;

    font-weight: 700;
}



/* ================= ACCOUNT FOOTER ================= */

.account-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        22px 32px;

    background:
        #FAF8F5;

    border-top:
        1px solid var(--border);
}

.account-footer p {

    color:
        var(--muted);

    font-size: 9px;
}

.account-footer strong {

    color:
        var(--text);
}

.save-btn {

    display: flex;

    align-items: center;

    gap: 10px;

    height: 40px;

    padding:
        0 18px;

    border: 0;

    border-radius:
        999px;

    background:
        var(--sidebar);

    color:
        white;

    font-size: 10px;

    font-weight: 700;

    transition:
        0.25s ease;
}

.save-btn:hover {

    background:
        #625C54;

    transform:
        translateY(-2px);
}

.save-btn span {
    font-size: 15px;
}



/* =========================================================
   ACCOUNT SIDE
   ========================================================= */

.account-side {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.member-card {

    position: relative;

    min-height: 330px;

    padding:
        32px;

    background:
        var(--sidebar);

    color:
        white;

    border-radius:
        22px;

    overflow:
        hidden;
}

.member-card::before {

    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -110px;
    top: -90px;

    border:
        1px solid
        rgba(255,255,255,0.09);

    border-radius: 50%;
}

.member-symbol {

    width: 50px;
    height: 50px;

    display: grid;

    place-items: center;

    margin-bottom:
        35px;

    border:
        1px solid
        rgba(255,255,255,0.14);

    border-radius:
        15px;

    color:
        #D8C8B6;

    font-size: 20px;
}

.member-card .section-label {

    position: relative;

    color:
        #C9BCAE;
}

.member-card h3 {

    position: relative;

    font-family:
        "Playfair Display",
        serif;

    font-size: 34px;

    line-height: 1;

    margin-bottom: 15px;
}

.member-card h3 span {

    color:
        #CBBBA9;
}

.member-card > p:not(.section-label) {

    position: relative;

    max-width: 280px;

    color:
        rgba(255,255,255,0.57);

    font-size: 11px;

    line-height: 1.7;
}

.member-line {

    height: 1px;

    margin:
        25px 0 17px;

    background:
        rgba(255,255,255,0.12);
}

.member-meta {

    display: flex;

    justify-content: space-between;

    margin-top: 9px;
}

.member-meta span {

    color:
        rgba(255,255,255,0.38);

    font-size: 8px;

    letter-spacing: 1.5px;
}

.member-meta strong {

    color:
        #E5DCD3;

    font-size: 9px;
}



/* ================= SECURITY ================= */

.security-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        18px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        16px;
}

.security-icon {

    width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    background:
        #E6E9E3;

    color:
        var(--green);

    border-radius:
        11px;

    font-weight: 700;
}

.security-card div {
    flex: 1;
}

.security-card strong {

    display: block;

    font-size: 11px;
}

.security-card p {

    color:
        var(--muted);

    font-size: 9px;

    margin-top: 2px;
}

.security-card > span {

    padding:
        5px 9px;

    background:
        #E6E9E3;

    color:
        var(--green);

    border-radius:
        999px;

    font-size: 8px;

    font-weight: 700;
}



/* =========================================================
   ANALYTICS
   ========================================================= */

.analytics-section {

    padding:
        100px 0 110px;

    background:
        var(--bg);
}

.analytics-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom:
        40px;
}

.analytics-heading h2 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(40px, 5vw, 57px);

    line-height:
        1;

    letter-spacing:
        -1.5px;
}

.analytics-heading h2 span {

    color:
        var(--taupe-dark);
}



/* ================= PERIOD ================= */

.period-selector {

    display: flex;

    gap: 4px;

    padding: 5px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        999px;
}

.period {

    padding:
        8px 15px;

    border: 0;

    border-radius:
        999px;

    background:
        transparent;

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 700;
}

.period.active {

    background:
        var(--sidebar);

    color:
        white;
}



/* =========================================================
   ANALYTICS OVERVIEW
   ========================================================= */

.analytics-overview {

    display: grid;

    grid-template-columns:
        2.1fr
        1fr
        1fr
        1fr;

    gap: 13px;

    margin-bottom:
        55px;
}

.overall-card {

    min-height: 200px;

    display: flex;

    align-items: center;

    gap: 28px;

    padding:
        28px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        20px;

    box-shadow:
        var(--shadow-soft);
}



/* ================= CIRCLE ================= */

.overall-circle {

    position: relative;

    width: 125px;
    height: 125px;

    flex-shrink: 0;
}

.overall-circle svg {

    width: 100%;
    height: 100%;

    transform:
        rotate(-90deg);
}

.circle-bg {

    fill: none;

    stroke:
        #E9E4DE;

    stroke-width:
        8;
}

.circle-progress {

    fill: none;

    stroke:
        var(--sidebar);

    stroke-width:
        8;

    stroke-linecap:
        round;

    stroke-dasharray:
        301.6;

    stroke-dashoffset:
        36.2;
}

.overall-value {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

.overall-value strong {

    font-family:
        "Playfair Display",
        serif;

    font-size: 27px;

    line-height: 1;
}

.overall-value span {

    color:
        var(--muted);

    font-size: 8px;

    margin-top: 3px;
}

.overall-text .section-label {
    margin-bottom: 7px;
}

.overall-text h3 {

    max-width: 300px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 25px;

    line-height: 1.1;

    margin-bottom: 10px;
}

.overall-text h3 span {

    color:
        var(--taupe-dark);
}

.overall-text > p:last-child {

    max-width: 310px;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.7;
}



/* ================= QUICK STAT ================= */

.quick-stat {

    min-height: 200px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        28px;

    background:
        var(--greige-light);

    border:
        1px solid var(--border);

    border-radius:
        20px;
}

.stat-number {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        40px;

    line-height: 1;

    color:
        var(--sidebar);
}

.stat-label {

    margin-top: 9px;

    color:
        var(--muted);

    font-size: 9px;

    line-height: 1.5;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}



/* =========================================================
   PERFORMANCE
   ========================================================= */

.performance-area {

    display: grid;

    grid-template-columns:
        0.75fr 1.5fr;

    gap: 70px;

    align-items:
        start;

    margin-bottom:
        60px;
}

.performance-title h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        32px;

    line-height:
        1.05;
}

.performance-title h3 span {

    color:
        var(--taupe-dark);
}

.performance-list {

    display: flex;

    flex-direction:
        column;

    gap:
        17px;
}

.performance-row {

    display: grid;

    grid-template-columns:
        170px 1fr 45px;

    align-items:
        center;

    gap:
        18px;
}

.performance-name {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}

.performance-icon {

    width: 38px;
    height: 38px;

    display:
        grid;

    place-items:
        center;

    flex-shrink: 0;

    background:
        var(--greige-light);

    color:
        var(--sidebar);

    border-radius:
        11px;

    font-size:
        14px;
}

.performance-icon.study {
    background:
        #DDD9D2;
}

.performance-icon.food {
    background:
        #E3DED4;
}

.performance-icon.water {
    background:
        #D8E0E0;
}

.performance-icon.medicine {
    background:
        #E3D8D4;
}

.performance-name strong {

    display:
        block;

    font-size:
        11px;
}

.performance-name small {

    display:
        block;

    color:
        var(--muted);

    font-size:
        8px;

    margin-top:
        1px;
}

.performance-bar {

    height:
        6px;

    background:
        #E5E0DA;

    border-radius:
        999px;

    overflow:
        hidden;
}

.performance-bar span {

    display:
        block;

    height:
        100%;

    background:
        var(--sidebar);

    border-radius:
        inherit;

    transition:
        width 1s ease;
}

.performance-value {

    color:
        var(--sidebar);

    font-size:
        10px;

    text-align:
        right;
}



/* =========================================================
   WEEKLY CHART
   ========================================================= */

.weekly-chart-card {

    padding:
        30px 35px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        21px;

    box-shadow:
        var(--shadow-soft);
}

.chart-heading {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    margin-bottom:
        30px;
}

.chart-heading h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        27px;
}

.chart-heading > span {

    color:
        var(--muted);

    font-size:
        9px;
}

.chart {

    position:
        relative;

    height:
        240px;

    padding:
        15px 15px 0;
}

.chart-grid {

    position:
        absolute;

    top: 15px;
    bottom: 35px;

    left: 15px;
    right: 15px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;
}

.chart-grid span {

    width: 100%;
    height: 1px;

    background:
        var(--border);

    opacity:
        0.65;
}

.bars {

    position:
        absolute;

    left: 30px;
    right: 30px;

    bottom:
        35px;

    top:
        25px;

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        20px;
}

.bar-item {

    height:
        100%;

    flex:
        1;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        flex-end;

    align-items:
        center;

    gap:
        10px;
}

.bar {

    width:
        100%;

    max-width:
        50px;

    height:
        100%;

    display:
        flex;

    align-items:
        flex-end;

    background:
        #F0ECE7;

    border-radius:
        8px 8px 2px 2px;

    overflow:
        hidden;
}

.bar span {

    display:
        block;

    width:
        100%;

    background:
        var(--taupe);

    border-radius:
        8px 8px 2px 2px;

    transition:
        height 0.7s ease;
}

.bar-item:last-child .bar span {

    background:
        var(--sidebar);
}

.bar-item small {

    color:
        var(--muted);

    font-size:
        8px;
}



/* =========================================================
   AI RECOMMENDATION
   ========================================================= */

.recommendation-section {

    padding:
        100px 0 110px;

    background:
        #ECE7E0;
}



/* ================= MAIN AI CARD ================= */

.recommendation-card {

    position:
        relative;

    min-height:
        410px;

    display:
        flex;

    align-items:
        center;

    gap:
        65px;

    padding:
        55px;

    background:
        var(--sidebar);

    color:
        white;

    border-radius:
        25px;

    overflow:
        hidden;

    box-shadow:
        var(--shadow);
}

.recommendation-card::before {

    content:
        "";

    position:
        absolute;

    width:
        500px;

    height:
        500px;

    right:
        -210px;

    top:
        -220px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    border-radius:
        50%;
}

.recommendation-card::after {

    content:
        "";

    position:
        absolute;

    width:
        350px;

    height:
        350px;

    right:
        -125px;

    top:
        -145px;

    border:
        1px solid
        rgba(125,113,128,0.22);

    border-radius:
        50%;
}



/* ================= AI ORBIT ================= */

.ai-orbit {

    position:
        relative;

    width:
        155px;

    height:
        155px;

    flex-shrink:
        0;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        rgba(125,113,128,0.5);

    border-radius:
        50%;
}

.ai-orbit::before {

    content:
        "";

    position:
        absolute;

    inset:
        18px;

    border:
        1px solid
        rgba(216,200,182,0.20);

    border-radius:
        50%;
}

.ai-orbit::after {

    content:
        "";

    position:
        absolute;

    width:
        7px;

    height:
        7px;

    top:
        10px;

    right:
        26px;

    background:
        var(--ai-light);

    border-radius:
        50%;
}

.ai-core {

    position:
        relative;

    z-index:
        2;

    width:
        67px;

    height:
        67px;

    display:
        grid;

    place-items:
        center;

    background:
        var(--ai);

    border:
        1px solid
        rgba(255,255,255,0.15);

    border-radius:
        20px;

    color:
        #F0E9F0;

    font-size:
        27px;

    box-shadow:
        0 0 35px
        rgba(125,113,128,0.30);
}



/* ================= AI CONTENT ================= */

.recommendation-content {

    position:
        relative;

    z-index:
        2;

    max-width:
        720px;
}

.ai-label {

    color:
        #C9BCAE;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        3px;

    margin-bottom:
        13px;
}

.recommendation-content h2 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(35px, 5vw, 54px);

    line-height:
        1;

    letter-spacing:
        -1.5px;

    margin-bottom:
        18px;
}

.recommendation-content h2 span {

    color:
        #BDB0BE;
}

.recommendation-intro {

    max-width:
        600px;

    color:
        rgba(255,255,255,0.58);

    font-size:
        12px;

    line-height:
        1.8;

    margin-bottom:
        25px;
}



/* ================= INSIGHT ================= */

.recommendation-insight {

    display:
        flex;

    gap:
        13px;

    padding:
        17px;

    background:
        rgba(255,255,255,0.07);

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius:
        14px;

    margin-bottom:
        12px;
}

.insight-mark {

    width:
        31px;

    height:
        31px;

    display:
        grid;

    place-items:
        center;

    flex-shrink:
        0;

    background:
        rgba(125,113,128,0.25);

    color:
        #DDD2DF;

    border-radius:
        9px;

    font-size:
        13px;
}

.recommendation-insight span,
.recommendation-action span {

    display:
        block;

    color:
        #BFB2C0;

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        1.8px;

    margin-bottom:
        4px;
}

.recommendation-insight p {

    color:
        rgba(255,255,255,0.66);

    font-size:
        10.5px;

    line-height:
        1.6;
}

.recommendation-insight strong {

    color:
        #E4D8E6;
}



/* ================= RECOMMENDATION ACTION ================= */

.recommendation-action {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        16px 17px;

    background:
        rgba(125,113,128,0.16);

    border:
        1px solid
        rgba(125,113,128,0.22);

    border-radius:
        14px;
}

.recommendation-action p {

    color:
        rgba(255,255,255,0.67);

    font-size:
        10px;
}

.recommendation-action strong {

    color:
        #E6DCE8;
}

.recommendation-action button {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    height:
        38px;

    padding:
        0 17px;

    border:
        0;

    border-radius:
        999px;

    background:
        var(--ai);

    color:
        white;

    font-size:
        9px;

    font-weight:
        700;

    flex-shrink:
        0;

    transition:
        0.25s ease;
}

.recommendation-action button:hover {

    background:
        #8B7F8F;

    transform:
        translateY(-2px);
}



/* =========================================================
   SECOND AI INSIGHT
   ========================================================= */

.secondary-insight {

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        100px 1fr 70px;

    align-items:
        center;

    gap:
        30px;

    margin-top:
        15px;

    padding:
        27px 30px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    box-shadow:
        var(--shadow-soft);

    overflow:
        hidden;
}

.insight-category {

    display:
        grid;

    place-items:
        center;

    height:
        34px;

    border-radius:
        999px;

    background:
        var(--greige-light);

    color:
        var(--sidebar);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        1.5px;
}

.secondary-insight-text h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        23px;

    line-height:
        1.15;
}

.secondary-insight-text h3 span {

    color:
        var(--taupe-dark);
}

.secondary-insight-text p {

    max-width:
        650px;

    color:
        var(--muted);

    font-size:
        10px;

    line-height:
        1.7;

    margin-top:
        5px;
}

.insight-number {

    font-family:
        "Playfair Display",
        serif;

    color:
        var(--ai);

    font-size:
        35px;

    text-align:
        right;

    opacity:
        0.55;
}



/* =========================================================
   FINAL SMART SECTION
   ========================================================= */

.smart-section {

    padding:
        100px 0;

    background:
        var(--bg);
}

.smart-card {

    position:
        relative;

    min-height:
        270px;

    display:
        flex;

    align-items:
        center;

    gap:
        35px;

    padding:
        50px;

    background:
        var(--sidebar);

    color:
        white;

    border-radius:
        25px;

    overflow:
        hidden;
}

.smart-card::before {

    content:
        "";

    position:
        absolute;

    width:
        300px;

    height:
        300px;

    right:
        -100px;

    top:
        -130px;

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius:
        50%;
}

.smart-card::after {

    content:
        "";

    position:
        absolute;

    width:
        220px;

    height:
        220px;

    right:
        -55px;

    top:
        -90px;

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius:
        50%;
}

.smart-symbol {

    position:
        relative;

    z-index:
        2;

    width:
        67px;

    height:
        67px;

    display:
        grid;

    place-items:
        center;

    flex-shrink:
        0;

    border:
        1px solid
        rgba(255,255,255,0.16);

    border-radius:
        19px;

    color:
        #D8C8B6;

    font-size:
        28px;
}

.smart-text {

    position:
        relative;

    z-index:
        2;
}

.smart-text .section-label {

    color:
        #C9BCAE;
}

.smart-text h2 {

    max-width:
        680px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(35px, 5vw, 54px);

    line-height:
        1;

    letter-spacing:
        -1.5px;

    margin-bottom:
        15px;
}

.smart-text h2 span {

    color:
        #CBBBA9;
}

.smart-text > p:last-child {

    max-width:
        550px;

    color:
        rgba(255,255,255,0.60);

    font-size:
        13px;

    line-height:
        1.8;
}

.smart-decoration {

    position:
        absolute;

    right:
        70px;

    bottom:
        45px;

    display:
        flex;

    gap:
        7px;
}

.smart-decoration span {

    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        #CBBBA9;
}

.smart-decoration span:nth-child(2) {
    opacity: 0.55;
}

.smart-decoration span:nth-child(3) {
    opacity: 0.25;
}



/* =========================================================
   FOOTER
   ========================================================= */

footer {

    background:
        var(--sidebar);

    color:
        white;
}

.footer-main {

    display:
        grid;

    grid-template-columns:
        2fr 1fr 1fr 1.4fr;

    gap:
        60px;

    padding:
        70px 0 65px;
}

.footer-brand .brand {
    color:
        white;
}

.footer-brand .brand > span:last-child > span {
    color:
        #CFC2B3;
}

.footer-brand p {

    max-width:
        290px;

    margin-top:
        20px;

    color:
        rgba(255,255,255,0.55);

    font-size:
        13px;

    line-height:
        1.8;
}

.footer-column {

    display:
        flex;

    flex-direction:
        column;

    gap:
        11px;
}

.footer-column h4 {

    color:
        #E3D7C9;

    font-size:
        12px;

    margin-bottom:
        8px;
}

.footer-column a {

    width:
        fit-content;

    color:
        rgba(255,255,255,0.58);

    font-size:
        12px;

    transition:
        0.2s ease;
}

.footer-column a:hover {
    color:
        white;
}

.socials {

    display:
        flex;

    gap:
        8px;

    margin-top:
        12px;
}

.socials a {

    width:
        31px;

    height:
        31px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        rgba(255,255,255,0.18);

    border-radius:
        50%;

    font-size:
        10px;
}

.footer-bottom {

    min-height:
        65px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    border-top:
        1px solid
        rgba(255,255,255,0.12);

    color:
        rgba(255,255,255,0.42);

    font-size:
        10px;
}

.footer-bottom div {

    display:
        flex;

    gap:
        22px;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .account-layout {

        grid-template-columns:
            1fr;
    }

    .account-side {

        display:
            grid;

        grid-template-columns:
            1fr 1fr;
    }

    .analytics-overview {

        grid-template-columns:
            1fr 1fr;
    }

    .overall-card {

        grid-column:
            span 2;
    }

    .performance-area {

        grid-template-columns:
            1fr;

        gap:
            35px;
    }

    .recommendation-card {

        gap:
            40px;

        padding:
            45px;
    }

}



@media (max-width: 850px) {

    .container {

        width:
            min(
                var(--container),
                calc(100% - 40px)
            );
    }

    .menu-toggle {
        display:
            block;
    }

    .nav-links {

        position:
            absolute;

        top:
            82px;

        left:
            20px;

        right:
            20px;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            0;

        padding:
            12px;

        background:
            white;

        border:
            1px solid var(--border);

        border-radius:
            17px;

        box-shadow:
            var(--shadow);

        opacity:
            0;

        visibility:
            hidden;

        transform:
            translateY(-8px);

        transition:
            0.25s ease;
    }

    .nav-links.open {

        opacity:
            1;

        visibility:
            visible;

        transform:
            translateY(0);
    }

    .nav-links a {
        padding:
            13px 14px;
    }

    .nav-links a.active::after {
        display:
            none;
    }

    .profile-header-content {

        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .profile-intro {
        min-width:
            270px;
    }

    .section-intro,
    .analytics-heading {

        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .analytics-overview {

        grid-template-columns:
            1fr 1fr;
    }

    .recommendation-card {

        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .footer-main {

        grid-template-columns:
            1fr 1fr;
    }

}



@media (max-width: 600px) {

    .nav-inner {
        height:
            72px;
    }

    .nav-links {
        top:
            72px;
    }

    .profile-header {

        padding-top:
            125px;

        padding-bottom:
            65px;
    }

    .profile-header h1 {
        font-size:
            54px;
    }

    .profile-intro {
        width:
            100%;
    }

    .account-section,
    .analytics-section,
    .recommendation-section {
        padding:
            65px 0 80px;
    }

    .card-top {
        padding:
            25px;
    }

    .profile-fields {
        padding:
            5px 20px;
    }

    .profile-field {
        gap:
            10px;
    }

    .field-icon {
        width:
            36px;

        height:
            36px;
    }

    .verified {
        display:
            none;
    }

    .account-footer {

        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            20px 25px;
    }

    .save-btn {
        width:
            100%;

        justify-content:
            center;
    }

    .account-side {

        display:
            flex;
    }

    .member-card {
        min-height:
            310px;
    }

    .analytics-overview {

        grid-template-columns:
            1fr;
    }

    .overall-card {

        grid-column:
            auto;

        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .quick-stat {
        min-height:
            120px;
    }

    .performance-row {

        grid-template-columns:
            130px 1fr 35px;

        gap:
            10px;
    }

    .performance-name small {
        display:
            none;
    }

    .weekly-chart-card {
        padding:
            25px 18px;
    }

    .bars {
        gap:
            8px;

        left:
            15px;

        right:
            15px;
    }

    .recommendation-card {

        padding:
            30px;

        gap:
            30px;
    }

    .ai-orbit {

        width:
            120px;

        height:
            120px;
    }

    .ai-core {

        width:
            58px;

        height:
            58px;
    }

    .recommendation-action {

        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .recommendation-action button {
        width:
            100%;

        justify-content:
            center;
    }

    .secondary-insight {

        grid-template-columns:
            1fr;

        gap:
            15px;
    }

    .insight-number {
        display:
            none;
    }

    .smart-card {

        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            30px;
    }

    .smart-decoration {
        display:
            none;
    }

    .footer-main {

        grid-template-columns:
            1fr;

        gap:
            35px;
    }

    .footer-bottom {

        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            20px 0;
    }

}




/* =========================================================
   AI RECOMMENDATIONS — GRILLE DE CARTES
========================================================= */

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 22px;
    margin-bottom: 22px;
}

/* ---- Carte individuelle ---- */
.reco-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: recoFadeIn 0.5s ease both;
}

.reco-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(72, 63, 54, 0.13);
}

/* Barre latérale colorée selon le type */
.reco-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
}

.reco-card.warning::before { background: #D08A6A; }  /* orange chaud */
.reco-card.success::before { background: var(--green); }
.reco-card.tip::before     { background: var(--ai); }
.reco-card.info::before    { background: var(--blue-gray); }

/* ---- Icône ---- */
.reco-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    font-size: 20px;
}

.reco-card.warning .reco-icon {
    background: #F5E3DA;
    color: #B86C4B;
}
.reco-card.success .reco-icon {
    background: #E6E9E3;
    color: var(--green);
}
.reco-card.tip .reco-icon {
    background: var(--ai-soft);
    color: var(--ai);
}
.reco-card.info .reco-icon {
    background: #E0E6E6;
    color: var(--blue-gray);
}

/* ---- Contenu ---- */
.reco-body {
    flex: 1;
    min-width: 0;
}

.reco-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.reco-head strong {
    font-size: 13px;
    color: var(--charcoal);
    letter-spacing: 0.2px;
}

.reco-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reco-card.warning .reco-badge {
    background: #F5E3DA;
    color: #B86C4B;
}
.reco-card.success .reco-badge {
    background: #E6E9E3;
    color: var(--green);
}
.reco-card.tip .reco-badge {
    background: var(--ai-soft);
    color: var(--ai);
}
.reco-card.info .reco-badge {
    background: #E0E6E6;
    color: var(--blue-gray);
}

.reco-text {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

/* ---- État vide ---- */
.reco-empty {
    grid-column: 1 / -1;
    padding: 40px 28px;
    text-align: center;
    background: white;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

/* ---- Animation d'entrée ---- */
@keyframes recoFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .reco-grid {
        grid-template-columns: 1fr;
    }
    .reco-card {
        padding: 18px;
    }
}

/* =========================================================
   INSIGHTS ROW (lowest day + AI prediction)
========================================================= */

.insight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

/* ---- Bloc commun ---- */
.insight-block {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr 70px;
    align-items: center;
    gap: 30px;
    padding: 27px 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insight-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(72, 63, 54, 0.12);
}

/* ---- Version AI (violet subtle) ---- */
.insight-block--ai {
    background: linear-gradient(
        135deg,
        white 0%,
        var(--ai-soft) 180%
    );
    border-color: var(--ai-light);
}

.insight-block--ai::before {
    content: "✦";
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 14px;
    color: var(--ai);
    opacity: 0.35;
}

/* ---- Catégorie (badge à gauche) ---- */
.insight-category {
    display: grid;
    place-items: center;
    height: 34px;
    border-radius: 999px;
    background: var(--greige-light);
    color: var(--sidebar);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.insight-category--ai {
    background: var(--ai);
    color: white;
    letter-spacing: 2px;
}

/* ---- Texte central ---- */
.insight-body {
    min-width: 0;
}

.insight-body h3 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1.15;
    color: var(--charcoal);
}

.insight-body h3 span {
    color: var(--taupe-dark);
}

.insight-block--ai .insight-body h3 {
    color: var(--charcoal);
}

.insight-block--ai .insight-body h3 span {
    color: var(--ai);
}

.insight-body p {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.65;
    margin-top: 5px;
}

/* ---- Chiffre à droite ---- */
.insight-number {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    text-align: right;
    color: var(--ai);
    opacity: 0.55;
    line-height: 1;
}

.insight-number--ai {
    color: var(--ai);
    opacity: 0.9;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .insight-row {
        grid-template-columns: 1fr;
    }
    .insight-block {
        grid-template-columns: 80px 1fr 60px;
        gap: 20px;
        padding: 22px 24px;
    }
    .insight-number {
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .insight-block {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }
    .insight-category {
        justify-self: start;
        padding: 0 16px;
    }
    .insight-number {
        text-align: left;
    }
}