/* ============================================================
   ACCOUNT PAGE
============================================================ */

.account-page {
    background: #fff;
}


.account-container {
    width: min(1150px, calc(100% - 40px));
    margin: 0 auto;
}



/* ============================================================
   HEADING
============================================================ */

.account-heading {
    padding: 75px 0 50px;

    border-bottom: 1px solid #eee;
}


.account-heading .eyebrow {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .16em;

    color: #777;
}


.account-heading h1 {
    margin: 0;

    font-size: clamp(45px, 6vw, 72px);

    line-height: .95;

    letter-spacing: -.06em;
}


.account-heading p {
    margin: 20px 0 0;

    font-size: 13px;

    color: #777;
}



/* ============================================================
   SECTION
============================================================ */

.account-section {
    padding: 60px 0 100px;
}


.account-layout {
    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    gap: 60px;

    align-items: start;
}



/* ============================================================
   SIDEBAR
============================================================ */

.account-sidebar {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.account-nav,
.account-shop-link {
    width: 100%;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 14px;

    border: 0;

    background: transparent;

    color: #777;

    text-align: left;

    text-decoration: none;

    font-family: inherit;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}


.account-nav svg,
.account-shop-link svg {
    width: 16px;
}


.account-nav:hover,
.account-nav.active,
.account-shop-link:hover {
    background: #f5f5f3;
    color: #111;
}


.account-shop-link {
    margin-top: 20px;

    border-top: 1px solid #eee;

    padding-top: 22px;
}



/* ============================================================
   PANELS
============================================================ */

.account-panel {
    display: none;
}


.account-panel.active {
    display: block;
}


.panel-heading {
    display: flex;

    justify-content: space-between;

    margin-bottom: 30px;
}


.panel-heading span {
    display: block;

    margin-bottom: 8px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .15em;

    color: #999;
}


.panel-heading h2 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -.04em;
}



/* ============================================================
   STATS
============================================================ */

.account-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-bottom: 20px;
}


.account-stats > div {
    padding: 25px;

    background: #f6f6f3;
}


.account-stats span {
    display: block;

    margin-bottom: 12px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;

    color: #888;
}


.account-stats strong {
    font-size: 22px;
}



/* ============================================================
   CALLOUT
============================================================ */

.account-callout {
    display: flex;

    gap: 15px;

    padding: 25px;

    border: 1px solid #eee;
}


.callout-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    background: #111;
    color: #fff;
}


.callout-icon svg {
    width: 17px;
}


.account-callout strong {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
}


.account-callout p {
    margin: 0;

    font-size: 10px;

    line-height: 1.6;

    color: #777;
}



/* ============================================================
   ORDERS
============================================================ */

.orders-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.order-history-item {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 20px;

    padding: 22px;

    border: 1px solid #eee;
}


.order-history-number {
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 900;
}


.order-history-date {
    font-size: 9px;
    color: #888;
}


.order-history-right {
    display: flex;

    align-items: center;

    gap: 20px;
}


.order-history-total {
    font-size: 13px;
    font-weight: 900;
}


.order-history-status {
    padding: 7px 9px;

    background: #f5f5f3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.no-orders {
    padding: 60px 20px;

    text-align: center;

    border: 1px solid #eee;
}


.no-orders svg {
    width: 25px;

    margin-bottom: 15px;
}


.no-orders h3 {
    margin: 0 0 8px;

    font-size: 17px;
}


.no-orders p {
    margin: 0 0 20px;

    font-size: 10px;

    color: #777;
}


.no-orders a {
    display: inline-flex;

    padding: 12px 18px;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}



/* ============================================================
   DETAILS
============================================================ */

.details-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.details-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.details-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.details-field label {
    font-size: 9px;

    font-weight: 800;

    letter-spacing: .05em;
}


.details-field input {
    width: 100%;

    box-sizing: border-box;

    height: 46px;

    padding: 0 13px;

    border: 1px solid #ddd;

    font-family: inherit;

    font-size: 12px;

    outline: none;
}


.details-field input:focus {
    border-color: #111;
}


.save-details-button {
    align-self: flex-start;

    height: 48px;

    padding: 0 25px;

    border: 0;

    background: #111;

    color: #fff;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;
}



/* ============================================================
   PHASE 2 NOTE
============================================================ */

.phase-two-note {
    display: flex;

    gap: 10px;

    margin-top: 25px;

    padding: 15px;

    background: #f6f6f3;
}


.phase-two-note svg {
    width: 15px;

    flex: 0 0 auto;
}


.phase-two-note p {
    margin: 0;

    font-size: 9px;

    line-height: 1.6;

    color: #777;
}



/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {

    .account-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .account-sidebar {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);
    }


    .account-shop-link {
        grid-column: 1 / -1;

        margin-top: 10px;
    }

}


@media (max-width: 600px) {

    .account-container {
        width: min(100% - 30px, 1150px);
    }


    .account-heading {
        padding: 55px 0 40px;
    }


    .account-section {
        padding: 40px 0 70px;
    }


    .account-sidebar {
        grid-template-columns: 1fr;
    }


    .account-stats,
    .details-row {
        grid-template-columns: 1fr;
    }


    .order-history-item {
        grid-template-columns: 1fr;
    }


    .order-history-right {
        justify-content: space-between;
    }


    .auth-gate {
        padding: 26px 22px;
    }

}

/* ============================================================
   AUTH GATE (sign in / create account)
============================================================ */

.auth-gate {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}


.google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 12px 16px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);

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

.google-signin-button:hover {
    background: var(--light);
    border-color: var(--muted);
}


.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 20px 0;

    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}


.auth-tabs {
    display: flex;
    gap: 8px;
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
}


.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: calc(var(--radius-sm) - 4px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}


.auth-tab.active {
    background: var(--dark);
    color: var(--white);
}


.auth-form[hidden] {
    display: none;
}


.auth-error {
    background: #fdeaea;
    border: 1px solid #f3c6c6;
    color: #b42323;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}


.auth-note {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}


.auth-note a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
}


@media (max-width: 600px) {

    .auth-gate {
        padding: 28px 22px;
    }

}
