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

.account-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(111, 76, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at top right,
            rgba(212, 175, 55, 0.08),
            transparent 30%
        ),
        #f8f4ea;
}


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

.account-hero {
    padding: 145px 24px 62px;
}

.account-container {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}


/* =========================================================
   WELCOME
========================================================= */

.account-welcome {
    max-width: 720px;
}

.account-welcome .section-eyebrow {
    margin: 0 0 15px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;

    color: #87651c;
}

.account-welcome h1 {
    margin: 0 0 18px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    line-height: 1;
    font-weight: 500;

    color: #321c57;
}

.account-welcome h1 span {
    color: #68418e;
}

.account-welcome > p:last-child {
    max-width: 640px;
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.75;

    color: #625a69;
}


/* =========================================================
   STARS SUMMARY
========================================================= */

.account-stars-card {
    min-width: 290px;

    padding: 26px 28px;

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

    border: 1px solid rgba(145, 109, 32, 0.22);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.94),
            rgba(251, 245, 226, 0.96)
        );

    box-shadow:
        0 18px 50px rgba(62, 39, 84, 0.09);
}

.account-stars-icon {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

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

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #f5df93,
            #b98a2f
        );

    box-shadow:
        0 8px 20px rgba(158, 117, 30, 0.2);

    font-size: 1.45rem;

    color: #fffaf0;
}

.account-stars-card > div:last-child {
    display: grid;
}

.account-stars-label {
    margin-bottom: 3px;

    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;

    color: #80611f;
}

.account-stars-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    line-height: 1;

    color: #3c245d;
}

.account-stars-card p {
    margin: 6px 0 0;

    font-size: 0.78rem;
    line-height: 1.4;

    color: #746c76;
}


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

.account-content {
    padding: 0 24px 90px;
}

.account-content-container {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   PANELS
========================================================= */

.account-panel {
    padding: 34px;

    border: 1px solid rgba(95, 67, 127, 0.12);
    border-radius: 24px;

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

    box-shadow:
        0 15px 45px rgba(55, 34, 75, 0.06);
}

.account-panel-heading {
    margin-bottom: 27px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.account-panel-heading .section-eyebrow {
    margin: 0 0 7px;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;

    color: #8b691f;
}

.account-panel-heading h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 500;

    color: #35204f;
}


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

.account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-profile-item {
    min-width: 0;

    padding: 17px 18px;

    border: 1px solid rgba(91, 64, 118, 0.1);
    border-radius: 15px;

    background: rgba(250, 247, 240, 0.7);
}

.account-profile-email {
    grid-column: 1 / -1;
}

.account-profile-item span {
    display: block;

    margin-bottom: 5px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    color: #877e89;
}

.account-profile-item strong {
    display: block;

    overflow-wrap: anywhere;

    font-size: 0.96rem;
    font-weight: 600;

    color: #3d3344;
}


/* =========================================================
   BALANCE
========================================================= */

.account-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-balance-item {
    padding: 20px;

    border: 1px solid rgba(151, 111, 27, 0.14);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 253, 246, 0.92),
            rgba(249, 243, 226, 0.82)
        );
}

.account-balance-item span {
    display: block;

    margin-bottom: 7px;

    font-size: 0.76rem;
    font-weight: 700;

    color: #756979;
}

.account-balance-item strong {
    display: block;

    margin-bottom: 8px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;

    color: #563577;
}

.account-balance-item p {
    margin: 0;

    font-size: 0.78rem;
    line-height: 1.5;

    color: #817983;
}


/* =========================================================
   BUTTONS / ACTIONS
========================================================= */

.account-primary-action {
    min-height: 48px;

    margin-top: 20px;
    padding: 0 24px;

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

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #4f2d75,
            #6b3e97
        );

    box-shadow:
        0 11px 25px rgba(77, 43, 111, 0.17);

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;

    color: #fffaf0;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.account-primary-action:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(77, 43, 111, 0.23);
}

.account-secondary-action {
    margin-top: 22px;

    display: inline-flex;

    text-decoration: none;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;

    color: #634080;
}

.account-secondary-action:hover {
    text-decoration: underline;
}


/* =========================================================
   EXPERIENCES
========================================================= */

.account-explore {
    grid-column: 1 / -1;
}

.account-experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.account-experience-card {
    min-width: 0;
    padding: 21px;

    display: flex;
    align-items: flex-start;
    gap: 15px;

    border: 1px solid rgba(93, 66, 122, 0.11);
    border-radius: 17px;

    background: rgba(250, 247, 240, 0.72);

    text-decoration: none;

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

.account-experience-card:hover {
    transform: translateY(-2px);

    border-color: rgba(112, 77, 151, 0.25);

    box-shadow:
        0 12px 28px rgba(61, 38, 81, 0.08);
}

.account-experience-symbol {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border: 1px solid rgba(150, 111, 30, 0.2);
    border-radius: 50%;

    background: #fffaf0;

    color: #8a671c;
}

.account-experience-card strong {
    display: block;

    margin-bottom: 6px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.13rem;
    font-weight: 500;

    color: #41275f;
}

.account-experience-card p {
    margin: 0;

    font-size: 0.8rem;
    line-height: 1.55;

    color: #776f7a;
}


/* =========================================================
   HISTORY
========================================================= */

.account-history {
    grid-column: 1 / -1;
}

.account-empty-state {
    padding: 34px 20px;

    text-align: center;

    border: 1px dashed rgba(101, 75, 126, 0.2);
    border-radius: 18px;

    background: rgba(250, 247, 240, 0.5);
}

.account-empty-state > span {
    display: block;

    margin-bottom: 11px;

    font-size: 1.65rem;

    color: #8a681d;
}

.account-empty-state h3 {
    margin: 0 0 9px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;

    color: #3c2754;
}

.account-empty-state p {
    max-width: 530px;
    margin: 0 auto 17px;

    font-size: 0.86rem;
    line-height: 1.65;

    color: #7a727c;
}

.account-empty-state a {
    text-decoration: none;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;

    color: #654283;
}

.account-empty-state a:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY
========================================================= */

.account-security {
    grid-column: 1 / -1;
}

.account-security-row {
    padding: 19px 0;

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

    border-top: 1px solid rgba(78, 57, 96, 0.1);
}

.account-security-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.account-security-row:last-child {
    padding-bottom: 0;
}

.account-security-row strong {
    display: block;

    margin-bottom: 4px;

    font-size: 0.94rem;

    color: #403547;
}

.account-security-row p {
    margin: 0;

    font-size: 0.81rem;
    line-height: 1.5;

    color: #7c747f;
}

.account-small-action {
    flex: 0 0 auto;

    padding: 10px 16px;

    border: 1px solid rgba(94, 61, 127, 0.22);
    border-radius: 999px;

    background: transparent;

    cursor: pointer;

    text-decoration: none;

    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    color: #5e3b7d;

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

.account-small-action:hover {
    border-color: rgba(94, 61, 127, 0.4);

    background: rgba(95, 62, 128, 0.05);
}


/* =========================================================
   HEADER / FOOTER LOGOUT BUTTONS
========================================================= */

.account-logout-header {
    font-family: inherit;
    cursor: pointer;
}

.account-logout-mobile {
    width: 100%;

    border: none;

    font-family: inherit;
    cursor: pointer;
}

.footer-account-logout {
    margin: 0;
    padding: 0;

    display: block;

    border: none;
    background: none;

    cursor: pointer;

    font: inherit;
    text-align: left;

    color: inherit;
}


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

@media (max-width: 980px) {

    .account-hero {
        padding: 130px 24px 52px;
    }

    .account-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .account-stars-card {
        width: min(390px, 100%);
    }

    .account-content-container {
        grid-template-columns: 1fr;
    }

    .account-profile,
    .account-balance,
    .account-explore,
    .account-history,
    .account-security {
        grid-column: auto;
    }

    .account-experience-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 700px) {

    .account-hero {
        padding:
            108px
            18px
            38px;
    }

    .account-content {
        padding:
            0
            18px
            60px;
    }

    .account-container {
        gap: 26px;
    }

    .account-welcome .section-eyebrow {
        font-size: 0.7rem;
    }

    .account-welcome h1 {
        margin-bottom: 15px;

        font-size: clamp(
            2.3rem,
            11vw,
            3.5rem
        );
    }

    .account-welcome > p:last-child {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .account-stars-card {
        min-width: 0;
        width: 100%;

        padding: 21px;

        border-radius: 20px;
    }

    .account-stars-icon {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        font-size: 1.25rem;
    }

    .account-stars-card strong {
        font-size: 2rem;
    }

    .account-content-container {
        gap: 18px;
    }

    .account-panel {
        padding: 25px 20px;

        border-radius: 20px;
    }

    .account-panel-heading {
        margin-bottom: 22px;
    }

    .account-panel-heading h2 {
        font-size: 1.6rem;
    }

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

    .account-profile-email {
        grid-column: auto;
    }

    .account-experience-card {
        padding: 18px;
    }

    .account-primary-action {
        width: 100%;
    }

    .account-security-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .account-small-action {
        align-self: flex-start;
    }

}