/********** Template CSS **********/
/* Updated to Purple Theme - #67288E */
:root {
    --primary: #67288E;
    --secondary: #999999;
    --light: #F2E8F8;
    --dark: #111111;
    --app-radius: 16px; /* Common roundedness for all app elements */
    --close-btn-bg: #000000; /* Close button background color */
    --close-btn-text: #ffffff; /* Close button text color */
    --close-btn-hover-bg: #333333; /* Close button hover background */
}

body {
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: calc(var(--app-radius) * 0.75) !important;
}

/* Square buttons should remain square */
.btn-square,
.btn-sm-square,
.btn-lg-square {
    border-radius: calc(var(--app-radius) * 0.5) !important;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}


/*** Header ***/
/* Masthead Gradient Text */
.hero-header h1.display-4 {
    background: linear-gradient(135deg, 
        #67288E 0%, 
        #A569D4 25%, 
        #67288E 50%, 
        #B794E6 75%, 
        #67288E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}


/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -80px;
    right: -80px;
    border: 80px solid;
    transform: rotate(45deg);
    opacity: 1;
    transition: .5s;
}

.service-item.bg-white::after {
    border-color: transparent transparent var(--light) transparent;
}

.service-item.bg-light::after {
    border-color: transparent transparent #FFFFFF transparent;
}

.service-item:hover::after {
    opacity: 0;
}


/*** Roadmap ***/
.roadmap-carousel {
    position: relative;
}

.roadmap-carousel::before {
    position: absolute;
    content: "";
    height: 0;
    width: 100%;
    top: 20px;
    left: 0;
    border-top: 2px dashed var(--secondary);
}

.roadmap-carousel .roadmap-item .roadmap-point {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 6px;
    left: 50%;
    margin-left: -15px;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap-carousel .roadmap-item .roadmap-point span {
    display: block;
    width: 18px;
    height: 18px;
    background: var(--primary);
}

.roadmap-carousel .roadmap-item {
    position: relative;
    padding-top: 150px;
    text-align: left;
}

.roadmap-carousel .roadmap-item::before {
    position: absolute;
    content: "";
    width: 0;
    height: 115px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-right: 2px dashed var(--secondary);
}

.roadmap-carousel .roadmap-item::after {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    top: 111px;
    left: 50%;
    margin-left: -7px;
    transform: rotate(45deg);
    background: var(--primary);
}

.roadmap-carousel .owl-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.roadmap-carousel .owl-nav .owl-prev,
.roadmap-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 22px;
    color: var(--light);
    background: var(--primary);
    transition: .5s;
}

.roadmap-carousel .owl-nav .owl-prev:hover,
.roadmap-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: var(--dark);
}


/*** FAQs ***/
.accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
}

.accordion .accordion-button {
    background: var(--light);
    border-radius: 2px;
}

.accordion .accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: none;
}

.accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-body {
    padding: 15px;
}


/*** Footer ***/
.footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.footer .btn.btn-square:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    border-top: 0px solid rgba(17, 17, 17, .1);
}

.footer .copyright a {
    color: var(--primary);
}

.footer .copyright a:hover {
    color: var(--dark);
}

/* ------------------------------
   App-style UI enhancements
   ------------------------------ */
body.has-app-bottom-nav {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: #ffffff;
    padding-top: 70px;
}

@media (max-width: 991.98px) {
    body.has-app-bottom-nav {
        padding-bottom: 70px;
        /* background: linear-gradient(180deg, #f9f4ff 0%, #f3e9ff 35%, #ffffff 100%); */
        
    }
}
.sticky-navbar{ 
    background: #f7f2ff !important; 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    z-index: 1000 !important; 
    width: 100% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}
.app-card {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(17, 17, 17, 0.08);
    padding: 16px 18px;
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.app-chip-primary { background: rgba(103, 40, 142, 0.12); color: #67288E; }
.app-chip-success { background: rgba(34, 197, 94, 0.12); color: #1d9d5c; }
.app-chip-warning { background: rgba(255, 193, 7, 0.15); color: #c59000; }

.app-actions .btn {
    border-radius: calc(var(--app-radius) * 0.75) !important;
    font-weight: 700;
}

/* Apply common roundedness to all cards */
.card {
    border-radius: var(--app-radius) !important;
}

/* Apply common roundedness to all modals */
.modal-content {
    border-radius: var(--app-radius) !important;
    border: 0;
}

.modal-header {
    border-top-left-radius: var(--app-radius) !important;
    border-top-right-radius: var(--app-radius) !important;
    border-bottom: 1px solid #e5d7f3;
}

.modal-footer {
    border-bottom-left-radius: var(--app-radius) !important;
    border-bottom-right-radius: var(--app-radius) !important;
    border-top: 1px solid #e5d7f3;
}

/* Center modals vertically and constrain width to match content */
.modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto !important;
    max-width: 1140px !important; /* Match container max-width */
    padding: 0 15px; /* Match container padding on mobile */
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto !important;
    max-width: 1140px !important; /* Match container max-width */
    padding: 0 15px; /* Match container padding on mobile */
}

/* Large modals should match container-xxl */
.modal-dialog.modal-lg {
    max-width: 1320px !important; /* Match container-xxl max-width */
}

/* Ensure modal backdrop doesn't interfere */
.modal.show .modal-dialog {
    transform: translate(0, 0) !important;
}

/* On mobile, ensure modals don't touch screen edges */
@media (max-width: 575.98px) {
    .modal-dialog,
    .modal-dialog-centered {
        margin: 0.5rem 15px !important;
        padding: 0;
        max-width: calc(100% - 30px) !important;
    }
}

/* Apply roundedness to app cards */
.app-card {
    border-radius: var(--app-radius) !important;
}

/* Apply roundedness to alerts */
.alert {
    border-radius: var(--app-radius) !important;
    border: 0;
}

/* Apply roundedness to input groups and form controls */
.input-group .form-control,
.input-group .btn {
    border-radius: calc(var(--app-radius) * 0.75) !important;
}

.form-control {
    border-radius: calc(var(--app-radius) * 0.75) !important;
}

/* Apply roundedness to badges */
.badge {
    border-radius: calc(var(--app-radius) * 0.5) !important;
}

/* Apply roundedness to chips */
.app-chip {
    border-radius: calc(var(--app-radius) * 0.75) !important;
}

/* Close button styling - configurable colors */
.btn-close {
    background-color: var(--close-btn-bg) !important;
    color: var(--close-btn-text) !important;
    opacity: 1 !important;
    border-radius: calc(var(--app-radius) * 0.5) !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    background-image: none !important; /* Remove default Bootstrap SVG */
}

.btn-close::before {
    content: "×" !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: var(--close-btn-text) !important;
    font-weight: 300 !important;
}

.btn-close:hover,
.btn-close:focus {
    background-color: var(--close-btn-hover-bg) !important;
    color: var(--close-btn-text) !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.app-tab-shell {
    background: #fff;
    border: 1px solid #e5d7f3;
    border-radius: var(--app-radius);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
    overflow: hidden;
}

.app-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #f7f2ff;
    border-bottom: 0px solid #e5d7f3;
}

.app-tab-btn {
    border: 0;
    border-radius: 0;
    padding: 14px 12px;
    background: transparent;
    color: #7a5aa3;
    font-weight: 700;
    width: 100%;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    text-align: center;
}
.app-tab-btn:first-child { border-top-left-radius: var(--app-radius); }
.app-tab-btn:last-child { border-top-right-radius: var(--app-radius); }
.app-tab-btn .icon { font-size: 16px; }
.app-tab-btn .label { font-size: 14px; text-align: left; } 
.app-tab-btn.active {
    background: #fff;
    color: #67288E;
    font-weight: 800;
}
.app-tab-btn.disabled,
.app-tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.app-tab-btn.disabled:hover,
.app-tab-btn:disabled:hover {
    background-color: transparent;
    color: inherit;
}

.app-tab-content {
    background: #fff;
    padding: 16px;
}
.app-tab-content .wallet-tab-pane,
.app-tab-content .commission-tab-pane,
.app-tab-content .payout-tab-pane { 
    display: none; 
}
.app-tab-content .wallet-tab-pane.active,
.app-tab-content .commission-tab-pane.active,
.app-tab-content .payout-tab-pane.active { 
    display: block; 
}

.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1090;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(103, 40, 142, 0.12);
    box-shadow: 0 -6px 18px rgba(17, 17, 17, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px 10px;
}

.app-bottom-nav .app-nav-item {
    flex: 1;
    text-align: center;
    color: #6c6c6c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    min-width: 0;
}

.app-bottom-nav .app-nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.app-bottom-nav .app-nav-item span {
    display: block;
}

.app-bottom-nav .app-nav-item.active {
    color: #67288E;
    background: rgba(103, 40, 142, 0.12);
    box-shadow: 0 10px 22px rgba(103, 40, 142, 0.18);
}

/* Make text smaller on mobile only */
@media (max-width: 575.98px) {
    .app-bottom-nav .app-nav-item {
        font-size: 10px;
    }
    .app-bottom-nav .app-nav-item span {
        font-size: 10px;
    }
}

@media (min-width: 992px) {
    .app-bottom-nav {
        display: none;
    }
}

/* Pagination styling */
.pagination {
    border-radius: calc(var(--app-radius) * 0.75) !important;
}

.pagination .page-link {
    color: var(--primary);
    border-color: #e5d7f3;
    border-radius: calc(var(--app-radius) * 0.5) !important;
    margin: 0 2px;
    padding: 8px 14px;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    background-color: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background-color: #f5f5f5;
    border-color: #e5d7f3;
    cursor: not-allowed;
}

/* Spot Wallet buttons - uniform width on mobile */
@media (max-width: 767.98px) {
    .app-actions .d-flex.gap-2 .btn {
        flex: 1 1 0;
        min-width: 0;
        width: 100%;
    }
    
    .app-actions .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .app-actions .d-flex.gap-2 .btn {
        flex-basis: calc(50% - 0.5rem);
    }
}

/* Toast Notifications */
.toast-container {
    max-width: 400px;
}

.toast {
    border-radius: var(--app-radius) !important;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.15) !important;
    border: 0 !important;
    margin-bottom: 1rem;
}

.toast-header {
    border-top-left-radius: var(--app-radius) !important;
    border-top-right-radius: var(--app-radius) !important;
    font-weight: 600;
}

.toast-body {
    border-bottom-left-radius: var(--app-radius) !important;
    border-bottom-right-radius: var(--app-radius) !important;
    padding: 1rem;
}

@media (max-width: 575.98px) {
    .toast-container {
        max-width: calc(100% - 30px);
        right: 15px !important;
        left: 15px !important;
    }
}

/* Remove Chrome autofill blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: inherit !important;
    box-shadow: 0 0 0 30px white inset !important;
    background-color: white !important;
    background-clip: content-box !important;
}

/* For dark mode or custom backgrounds, adjust as needed */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: inherit !important;
    box-shadow: 0 0 0 30px white inset !important;
    background-color: white !important;
}