/* =========================================================
   DEOMALI MIST - MY ORDERS
   Matches the existing Track Order visual language
   ========================================================= */

:root {
    --bg: #0d0a07;
    --bg-soft: #120e0a;
    --card: rgba(255,255,255,.018);
    --gold: #c4a05a;
    --gold-light: #d4b66f;
    --cream: #f2e8d8;
    --muted: rgba(242,232,216,.52);
    --muted-strong: rgba(242,232,216,.68);
    --line: rgba(196,160,90,.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(196,160,90,.055), transparent 34%),
        var(--bg);
    color: var(--cream);
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
}

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

button,
input {
    font: inherit;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.dm-nav {
    min-height: 78px;
    padding: 0 4.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: rgba(8,6,4,.96);
    border-bottom: 1px solid rgba(196,160,90,.12);

    position: sticky;
    top: 0;
    z-index: 100;
}

.dm-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 230px;
}

.dm-brand-mark {
    color: #2e8a68;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-2px);
}

.dm-brand-text {
    display: flex;
    flex-direction: column;
}

.dm-brand-name {
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 17px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dm-brand-sub {
    margin-top: 5px;
    color: rgba(196,160,90,.48);
    font-size: 8px;
    letter-spacing: .22em;
}

.dm-nav-links {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    list-style: none;
}

.dm-nav-links a {
    color: rgba(242,232,216,.57);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .17em;
    transition: .2s ease;
}

.dm-nav-links a:hover,
.dm-nav-links a.active {
    color: var(--gold);
}

.dm-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 230px;
    justify-content: flex-end;
}

.sign-in {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .08em;
}

.theme-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(196,160,90,.22);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    font-size: 20px;
}

.cart-btn {
    min-width: 108px;
    padding: 13px 18px;
    border: 1px solid rgba(196,160,90,.22);
    color: var(--cream);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .17em;
    text-align: center;
}

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

.orders-page {
    min-height: calc(100vh - 78px);
    padding: 70px 0 90px;
}

.orders-login,
.history-page {
    width: min(1080px, calc(100% - 42px));
    margin: 0 auto;
}

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

.orders-heading,
.history-top {
    text-align: left;
}

.orders-eyebrow {
    margin: 0 0 17px;
    display: flex;
    align-items: center;
    gap: 14px;

    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.orders-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.orders-heading h1,
.history-top h1 {
    margin: 0;
    color: var(--cream);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: .95;
}

.orders-heading h1 em,
.history-top h1 em {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.orders-gold-line {
    width: 42px;
    height: 2px;
    margin-top: 28px;
    background: var(--gold);
}

.orders-intro {
    margin: 28px 0 45px;
    color: rgba(242,232,216,.54);
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.8;
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.orders-login-card {
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
    padding: 38px 42px 42px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.026),
            rgba(255,255,255,.009)
        );
}

.orders-login-card label {
    display: block;
    margin-bottom: 11px;

    color: rgba(196,160,90,.72);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .18em;
}

.orders-login-card input {
    width: 100%;
    height: 58px;
    padding: 0 17px;

    border: 1px solid rgba(196,160,90,.38);
    outline: none;

    background: rgba(255,255,255,.035);
    color: var(--cream);

    font-size: 15px;
}

.orders-login-card input::placeholder {
    color: rgba(242,232,216,.27);
}

.orders-login-card input:focus {
    border-color: rgba(196,160,90,.72);
}

.field-help {
    margin: 11px 0 24px;
    color: rgba(242,232,216,.39);
    font-size: 11px;
    line-height: 1.7;
}

.orders-error {
    margin: 0 0 18px;
    padding: 12px 14px;

    border: 1px solid rgba(196,100,80,.32);
    background: rgba(120,40,30,.08);

    color: #d7a596;
    font-size: 12px;
    line-height: 1.5;
}

.gold-button {
    width: 100%;
    height: 52px;
    border: none;

    background: var(--gold);
    color: #111;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;

    cursor: pointer;
    transition: .2s ease;
}

.gold-button span {
    margin-left: 7px;
    font-size: 15px;
}

.gold-button:hover {
    background: var(--gold-light);
}

.or-divider {
    margin: 26px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(196,160,90,.35);
    font-size: 9px;
    letter-spacing: .2em;
}

.or-divider::before,
.or-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(196,160,90,.13);
}

.track-specific {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid rgba(196,160,90,.15);

    color: rgba(196,160,90,.72);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .16em;

    transition: .2s ease;
}

.track-specific:hover {
    border-color: rgba(196,160,90,.4);
    color: var(--gold);
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */

.orders-feature-grid {
    width: 590px;
    max-width: 100%;
    margin: 32px auto 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-card {
    min-height: 104px;
    padding: 20px 22px;

    display: flex;
    gap: 17px;

    border: 1px solid rgba(196,160,90,.14);
    background: rgba(255,255,255,.012);
}

.feature-icon {
    width: 26px;
    color: var(--gold);
    font-size: 18px;
}

.feature-card h3 {
    margin: 0 0 7px;
    color: rgba(242,232,216,.86);
    font-size: 13px;
    font-weight: 400;
}

.feature-card p {
    margin: 0;
    color: rgba(242,232,216,.45);
    font-size: 11px;
    line-height: 1.65;
}

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

.history-page {
    width: min(1200px, calc(100% - 50px));
}

.history-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.history-welcome {
    margin: 24px 0 0;
    color: rgba(242,232,216,.48);
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;
}

.history-welcome strong {
    color: var(--gold);
    font-weight: 400;
}

.history-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.outline-button {
    padding: 13px 17px;
    border: 1px solid rgba(196,160,90,.24);
    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .15em;
    transition: .2s ease;
}

.outline-button:hover {
    border-color: rgba(196,160,90,.6);
}

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

.history-summary {
    margin: 42px 0 25px;
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    border: 1px solid rgba(196,160,90,.13);
    background: rgba(255,255,255,.012);
}

.history-summary > div {
    padding: 19px 22px;
    border-right: 1px solid rgba(196,160,90,.1);
}

.history-summary > div:last-child {
    border-right: none;
}

.summary-label {
    display: block;
    margin-bottom: 7px;
    color: rgba(196,160,90,.55);
    font-size: 8px;
    letter-spacing: .18em;
}

.history-summary strong {
    display: block;
    color: rgba(242,232,216,.82);
    font-size: 13px;
    font-weight: 400;
    word-break: break-word;
}

/* =========================================================
   ORDER CARD
   ========================================================= */

.order-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-card {
    border: 1px solid rgba(196,160,90,.18);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );
}

.order-card-header {
    padding: 28px 32px 24px;

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

    border-bottom: 1px solid rgba(196,160,90,.12);
}

.order-number {
    margin: 0 0 8px;

    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    letter-spacing: .08em;
}

.order-date {
    margin: 0;
    color: rgba(242,232,216,.46);
    font-size: 12px;
}

.order-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 11px;
}

.status-badge {
    padding: 7px 12px;
    border: 1px solid rgba(196,160,90,.35);
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.order-total {
    color: var(--cream);
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
}

.order-card-body {
    padding: 30px 32px 34px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 45px;
}

.section-label {
    margin-bottom: 18px;
    color: rgba(196,160,90,.66);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .22em;
}

.item-list {
    border-top: 1px solid rgba(196,160,90,.1);
}

.order-item {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(196,160,90,.08);
}

.order-item h3 {
    margin: 0 0 5px;
    color: rgba(242,232,216,.82);
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 400;
}

.order-item p {
    margin: 0;
    color: rgba(242,232,216,.4);
    font-size: 11px;
}

.order-item > strong {
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.muted {
    color: rgba(242,232,216,.42);
    font-size: 12px;
}

.order-meta-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.order-meta-grid > div {
    padding-top: 15px;
    border-top: 1px solid rgba(196,160,90,.1);
}

.order-meta-grid span {
    display: block;
    margin-bottom: 7px;
    color: rgba(196,160,90,.55);
    font-size: 8px;
    letter-spacing: .17em;
}

.order-meta-grid strong {
    display: block;
    color: rgba(242,232,216,.64);
    font-size: 11px;
    line-height: 1.65;
    font-weight: 300;
}

/* =========================================================
   MINI TIMELINE
   ========================================================= */

.order-status-column {
    padding-left: 8px;
}

.mini-timeline {
    position: relative;
    padding-left: 35px;
}

.mini-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 9px;
    left: 6px;
    width: 1px;
    background: rgba(196,160,90,.17);
}

.timeline-step {
    position: relative;
    min-height: 76px;
    padding-bottom: 18px;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 1px;

    width: 14px;
    height: 14px;
    border-radius: 50%;

    border: 2px solid rgba(196,160,90,.35);
    background: var(--bg);
}

.timeline-step.done .timeline-dot {
    border-color: var(--gold);
    background: var(--gold);
}

.timeline-step.current .timeline-dot {
    width: 17px;
    height: 17px;
    left: -36.5px;
    top: -1px;
    border-color: var(--gold);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(196,160,90,.08);
}

.timeline-content strong {
    display: block;
    color: rgba(242,232,216,.38);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.timeline-step.done .timeline-content strong,
.timeline-step.current .timeline-content strong {
    color: var(--gold);
}

.timeline-step.current .timeline-content strong {
    color: var(--cream);
}

.timeline-content p {
    margin: 6px 0 4px;
    color: rgba(242,232,216,.43);
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
}

.timeline-content small {
    color: rgba(196,160,90,.66);
    font-size: 9px;
}

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

.dm-footer {
    padding: 70px 4%;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;

    background: #080604;
    border-top: 1px solid rgba(196,160,90,.08);
}

.footer-brand h2 {
    margin: 0 0 9px;
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 21px;
    letter-spacing: .16em;
}

.footer-brand p {
    margin: 0 0 24px;
    color: rgba(196,160,90,.45);
    font-size: 8px;
    letter-spacing: .2em;
}

.footer-brand span {
    display: block;
    max-width: 480px;
    color: rgba(242,232,216,.42);
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
}

.footer-column h4 {
    margin: 0 0 22px;
    color: rgba(196,160,90,.48);
    font-size: 9px;
    letter-spacing: .2em;
}

.footer-column a {
    display: block;
    margin-bottom: 14px;
    color: rgba(242,232,216,.35);
    font-size: 10px;
    letter-spacing: .12em;
}

.footer-column a:hover {
    color: var(--gold);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .dm-nav-links {
        gap: 18px;
    }

    .dm-brand,
    .dm-nav-right {
        min-width: auto;
    }

    .order-card-body {
        grid-template-columns: 1fr;
    }

    .order-status-column {
        padding-left: 0;
    }
}

@media (max-width: 820px) {

    .dm-nav {
        min-height: auto;
        padding: 18px 20px;
        flex-wrap: wrap;
    }

    .dm-nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    .dm-nav-right {
        margin-left: auto;
    }

    .history-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-actions {
        justify-content: flex-start;
    }

    .history-summary {
        grid-template-columns: 1fr;
    }

    .history-summary > div {
        border-right: none;
        border-bottom: 1px solid rgba(196,160,90,.1);
    }

    .history-summary > div:last-child {
        border-bottom: none;
    }

    .dm-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .orders-page {
        padding-top: 45px;
    }

    .orders-login,
    .history-page {
        width: min(100% - 28px, 1200px);
    }

    .orders-login-card {
        padding: 27px 22px 30px;
    }

    .orders-feature-grid {
        grid-template-columns: 1fr;
    }

    .order-card-header {
        padding: 23px 20px;
        flex-direction: column;
    }

    .order-header-right {
        align-items: flex-start;
    }

    .order-card-body {
        padding: 25px 20px;
    }

    .order-meta-grid {
        grid-template-columns: 1fr;
    }

    .dm-nav-right .sign-in {
        display: none;
    }

    .dm-footer {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
