@font-face {
    font-family: 'Sahel';
    font-display: swap;
    src: url('/fonts/Sahel-FD.woff2') format('woff2'), url('/fonts/Sahel-FD.woff') format('woff');
}

@font-face {
    font-family: 'Vazirmatn-ExtraBold';
    font-display: swap;
    src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'), url('/fonts/Vazirmatn-ExtraBold.woff') format('woff');
}

@font-face {
    font-family: 'digital-7';
    font-display: swap;
    src: url('/fonts/digital-7.woff2') format('woff2');
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: 'Sahel', sans-serif;
    font-size: 18px;
    line-height: 30px;
    text-align: justify;
    overflow-x: hidden;
    direction: rtl;
    color: #f7f1e5;
    background: linear-gradient(rgba(24, 24, 24, 0.9), rgba(24, 24, 24, 0.94)), linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.045) 75%), linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.045) 75%);
    background-size: auto, 26px 26px, 26px 26px;
    background-position: 0 0, 0 0, 13px 13px;
}

a {
    color: inherit;
}

h1 {
    font-family: 'Vazirmatn-ExtraBold', sans-serif;
    font-size: 48px;
}

.page-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 28px 14px 32px;
    box-sizing: border-box;
}

.price-page {
    text-align: center;
}

.hero {
    margin-bottom: 18px;
}

.brand-title {
    margin: 18px 0 10px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.hero-copy {
    margin: 0;
    color: #ece7dc;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 700;
}

.hero-actions {
    margin-top: 14px;
}

.action-link {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 239, 140, 0.75);
    border-radius: 999px;
    text-decoration: none;
    color: #fff0a2;
    font-size: 0.95rem;
}

.board {
    margin: 20px auto 14px;
    padding: 18px 14px 14px;
    background: #040404;
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-table th,
.price-table td {
    padding: 10px 4px;
    border: 0;
}

.price-head {
    color: #efe32a;
    font-size: 1.0rem;
    font-weight: 700;
}

.title-head {
    width: 32%;
}

.price-cell {
    font-family: 'digital-7', sans-serif;
    font-size: 40px;
    font-weight: bold;
    vertical-align: middle !important;
}
.price-cell,
.price-value,
.price-input,
.phone {
    direction: ltr;
    unicode-bidi: embed;
}

.buy-cell,
.sell-cell {
    width: 34%;
}

.item-title {
    color: #efe32a;
    font-size: 1.0rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-value {
    display: inline-block;
    min-width: 100%;
    color: #ff2a18;
    font-size: 1.95rem;
    font-weight: 700;
}

.price-input {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff2a18;
    text-align: center;
    font-size: 1.95rem;
    font-weight: 700;
    font-family: inherit;
}

.price-input:focus {
    outline: none;
    box-shadow: inset 0 -2px 0 rgba(239, 227, 42, 0.6);
}

.price-input.save-ok {
    color: #ffe847;
}

.price-input.save-err {
    color: #ff8d7b;
}

.datetime-cell {
    padding-top: 18px;
    color: #e9e1d6;
    font-size: 1.05rem;
    white-space: nowrap;
}

.contact-block {
    margin-top: 16px;
}

.address {
    margin: 0 0 12px;
    color: #f3eee8;
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 700;
}

.phone {
    display: block;
    text-decoration: none;
    color: #fff8ec;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.35;
}

.copyright-block {
    margin-top: 20px;
    padding: 8px 10px 0;
}

.copyright-line {
    font-family:Arial, Helvetica, sans-serif;
    display: block;
    color: rgba(226, 219, 205, 0.56);
    font-size: 0.72rem;
    line-height: 1.6;
    letter-spacing: 0.35px;
    direction: ltr;
}

.hidden-login-trigger {
    color: rgba(226, 219, 205, 1);
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.login-page {
    width: min(100%, 390px);
    margin: 40px auto 0;
    padding: 22px 18px 20px;
    background: rgba(3, 3, 3, 0.94);
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.login-title {
    margin: 0 0 18px;
    text-align: center;
    color: #fff;
    font-size: 1.75rem;
}

.login-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(186, 35, 26, 0.25);
    color: #ffd7d2;
    text-align: center;
    font-size: 0.95rem;
}

.login-form {
    display: grid;
    gap: 14px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #efe32a;
    font-size: 0.98rem;
    font-weight: 700;
}

.text-field {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(239, 227, 42, 0.24);
    border-radius: 14px;
    background: #111111;
    color: #fff;
    font: inherit;
}

.text-field:focus {
    outline: none;
    border-color: rgba(239, 227, 42, 0.72);
    box-shadow: 0 0 0 3px rgba(239, 227, 42, 0.13);
}

.submit-button {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 14px;
    background: #efe32a;
    color: #171717;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 430px) {
    .page-shell {
        padding: 22px 12px 28px;
    }

    .brand-title {
        font-size: 2.55rem;
    }

    .hero-copy,
    .address {
        font-size: 0.92rem;
    }

    .price-head,
    .item-title,
    .price-value,
    .price-input {
        font-size: 1.55rem;
    }

    .phone {
        font-size: 1.45rem;
    }

    .datetime-cell {
        font-size: 0.95rem;
    }
}
