/* Auth + Account pages */
.auth-page,
.account-page {
    padding: 36px 0 80px;
    background:
        radial-gradient(circle at top right, rgba(227, 30, 36, 0.06), transparent 30%),
        linear-gradient(180deg, #f6f7f9, #fff 42%);
}

.auth-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.06);
}

.auth-side {
    padding: 36px 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(227, 30, 36, 0.35), transparent 40%),
        linear-gradient(145deg, #111, #2a2a2a);
}

.auth-eyebrow,
.account-eyebrow {
    color: #ff9ea2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.account-eyebrow {
    color: var(--hottex-red);
}

.auth-side h1,
.account-head h1 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 12px;
}

.auth-side p {
    color: #cfcfcf;
    line-height: 1.7;
    margin-bottom: 18px;
}

.auth-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.auth-side li {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.auth-side i {
    color: #ff8a8e;
    margin-top: 3px;
}

.auth-form-wrap {
    padding: 34px 30px;
}

.auth-form-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.auth-sub {
    color: #777;
    margin-bottom: 18px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-form label,
.auth-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.auth-form span,
.auth-grid span {
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.auth-form input,
.auth-grid input {
    min-height: 48px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 10px 14px;
    background: #fafafa;
}

.auth-form input:focus,
.auth-grid input:focus {
    outline: none;
    border-color: #ffb3b6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.08);
}

.auth-full {
    grid-column: 1 / -1;
}

.auth-check {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
}

.auth-submit {
    min-height: 50px;
    justify-content: center;
    margin-top: 4px;
}

.auth-switch {
    margin: 16px 0 0;
    color: #666;
    font-size: 14px;
}

.auth-switch a {
    color: var(--hottex-red);
    font-weight: 700;
    text-decoration: none;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}

.account-sidebar,
.account-panel,
.account-empty,
.account-table-wrap {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.account-sidebar {
    padding: 18px;
    position: sticky;
    top: 90px;
}

.account-user {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-weight: 800;
}

.account-user strong {
    display: block;
    font-size: 14px;
}

.account-user span {
    display: block;
    font-size: 12px;
    color: #888;
    word-break: break-all;
}

.account-sidebar nav {
    display: grid;
    gap: 6px;
}

.account-sidebar a,
.account-sidebar button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #333;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.account-sidebar a:hover,
.account-sidebar button:hover,
.account-sidebar a.active {
    background: #fff1f1;
    color: var(--hottex-red);
}

.account-sidebar em {
    margin-left: auto;
    font-style: normal;
    background: var(--hottex-red);
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 11px;
}

.account-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}

.account-head p {
    color: #666;
    margin: 0;
}

.account-back,
.account-link {
    color: var(--hottex-red);
    font-weight: 700;
    text-decoration: none;
}

.account-empty {
    text-align: center;
    padding: 60px 24px;
}

.account-empty i {
    font-size: 40px;
    color: var(--hottex-red);
    margin-bottom: 12px;
}

.account-table-wrap {
    overflow-x: auto;
}

.account-orders-list {
    display: grid;
    gap: 14px;
}

.account-order-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-order-card:hover {
    transform: translateY(-2px);
    border-color: #ffd0d2;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
    color: inherit;
}

.account-order-thumbs {
    display: flex;
    align-items: center;
}

.account-order-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ececec;
    flex-shrink: 0;
}

.account-order-thumb + .account-order-thumb {
    margin-left: -14px;
}

.account-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-order-thumb.more {
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.account-order-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.account-order-info > span {
    display: block;
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.account-order-names {
    margin-top: 6px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.account-order-meta {
    text-align: right;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.account-order-total {
    font-size: 16px;
    font-weight: 800;
}

.account-order-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: end;
}

@media (max-width: 767px) {
    .account-order-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-order-meta {
        justify-items: start;
        text-align: left;
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
    }

    .account-order-pills {
        justify-content: start;
    }
}

.account-table {
    width: 100%;
    border-collapse: collapse;
}

.account-table th,
.account-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.account-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #888;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #f3f3f3;
    color: #333;
}

.status-pending,
.pay-unpaid { background: #fff4e5; color: #b45309; }
.status-confirmed,
.status-processing { background: #e8f1ff; color: #1d4ed8; }
.status-shipped { background: #e7f8ef; color: #15803d; }
.status-completed,
.pay-paid { background: #e7f8ef; color: #166534; }
.status-cancelled,
.pay-refunded { background: #ffe8e8; color: #b91c1c; }

.order-status-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    margin-bottom: 18px;
}

.order-status-banner strong {
    display: block;
    font-size: 12px;
    color: #bbb;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.order-step {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}

.order-step span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #eee;
    font-size: 12px;
    font-weight: 800;
}

.order-step em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: #777;
}

.order-step.done,
.order-step.current {
    border-color: #ffc9cb;
    background: #fff7f7;
}

.order-step.done span,
.order-step.current span {
    background: var(--hottex-red);
    color: #fff;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.account-panel {
    padding: 20px;
}

.account-panel h2 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.order-item-row,
.order-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.order-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.order-item-image {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f6;
    border: 1px solid #ececec;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-item-row strong,
.order-total-row strong {
    display: block;
}

.order-item-row span {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.order-item-unit {
    color: #555 !important;
    font-weight: 600;
}

.order-item-row em,
.order-total-row strong {
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.order-total-row {
    border-bottom: 0;
    padding-top: 14px;
}

.account-alert {
    background: #fff1f1;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.nav-account {
    position: relative;
}

.nav-account-btn {
    border: 0;
    background: transparent;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 0 2px;
    cursor: pointer;
}

.nav-account-btn:hover,
.nav-account-btn:focus {
    color: var(--hottex-red);
}

.nav-account-menu {
    min-width: 190px;
    padding: 8px;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.nav-account-menu a,
.nav-account-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.nav-account-menu a:hover,
.nav-account-menu button:hover {
    background: #fff1f1;
    color: var(--hottex-red);
}

.checkout-auth-note {
    background: #fff7f7;
    border: 1px solid #ffd0d2;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #444;
}

.checkout-auth-note a {
    color: var(--hottex-red);
    font-weight: 700;
}

@media (max-width: 991px) {
    .auth-card,
    .account-layout,
    .order-detail-grid,
    .order-status-banner {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .order-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .auth-grid,
    .account-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: start;
    }
}
