@font-face {
    font-family: 'BYekan';
    src: url('../../../Plugins/fonts/BYekan.ttf') format('truetype');
    font-display: swap;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: #172033; background: radial-gradient(circle at 12% 8%, #dfe8ff 0, transparent 30%), radial-gradient(circle at 88% 88%, #d9faf2 0, transparent 28%), #f6f8fc; font-family: BYekan, Tahoma, sans-serif; }
button, input { font: inherit; }
.rounding-page { width: min(100% - 32px, 920px); margin: 0 auto; padding: 28px 0 52px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Arial, sans-serif; font-size: 16px; }
.brand small { margin-top: 3px; color: #64748b; font-size: 13px; }
.language-toggle, .copy-button { border: 1px solid #d8deeb; border-radius: 999px; background: rgba(255, 255, 255, .82); color: #475569; cursor: pointer; padding: 8px 14px; font-size: 13px; font-weight: bold; transition: .18s ease; }
.language-toggle:hover, .copy-button:not(:disabled):hover { border-color: #818cf8; color: #4f46e5; }
.rounding-card { max-width: 760px; margin: 0 auto; padding: clamp(26px, 6vw, 54px); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: 0 24px 70px rgba(49, 65, 114, .14); }
.eyebrow { margin: 0 0 7px; color: #5b5ce2; direction: ltr; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; letter-spacing: .13em; }
h1 { margin: 0; color: #172033; font-size: clamp(30px, 5vw, 47px); line-height: 1.25; }
.intro { max-width: 570px; margin: 16px 0 34px; color: #64748b; font-size: 17px; line-height: 2; }
label { display: block; margin-bottom: 9px; color: #334155; font-size: 15px; font-weight: bold; }
.input-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; height: 57px; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #172033; direction: ltr; padding: 0 17px; font-family: Arial, sans-serif; font-size: 19px; font-weight: bold; outline: none; transition: .18s ease; }
input:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.13); }
.input-row button { flex: 0 0 auto; height: 57px; border: 0; border-radius: 14px; background: #4f46e5; color: #fff; cursor: pointer; padding: 0 22px; font-size: 15px; font-weight: bold; transition: .18s ease; }
.input-row button:hover { background: #4338ca; transform: translateY(-1px); }
.input-help, .validation-message, .copy-message { min-height: 22px; margin: 8px 2px 0; color: #718096; font-size: 13px; }
.validation-message { color: #dc2626; }
.result-panel { position: relative; margin-top: 30px; padding: 22px 24px; overflow: hidden; border: 1px solid #c7d2fe; border-radius: 18px; background: linear-gradient(135deg, #eef2ff, #f8faff); }
.result-panel > p:first-child { margin: 0; color: #4f46e5; font-size: 14px; font-weight: bold; }
output { display: block; margin-top: 6px; direction: ltr; color: #172033; font-family: Arial, sans-serif; font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: .025em; text-align: left; }
.copy-button { margin-top: 14px; }
.copy-button:disabled { cursor: not-allowed; opacity: .48; }
.copy-message { margin-bottom: 0; color: #047857; }
.rule-details { margin-top: 28px; border-top: 1px solid #e2e8f0; padding-top: 18px; color: #475569; }
.rule-details summary { cursor: pointer; color: #334155; font-weight: bold; }
.rule-details ul { margin: 14px 0 0; padding-right: 22px; line-height: 2; }
html[dir="ltr"] .brand small, html[dir="ltr"] .intro, html[dir="ltr"] .rule-details { font-family: Arial, sans-serif; }
html[dir="ltr"] .rule-details ul { padding-left: 22px; padding-right: 0; }
@media (max-width: 560px) { .rounding-page { width: min(100% - 20px, 920px); padding-top: 18px; } .site-header { margin-bottom: 25px; } .brand small { display: none; } .rounding-card { border-radius: 22px; } .input-row { display: block; } .input-row button { width: 100%; margin-top: 10px; } }
