.not-found-page { min-height: calc(100vh - 72px); padding: 70px 15px 85px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top, rgba(55, 179, 108, .07), transparent 32%), #f6f7f8; direction: rtl; }
.not-found-container { width: min(100%, 620px); }
.not-found-card { position: relative; padding: 48px 38px 30px; text-align: center; background: #fff; border: 1px solid #e4e9e7; border-radius: 29px; box-shadow: 0 22px 65px rgba(17, 24, 32, .08); overflow: hidden; }
.not-found-card:before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: #37b36c; }
.not-found-icon { width: 82px; height: 82px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 25px; background: #edf9f2; color: #37b36c; font-size: 1.75rem; box-shadow: 0 12px 28px rgba(55, 179, 108, .1); }
.not-found-code { display: inline-block; margin-bottom: 6px; color: #37b36c; font-size: .72rem; font-weight: 850; }
.not-found-card h1 { margin: 0 0 11px; color: #17202a; font-size: 1.8rem; font-weight: 900; line-height: 1.5; }
.not-found-card>p { max-width: 470px; margin: 0 auto 25px; color: #7a838a; font-size: .8rem; line-height: 2.05; }
.not-found-actions { display: flex; flex-direction: column; gap: 9px; }
.not-found-primary, .not-found-secondary { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; text-decoration: none; font-size: .77rem; font-weight: 850; transition: .2s ease; }
.not-found-primary { background: #37b36c; color: #fff; box-shadow: 0 10px 23px rgba(55, 179, 108, .16); }
.not-found-primary:hover { background: #2fa261; color: #fff; transform: translateY(-1px); }
.not-found-secondary { background: #f1f3f4; color: #56616a; border: 1px solid #e3e7e8; }
.not-found-secondary:hover { background: #e8ebed; color: #273139; }
.not-found-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 19px; margin-top: 21px; padding-top: 19px; border-top: 1px solid #edf0f1; }
.not-found-links a { display: inline-flex; align-items: center; gap: 6px; color: #8b9399; text-decoration: none; font-size: .62rem; }
.not-found-links a:hover { color: #278b52; }
.not-found-links i { color: #37b36c; font-size: .6rem; }

html.dark-theme .not-found-page { background: radial-gradient(circle at top, rgba(55, 179, 108, 0.07), transparent 32%), #070a14; }
html.dark-theme .not-found-card { background: #131b2f; border-color: #273554; box-shadow: 0 22px 65px rgba(0, 0, 0, 0.4); }
html.dark-theme .not-found-icon { background: rgba(55, 179, 108, 0.15); color: #64cf91; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }
html.dark-theme .not-found-code { color: #64cf91; }
html.dark-theme .not-found-card h1 { color: #f1f5f9; }
html.dark-theme .not-found-card>p { color: #94a3b8; }
html.dark-theme .not-found-secondary { background: #1a233a; color: #cbd5e1; border-color: #273554; }
html.dark-theme .not-found-secondary:hover { background: #273554; color: #f1f5f9; }
html.dark-theme .not-found-links { border-top-color: #273554; }
html.dark-theme .not-found-links a { color: #94a3b8; }
html.dark-theme .not-found-links a:hover { color: #64cf91; }
html.dark-theme .not-found-links i { color: #64cf91; }

@media(max-width:600px) {
.not-found-page { min-height: calc(100vh - 64px); padding: 38px 11px 58px; }
.not-found-card { padding: 37px 20px 25px; border-radius: 23px; }
.not-found-icon { width: 69px; height: 69px; border-radius: 21px; font-size: 1.45rem; }
.not-found-card h1 { font-size: 1.45rem; }
.not-found-card>p { font-size: .71rem; line-height: 2; }
.not-found-primary, .not-found-secondary { min-height: 49px; font-size: .73rem; }
.not-found-links { gap: 8px 13px; }
.not-found-links a { font-size: .57rem; }
}

@media(max-width:380px) {
.not-found-card { padding-inline: 15px; }
.not-found-card h1 { font-size: 1.3rem; }
.not-found-card>p { font-size: .66rem; }
.not-found-links a { font-size: .54rem; }
}