:root {
    --ew-dark: #0f172a;
    --ew-dark-soft: #1e293b;
    --ew-primary: #0ea5e9;
    --ew-success: #22c55e;
    --ew-text: #1f2937;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ew-text);
    background: #f8fafc;
}

.site-shell {
    overflow-x: hidden;
}

.top-trust-strip {
    background: linear-gradient(90deg, #3b0764 0%, #1d4ed8 45%, #0f766e 100%);
    color: #f8f7ff;
    border-bottom: 1px solid rgba(196, 181, 253, 0.35);
    letter-spacing: 0.01em;
}

.top-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 500;
}

.main-navbar {
    background: linear-gradient(120deg, #0f172a 0%, #312e81 40%, #0369a1 70%, #0f766e 100%);
    box-shadow: 0 16px 30px -18px rgba(30, 27, 75, 0.9);
    border-bottom: 1px solid rgba(129, 140, 248, 0.28);
    backdrop-filter: blur(8px);
}

.main-navbar .container {
    min-height: 66px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #f97316, #ec4899 55%, #22d3ee);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 18px -10px rgba(236, 72, 153, 0.85);
}

.main-navbar .nav-link {
    color: #f5f3ff;
    opacity: 0.94;
    position: relative;
    padding-inline: 0.7rem !important;
    border-radius: 0.45rem;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
    color: #ffffff;
    opacity: 1;
    background: rgba(167, 139, 250, 0.22);
}

.navbar-toggler {
    border-color: rgba(226, 232, 240, 0.35) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.22) !important;
}

.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fb7185, #f59e0b, #22d3ee);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link:focus::after {
    transform: scaleX(1);
}

.auth-nav .btn {
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444 55%, #ec4899);
    border: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px -14px rgba(244, 63, 94, 0.95);
}

.auth-nav .btn:hover,
.auth-nav .btn:focus {
    background: linear-gradient(135deg, #ea580c, #db2777);
    color: #fff;
}

.object-fit-cover {
    object-fit: cover;
}

.min-vh-100 {
    min-height: 100vh;
}

.trust-points .card,
.card.shadow-sm {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.trust-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.feature-chip {
    border: 1px solid #dbeafe;
    background: #f0f9ff;
    color: #075985;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-premium {
    background: radial-gradient(circle at top left, #1e1b4b 0%, #312e81 35%, #0f172a 72%, #111827 100%);
    border-top: 1px solid rgba(167, 139, 250, 0.28);
}

.footer-premium h2,
.footer-premium h3 {
    color: #ffffff;
    letter-spacing: 0.02em;
}

.footer-premium h2 {
    background: linear-gradient(90deg, #f9a8d4, #fcd34d, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #fde68a !important;
    transform: translateX(2px);
}

.trust-mini span {
    color: #ddd6fe;
}

.footer-social a {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 181, 253, 0.45);
    color: #ede9fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
    color: #fff;
    border-color: rgba(251, 113, 133, 0.9);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.5), rgba(251, 191, 36, 0.42));
    transform: translateY(-2px);
}

img.object-fit-cover {
    display: block;
    width: 100%;
    height: 100%;
}

.card .btn-sm {
    white-space: normal;
}

.card-body .small {
    font-size: 0.85rem;
}

img[loading="lazy"] {
    opacity: 0.99;
}

@media (max-width: 992px) {
    .top-trust-strip .container {
        justify-content: center;
    }

    .main-navbar .auth-nav {
        padding-top: 0.5rem;
    }

    .main-navbar .nav-link::after {
        left: 0;
        right: 0;
    }

    .top-trust-strip {
        font-size: 0.78rem;
    }

    .trust-strip-inner {
        justify-content: center !important;
        gap: 0.35rem !important;
    }

    .trust-item {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.05rem 0;
    }

    .main-navbar #mainNav {
        margin-top: 0.7rem;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 0.85rem;
        padding: 0.65rem;
    }

    .main-navbar .navbar-nav .nav-item {
        width: 100%;
    }

    .main-navbar .navbar-nav .nav-link {
        display: block;
        padding: 0.6rem 0.7rem !important;
        margin-bottom: 0.2rem;
    }

    .auth-nav .btn {
        width: 100%;
        margin-top: 0.35rem;
        padding-block: 0.56rem;
    }

    .footer-col {
        border-top: 1px solid rgba(148, 163, 184, 0.18);
        padding-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.95rem;
    }

    .card .btn {
        width: 100%;
    }

    .ratio {
        min-height: 150px;
    }

    .top-trust-strip .container {
        gap: 0.45rem !important;
    }

    .top-trust-strip {
        padding-block: 0.35rem !important;
    }

    .trust-item {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .brand-mark {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.72rem;
    }

    .main-navbar .container {
        min-height: 60px;
    }

    .footer-premium .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .footer-premium {
        padding-top: 1.2rem !important;
        padding-bottom: 1rem !important;
    }

    .footer-premium .small {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .footer-link {
        padding: 0.18rem 0;
    }

    .footer-social a {
        width: 1.85rem;
        height: 1.85rem;
    }
}

.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0369a1 100%);
    color: #fff;
}

.page-hero .lead {
    color: #dbeafe;
}

.premium-shell {
    margin-top: -2.5rem;
}

.premium-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -40px #0f172a;
}

.premium-input {
    border-radius: 0.7rem;
    border-color: #cbd5e1;
    min-height: 42px;
}

.premium-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.15);
}

.section-soft {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}


