:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --page: #f8fafc;
    --red: #ef4444;
    --blue: #2563eb;
    --green: #16a34a;
    --shadow: 0 18px 45px rgba(15, 23, 42, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: "BPG Arial", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(35px);
    opacity: .55;
    pointer-events: none;
}
body::before { top: -140px; left: -120px; background: #dff4ff; }
body::after { right: -150px; bottom: -150px; background: #ffe8e8; }

main {
    width: min(100% - 32px, 720px);
    min-width: 0;
    min-height: calc(100vh - 86px);
    margin: 0 auto;
    padding: 28px 0 36px;
    display: grid;
    place-items: center;
    gap: 18px;
}
.mail-interface {
    width: 100%;
    padding: clamp(24px, 5vw, 38px);
    text-align: center;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: -.06em;
}
.logo-at { color: var(--red); }
.logo-text { color: var(--ink); }
.mail-header-text {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
}
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-login {
    color: var(--blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.btn-login:hover { background: #dbeafe; box-shadow: 0 8px 20px rgba(37,99,235,.12); }
.registration-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.btn-main-register {
    color: #fff;
    background: var(--red);
    box-shadow: 0 8px 18px rgba(239,68,68,.22);
}
.btn-main-register:hover { background: #dc2626; box-shadow: 0 12px 24px rgba(239,68,68,.28); }
.quick-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 14px 0;
    font-size: .95rem;
    font-weight: 700;
}
.quick-links a { text-decoration: none; }
.quick-links a:first-child { color: var(--red); }
.quick-links a:last-child { color: #16a34a; }
.quick-links a:hover { opacity: .75; }
.site-info-link {
    color: var(--red) !important;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
}
.site-info-link:hover { opacity: .75; }
.security-badge {
    margin: 16px 0;
    padding: 10px 14px;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
}
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 10px 0 20px;
}
.stat {
    padding: 7px 11px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .78rem;
    font-weight: 700;
}
.email-examples {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}
.email-at { color: var(--red); }
.email-divider { color: #cbd5e1; font-weight: 400; }

.sponsor-banners {
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    background: transparent;
    padding: 10px 0;
    position: relative;
}
.marquee-track {
    display: flex;
    flex-direction: row !important;
    width: max-content;
    gap: 15px;
    animation: scrollMarquee 10s ease-in-out infinite alternate;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.banner-link {
    text-decoration: none;
    display: block;
    width: 180px;
    flex-shrink: 0;
}
.banner {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85), rgba(239, 246, 255, 0.95)) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.12) !important;
    border-radius: 12px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 600px)); }
}
@media (hover: hover) {
    .banner:hover {
        background: rgba(255, 255, 255, 0.95);
        border-color: var(--primary-color);
        border-style: solid;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
    }
}
footer {
    min-height: 86px;
    padding: 22px 16px;
    color: #94a3b8;
    background: var(--ink);
    text-align: center;
    font-size: .85rem;
}
footer p { margin: 0; }
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-separator { margin: 0 7px; color: #475569; }
.social-link { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.social-link svg { width: 18px; height: 18px; }

@media (max-width: 520px) {
    main { width: min(100% - 24px, 720px); padding-top: 16px; }
    .mail-interface { padding: 24px 16px; border-radius: 16px; }
    .banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .email-examples { gap: 6px; font-size: .78rem; }
    .stat { font-size: .72rem; }
    footer { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
