:root {
    --fm-navy: #0c1036;
    --fm-navy-2: #171d4d;
    --fm-teal: #29a29f;
    --fm-teal-dark: #1b817f;
    --fm-yellow: #e7b019;
    --fm-soft: #f7fafb;
    --fm-ink: #1e2438;
    --fm-muted: #69728a;
    --fm-line: rgba(12, 16, 54, .1);
    --fm-shadow: 0 22px 60px rgba(12, 16, 54, .12);
    --fm-shadow-soft: 0 14px 36px rgba(12, 16, 54, .08);
    --fm-radius: 26px;
    --fm-radius-sm: 18px;
}

html { scroll-behavior: smooth; }

.public-body {
    background:
        linear-gradient(125deg, rgba(41, 162, 159, .08), transparent 32%),
        linear-gradient(240deg, rgba(231, 176, 25, .10), transparent 28%),
        var(--fm-soft);
    color: var(--fm-ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; }

.public-main { min-height: 60vh; }

.container { max-width: 1180px; }

.public-header {
    left: 0;
    padding: 18px 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: .28s ease;
    z-index: 1030;
}

.public-header.is-solid,
.public-header.scrolled {
    background: rgba(247, 250, 251, .82);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(12, 16, 54, .08);
    padding: 10px 0;
}

.public-navbar {
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    box-shadow: var(--fm-shadow-soft);
    padding: 10px 14px;
}

.public-brand img { height: 46px; width: auto; }

.public-navbar .nav-link {
    border-radius: 999px;
    color: #404966;
    font-weight: 700;
    padding: 10px 14px;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus {
    background: rgba(41, 162, 159, .1);
    color: var(--fm-navy);
}

.public-toggler {
    border: 0;
    box-shadow: none;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.public-toggler span {
    background: var(--fm-navy);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 24px;
}

.public-mega-menu {
    border: 1px solid var(--fm-line);
    border-radius: 24px;
    box-shadow: var(--fm-shadow);
    min-width: 640px;
    padding: 16px;
}

.mega-tile {
    background: linear-gradient(180deg, #fff, #f8fcfc);
    border: 1px solid var(--fm-line);
    border-radius: 18px;
    color: var(--fm-navy);
    display: block;
    height: 100%;
    padding: 18px;
}

.mega-tile i {
    color: var(--fm-teal);
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.mega-tile span { display: block; font-weight: 900; }
.mega-tile small { color: var(--fm-muted); display: block; line-height: 1.55; margin-top: 5px; }

.btn {
    border-radius: 999px;
    font-weight: 800;
    transition: .25s ease;
}

.btn-brand,
.btn-primary {
    background: linear-gradient(135deg, var(--fm-teal), var(--fm-teal-dark));
    border: 0;
    box-shadow: 0 16px 34px rgba(41, 162, 159, .24);
    color: #fff;
}

.btn-brand:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--fm-teal-dark), var(--fm-teal));
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost,
.btn-outline-primary {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(12, 16, 54, .12);
    color: var(--fm-navy);
}

.btn-ghost:hover,
.btn-outline-primary:hover {
    background: var(--fm-navy);
    border-color: var(--fm-navy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--fm-yellow);
    border: 0;
    color: var(--fm-navy);
}

.btn-accent:hover { background: #f3c138; color: var(--fm-navy); transform: translateY(-2px); }

.public-user { color: var(--fm-navy); font-weight: 800; }

.section-pad { padding: 98px 0; }
.section-pad-sm { padding: 72px 0; }

.eyebrow {
    align-items: center;
    color: var(--fm-teal);
    display: inline-flex;
    font-size: .84rem;
    font-weight: 900;
    gap: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    color: var(--fm-navy);
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 12px 0 16px;
}

.section-text {
    color: var(--fm-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.premium-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-soft);
    transition: .28s ease;
}

.premium-card:hover {
    box-shadow: var(--fm-shadow);
    transform: translateY(-6px);
}

.glass-panel {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    box-shadow: var(--fm-shadow);
}

.image-lift {
    border: 8px solid rgba(255, 255, 255, .72);
    border-radius: 32px;
    box-shadow: var(--fm-shadow);
    object-fit: cover;
}

.page-hero {
    overflow: hidden;
    padding: 164px 0 82px;
    position: relative;
}

.page-hero:before {
    background-image: linear-gradient(rgba(12, 16, 54, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 16, 54, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    position: absolute;
}

.page-hero .container { position: relative; z-index: 1; }

.floating-shape {
    background: linear-gradient(135deg, rgba(41, 162, 159, .16), rgba(231, 176, 25, .14));
    border-radius: 42% 58% 64% 36%;
    filter: blur(.2px);
    height: 340px;
    position: absolute;
    right: -120px;
    top: 110px;
    width: 420px;
    z-index: 0;
}

.public-footer {
    background: radial-gradient(ellipse at top left, rgba(41, 162, 159, .24), transparent 34%), var(--fm-navy);
    color: rgba(255, 255, 255, .78);
    margin-top: 40px;
    padding-top: 36px;
}

.footer-newsletter {
    background: linear-gradient(135deg, rgba(41, 162, 159, .24), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    margin-bottom: 58px;
    padding: 34px;
}

.footer-newsletter h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 900;
    margin: 8px 0 0;
}

.newsletter-form {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    display: flex;
    gap: 8px;
    padding: 8px;
}

.newsletter-form input {
    background: transparent;
    border: 0;
    color: #fff;
    flex: 1;
    outline: 0;
    padding: 0 16px;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, .6); }

.footer-main { padding-bottom: 34px; }
.footer-brand img { height: 52px; margin-bottom: 18px; width: auto; }
.footer-main p { line-height: 1.85; max-width: 360px; }
.footer-main h3 { color: #fff; font-size: .95rem; font-weight: 900; margin-bottom: 18px; }
.footer-main a { color: rgba(255, 255, 255, .72); display: block; margin: 10px 0; }
.footer-main a:hover { color: #fff; }

.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    margin: 0;
    width: 42px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-top: 42px;
    padding-top: 22px;
}

.public-form .form-control,
.public-form .form-select {
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    min-height: 54px;
    padding: 14px 16px;
}

.public-form .form-control:focus,
.public-form .form-select:focus {
    border-color: rgba(41, 162, 159, .45);
    box-shadow: 0 0 0 .25rem rgba(41, 162, 159, .12);
}

@media (max-width: 991.98px) {
    .public-header { padding: 10px 0; }
    .public-navbar { border-radius: 18px; }
    .navbar-collapse { padding-top: 16px; }
    .public-auth { align-items: stretch !important; flex-direction: column; padding: 10px 0; }
    .public-mega-menu { min-width: 100%; }
    .page-hero { padding-top: 136px; }
    .newsletter-form { border-radius: 20px; flex-direction: column; }
    .newsletter-form input { min-height: 46px; }
}
