/* ==========================================================================
   RANI TRADERS — LAYOUT ONLY STYLESHEET
   Contains only: Root/Theme, Global Base, Navbar, Footer
   Page-specific CSS intentionally removed.
   ========================================================================== */

/* =========================================================
   ROOT / THEME
   ========================================================= */
:root {
    --navy: #0f2438;
    --navy-2: #16324f;
    --charcoal: #1c1f26;
    --orange: #e8792c;
    --orange-dark: #c9631f;
    --amber: #f3a93b;
    --off-white: #fbfaf8;
    --light-gray: #f2f3f5;
    --mid-gray: #6b7280;
    --dark-gray: #2f333a;
    --border-soft: #e6e8eb;

    --rani-navy: #0d2238;
    --rani-navy-2: #153754;
    --rani-navy-3: #1d4668;
    --rani-orange: #e8792c;
    --rani-orange-dark: #c9601c;
    --rani-amber: #f3a93b;
    --rani-white: #ffffff;
    --rani-bg: #f7f8fa;
    --rani-bg-soft: #f1f4f7;
    --rani-text: #293545;
    --rani-muted: #718096;
    --rani-border: #e5e9ee;

    --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --shadow-sm: 0 2px 10px rgba(15, 36, 56, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 36, 56, 0.10);
    --shadow-lg: 0 20px 50px rgba(15, 36, 56, 0.16);

    --rani-shadow-sm: 0 4px 16px rgba(13, 34, 56, 0.06);
    --rani-shadow-md: 0 12px 35px rgba(13, 34, 56, 0.10);
    --rani-shadow-lg: 0 24px 60px rgba(13, 34, 56, 0.14);

    --radius: 14px;
    --rani-radius-sm: 10px;
    --rani-radius-md: 16px;
    --rani-radius-lg: 22px;
    --rani-radius-xl: 28px;
}

/* =========================================================
   GLOBAL BASE — layout-safe rules only
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--rani-text);
    background: var(--rani-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

::selection {
    color: #fff;
    background: var(--rani-orange);
}

/* =========================================================
   RANI TRADERS - ATTRACTIVE PREMIUM NAVBAR
   ========================================================= */

.rani-navbar {
    min-height: 82px;
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(13, 34, 56, 0.06);
    box-shadow: 0 8px 30px rgba(13, 34, 56, 0.05), 0 2px 8px rgba(13, 34, 56, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1050;
    transition: all 0.3s ease;
}

    .rani-navbar .container {
        min-height: 82px;
    }


    /* =========================================================
   BRAND
   ========================================================= */

    .rani-navbar .rani-brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 0 !important;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .rani-navbar .brand-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: #fff;
        background: linear-gradient(135deg, var(--rani-orange), var(--rani-amber));
        font-size: 1.25rem;
        box-shadow: 0 10px 24px rgba(232, 121, 44, 0.24), inset 0 1px 0 rgba(255,255,255,0.28);
        transition: all 0.3s ease;
    }

    .rani-navbar .rani-brand:hover .brand-icon {
        transform: translateY(-2px) rotate(-2deg);
        box-shadow: 0 14px 28px rgba(232, 121, 44, 0.3), inset 0 1px 0 rgba(255,255,255,0.28);
    }

    .rani-navbar .brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1;
    }

    .rani-navbar .brand-main {
        display: flex;
        align-items: center;
        gap: 4px;
        color: var(--rani-navy);
        font-family: var(--font-heading, "Poppins", sans-serif);
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

        .rani-navbar .brand-main strong {
            color: var(--rani-orange);
        }

    .rani-navbar .brand-text small {
        margin-top: 6px;
        color: #8c97a3;
        font-size: 0.47rem;
        font-weight: 700;
        letter-spacing: 0.18em;
    }


    /* =========================================================
   NAV LINKS
   ========================================================= */

    .rani-navbar .navbar-nav {
        gap: 4px;
    }

    .rani-navbar .nav-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0.78rem 0.82rem !important;
        color: #5d6978 !important;
        border-radius: 12px;
        font-size: 0.83rem;
        font-weight: 650;
        transition: all 0.25s ease;
        white-space: nowrap;
    }

        .rani-navbar .nav-link > i {
            display: none;
        }

        .rani-navbar .nav-link::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 4px;
            width: 0;
            height: 2px;
            border-radius: 999px;
            transform: translateX(-50%);
            background: linear-gradient(90deg, var(--rani-orange), var(--rani-amber));
            transition: width 0.25s ease;
        }

        .rani-navbar .nav-link:hover,
        .rani-navbar .nav-link.active {
            color: var(--rani-navy) !important;
            background: rgba(232, 121, 44, 0.05);
        }

            .rani-navbar .nav-link:hover::after,
            .rani-navbar .nav-link.active::after {
                width: 26px;
            }


    /* =========================================================
   ACTIONS
   ========================================================= */

    .rani-navbar .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 18px;
    }

    /* Login / Dashboard / Logout */

    .rani-navbar .nav-action-btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0.6rem 0.95rem;
        border: 1px solid #dfe5ea;
        border-radius: 12px;
        color: var(--rani-navy) !important;
        background: #fff;
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none !important;
        box-shadow: 0 3px 10px rgba(13,34,56,0.03);
        transition: all 0.25s ease;
    }

        .rani-navbar .nav-action-btn i {
            color: var(--rani-orange);
            font-size: 0.9rem;
        }

        .rani-navbar .nav-action-btn:hover {
            color: var(--rani-orange) !important;
            border-color: rgba(232, 121, 44, 0.38);
            background: #fff8f2;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(13,34,56,0.06);
        }

    /* Primary CTA */

    .rani-navbar .nav-quote-btn {
        min-height: 43px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0.65rem 1.15rem;
        border-radius: 12px;
        color: #fff !important;
        background: linear-gradient(135deg, var(--rani-orange), var(--rani-orange-dark));
        font-size: 0.77rem;
        font-weight: 750;
        text-decoration: none !important;
        box-shadow: 0 10px 22px rgba(232,121,44,0.24);
        transition: all 0.25s ease;
    }

        .rani-navbar .nav-quote-btn i {
            font-size: 0.82rem;
            transition: transform 0.25s ease;
        }

        .rani-navbar .nav-quote-btn:hover {
            color: #fff !important;
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(232,121,44,0.32);
        }

            .rani-navbar .nav-quote-btn:hover i {
                transform: translate(2px, -2px);
            }

    .rani-navbar .logout-form {
        margin: 0;
        display: flex;
    }


    /* =========================================================
   TOGGLER
   ========================================================= */

    .rani-navbar .navbar-toggler {
        width: 43px;
        height: 43px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #dfe5ea;
        border-radius: 12px;
        background: #fff;
        box-shadow: none !important;
    }

        .rani-navbar .navbar-toggler:hover {
            border-color: rgba(232, 121, 44, 0.35);
            background: #fff8f2;
        }

        .rani-navbar .navbar-toggler:focus {
            border-color: var(--rani-orange);
            box-shadow: 0 0 0 3px rgba(232,121,44,0.08) !important;
        }

    .rani-navbar .premium-toggler {
        width: 20px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .rani-navbar .premium-toggler span {
            width: 100%;
            height: 2px;
            display: block;
            border-radius: 999px;
            background: var(--rani-navy);
        }


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .rani-navbar {
        min-height: 72px;
    }

        .rani-navbar .container {
            min-height: 72px;
        }

        .rani-navbar .navbar-collapse {
            margin-top: 12px;
            padding: 12px;
            background: rgba(255,255,255,0.99);
            border: 1px solid #e7ebef;
            border-radius: 18px;
            box-shadow: 0 18px 45px rgba(13,34,56,0.12);
        }

        .rani-navbar .nav-link {
            width: 100%;
            padding: 0.84rem 0.92rem !important;
            border-radius: 11px;
            font-size: 0.85rem;
        }

            .rani-navbar .nav-link > i {
                width: 22px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                flex: 0 0 22px;
                color: var(--rani-orange);
            }

            .rani-navbar .nav-link::after {
                display: none;
            }

            .rani-navbar .nav-link:hover,
            .rani-navbar .nav-link.active {
                color: var(--rani-orange) !important;
                background: #fff6ef;
            }

        .rani-navbar .nav-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin: 12px 0 0;
            padding-top: 12px;
            border-top: 1px solid #edf0f3;
        }

            .rani-navbar .nav-actions > a,
            .rani-navbar .nav-actions > form,
            .rani-navbar .logout-form,
            .rani-navbar .nav-action-btn {
                width: 100%;
            }

        .rani-navbar .nav-quote-btn {
            width: 100%;
            grid-column: 1 / -1;
        }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .rani-navbar {
        min-height: 64px;
    }

        .rani-navbar .container {
            min-height: 64px;
        }

        .rani-navbar .brand-icon {
            width: 40px;
            height: 40px;
            flex-basis: 40px;
            border-radius: 11px;
            font-size: 1.05rem;
        }

        .rani-navbar .brand-main {
            font-size: 0.9rem;
        }

        .rani-navbar .brand-text small {
            margin-top: 5px;
            font-size: 0.39rem;
            letter-spacing: 0.15em;
        }

        .rani-navbar .navbar-toggler {
            width: 40px;
            height: 40px;
        }

        .rani-navbar .nav-actions {
            grid-template-columns: 1fr;
        }

        .rani-navbar .nav-quote-btn {
            grid-column: auto;
        }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .rani-navbar .brand-text small {
        display: none;
    }

    .rani-navbar .brand-main {
        font-size: 0.82rem;
    }

    .rani-navbar .rani-brand {
        gap: 8px;
    }
}
/* =========================================================
   NAVBAR TOGGLER RESPONSIVE FIX
   Desktop = Hidden
   Mobile/Tablet = Visible
   ========================================================= */

/* DESKTOP / LAPTOP */
@media (min-width: 992px) {

    .rani-navbar .navbar-toggler {
        display: none !important;
    }

    .rani-navbar .navbar-collapse {
        display: flex !important;
    }
}


/* TABLET + MOBILE */
@media (max-width: 991.98px) {

    .rani-navbar .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

.rani-footer {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 1.35rem;
    color: #aeb9c5;
    background: radial-gradient( circle at 88% 8%, rgba(243,169,59,.13), transparent 27% ), radial-gradient( circle at 8% 100%, rgba(232,121,44,.07), transparent 28% ), linear-gradient( 135deg, #101820 0%, var(--rani-navy) 48%, #071522 100% );
    border-top: 1px solid rgba(255,255,255,.06);
}

    .rani-footer .footer-accent {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient( 90deg, transparent, var(--rani-orange) 20%, var(--rani-amber) 50%, var(--rani-orange) 80%, transparent );
    }

    .rani-footer::before {
        content: "";
        position: absolute;
        width: 460px;
        height: 460px;
        right: -200px;
        top: -250px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(243,169,59,.11), transparent 70% );
        pointer-events: none;
    }

    .rani-footer::after {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        left: -200px;
        bottom: -250px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(232,121,44,.08), transparent 70% );
        pointer-events: none;
    }

    .rani-footer .container {
        position: relative;
        z-index: 2;
    }

    .rani-footer .footer-brand {
        display: inline-flex;
        align-items: center;
        gap: .8rem;
        margin-bottom: 1rem;
        color: #fff;
        font-family: var(--font-heading, "Poppins", sans-serif);
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: .015em;
    }

        .rani-footer .footer-brand i {
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
            color: #fff;
            background: linear-gradient( 135deg, var(--rani-orange), var(--rani-amber) );
            box-shadow: 0 11px 27px rgba(232,121,44,.25), inset 0 1px 0 rgba(255,255,255,.25);
            font-size: 1.3rem;
        }

        .rani-footer .footer-brand strong {
            color: var(--rani-amber);
        }

    .rani-footer .text-light-gray {
        max-width: 420px;
        color: #aab6c2 !important;
        font-size: .86rem !important;
        line-height: 1.85;
    }

    .rani-footer .footer-social {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 12px;
        color: #d6dee7;
        background: rgba(255,255,255,.055);
        backdrop-filter: blur(10px);
        transition: all .3s ease;
    }

        .rani-footer .footer-social:hover {
            color: #fff;
            border-color: transparent;
            background: linear-gradient( 135deg, var(--rani-orange), var(--rani-amber) );
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(232,121,44,.25);
        }

    .rani-footer .footer-social-wa:hover {
        background: #20b85c;
        box-shadow: 0 10px 25px rgba(32,184,92,.22);
    }

    .rani-footer .footer-heading {
        position: relative;
        display: inline-block;
        margin-bottom: 1.5rem;
        color: #fff;
        font-family: var(--font-heading, "Poppins", sans-serif);
        font-size: .95rem;
        font-weight: 700;
    }

        .rani-footer .footer-heading::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -9px;
            width: 34px;
            height: 3px;
            border-radius: 999px;
            background: linear-gradient( 90deg, var(--rani-orange), var(--rani-amber) );
        }

    .rani-footer .footer-links {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .rani-footer .footer-links li {
            margin-bottom: .78rem;
        }

        .rani-footer .footer-links a {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            color: #aab6c2;
            font-size: .84rem;
            transition: all .25s ease;
        }

            .rani-footer .footer-links a i {
                color: var(--rani-orange);
                font-size: .68rem;
                transition: transform .25s ease;
            }

            .rani-footer .footer-links a:hover {
                color: #fff;
                transform: translateX(5px);
            }

                .rani-footer .footer-links a:hover i {
                    color: var(--rani-amber);
                    transform: translateX(3px);
                }

    .rani-footer .footer-contact {
        display: flex;
        flex-direction: column;
        gap: .85rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .rani-footer .footer-contact li {
            display: flex;
            align-items: flex-start;
            gap: .75rem;
            color: #aab6c2;
            font-size: .81rem;
            line-height: 1.55;
        }

    .rani-footer .footer-icon {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(232,121,44,.13);
        border-radius: 10px;
        color: var(--rani-amber);
        background: rgba(232,121,44,.08);
        transition: all .25s ease;
    }

    .rani-footer .footer-contact li:hover .footer-icon {
        color: #fff;
        border-color: transparent;
        background: linear-gradient( 135deg, var(--rani-orange), var(--rani-amber) );
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(232,121,44,.18);
    }

    .rani-footer .footer-contact a {
        padding-top: .4rem;
        color: #aab6c2;
        overflow-wrap: anywhere;
        transition: color .25s ease;
    }

        .rani-footer .footer-contact a:hover {
            color: var(--rani-amber);
        }

    .rani-footer .footer-address {
        padding-top: .35rem;
        color: #aab6c2;
        line-height: 1.65;
    }

    .rani-footer .footer-divider {
        height: 1px;
        margin: 3rem 0 1.4rem;
        border: 0;
        opacity: 1;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.08) 15%, rgba(255,255,255,.17) 50%, rgba(255,255,255,.08) 85%, transparent );
    }

    .rani-footer .footer-bottom {
        color: #7d8997;
        font-size: .74rem;
        line-height: 1.7;
    }

        .rani-footer .footer-bottom a {
            color: #7d8997;
            transition: color .25s ease;
        }

            .rani-footer .footer-bottom a:hover {
                color: var(--rani-amber);
            }

    .rani-footer .footer-credit {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        flex-wrap: wrap;
        margin-top: 1.1rem;
        padding-top: 1.1rem;
        color: #6f7b88;
        font-size: .71rem;
        text-align: center;
    }

        .rani-footer .footer-credit::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            width: 110px;
            height: 1px;
            transform: translateX(-50%);
            background: linear-gradient( 90deg, transparent, rgba(243,169,59,.60), transparent );
        }

        .rani-footer .footer-credit a {
            position: relative;
            color: var(--rani-amber);
            font-weight: 750;
            transition: color .25s ease;
        }

            .rani-footer .footer-credit a:hover {
                color: #fff;
            }

            .rani-footer .footer-credit a::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -3px;
                height: 1px;
                background: var(--rani-amber);
                transform: scaleX(0);
                transition: transform .25s ease;
            }

            .rani-footer .footer-credit a:hover::after {
                transform: scaleX(1);
            }


/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .rani-footer { padding-top: 4.2rem; }
    .rani-footer .footer-brand { font-size: 1.25rem; }
    .rani-footer .footer-contact { max-width: 420px; }
}

@media (max-width: 767.98px) {
    .rani-footer { padding: 3.4rem 0 1.25rem; }
    .rani-footer .row { --bs-gutter-y: 2.7rem; }
    .rani-footer::before { width: 300px; height: 300px; right: -175px; top: -165px; }
    .rani-footer .footer-brand { font-size: 1.18rem; }
    .rani-footer .footer-brand i { width: 44px; height: 44px; flex-basis: 44px; }
    .rani-footer .text-light-gray { max-width: 100%; font-size: .81rem !important; }
    .rani-footer .footer-heading { margin-top: 0; margin-bottom: 1.35rem; }
    .rani-footer .footer-links a { font-size: .81rem; }
    .rani-footer .footer-contact li { font-size: .79rem; }
    .rani-footer .footer-divider { margin: 2.4rem 0 1.2rem; }
    .rani-footer .footer-bottom { gap: .8rem !important; text-align: center; }
    .rani-footer .footer-bottom > span:last-child { justify-content: center; flex-wrap: wrap; }
    .rani-footer .footer-credit { margin-top: 1rem; font-size: .69rem; }
}

@media (max-width: 420px) {
    .rani-footer { padding-top: 3rem; }
    .rani-footer .footer-social { width: 39px; height: 39px; border-radius: 10px; }
    .rani-footer .footer-icon { width: 32px; height: 32px; flex-basis: 32px; }
    .rani-footer .footer-bottom { font-size: .69rem; line-height: 1.9; }
}

