:root {
    --oh-brand: #1f3b5b;
    --oh-brand-soft: #eef4fa;
    --oh-line: #e4eaf0;
    --oh-text: #1c2938;
    --oh-muted: #708090;
    --oh-success: #18794e;
    --oh-success-bg: #eaf8f1;
    --oh-error: #b42318;
    --oh-error-bg: #fff0ee;
    --oh-pending: #9a6700;
    --oh-pending-bg: #fff7df;
}

.order-history-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(51, 112, 173, .11), transparent 30%),
        radial-gradient(circle at 88% 92%, rgba(205, 153, 79, .10), transparent 32%),
        #f5f7fa;
    color: var(--oh-text);
    font-family: Vazir, Tahoma, sans-serif;
}

.order-history-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.order-history-header {
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid rgba(228, 234, 240, .94);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 40px rgba(28, 41, 56, .07);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.order-history-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--oh-text);
    text-decoration: none;
}

.order-history-brand strong,
.order-history-brand small {
    display: block;
}

.order-history-brand strong {
    font-size: 16px;
    font-weight: 900;
}

.order-history-brand small {
    margin-top: 2px;
    color: var(--oh-muted);
    font-size: 11px;
}

.order-history-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #1f3b5b, #315f8e);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 59, 91, .22);
}

.order-history-home {
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--oh-line);
    background: #fff;
    color: var(--oh-brand);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.order-history-home .material-icons {
    font-size: 18px;
}

.order-history-main {
    width: min(1120px, calc(100% - 32px));
    margin: 34px auto;
    flex: 1;
}

.order-history-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--oh-line);
    background: #fff;
    box-shadow: 0 22px 60px rgba(28, 41, 56, .10);
}

.order-history-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f3b5b, #4b82b6, #d5a45d);
}

.order-history-form-card {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 34px;
}

.order-history-list-card {
    padding: 30px;
}

.order-history-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.order-history-eyebrow {
    color: #3d6f9f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -.1px;
    margin-bottom: 8px;
}

.order-history-title-row h1 {
    margin: 0;
    color: var(--oh-text);
    font-size: 25px;
    line-height: 1.55;
    font-weight: 950;
}

.order-history-title-row p {
    margin: 7px 0 0;
    color: var(--oh-muted);
    font-size: 12px;
    line-height: 2;
}

.order-history-title-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--oh-brand-soft);
    color: var(--oh-brand);
    font-size: 31px;
}

.order-history-alert {
    width: min(620px, 100%);
    margin: 0 auto 16px;
    padding: 13px 15px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.9;
}

.order-history-alert .material-icons {
    font-size: 20px;
    margin-top: 2px;
}

.order-history-alert.success {
    color: var(--oh-success);
    background: var(--oh-success-bg);
    border: 1px solid #c8ead9;
}

.order-history-alert.error {
    color: var(--oh-error);
    background: var(--oh-error-bg);
    border: 1px solid #ffd4cf;
}

.order-history-input-wrap {
    margin: 9px 0 18px;
}

.order-history-input-wrap .inp {
    margin: 0 !important;
    box-sizing: border-box !important;
}

.order-history-otp-input {
    text-align: center;
    letter-spacing: 12px;
    direction: ltr;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.order-history-button {
    text-decoration: none;
}

.order-history-secondary-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.order-history-secondary-actions form {
    margin: 0;
}

.order-history-secondary-actions a,
.order-history-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #3d6f9f;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.order-history-security-note,
.order-history-once-note {
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 14px;
    background: #f6f8fb;
    border: 1px solid var(--oh-line);
    color: var(--oh-muted);
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.9;
}

.order-history-security-note .material-icons,
.order-history-once-note .material-icons {
    color: #4e769d;
    font-size: 19px;
    margin-top: 2px;
}

.order-history-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--oh-line);
    border-radius: 18px;
}

.order-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.order-history-table th {
    background: #f4f7fa;
    color: #5c6b78;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.order-history-table th,
.order-history-table td {
    padding: 15px 13px;
    text-align: right;
    border-bottom: 1px solid #edf1f5;
}

.order-history-table td {
    color: #344454;
    font-size: 12px;
    line-height: 1.8;
}

.order-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.order-history-price {
    font-weight: 900;
    white-space: nowrap;
}

.order-history-status {
    display: inline-flex;
    max-width: 360px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.8;
}

.order-history-status.is-success {
    color: var(--oh-success);
    background: var(--oh-success-bg);
}

.order-history-status.is-error {
    color: var(--oh-error);
    background: var(--oh-error-bg);
}

.order-history-status.is-pending {
    color: var(--oh-pending);
    background: var(--oh-pending-bg);
}

.order-history-empty {
    padding: 45px 20px;
    border: 1px dashed #cad5df;
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
}

.order-history-empty .material-icons {
    display: block;
    margin-bottom: 12px;
    color: #7b91a5;
    font-size: 42px;
}

.order-history-empty strong {
    display: block;
    color: #3c4e5f;
    font-size: 14px;
}

.order-history-empty p {
    margin: 8px 0 0;
    color: var(--oh-muted);
    font-size: 11px;
}

.order-history-list-card > .order-history-button {
    margin-top: 18px;
}

.order-history-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 18px;
    color: #7a8793;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 10px;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .order-history-header,
    .order-history-main,
    .order-history-footer {
        width: min(100% - 20px, 1120px);
    }

    .order-history-header {
        margin-top: 10px;
    }

    .order-history-main {
        margin: 20px auto;
    }

    .order-history-form-card,
    .order-history-list-card {
        padding: 23px 15px;
        border-radius: 22px;
    }

    .order-history-title-row h1 {
        font-size: 20px;
    }

    .order-history-title-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 27px;
    }

    .order-history-table-wrap {
        overflow: visible;
        border: 0;
    }

    .order-history-table,
    .order-history-table tbody,
    .order-history-table tr,
    .order-history-table td {
        display: block;
        width: 100%;
    }

    .order-history-table thead {
        display: none;
    }

    .order-history-table tr {
        margin-bottom: 12px;
        padding: 7px 13px;
        border: 1px solid var(--oh-line);
        border-radius: 16px;
        background: #fff;
        box-sizing: border-box;
    }

    .order-history-table td {
        min-height: 42px;
        padding: 10px 0;
        border-bottom: 1px dashed #e6ebef;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        text-align: left;
    }

    .order-history-table td::before {
        content: attr(data-label);
        color: #758391;
        font-size: 10px;
        font-weight: 900;
        white-space: nowrap;
        text-align: right;
    }

    .order-history-table td:last-child {
        border-bottom: 0;
    }

    .order-history-status {
        text-align: right;
    }

    .order-history-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 460px) {
    .order-history-home {
        width: 40px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .order-history-brand strong {
        max-width: 185px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .order-history-title-row {
        gap: 12px;
    }
}
