/*------------------------------------------------------------------
 * custom-styles.css — iodeed header/footer for WHMCS
 * All classes use "iodeed-" prefix. Self-contained.
 * ----------------------------------------------------------------*/

@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@500;600&display=block");

:root {
    --iodeed-primary: #1457e6;
    --iodeed-primary-hover: #1043b8;
    --iodeed-nav-height: 56px;
    --iodeed-mobile-drawer-width: 280px;
    --iodeed-transition: 0.3s ease;
    --iodeed-nav-font: 'Urbanist', sans-serif;
    --iodeed-nav-font-size: 14px;
    --iodeed-nav-font-weight: 500;
}

/* ================================================================
   NAVBAR
   ================================================================ */

.iodeed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--iodeed-nav-height);
    background-color: var(--iodeed-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1030;
    display: flex;
    align-items: center;
}

body.tt-body-wrapper,
body.main-body {
    padding-top: var(--iodeed-nav-height) !important;
}

.iodeed-navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* --- Logo --- */
.iodeed-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1.5rem;
}
.iodeed-logo img {
    height: 28px;
    width: auto;
}

/* --- Hamburger --- */
.iodeed-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
}
.iodeed-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--iodeed-transition);
}

/* --- Close button (mobile drawer) --- */
.iodeed-nav-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
    padding: 1rem;
    align-self: flex-end;
}

/* ================================================================
   NAV LISTS
   ================================================================ */

.iodeed-nav-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}

.iodeed-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.iodeed-nav-left { flex: 1; }
.iodeed-nav-right { margin-left: auto; flex-shrink: 0; }

.iodeed-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.iodeed-nav-link {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0 0.7rem;
    height: 100%;
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--iodeed-nav-font);
    font-size: var(--iodeed-nav-font-size);
    font-weight: var(--iodeed-nav-font-weight);
    white-space: nowrap;
    transition: opacity var(--iodeed-transition);
}
.iodeed-nav-link:hover {
    color: #fff !important;
    opacity: 0.8;
}

.iodeed-chevron {
    font-size: 0.55rem;
    margin-left: 0.2rem;
    transition: transform var(--iodeed-transition);
}

/* ================================================================
   DROPDOWNS
   ================================================================ */

.iodeed-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    padding: 0.4rem 0;
    list-style: none;
    margin: 0;
    z-index: 1040;
}

.iodeed-dropdown-right {
    left: auto;
    right: 0;
}

@media (min-width: 992px) {
    .iodeed-has-sub:hover > .iodeed-dropdown {
        display: block;
    }
    .iodeed-has-sub:hover > .iodeed-nav-link .iodeed-chevron {
        transform: rotate(180deg);
    }
}

.iodeed-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.45rem 1rem;
    color: #333 !important;
    text-decoration: none !important;
    font-family: var(--iodeed-nav-font);
    font-size: var(--iodeed-nav-font-size);
    font-weight: 500;
    transition: background var(--iodeed-transition), color var(--iodeed-transition);
}
.iodeed-dropdown-item:hover {
    background-color: #f0f4ff;
    color: var(--iodeed-primary) !important;
}
.iodeed-dropdown-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--iodeed-primary);
}

.iodeed-dropdown-divider {
    height: 0;
    margin: 0.3rem 0;
    border-top: 1px solid #e9e9e9;
}

/* ================================================================
   REGISTER BUTTON
   ================================================================ */

.iodeed-btn-register {
    border: none !important;
    border-radius: 5px !important;
    padding: 0.3rem 0.75rem !important;
    margin-left: 0.25rem;
    transition: all var(--iodeed-transition);
}
.iodeed-btn-register:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

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

.iodeed-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1029;
}
.iodeed-backdrop.active { display: block; }

@media (max-width: 991.98px) {
    .iodeed-hamburger { display: flex; }
    .iodeed-nav-close { display: block; }

    .iodeed-nav-collapse {
        position: fixed;
        top: 0;
        left: calc(-1 * var(--iodeed-mobile-drawer-width));
        width: var(--iodeed-mobile-drawer-width);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        z-index: 1050;
        transition: left var(--iodeed-transition);
        box-shadow: none;
        padding-bottom: 2rem;
    }

    .iodeed-nav-collapse.open {
        left: 0;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    }

    .iodeed-nav {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        width: 100%;
        padding: 0 0.5rem;
    }

    .iodeed-nav-left {
        border-bottom: 1px solid #e9e9e9;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .iodeed-nav-right { margin-left: 0; }

    .iodeed-nav-item {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .iodeed-nav-link {
        color: #333 !important;
        padding: 0.65rem 0.75rem;
        height: auto;
        border-radius: 0.375rem;
        font-size: 0.9375rem;
    }
    .iodeed-nav-link:hover {
        background-color: #f0f4ff;
        opacity: 1;
    }

    .iodeed-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        background: transparent;
    }

    .iodeed-dropdown-item {
        padding: 0.45rem 0.75rem;
        border-radius: 0.375rem;
    }

    .iodeed-dropdown-right { left: 0; right: auto; }

    .iodeed-btn-register {
        color: var(--iodeed-primary) !important;
        margin-left: 0;
        margin-top: 0.25rem;
        text-align: center;
        justify-content: center;
    }
}

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

footer.iodeed-footer {
    background-color: var(--iodeed-primary) !important;
}
footer.iodeed-footer a.text-white {
    transition: opacity var(--iodeed-transition);
}
footer.iodeed-footer a.text-white:hover {
    opacity: 1 !important;
    text-decoration: underline;
}
.iodeed-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ================================================================
   UTILITIES
   ================================================================ */

.op-7 { opacity: 0.7; }
.op-8 { opacity: 0.8; }
.tx-14 { font-size: 0.875rem; }
.fw-500 { font-weight: 500; }

/* ================================================================
   WHMCS OVERRIDES
   ================================================================ */

.modal { z-index: 1060 !important; }
.modal-backdrop { z-index: 1055 !important; }
#main-body { padding-top: 20px; }
.jumps-prevent { display: none !important; }