body{
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-family:Arial, Helvetica, sans-serif;
    background:linear-gradient(135deg,#7b0000,#c1121f,#e63946);
    padding:20px;
    box-sizing:border-box;
}
.card{
    background:#fff;
    width:420px;
    max-width:95%;
    padding:42px;
    padding-top:80px;
    margin:0 0 18px;
    border-radius:20px;
    box-shadow:0 25px 50px rgba(0,0,0,0.30);
    text-align:center;
    position:relative;
}
.site-footer{
    color:#fff !important;
    position:fixed;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    padding:0 !important;
    white-space:nowrap;
    z-index:20;
}
.logo{
    margin:12px 0 18px;
}
.logo img{
    max-width:240px;
    width:100%;
    height:auto;
    filter:drop-shadow(0 5px 8px rgba(0,0,0,0.20));
}
.top-tools{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
    gap:8px;
    position:absolute;
    top:22px;
    left:24px;
    right:24px;
    margin:0;
}
.top-tools-center{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1 1 auto;
}
.download-top-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    height:44px;
    padding:0 14px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
    color:#8a0f14;
    text-decoration:none;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    box-shadow:0 0 0 1px rgba(0,0,0,0.08);
}
.download-top-link:hover{
    background:#f9fafb;
}
.lang-form{
    margin:0;
    display:inline-flex;
    align-items:center;
}
.lang-select{
    background:#fff;
    color:#8a0f14;
    border:1px solid #ddd;
    border-radius:10px;
    padding:8px 10px;
    font-weight:700;
    cursor:pointer;
    min-width:72px;
}
.lang-form{position:relative}
.lang-picker{position:relative}
.lang-picker-summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:38px;background:#fff;color:#8a0f14;border:1px solid #ddd;border-radius:10px;padding:8px 8px;font-weight:700;cursor:pointer;min-width:62px;box-shadow:0 0 0 1px rgba(0,0,0,0.08)}
.top-tools .theme-toggle-btn,
.top-tools .lang-picker-summary{
    height:44px;
    min-height:44px;
    border-radius:12px;
}
.top-tools .theme-toggle-btn{
    min-width:88px;
    justify-content:center;
    padding-top:0;
    padding-bottom:0;
}
.top-tools .lang-picker-summary{
    justify-content:center;
    min-width:62px;
    padding-top:0;
    padding-bottom:0;
}
body.theme-dark .download-top-link{
    background:#111827 !important;
    color:#e5e7eb !important;
    border-color:#e5e7eb !important;
    box-shadow:0 0 0 1px rgba(148,163,184,.28) !important;
}
.lang-picker-summary::-webkit-details-marker{display:none}
.lang-current{display:flex;align-items:center;gap:6px;line-height:1}
.lang-flag-img{width:18px;height:18px;border-radius:999px;object-fit:cover;flex:0 0 18px;box-shadow:0 0 0 1px rgba(0,0,0,0.08)}
.lang-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(420px,calc(100vw - 24px));min-width:280px;max-height:min(360px,70vh);overflow:auto;padding:8px;border-radius:12px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 12px 28px rgba(0,0,0,0.18);z-index:2000;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.lang-option{display:flex;align-items:center;gap:8px;width:100%;background:#fff;color:#8a0f14;border:none;border-radius:10px;padding:8px 10px;min-height:40px;font-weight:700;cursor:pointer;text-align:left}
.lang-option:hover{background:#fef2f2}
@media (min-width:900px){.lang-menu{width:min(540px,calc(100vw - 24px));min-width:340px;grid-template-columns:repeat(3,minmax(0,1fr))}}
h3{
    margin:6px 0 18px;
    color:#8a0f14;
    text-align:center;
}
input{
    width:100%;
    padding:12px;
    margin:10px 0;
    border-radius:10px;
    border:1px solid #ddd;
    font-size:14px;
    box-sizing:border-box;
}
input:focus{
    outline:none;
    border-color:#e63946;
}
button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#e52d27;
    color:#fff;
    font-size:15px;
    cursor:pointer;
    transition:0.3s;
    margin-top:6px;
}
button:hover{
    background:#b31217;
}
.msg-error{
    background:#ffe5e5;
    color:#b00020;
    padding:10px;
    border-radius:10px;
    margin-bottom:15px;
    text-align:left;
}
.msg-success{
    background:#e6ffed;
    color:#2e7d32;
    padding:10px;
    border-radius:10px;
    margin-bottom:15px;
    text-align:left;
}
.links{
    margin-top:14px;
    font-size:13px;
    line-height:1.7;
}
.links a{
    color:#f01616;
    text-decoration:none;
	  font-weight:bold;
}
.links a:hover{
    text-decoration:underline;
}
.captcha-box{
    background:#fff5f5;
    border:1px solid #ffd0d0;
    border-radius:12px;
    padding:12px;
    margin-top:10px;
    margin-bottom:10px;
    text-align:left;
}
.captcha-q{
    font-size:14px;
    color:#8a0f14;
    margin-bottom:8px;
    font-weight:bold;
}
@media (max-width:480px){
    .card{
        padding:32px 24px;
        padding-top:76px;
    }
    .top-tools{
        top:18px;
        left:20px;
        right:20px;
    }
    .download-top-link{
        min-height:40px;
        height:40px;
        padding:0 10px;
        font-size:12px;
    }
    .logo img{
        max-width:200px;
    }
}