/* ============================================================
   AMRIT GITA — PROFILE
   File: css/profile.css
   Scope: profile.html only
============================================================ */


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

body.profile-page {
    background: #fbf6ec;
}


body.profile-page [hidden] {
    display: none !important;
}


body.profile-page .profile-main {
    position: relative;
    overflow: hidden;
}


body.profile-page.profile-modal-open {
    overflow: hidden;
}


body.profile-page .profile-small-label {
    display: block;

    margin-bottom: 8px;

    color: var(--ag-gold-dark);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ============================================================
   HERO
============================================================ */

body.profile-page .profile-hero {
    position: relative;

    padding:
        calc(var(--ag-header-height) + 48px)
        0
        76px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(214, 157, 66, 0.16),
            transparent 29%
        ),
        radial-gradient(
            circle at 8% 85%,
            rgba(217, 155, 61, 0.07),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #fdf9f1,
            #f8eddd
        );
}


body.profile-page .profile-hero::after {
    content: "ॐ";

    position: absolute;

    right: 7%;
    top: 52%;

    color: rgba(181, 121, 31, 0.045);

    font-family:
        "Nirmala UI",
        "Mangal",
        serif;

    font-size: clamp(180px, 19vw, 310px);

    line-height: 1;

    transform: translateY(-50%);

    pointer-events: none;
}


body.profile-page .profile-hero-glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


body.profile-page .profile-hero-glow-one {
    width: 580px;
    height: 580px;

    right: -220px;
    top: -250px;

    background:
        radial-gradient(
            circle,
            rgba(211, 145, 37, 0.14),
            transparent 70%
        );
}


body.profile-page .profile-hero-glow-two {
    width: 360px;
    height: 360px;

    left: -180px;
    bottom: -190px;

    background:
        radial-gradient(
            circle,
            rgba(203, 145, 50, 0.09),
            transparent 70%
        );
}


/* ============================================================
   BACK LINK
============================================================ */

body.profile-page .profile-back-row {
    position: relative;
    z-index: 3;

    margin-bottom: 34px;
}


body.profile-page .profile-back-link {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--ag-text-muted);

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

    transition:
        color var(--ag-transition),
        transform var(--ag-transition);
}


body.profile-page .profile-back-link:hover {
    color: var(--ag-saffron-dark);

    transform: translateX(-3px);
}


/* ============================================================
   HERO LAYOUT
============================================================ */

body.profile-page .profile-hero-layout {
    position: relative;
    z-index: 3;

    display: grid;

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

    align-items: center;

    gap: 50px;
}


body.profile-page .profile-identity {
    display: flex;
    align-items: center;

    gap: 27px;
}


/* ============================================================
   PROFILE AVATAR
============================================================ */

body.profile-page .profile-avatar-shell {
    position: relative;

    flex-shrink: 0;
}


body.profile-page .profile-avatar-large {
    width: 128px;
    height: 128px;

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

    border:
        1px solid
        rgba(181, 121, 31, 0.30);

    border-radius: 50%;

    color: #a85d0b;

    background:
        radial-gradient(
            circle at 35% 28%,
            #ffffff,
            #fff0da 76%
        );

    box-shadow:
        0 22px 60px
        rgba(91, 57, 20, 0.13);

    font-family:
        Georgia,
        serif;

    font-size: 49px;
    font-weight: 500;
}


body.profile-page .profile-status-dot {
    position: absolute;

    right: 8px;
    bottom: 9px;

    width: 19px;
    height: 19px;

    border:
        4px solid
        #fbf4e8;

    border-radius: 50%;

    background: #a99e95;

    box-shadow:
        0 4px 10px
        rgba(60, 42, 24, 0.10);
}


body.profile-page .profile-status-dot.is-active {
    background: #5b956b;
}


body.profile-page .profile-status-dot.is-inactive {
    background: #ad6257;
}


/* ============================================================
   PROFILE IDENTITY COPY
============================================================ */

body.profile-page .profile-identity-copy {
    min-width: 0;
}


body.profile-page .profile-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--ag-gold-dark);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


body.profile-page .profile-identity-copy h1 {
    margin-bottom: 7px;

    color: var(--ag-text);

    font-size: clamp(39px, 4.5vw, 62px);
    font-weight: 850;

    line-height: 1.02;

    letter-spacing: -0.052em;
}


body.profile-page .profile-identity-copy > p {
    margin: 0 0 17px;

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

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   IDENTITY BADGES
============================================================ */

body.profile-page .profile-identity-badges {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}


body.profile-page .profile-badge {
    min-height: 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 11px;

    border:
        1px solid
        rgba(156, 114, 52, 0.16);

    border-radius: 999px;

    color: #705b42;

    background:
        rgba(255, 255, 255, 0.64);

    font-size: 8px;
    font-weight: 800;
}


body.profile-page .profile-membership-badge {
    color: #965b11;

    border-color:
        rgba(191, 126, 26, 0.22);

    background: #fff2da;
}


body.profile-page .profile-membership-badge.is-premium {
    color: #85510b;

    border-color:
        rgba(194, 130, 30, 0.30);

    background:
        linear-gradient(
            135deg,
            #fff7e5,
            #f5dfb7
        );
}


/* ============================================================
   HERO ACTION
============================================================ */

body.profile-page .profile-hero-action {
    position: relative;
    z-index: 3;
}


body.profile-page .profile-settings-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 21px;

    border:
        1px solid
        rgba(181, 118, 26, 0.20);

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--ag-saffron),
            var(--ag-saffron-dark)
        );

    box-shadow:
        0 13px 31px
        rgba(190, 87, 5, 0.19);

    font-size: 10px;
    font-weight: 850;

    transition:
        transform var(--ag-transition),
        box-shadow var(--ag-transition);
}


body.profile-page .profile-settings-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 39px
        rgba(190, 87, 5, 0.25);
}


/* ============================================================
   PAGE STATE AREA
============================================================ */

body.profile-page .profile-state-area {
    position: relative;
    z-index: 5;

    background: #ffffff;
}


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

body.profile-page .profile-page-message {
    margin-top: 18px;

    padding: 14px 17px;

    border-radius: 13px;

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

    line-height: 1.6;
}


body.profile-page .profile-message-info {
    border:
        1px solid
        rgba(184, 130, 40, 0.20);

    color: #875917;

    background: #fff7e7;
}


body.profile-page .profile-message-success {
    border:
        1px solid
        rgba(65, 129, 83, 0.20);

    color: #39734a;

    background: #eef8f1;
}


body.profile-page .profile-message-error {
    border:
        1px solid
        rgba(161, 62, 50, 0.18);

    color: #973e32;

    background: #fff2ef;
}


/* ============================================================
   LOADING
============================================================ */

body.profile-page .profile-loading-card {
    width: min(850px, 100%);

    margin-inline: auto;

    padding: 37px 39px;

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

    border-radius: 27px;

    background: #ffffff;

    box-shadow:
        0 19px 55px
        rgba(73, 46, 19, 0.06);

    transform: translateY(-28px);
}


body.profile-page .profile-loading-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


body.profile-page
.profile-loading-header span,
body.profile-page
.profile-loading-row {
    background:
        linear-gradient(
            90deg,
            #eadfce 20%,
            #faf4ea 50%,
            #eadfce 80%
        );

    background-size: 220% 100%;

    animation:
        profileSkeletonMove
        1.3s
        linear
        infinite;
}


body.profile-page
.profile-loading-header span {
    height: 12px;

    border-radius: 999px;
}


body.profile-page
.profile-loading-header span:first-child {
    width: 170px;
}


body.profile-page
.profile-loading-header span:last-child {
    width: 80px;
}


body.profile-page .profile-loading-row {
    height: 55px;

    margin-bottom: 13px;

    border-radius: 15px;
}


/* ============================================================
   ERROR STATE
============================================================ */

body.profile-page .profile-error-card {
    width: min(650px, 100%);

    margin-inline: auto;

    padding: 55px 45px;

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

    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 24px 68px
        rgba(72, 45, 17, 0.08);

    text-align: center;

    transform: translateY(-28px);
}


body.profile-page .profile-error-icon {
    width: 70px;
    height: 70px;

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

    margin:
        0 auto
        20px;

    border:
        1px solid
        rgba(170, 78, 61, 0.20);

    border-radius: 50%;

    color: #a34f42;

    background: #fff1ed;

    font-size: 25px;
    font-weight: 850;
}


body.profile-page .profile-error-card h2 {
    margin-bottom: 10px;

    color: var(--ag-text);

    font-size: clamp(27px, 3vw, 38px);

    line-height: 1.15;

    letter-spacing: -0.035em;
}


body.profile-page .profile-error-card p {
    max-width: 470px;

    margin:
        0 auto
        23px;

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

    font-size: 12px;

    line-height: 1.8;
}


body.profile-page .profile-error-card button {
    min-height: 45px;

    padding: 0 20px;

    border: 0;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--ag-saffron),
            var(--ag-saffron-dark)
        );

    box-shadow:
        0 11px 27px
        rgba(190, 87, 5, 0.18);

    font-size: 10px;
    font-weight: 850;

    cursor: pointer;
}


/* ============================================================
   PROFILE CONTENT
============================================================ */

body.profile-page .profile-content-section {
    padding:
        82px
        0
        105px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbf6ec
        );
}


/* ============================================================
   SECTION HEADING
============================================================ */

body.profile-page .profile-section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(300px, 0.55fr);

    align-items: end;

    gap: 55px;

    margin-bottom: 36px;
}


body.profile-page
.profile-section-heading h2 {
    margin: 0;

    color: var(--ag-text);

    font-size: clamp(35px, 4vw, 51px);

    line-height: 1.08;

    letter-spacing: -0.044em;
}


body.profile-page
.profile-section-heading > p {
    margin: 0;

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

    font-size: 12px;

    line-height: 1.8;
}


/* ============================================================
   STAT GRID
============================================================ */

body.profile-page .profile-stat-grid {
    display: grid;

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

    gap: 15px;

    margin-bottom: 54px;
}


body.profile-page .profile-stat-card {
    min-height: 126px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 21px;

    border:
        1px solid
        rgba(111, 82, 50, 0.09);

    border-radius: 21px;

    background:
        rgba(255, 255, 255, 0.93);

    box-shadow:
        0 13px 38px
        rgba(72, 45, 17, 0.045);

    transition:
        transform var(--ag-transition),
        border-color var(--ag-transition),
        box-shadow var(--ag-transition);
}


body.profile-page .profile-stat-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(181, 122, 30, 0.20);

    box-shadow:
        0 18px 45px
        rgba(72, 45, 17, 0.075);
}


body.profile-page .profile-stat-icon {
    width: 49px;
    height: 49px;

    flex-shrink: 0;

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

    border:
        1px solid
        rgba(181, 122, 30, 0.17);

    border-radius: 15px;

    color: #a56814;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #f8ead3
        );

    font-size: 19px;
}


body.profile-page
.profile-stat-card strong {
    display: block;

    margin-bottom: 4px;

    color: var(--ag-text);

    font-size: 25px;
    font-weight: 850;

    line-height: 1;
}


body.profile-page
.profile-stat-card div > span {
    color: var(--ag-text-muted);

    font-size: 9px;
    font-weight: 700;

    line-height: 1.45;
}


/* ============================================================
   MAIN PROFILE GRID
============================================================ */

body.profile-page .profile-main-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: start;

    gap: 28px;
}


body.profile-page .profile-main-column {
    display: grid;

    gap: 24px;
}


body.profile-page .profile-side-column {
    display: grid;

    gap: 19px;
}


/* ============================================================
   PROFILE PANEL
============================================================ */

body.profile-page .profile-panel {
    padding: 31px 32px;

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

    border-radius: 25px;

    background: #ffffff;

    box-shadow:
        0 15px 45px
        rgba(73, 46, 19, 0.055);
}


body.profile-page .profile-panel-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


body.profile-page
.profile-panel-heading h2 {
    margin: 0;

    color: var(--ag-text);

    font-size: clamp(24px, 2.6vw, 32px);

    line-height: 1.15;

    letter-spacing: -0.035em;
}


body.profile-page .profile-panel-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--ag-saffron-dark);

    font-size: 9px;
    font-weight: 850;

    transition:
        gap var(--ag-transition),
        color var(--ag-transition);
}


body.profile-page .profile-panel-link:hover {
    gap: 10px;

    color: var(--ag-saffron);
}


/* ============================================================
   PROFILE DETAILS
============================================================ */

body.profile-page .profile-detail-list {
    border-top:
        1px solid
        rgba(100, 75, 47, 0.08);
}


body.profile-page .profile-detail-row {
    min-height: 72px;

    display: flex;

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

    gap: 25px;

    padding: 15px 2px;

    border-bottom:
        1px solid
        rgba(100, 75, 47, 0.08);
}


body.profile-page
.profile-detail-row > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


body.profile-page
.profile-detail-row > div > span {
    margin-bottom: 4px;

    color: var(--ag-text-muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


body.profile-page
.profile-detail-row > div > strong {
    overflow-wrap: anywhere;

    color: var(--ag-text);

    font-size: 12px;
    font-weight: 750;
}


body.profile-page .profile-readonly-label {
    flex-shrink: 0;

    min-height: 25px;

    display: inline-flex;
    align-items: center;

    padding: 0 9px;

    border-radius: 999px;

    color: #6c645d;

    background: #f2eeea;

    font-size: 7px;
    font-weight: 800;
}


body.profile-page
.profile-readonly-label.is-verified {
    color: #477c56;

    background: #eef8f1;
}


body.profile-page
.profile-readonly-label.is-unverified {
    color: #9a6418;

    background: #fff2dc;
}


body.profile-page .profile-account-status {
    width: fit-content;
}


body.profile-page
.profile-account-status.is-active {
    color: #477d56;
}


body.profile-page
.profile-account-status.is-inactive {
    color: #a2574d;
}


/* ============================================================
   JOURNEY PANEL
============================================================ */

body.profile-page .profile-journey-panel {
    background:
        radial-gradient(
            circle at top right,
            rgba(208, 146, 49, 0.07),
            transparent 25%
        ),
        #ffffff;
}


body.profile-page .profile-journey-progress {
    padding: 20px;

    border:
        1px solid
        rgba(111, 81, 47, 0.08);

    border-radius: 18px;

    background: #fcfaf6;
}


body.profile-page .profile-progress-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 13px;
}


body.profile-page
.profile-progress-heading > div {
    display: flex;
    flex-direction: column;
}


body.profile-page
.profile-progress-heading span {
    margin-bottom: 3px;

    color: var(--ag-text-muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


body.profile-page
.profile-progress-heading strong {
    color: var(--ag-text);

    font-size: 22px;
    font-weight: 850;
}


body.profile-page
.profile-progress-heading small {
    color: var(--ag-text-muted);

    font-size: 9px;
}


body.profile-page .profile-progress-track {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #eadfce;
}


body.profile-page
.profile-progress-track span {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--ag-gold),
            var(--ag-saffron)
        );

    transition:
        width 650ms ease;
}


/* ============================================================
   RESUME CARD
============================================================ */

body.profile-page .profile-resume-card {
    display: grid;

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

    align-items: center;

    gap: 16px;

    margin-top: 18px;

    padding: 17px 18px;

    border:
        1px solid
        rgba(184, 126, 34, 0.18);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #f8ead4
        );
}


body.profile-page .profile-resume-symbol {
    width: 46px;
    height: 46px;

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

    border:
        1px solid
        rgba(184, 126, 34, 0.20);

    border-radius: 50%;

    color: #9f6514;

    background:
        rgba(255, 255, 255, 0.75);

    font-size: 18px;
}


body.profile-page .profile-resume-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


body.profile-page
.profile-resume-copy > span {
    margin-bottom: 2px;

    color: var(--ag-gold-dark);

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}


body.profile-page
.profile-resume-copy strong {
    overflow: hidden;

    color: var(--ag-text);

    font-size: 12px;

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


body.profile-page
.profile-resume-copy small {
    margin-top: 3px;

    color: var(--ag-text-muted);

    font-size: 9px;
}


body.profile-page .profile-resume-button {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 15px;

    border-radius: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--ag-saffron),
            var(--ag-saffron-dark)
        );

    box-shadow:
        0 10px 24px
        rgba(190, 87, 5, 0.16);

    font-size: 9px;
    font-weight: 850;

    transition:
        transform var(--ag-transition),
        box-shadow var(--ag-transition);
}


body.profile-page .profile-resume-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 28px
        rgba(190, 87, 5, 0.22);
}


/* ============================================================
   MEMBERSHIP CARD
============================================================ */

body.profile-page .profile-membership-card {
    position: relative;

    overflow: hidden;

    padding: 28px 25px;

    border:
        1px solid
        rgba(184, 126, 34, 0.18);

    border-radius: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(211, 151, 55, 0.12),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #fffdf8,
            #f8ead4
        );

    box-shadow:
        0 15px 44px
        rgba(78, 49, 17, 0.06);
}


body.profile-page
.profile-membership-card::after {
    content: "✦";

    position: absolute;

    right: 20px;
    top: 17px;

    color:
        rgba(161, 101, 13, 0.11);

    font-size: 25px;

    pointer-events: none;
}


body.profile-page .profile-membership-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    border:
        1px solid
        rgba(185, 124, 27, 0.20);

    border-radius: 18px;

    color: #a96811;

    background:
        rgba(255, 255, 255, 0.68);

    font-size: 20px;
}


body.profile-page
.profile-membership-card h2 {
    margin-bottom: 9px;

    color: var(--ag-text);

    font-size: 24px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}


body.profile-page
.profile-membership-card > p {
    margin-bottom: 22px;

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

    font-size: 10px;

    line-height: 1.7;
}


body.profile-page .profile-membership-meta,
body.profile-page .profile-premium-expiry {
    display: flex;

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

    gap: 15px;

    padding: 12px 0;

    border-top:
        1px solid
        rgba(107, 78, 46, 0.08);
}


body.profile-page
.profile-membership-meta span,
body.profile-page
.profile-premium-expiry span {
    color: var(--ag-text-muted);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}


body.profile-page
.profile-membership-meta strong,
body.profile-page
.profile-premium-expiry strong {
    color: var(--ag-text);

    font-size: 10px;
}


body.profile-page .profile-premium-button {
    width: 100%;
    min-height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 17px;

    border-radius: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #dc7b13,
            #b45307
        );

    box-shadow:
        0 10px 25px
        rgba(168, 77, 4, 0.16);

    font-size: 9px;
    font-weight: 850;

    transition:
        transform var(--ag-transition),
        box-shadow var(--ag-transition);
}


body.profile-page
.profile-premium-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 31px
        rgba(168, 77, 4, 0.22);
}


/* ============================================================
   PREMIUM MEMBERSHIP STATE
============================================================ */

body.profile-page
.profile-membership-card.is-premium {
    border-color:
        rgba(182, 126, 36, 0.28);

    background:
        radial-gradient(
            circle at top right,
            rgba(224, 177, 84, 0.19),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #fffdf8,
            #f4dfb8
        );

    box-shadow:
        0 18px 50px
        rgba(126, 84, 20, 0.10);
}


body.profile-page
.profile-membership-card.is-premium
.profile-membership-icon {
    color: #925710;

    border-color:
        rgba(177, 120, 28, 0.27);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff5df
        );
}


/* ============================================================
   QUICK ACCESS
============================================================ */

body.profile-page .profile-quick-card {
    padding: 25px 22px;

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

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 13px 38px
        rgba(73, 46, 19, 0.045);
}


body.profile-page
.profile-quick-card h3 {
    margin-bottom: 16px;

    color: var(--ag-text);

    font-size: 19px;

    letter-spacing: -0.025em;
}


body.profile-page .profile-quick-links {
    display: grid;

    gap: 7px;
}


body.profile-page
.profile-quick-links > a {
    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 11px;

    padding: 11px 10px;

    border-radius: 14px;

    transition:
        background var(--ag-transition),
        transform var(--ag-transition);
}


body.profile-page
.profile-quick-links > a:hover {
    background: #fbf6ed;

    transform: translateX(2px);
}


body.profile-page .profile-quick-icon {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(173, 117, 30, 0.15);

    border-radius: 11px;

    color: #9b651a;

    background: #fff8eb;

    font-size: 14px;
}


body.profile-page
.profile-quick-links strong {
    display: block;

    margin-bottom: 2px;

    color: var(--ag-text);

    font-size: 10px;
}


body.profile-page
.profile-quick-links small {
    display: block;

    color: var(--ag-text-muted);

    font-size: 8px;
}


/* ============================================================
   ACCOUNT CONTROLS
============================================================ */

body.profile-page .profile-account-section {
    margin-top: 55px;

    padding-top: 50px;

    border-top:
        1px solid
        rgba(106, 78, 47, 0.09);
}


body.profile-page .profile-account-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(280px, 0.55fr);

    align-items: end;

    gap: 50px;

    margin-bottom: 27px;
}


body.profile-page
.profile-account-heading h2 {
    margin: 0;

    color: var(--ag-text);

    font-size: clamp(31px, 3.6vw, 43px);

    line-height: 1.1;

    letter-spacing: -0.04em;
}


body.profile-page
.profile-account-heading > p {
    margin: 0;

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

    font-size: 11px;

    line-height: 1.75;
}


body.profile-page .profile-account-actions {
    display: grid;

    gap: 12px;
}


body.profile-page .profile-account-action {
    display: flex;

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

    gap: 30px;

    padding: 21px 23px;

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

    border-radius: 19px;

    background: #ffffff;
}


body.profile-page
.profile-account-action strong {
    display: block;

    margin-bottom: 4px;

    color: var(--ag-text);

    font-size: 12px;
}


body.profile-page
.profile-account-action p {
    max-width: 650px;

    margin: 0;

    color: var(--ag-text-muted);

    font-size: 9px;

    line-height: 1.6;
}


body.profile-page .profile-logout-button,
body.profile-page .profile-delete-button {
    min-width: 115px;
    min-height: 42px;

    flex-shrink: 0;

    padding: 0 15px;

    border-radius: 12px;

    font-size: 9px;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform var(--ag-transition),
        border-color var(--ag-transition),
        background var(--ag-transition);
}


body.profile-page .profile-logout-button {
    border:
        1px solid
        var(--ag-border);

    color: var(--ag-text);

    background: #ffffff;
}


body.profile-page
.profile-logout-button:hover {
    transform: translateY(-2px);

    border-color:
        rgba(177, 121, 36, 0.26);

    background: #fffaf2;
}


body.profile-page .profile-danger-action {
    border-color:
        rgba(164, 74, 61, 0.14);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff9f7
        );
}


body.profile-page
.profile-danger-action strong {
    color: #914b42;
}


body.profile-page .profile-delete-button {
    border:
        1px solid
        rgba(163, 71, 59, 0.22);

    color: #a04a3e;

    background: #fff3f0;
}


body.profile-page
.profile-delete-button:hover {
    transform: translateY(-2px);

    border-color:
        rgba(163, 71, 59, 0.34);

    background: #ffebe7;
}


/* ============================================================
   DELETE MODAL
============================================================ */

body.profile-page .profile-modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(31, 23, 17, 0.55);

    backdrop-filter:
        blur(8px);
}


body.profile-page .profile-modal {
    position: relative;

    width: min(520px, 100%);

    max-height:
        calc(
            100vh - 50px
        );

    overflow-y: auto;

    padding: 38px 37px;

    border:
        1px solid
        rgba(164, 75, 61, 0.17);

    border-radius: 27px;

    background:
        radial-gradient(
            circle at top right,
            rgba(186, 89, 70, 0.06),
            transparent 27%
        ),
        #ffffff;

    box-shadow:
        0 30px 90px
        rgba(24, 16, 10, 0.24);
}


body.profile-page .profile-modal-close {
    position: absolute;

    right: 17px;
    top: 17px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(109, 83, 61, 0.12);

    border-radius: 50%;

    color: #75695e;

    background: #ffffff;

    font-size: 20px;

    cursor: pointer;

    transition:
        background var(--ag-transition),
        color var(--ag-transition);
}


body.profile-page
.profile-modal-close:hover {
    color: #9e4e43;

    background: #fff2ef;
}


body.profile-page
.profile-modal-close:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}


body.profile-page .profile-modal-icon {
    width: 68px;
    height: 68px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border:
        1px solid
        rgba(167, 70, 57, 0.20);

    border-radius: 50%;

    color: #a34d42;

    background: #fff1ee;

    font-size: 24px;
    font-weight: 850;
}


body.profile-page .profile-modal h2 {
    margin-bottom: 10px;

    color: var(--ag-text);

    font-size: clamp(29px, 3.5vw, 40px);

    line-height: 1.1;

    letter-spacing: -0.04em;
}


body.profile-page
.profile-modal > p {
    margin-bottom: 25px;

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

    font-size: 11px;

    line-height: 1.8;
}


/* ============================================================
   DELETE CONFIRMATION INPUT
============================================================ */

body.profile-page
.profile-delete-confirmation {
    display: block;

    margin-bottom: 16px;
}


body.profile-page
.profile-delete-confirmation > span {
    display: block;

    margin-bottom: 8px;

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

    font-size: 9px;
}


body.profile-page
.profile-delete-confirmation strong {
    color: #994a40;

    letter-spacing: 0.06em;
}


body.profile-page
.profile-delete-confirmation input {
    width: 100%;
    height: 47px;

    padding: 0 14px;

    border:
        1px solid
        rgba(128, 98, 70, 0.18);

    border-radius: 13px;

    outline: none;

    color: var(--ag-text);

    background: #fcfaf7;

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

    letter-spacing: 0.08em;

    transition:
        border-color var(--ag-transition),
        box-shadow var(--ag-transition),
        background var(--ag-transition);
}


body.profile-page
.profile-delete-confirmation input:focus {
    border-color:
        rgba(165, 75, 61, 0.42);

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(165, 75, 61, 0.07);
}


body.profile-page
.profile-delete-confirmation input:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* ============================================================
   DELETE ERROR
============================================================ */

body.profile-page .profile-delete-error {
    margin-bottom: 16px;

    padding: 11px 12px;

    border:
        1px solid
        rgba(163, 70, 58, 0.16);

    border-radius: 11px;

    color: #9b453a;

    background: #fff0ed;

    font-size: 9px;

    line-height: 1.6;
}


/* ============================================================
   MODAL ACTIONS
============================================================ */

body.profile-page .profile-modal-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}


body.profile-page .profile-modal-cancel,
body.profile-page .profile-modal-delete {
    min-height: 45px;

    padding: 0 18px;

    border-radius: 12px;

    font-size: 9px;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform var(--ag-transition),
        opacity var(--ag-transition),
        background var(--ag-transition);
}


body.profile-page .profile-modal-cancel {
    border:
        1px solid
        var(--ag-border);

    color: var(--ag-text);

    background: #ffffff;
}


body.profile-page
.profile-modal-cancel:hover:not(:disabled) {
    background: #faf6f0;
}


body.profile-page .profile-modal-delete {
    border:
        1px solid
        rgba(161, 66, 54, 0.20);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #bd5b4d,
            #963f35
        );

    box-shadow:
        0 10px 25px
        rgba(151, 60, 49, 0.17);
}


body.profile-page
.profile-modal-delete:hover:not(:disabled) {
    transform: translateY(-2px);
}


body.profile-page
.profile-modal-delete:disabled {
    color: #a79891;

    border-color: transparent;

    background: #e8e1dc;

    box-shadow: none;

    cursor: not-allowed;
}


body.profile-page
.profile-modal-cancel:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1100px) {

    body.profile-page .profile-stat-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    body.profile-page .profile-main-grid {
        grid-template-columns:
            minmax(0, 1fr)
            270px;
    }

}


/* ============================================================
   SMALL LAPTOP / LARGE TABLET
============================================================ */

@media (max-width: 1024px) {

    body.profile-page .profile-hero-layout {
        grid-template-columns: 1fr;
    }


    body.profile-page .profile-hero-action {
        margin-left: 155px;
    }


    body.profile-page .profile-section-heading,
    body.profile-page .profile-account-heading {
        grid-template-columns: 1fr;

        gap: 14px;
    }


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


    body.profile-page .profile-side-column {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 768px) {

    body.profile-page .profile-identity {
        align-items: flex-start;
    }


    body.profile-page .profile-avatar-large {
        width: 105px;
        height: 105px;

        font-size: 41px;
    }


    body.profile-page .profile-hero-action {
        margin-left: 132px;
    }


    body.profile-page .profile-stat-grid {
        gap: 12px;
    }


    body.profile-page .profile-stat-card {
        min-height: 112px;

        padding: 17px;
    }


    body.profile-page .profile-side-column {
        grid-template-columns: 1fr;
    }


    body.profile-page .profile-account-action {
        align-items: flex-start;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

    body.profile-page .profile-hero {
        padding:
            calc(var(--ag-header-height) + 35px)
            0
            58px;
    }


    body.profile-page .profile-back-row {
        margin-bottom: 26px;
    }


    body.profile-page .profile-identity {
        flex-direction: column;

        gap: 18px;
    }


    body.profile-page .profile-avatar-large {
        width: 96px;
        height: 96px;

        font-size: 37px;
    }


    body.profile-page .profile-status-dot {
        width: 17px;
        height: 17px;

        right: 5px;
        bottom: 6px;
    }


    body.profile-page
    .profile-identity-copy h1 {
        font-size:
            clamp(
                37px,
                11vw,
                50px
            );
    }


    body.profile-page .profile-hero-action {
        margin-left: 0;
    }


    body.profile-page .profile-settings-button {
        width: 100%;
    }


    body.profile-page .profile-content-section {
        padding: 62px 0 85px;
    }


    body.profile-page
    .profile-section-heading h2 {
        font-size:
            clamp(
                31px,
                9vw,
                41px
            );
    }


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


    body.profile-page .profile-stat-card {
        min-height: auto;
    }


    body.profile-page .profile-panel {
        padding: 25px 20px;

        border-radius: 21px;
    }


    body.profile-page .profile-panel-heading {
        align-items: flex-start;
    }


    body.profile-page .profile-detail-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    body.profile-page .profile-progress-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }


    body.profile-page .profile-resume-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }


    body.profile-page .profile-resume-button {
        grid-column:
            1 / -1;

        width: 100%;
    }


    body.profile-page .profile-membership-card {
        padding: 25px 21px;
    }


    body.profile-page .profile-account-action {
        flex-direction: column;

        align-items: stretch;
    }


    body.profile-page .profile-logout-button,
    body.profile-page .profile-delete-button {
        width: 100%;
    }


    body.profile-page .profile-modal-backdrop {
        padding: 15px;
    }


    body.profile-page .profile-modal {
        padding:
            34px
            21px
            24px;

        border-radius: 22px;
    }


    body.profile-page .profile-modal-actions {
        flex-direction: column-reverse;
    }


    body.profile-page .profile-modal-cancel,
    body.profile-page .profile-modal-delete {
        width: 100%;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 420px) {

    body.profile-page .profile-identity-badges {
        gap: 6px;
    }


    body.profile-page .profile-badge {
        min-height: 27px;

        padding: 0 9px;

        font-size: 7px;
    }


    body.profile-page .profile-panel-heading {
        flex-direction: column;

        gap: 11px;
    }


    body.profile-page .profile-quick-card {
        padding: 22px 17px;
    }


    body.profile-page
    .profile-quick-links > a {
        grid-template-columns:
            35px
            minmax(0, 1fr)
            auto;

        gap: 9px;

        padding: 10px 7px;
    }

}


/* ============================================================
   TOUCH DEVICES
============================================================ */

@media (hover: none) and (pointer: coarse) {

    body.profile-page
    .profile-settings-button:hover,

    body.profile-page
    .profile-stat-card:hover,

    body.profile-page
    .profile-resume-button:hover,

    body.profile-page
    .profile-premium-button:hover,

    body.profile-page
    .profile-quick-links > a:hover,

    body.profile-page
    .profile-logout-button:hover,

    body.profile-page
    .profile-delete-button:hover,

    body.profile-page
    .profile-modal-delete:hover {
        transform: none;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    body.profile-page
    .profile-loading-header span,

    body.profile-page
    .profile-loading-row {
        animation: none !important;
    }


    body.profile-page * {
        scroll-behavior: auto !important;
    }

}


/* ============================================================
   ANIMATION
============================================================ */

@keyframes profileSkeletonMove {

    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }

}