@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    font-family: Vazirmatn, Tahoma, sans-serif;
    color-scheme: light;
}

body { margin: 0; font-size: 15px; line-height: 1.75; }
button, input, textarea, select { font: inherit; }

.payment-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 75% 0%, #dff4ef 0%, transparent 46%), #f3f6fa;
    color: #152c37;
    display: grid;
    justify-items: center;
    align-content: start;
    padding: clamp(2rem, 10vh, 6rem) 16px 32px;
    box-sizing: border-box;
}

.payment-panel {
    box-sizing: border-box;
    width: min(100%, 29rem);
    padding: clamp(22px, 6vw, 34px);
    background: #fff;
    border: 1px solid #dbe7e7;
    border-radius: 24px;
    box-shadow: 0 16px 50px #163e3810;
}

.payment-brand { margin: 0 0 5px; color: #30625b; font-size: .87rem; font-weight: 600; }
.payment-panel h1 { margin: 0 0 20px; font-weight: 800; font-size: clamp(1.38rem, 5vw, 1.75rem); }
.payment-summary { margin: 0; padding: 12px 15px; border: 1px solid #e1efeb; background: #f5faf8; border-radius: 16px; }
.payment-summary div { display: flex; flex-wrap: wrap; gap: 3px 14px; justify-content: space-between; align-items: baseline; padding: 7px 0; }
.payment-summary div + div { border-top: 1px solid #e1efeb; }
.payment-summary dt { color: #425c65; }
.payment-summary dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.payment-summary .amount dd { color: #096056; font-size: 1.3rem; font-weight: 800; }
.payment-summary .amount span { font-size: .85rem; font-weight: 600; }
.payment-test { color: #79480d; margin: 10px 0 0; font-size: .88rem; }
.payment-message { margin: 16px 0; color: #36535c; }
.payment-message.success { color: #096056; }
.payment-actions { display: grid; gap: 9px; margin-top: 18px; }
.payment-button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #0b6255;
    border-radius: 12px;
    background: #0b6255;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.payment-button:hover { background: #095348; }
.payment-button.back { color: #13564c; background: #fff; border-color: #bfd8d2; }
.payment-button.back:hover { background: #eff8f5; }
.payment-button:focus-visible { outline: 3px solid #1c67ad; outline-offset: 3px; }
