body.user-modern,
body.user-modern * {
    box-sizing: border-box;
}

body.user-modern {
    --cm-bg: #061c1f;
    --cm-panel: rgba(255, 255, 255, 0.94);
    --cm-panel-soft: rgba(255, 255, 255, 0.82);
    --cm-text: #173536;
    --cm-muted: #5a7374;
    --cm-border: rgba(55, 166, 166, 0.24);
    --cm-shadow: 0 18px 45px rgba(7, 37, 40, 0.14);
    --cm-cyan: #41F2F2;
    --cm-teal: #37A6A6;
    --cm-deep: #246C6C;
    width: 100%;
    min-height: 100%;
    height: auto !important;
    overflow-x: clip !important;
    background:
        radial-gradient(circle at 88% 12%, rgba(65, 242, 242, 0.11), transparent 32%),
        linear-gradient(180deg, #f5fbfb 0%, #eef7f7 48%, #f8fbfb 100%) !important;
    color: var(--cm-text);
}

body.user-modern .top-nav {
    width: 100%;
    max-width: 100%;
    padding: 14px 42px !important;
    background: rgba(36, 108, 108, 0.94) !important;
    border-bottom: 1px solid rgba(65, 242, 242, 0.16);
    box-shadow: 0 14px 34px rgba(8, 33, 36, 0.18) !important;
    backdrop-filter: blur(12px);
}

body.user-modern .top-nav ul {
    gap: clamp(28px, 6vw, 96px) !important;
}

body.user-modern .top-nav a {
    font-size: 18px !important;
    position: relative;
}

body.user-modern .main-container {
    padding-top: 52px !important;
    overflow: visible;
}

body.user-modern .hero-section {
    min-height: 300px;
    height: auto !important;
    padding: 64px 10% 52px !important;
    background-image:
        linear-gradient(105deg, rgba(8, 34, 37, 0.88) 0%, rgba(26, 86, 89, 0.58) 52%, rgba(12, 64, 68, 0.18) 100%),
        url('/images/civilmath_canva_hero_4_hq.png') !important;
    background-size: cover !important;
    background-position: center !important;
    text-align: left !important;
    align-items: flex-start !important;
    position: relative;
    overflow: hidden;
}

body.user-modern .hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(5, 24, 27, 0.36));
    pointer-events: none;
}

body.user-modern .hero-content {
    align-items: flex-start !important;
    position: relative;
    z-index: 1;
}

body.user-modern .hero-text {
    max-width: 760px !important;
}

body.user-modern .hero-tagline {
    color: var(--cm-cyan) !important;
    font-size: 1.05rem !important;
    letter-spacing: 0 !important;
    margin-bottom: 12px !important;
}

body.user-modern .hero-title {
    color: #fff !important;
    font-size: clamp(2.1rem, 4vw, 3.35rem) !important;
    line-height: 1.12 !important;
    margin: 0;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.user-modern .hero-title .highlight {
    color: var(--cm-cyan) !important;
}

body.user-modern .hero-subtitle {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.12rem !important;
    margin: 16px 0 0 !important;
}

body.user-modern .user-details-section,
body.user-modern .auth-section,
body.user-modern .redirect-section {
    background:
        radial-gradient(circle at 86% 0%, rgba(65, 242, 242, 0.11), transparent 34%),
        linear-gradient(180deg, #f6fbfb 0%, #edf6f6 100%) !important;
    padding: clamp(28px, 5vw, 58px) min(8vw, 96px) 78px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.user-modern .content-wrapper {
    width: min(1180px, 100%);
    margin: 0 auto !important;
    gap: 22px;
    align-items: flex-start;
}

body.user-modern .sidebar {
    width: 230px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    background: rgba(8, 48, 52, 0.92) !important;
    border: 1px solid rgba(65, 242, 242, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--cm-shadow) !important;
    position: sticky;
    top: 92px;
}

body.user-modern .sidebar button {
    padding: 13px 14px !important;
    margin: 3px 0 !important;
    border-radius: 7px !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: left;
}

body.user-modern .sidebar button:hover {
    background: rgba(65, 242, 242, 0.14) !important;
    color: #fff !important;
    transform: translateX(2px) !important;
    box-shadow: none !important;
}

body.user-modern .main-content,
body.user-modern .auth-container,
body.user-modern .redirect-section .container {
    background: var(--cm-panel) !important;
    color: var(--cm-text) !important;
    border: 1px solid var(--cm-border);
    border-radius: 8px !important;
    box-shadow: var(--cm-shadow) !important;
}

body.user-modern .main-content {
    padding: clamp(24px, 4vw, 42px) !important;
}

body.user-modern .main-content:hover {
    background: var(--cm-panel) !important;
}

body.user-modern .auth-section {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

body.user-modern .auth-container {
    width: min(480px, 100%) !important;
    max-width: 480px !important;
    padding: 30px !important;
}

body.user-modern .redirect-section .container {
    width: min(760px, 100%);
    margin: 0 auto !important;
    padding: 34px;
}

body.user-modern .user-details-container,
body.user-modern .purchase-container,
body.user-modern .download-container {
    max-width: none !important;
    background: var(--cm-panel-soft) !important;
    color: var(--cm-text) !important;
    border: 1px solid var(--cm-border);
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(10, 46, 49, 0.10) !important;
}

body.user-modern .user-details-container {
    width: min(720px, 100%);
    padding: 28px !important;
    margin: 0 auto !important;
}

body.user-modern .purchase-container,
body.user-modern .download-container {
    width: min(420px, 100%) !important;
    margin: 0 auto !important;
    padding: 28px !important;
}

body.user-modern .subscription-options {
    gap: 24px !important;
    align-items: stretch;
}

body.user-modern h2,
body.user-modern h3 {
    color: var(--cm-text);
}

body.user-modern .info-texts,
body.user-modern .text-muted,
body.user-modern .form-text {
    color: var(--cm-muted) !important;
}

body.user-modern .form-group label {
    color: var(--cm-text);
}

body.user-modern .form-control {
    min-height: 44px;
    color: var(--cm-text);
    background: #fff !important;
    border: 1px solid rgba(36, 108, 108, 0.22) !important;
    border-radius: 7px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.user-modern .form-control:focus {
    outline: 3px solid rgba(65, 242, 242, 0.22) !important;
    border-color: var(--cm-teal) !important;
    transform: none !important;
}

body.user-modern .btn-submit,
body.user-modern .btn-download,
body.user-modern .btn-primary {
    border: 0 !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #41F2F2, #37A6A6) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(55, 166, 166, 0.28);
}

body.user-modern .btn-submit:hover,
body.user-modern .btn-download:hover,
body.user-modern .btn-primary:hover {
    background: linear-gradient(135deg, #5affff, #2f8f8f) !important;
    transform: translateY(-1px) !important;
}

body.user-modern .mobile-menu-btn {
    width: min(1180px, 100%) !important;
    margin: 0 auto 14px !important;
    border-radius: 7px !important;
    background: var(--cm-deep) !important;
}

body.user-modern .social-media-section,
body.user-modern .bottom-bar {
    background: #246C6C !important;
}

body.user-modern .bottom-bar {
    position: static !important;
    max-width: 100%;
    box-shadow: 0 -14px 30px rgba(7, 37, 40, 0.16) !important;
}

body.user-modern .whatsapp-button {
    background: #061c1f !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24) !important;
}

@media (max-width: 768px) {
    body.user-modern .top-nav {
        padding: 14px 18px !important;
    }

    body.user-modern .main-container {
        padding-top: 58px !important;
    }

    body.user-modern .hero-section {
        min-height: 280px;
        padding: 58px 22px 46px !important;
        text-align: left !important;
        background-position: center right !important;
    }

    body.user-modern .hero-text {
        max-width: 100% !important;
    }

    body.user-modern .hero-title {
        font-size: clamp(2rem, 9vw, 2.7rem) !important;
    }

    body.user-modern .content-wrapper {
        gap: 14px;
    }

    body.user-modern .sidebar {
        width: 100% !important;
        position: static;
        margin-bottom: 14px !important;
    }

    body.user-modern .main-content,
    body.user-modern .auth-container,
    body.user-modern .redirect-section .container,
    body.user-modern .user-details-container,
    body.user-modern .purchase-container,
    body.user-modern .download-container {
        width: 100% !important;
        padding: 20px !important;
    }
}
