<?php
session_start();
date_default_timezone_set("Africa/Lagos");
require_once '../include/Constants.php';
require_once "../vendor/autoload.php";
require_once "../include/DatabaseConn.php";
require_once "../models/User.php";
require_once '../models/USettings.php';
require_once '../include/GoogleAuthenticator.php';
require_once '../models/Settings.php';
require_once '../models/Investment.php';
require_once '../models/Invoice.php';

$db = new DatabaseConn();
$link = $db->connect();

$user = User::getCurrentUser($link);
if (is_null($user)) {
    $url = $_SERVER['REQUEST_URI'];
    header("location: ../login?" . RETURN_URL . "=" . $url);
    die();
}

$settings = USettings::getSystemSettings($link, $user->getEmail());
if ($settings->getTwofa() && is_null($user->getFa())) {
    header("location: add-2fa");
    die();
}

if (isset($_GET["gae"]) && !isset($_POST["package_type"])) {
    $package = filter_input(INPUT_GET, "gae", FILTER_SANITIZE_STRING);
    if (is_null($package) || is_bool($package) || empty($package) || strtolower($package) === NONE) {
        header("location: new-investment");
        die();
    }
} else if (isset($_POST["package_type"])) {
    $package = filter_input(INPUT_GET, "gae", FILTER_SANITIZE_STRING);
    if (is_null($package) || is_bool($package) || empty($package) || strtolower($package) === NONE) {
        header("location: new-investment");
        die();
    } else {
        $amount = filter_input(INPUT_POST, "amount", FILTER_VALIDATE_FLOAT);
        $paymentMode = filter_input(INPUT_POST, "account22", FILTER_SANITIZE_STRING);
        $setting = Investment::getInvesmentPlansByName($link, $package);
        if (is_null($amount) || is_bool($amount) || $amount < 1) {
            $error = "Please input an amount";
        } else if (is_null($paymentMode) || is_bool($paymentMode) || empty($paymentMode)) {
            $error = "Please select mode of payment";
        } else if (strcmp($paymentMode, "md") != 0 && strcmp($paymentMode, "wallet") != 0) {
            $error = "Please select mode of payment";
        } else if ((double) $amount < (double) $setting->getMinUnformatted()) {
            $error = "The amount inputed is less than the minimum investment for the package selected.";
        } else if (strcasecmp($setting->getMax(), UNLIMITED) != 0) {
            if ((double) $amount > (double) $setting->getMaxUnformatted()) {
                $error = "The amount inputed is greater than the maximum investment for the package selected.";
            }
        }

        if (!isset($error)) {
            if (is_null($setting)) {
                header("location: new-investment");
                die();
            }
            $amount = ((double) $amount);
            if (strcmp($paymentMode, "md") == 0) {
                $invoice = new Invoice();
                $invoice->setAmount($amount);
                $invoice->setDate(time());
                $invoice->setUser($user->getEmail());
                $invoice->setPackage($setting->getName());
                $invoice->setIType($setting->getType());
                $invoice->setRoi($setting->getPercentage());
                $invoice->setDays($setting->getDays());
                $invoice->setPaymentMode(OTHERS);
                $response = Invoice::createInvoice($invoice, $link);
                if (!is_null($response)) {
                    $nn = $user->getName();
                    $ww = $user->getEmail();
                    User::notify1(EMAIL_SUPPORT, "<p>$nn($ww) has created an invoice with amount $amount USD. </p>", "Invoice Notification");
                    header("location: investment-history");
                    die();
                } else {
                    $error = "An unexpected error occured.";
                }
            } else if (strcmp($paymentMode, "wallet") == 0) {
                $balance = User::getWalletBalance($link, $user->getEmail());
                if (($amount ) > $balance) {
                    $error = "The balance on your ledger is low. Please fund it or try another payment method.";
                } else {
                    $invoice = new Invoice();
                    $invoice->setAmount($amount);
                    $invoice->setDate(time());
                    $invoice->setUser($user->getEmail());
                    $invoice->setPackage($setting->getName());
                    $invoice->setRoi($setting->getPercentage());
                    $invoice->setDays($setting->getDays());
                    $invoice->setPaymentMode(WALLET_BALANCE);
                    $invoice->setItype($setting->getType());
                    $response = Invoice::createInvoice($invoice, $link);
                    if (!is_null($response)) {
                        $balance = ($amount);
                        $time = time();
                        Invoice::confirmInvoice($response->getId(), $link, $user->getEmail(), $time);
                        $invested = INVESTED;
                        mysqli_query($link, "insert INTO withdrawals(`user`,amount,status,`date`) VALUES ('{$user->getEmail()}',$balance ,'$invested','$time')");
                        $id = mysqli_insert_id($link);
                        $status = INVESTED;
                        mysqli_query($link, "insert INTO wallet(`user`,amount,`date`,status) VALUES('{$user->getEmail()}',$balance, '$time','$status')");
                        $nn = $user->getName();
                        $ww = $user->getEmail();
                        User::notify1(EMAIL_SUPPORT, "<p>$nn($ww) has created an invoice with amount $amount USD and paid for it with wallet balance. </p>", "Invoice Notification");
                        header("location: investment-history");
                        die();
                    } else {
                        $error = "An unexpected error occured.";
                    }
                }
            }
        }
    }
} else {
    header("location: new-investment");
    die();
}
$setting = Investment::getInvesmentPlansByName($link, $package);

if (is_null($setting)) {
    header("location: new-investment");
    die();
}
?>

<!DOCTYPE html>
<html lang="en">
    <head>

        <?php require_once './partials/head_.php'; ?>
        <style> @import url("//fonts.googleapis.com/css?family=Overpass:300,400,600,700&display=swap");@import url("bootstrap.min.css");@import url("ionicons.min.css");@import url("jquery.mcustomscrollbar.min.css");body{font-family: "Overpass", sans-serif;font-size: 14px;line-height: 1.5;color: #18214D;background: #FFFFFF;font-weight: 400}ul,ol{margin: 0;padding: 0;list-style: none}img{max-width: 100%;height: auto}.mtb15{margin: 15px 0}.mt15{margin-top: 15px}.mb15{margin-bottom: 15px}.ml15{margin-left: 15px}.mr15{margin-right: 15px}.ptb70{padding: 70px 0}.pt70{padding-top: 70px}.pb40{padding-bottom: 40px}::-webkit-scrollbar{background: transparent;width: 3px;height: 6px}::-webkit-scrollbar-thumb{background: rgba(0, 0, 0, 0.07);border: solid rgba(88, 88, 88, 0.12) 2px;border-radius: 5px}.dropdown-toggle::after{vertical-align: 1px}thead tr th{padding: 8px 15px !important}thead th{color: #758696;font-size: 13px;font-weight: 600;border: 0 !important}tbody tr{color: #4a4a4a}tbody tr:hover{background: #f6f8f9}.input-group-text,.form-control{border-radius: 5px}.table tbody + tbody{border: none}.heading{background: #f5f9fc;font-size: 14px;font-weight: 400;padding: 13px;margin: 0;color: #4a4a4a}.green{color: #26de81}.red{color: #ff231f}.table td,.table th{border-top: 1px solid #f0f3fa}.light-bb,.input-group-text{border: 1px solid #e0e3eb}.dark-bb{border-bottom: 1px solid #2a2e39}#darkDepthChart,#lightDepthChart{width: 100%;height: 349px}.sm-gutters{padding-left: 7.5px;padding-right: 7.5px}.sm-gutters > .col,.sm-gutters > [class*=col-]{padding-right: 7.5px;padding-left: 7.5px}.form-control::-webkit-input-placeholder{color: #18214d59}.form-control::-moz-placeholder{color: #18214d59}.form-control:-ms-input-placeholder{color: #18214d59}.form-control:-moz-placeholder{color: #18214d59}.custom-control-input:focus ~ .custom-control-label::before{box-shadow: none}@keyframes pulse{0%{opacity: 1;width: 7px;height: 7px;left: 0;top: 0}95%{opacity: 0.1;left: -10.5px;top: -10.5px;width: 28px;height: 28px}100%{opacity: 0;width: 7px;height: 7px;left: 0;top: 0}}@keyframes slideIn{0%{transform: translateY(1rem);opacity: 0}100%{transform: translateY(0rem);opacity: 1}0%{transform: translateY(1rem);opacity: 0}}header nav a{color: #18214d}header nav a:hover{color: #ffcd05}header .navbar-brand{padding: 0}header .navbar-brand img{height: 45px}.navbar-expand-lg .navbar-nav .nav-link{padding-right: 1rem;padding-left: 1rem}header nav .nav-item.active a{color: #ffcd05}header .nav-link.btn{padding: 5px 0}.circle-pulse{background: #0089ff;width: 7px;height: 7px;border-radius: 50%;position: absolute;right: 12px;top: 12px}.circle-pulse:after{background-color: #0089ff;content: "";display: table;border-radius: 50%;position: absolute;animation-name: pulse;animation-duration: 0.9s;animation-iteration-count: infinite;animation-timing-function: ease-out}.header-custom-icon .nav-link{line-height: 0;margin-top: 6px}.dropdown-item{color: #18214d;font-size: 14px}.dropdown-item:focus,.dropdown-item:active{background-color: #f8f9fa;color: #16181b}.header-img-icon .nav-link.dropdown-toggle{padding-right: 0}.header-custom-icon a:after,.header-img-icon a:after{display: none}.header-custom-icon .dropdown-menu,.header-img-icon .dropdown-menu{padding: 0;margin-top: 8px}.dropdown-menu{max-width: 280px;position: absolute;right: 0;left: auto;border-radius: 5px;margin-top: 12px;border: 1px solid #f2f4f9;box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;animation-duration: 0.3s;animation-fill-mode: both;animation-name: slideIn}.dropdown-menu::before{content: "";width: 13px;height: 13px;background: #fff;position: absolute;top: -8px;right: 5%;transform: rotate(45deg);border-top: 1px solid #f2f4f9;border-left: 1px solid #f2f4f9;z-index: -1}.dropdown-menu p{color: #18214d;font-weight: 600}.dropdown-menu a:hover{text-decoration: none}.dropdown-menu a.text-muted:hover{color: #ffcd05 !important}.header-img-icon .nav-link img{width: 30px}.header-custom-icon i{font-size: 20px;color: #758696}.dropdown-header{padding: 12px 20px;font-size: 13px;border-bottom: 1px solid #f2f4f9}.dropdown-body{padding: 5px;max-height: 290px;position: relative;overflow-y: auto}.dropdown-body .dropdown-item{display: flex;align-items: center;padding: 9px 16px}.dropdown-body .dropdown-item .content{margin-left: 15px;width: 200px;white-space: normal}.dropdown-item .icon{width: 30px;height: 30px;border-radius: 50%;display: flex;align-items: center;justify-content: center;background: #f7f7f7}.dropdown-body .dropdown-item .content p{margin: 0;font-size: 13px;font-weight: 400}.dropdown-body .dropdown-item .content p.sub-text{font-size: 12px}.dropdown-footer{padding: 10px 20px;border-top: 1px solid #f2f4f9;font-size: 14px}.dropdown-item:nth-child(1) .icon{background: rgba(114, 124, 245, 0.1)}.dropdown-item:nth-child(1) .icon i{color: #727cf5}.dropdown-item:nth-child(2) .icon{background: rgba(255, 51, 102, 0.1)}.dropdown-item:nth-child(2) .icon i{color: #ff5680}.dropdown-item:nth-child(3) .icon{background: rgba(102, 209, 209, 0.1)}.dropdown-item:nth-child(3) .icon i{color: #66d1d1}.dropdown-item:nth-child(4) .icon{background: rgba(251, 188, 6, 0.1)}.dropdown-item:nth-child(4) .icon i{color: #fbbc06}.dropdown-item:nth-child(5) .icon{background: rgba(16, 183, 89, 0.1)}.dropdown-item:nth-child(5) .icon i{color: #10b759}.header-img-icon .dropdown-header{padding: 0px 20px}.header-img-icon .profile-nav .nav-item .nav-link{font-size: 14px;padding: 5px 20px}.header-img-icon .profile-nav{padding-bottom: 11px}.header-img-icon .profile-nav .nav-item .nav-link:hover{color: #18214d;background-color: #f8f9fa}.header-img-icon .profile-nav .nav-item .nav-link.red{color: #f74745}.header-img-icon .profile-nav .nav-item .nav-link.red:hover{color: #f74745 !important}.header-img-icon .dropdown-body{padding: 10px 0 0}.header-img-icon .dropdown-header .name{font-size: 16px}.header-img-icon .dropdown-header{padding: 20px 20px 0}.header-img-icon .profile-nav .nav-item .nav-link i{margin-right: 15px}.market-pairs{border: 1px solid #e0e3eb;padding-top: 14px;border-radius: 2px}.market-pairs .input-group{padding: 0 14px}.market-pairs span{background: transparent}.market-pairs input{border-color: #e0e3eb;border-left: 0;font-weight: 300}.market-pairs input:focus{box-shadow: none;border-color: #e0e3eb}.market-pairs .nav{margin-top: 14px;background: #f5f9fc}.market-pairs .nav-link{color: #4a4a4a;padding: 10px 13px}.market-pairs .nav-link.active{color: #ffcd05;background: transparent}.table{margin-bottom: 0}.table td{font-size: 13px;padding: 10px 18px}.market-pairs tbody tr td i{color: #75869696}#STAR i{color: #ffcd05}.market-pairs thead tr th,.market-pairs tbody tr td{cursor: pointer;font-weight: 400}.market-pairs tbody{height: 800px;overflow-y: auto;display: block}.no-fluid .market-pairs tbody{height: 815px}.market-pairs table,.market-pairs tr{width: 100%;table-layout: fixed}.market-pairs tr{float: left;clear: both;overflow: hidden}.market-pairs thead th,.market-pairs tbody td{width: 65%}.order-book table,.order-book tr,.order-book td,.order-book th{width: 100%;table-layout: fixed}.order-book tr{float: left;clear: both;overflow: hidden}.order-book .table thead th{font-weight: 400;font-size: 12px}.order-book thead tr{border-bottom: 1px solid #e0e3eb}.order-book tbody tr,.order-book tbody td{border: none}.order-book{border: 1px solid #e0e3eb;border-radius: 2px}.red-bg-80,.red-bg-60,.red-bg-40,.red-bg-20,.red-bg-10,.red-bg-8,.red-bg-5,.red-bg,.green-bg-80,.green-bg-60,.green-bg-40,.green-bg-20,.green-bg-10,.green-bg-8,.green-bg-5,.green-bg{position: relative}.red-bg-80:after,.red-bg-60:after,.red-bg-40:after,.red-bg-20:after,.red-bg-10:after,.red-bg-8:after,.red-bg-5:after,.red-bg:after{position: absolute;content: "";background: #de262663;right: 0;top: 0;width: 280px;height: 45px}.red-bg-60:after{width: 240px}.red-bg-40:after{width: 200px}.red-bg-20:after{width: 160px}.red-bg-10:after{width: 120px}.red-bg-8:after{width: 80px}.red-bg-5:after{width: 50px}.red-bg:after{width: 30px}.green-bg-80:after,.green-bg-60:after,.green-bg-40:after,.green-bg-20:after,.green-bg-10:after,.green-bg-8:after,.green-bg-5:after,.green-bg:after{position: absolute;content: "";background: #26de8163;right: 0;top: 0;width: 280px;height: 45px}.green-bg-60:after{width: 240px}.green-bg-40:after{width: 200px}.green-bg-20:after{width: 160px}.green-bg-10:after{width: 120px}.green-bg-8:after{width: 80px}.green-bg-5:after{width: 50px}.green-bg:after{width: 30px}.ob-heading span{color: #4a4a4a;display: block;font-size: 12px;font-weight: 400}.ob-heading td{padding: 5px 12px;cursor: default}.ob-heading tr{border-top: 1px solid #f0f3fa !important;border-bottom: 1px solid #f0f3fa !important}.ob-heading tr:hover{background: #fff}.ob-heading td:first-child{width: 65%}.order-book tbody{display: block;overflow-y: auto;height: 211px}tbody.ob-heading{height: inherit}.market-trade input{border: 1px solid #e0e3eb;font-weight: 300}.market-trade input:focus{box-shadow: none;border-color: #e0e3eb}.market-trade{border: 1px solid #e0e3eb;border-radius: 2px}.market-trade .tab-content{height: 357px;overflow-y: auto;padding: 14px}.market-trade .nav{padding: 14px 14px 0}.market-trade .nav .nav-item .nav-link.active{background: #fff;color: #ffcd05}.market-trade .nav .nav-item .nav-link{color: #4a4a4a;padding: 0}.market-trade .input-group-text{background: #eff2f6;color: #4a4a4a;font-weight: 300}.market-trade .input-group{margin-bottom: 14px}.market-trade .nav-item{margin-right: 30px}.market-trade-list li a{background: #eff2f6;color: #4a4a4a;font-weight: 300;padding: 3px 15px;border-radius: 5px}.market-trade-list li{display: inline-block;margin-right: 7px;margin-bottom: 7px}.market-trade-list li:last-child{margin-right: 0}.market-trade-buy .market-trade-list li a:hover{text-decoration: none;background: #26a69a;color: #fff}.market-trade-sell .market-trade-list li a:hover{text-decoration: none;background: #ef5350;color: #fff}.market-trade button.buy,.market-trade button.sell{background: #26de81;color: #fff;text-transform: uppercase;padding: 10px;margin-top: 30px;width: 100%;box-shadow: 0px 0px 15px 0px #26de81ad}.market-trade button.sell{background: #ff231f;box-shadow: 0px 0px 15px 0px #ff231fad}.market-trade p{margin: 5px 0;font-size: 13px;color: #4a4a4a}.market-trade p span{float: right}.market-trade-list{margin-bottom: 23px}.market-trade-item{width: 100%}.market-trade-buy,.market-trade-sell{width: 100%}.market-trade-buy{padding: 0 15px 0 0}.market-trade-sell{padding: 0 0 0 15px;border-left: 1px solid #e0e3eb}.market-history .nav{background: #F5F9FC}.market-history .nav-link{color: #4a4a4a;padding: 10px 13px}.market-history .nav-link.active{color: #ffcd05;background: transparent}.market-history thead tr th,.market-history tbody tr td{cursor: pointer;font-weight: 400}.market-history tbody{height: 315px;overflow-y: auto;display: block}.market-history table,.market-history tr,.market-history td,.market-history th{width: 100%;table-layout: fixed}.market-history tr{float: left;clear: both;overflow: hidden}.market-history{border: 1px solid #e0e3eb;border-radius: 2px}.market-news{border: 1px solid #e0e3eb;border-radius: 2px}.market-news li a{color: #4a4a4a;font-size: 11px;display: block;text-decoration: none}.market-news li:hover{background: #f6f8f9}.market-news li strong{display: block;font-size: 13px;margin-bottom: 2px;color: #4a4a4ac7}.market-news li span{display: block;margin-top: 5px}.market-news li{border-bottom: 1px solid #f0f3fa;padding: 10px 13px}.market-news li:last-child{border: 0}.market-news ul{height: 348px;overflow-y: auto}.market-order th{width: 13%}.no-data{position: absolute;right: 48%;top: 48%;text-align: center;color: #b9c2ca}.no-data i{font-size: 100px;display: block;line-height: 0px;color: #dce1e5}.market-order-item{color: #758696;padding: 8px 15px}.market-order{border-top: 0;min-height: 392px;border: 1px solid #e0e3eb;border-radius: 2px}.markets-chart > div{width: 110%;margin-left: -16px}.markets-container{position: relative;overflow: hidden;height: 159px;border: 1px solid rgba(0, 0, 0, 0.02);box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.04);border-radius: 5px;margin-bottom: 30px}.markets-chart{position: absolute;top: 40px;width: 100%;left: 0}.markets-content span.green,.markets-content span.red{position: absolute;right: 0;background: #26a69a;color: #fff;top: 15px;padding: 3px 12px;border-top-left-radius: 50px;border-bottom-left-radius: 50px;font-weight: 600}.markets-content span.red{background: #ef5350}.markets-content h2{font-size: 14px;top: 14px;position: absolute;left: 15px;color: #4a4a4a}.markets-content p{position: absolute;top: 32px;left: 15px;font-size: 16px}.markets-pair-list tr{cursor: pointer}.markets-pair-list th,.markets-pair-list td{padding: 15px !important;width: 16%;font-size: 14px}.markets-pair-list tbody tr td i{color: #75869696}.markets-pair-list .nav-link.active{color: #ffcd05;background: transparent}.markets-pair-list .nav-link{color: #4a4a4a}.markets-pair-list .nav{background: #f5f9fc;padding: 7px 0}.markets-pair-list th{font-weight: 400}.markets-pair-list td img{width: 18px;vertical-align: text-top;margin-right: 5px}.markets-pair-list .load-more{border: 1px solid #e0e3eb;display: inline-block;padding: 11px 30px 8px;color: #4a4a4a;margin-top: 50px;transition: 0.3s}.markets-pair-list .load-more i{margin-left: 10px}.markets-pair-list .load-more:hover{background: #ffcd05;color: #fff;border: 1px solid #ffcd05}.markets-item{margin-bottom: 30px}.markets-capital-item{box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;padding: 40px 0 0 0;text-align: center;border-radius: 5px;border: 1px solid #f2f4f9;height: 311px;margin-bottom: 30px}.markets-capital-chart{margin-left: -10px}.markets-capital-item img{width: 25px;margin-top: -3px;margin-right: 2px}.markets-capital-item h4{margin-top: 16px;margin-bottom: 15px;font-size: 20px}.markets-capital-item h2{font-size: 26px}.markets-capital-details h3{font-size: 18px;margin-bottom: 40px}.market-capital-ticker .markets-capital-item{height: 96.2%;margin-bottom: 5px}.form-access form{box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;border-radius: 5px;padding: 30px;border: 1px solid #f2f4f9;min-width: 350px}.form-access .form-group input{border: 1px solid #e0e3eb;height: 45px;color: #18214d;font-size: 14px}.form-access .form-group input:focus{box-shadow: none}.form-access a:hover{text-decoration: none}.form-access span{text-align: center;display: block;font-size: 22px;margin-bottom: 15px;margin-top: -5px;font-weight: 600}.form-access .text-right{margin-top: -5px;font-weight: 600}.form-access button{width: 100%;padding: 12px;font-weight: 600;margin-top: 20px}.form-access .custom-control-label::before,.form-access .custom-control-label::after{top: 2px}.form-access .custom-control-label::before{border: #cbd2df solid 1px}.form-access h2{font-size: 14px;text-align: center;margin-top: 20px}.form-access h2 a{font-weight: 600}.error-page h2{font-size: 250px;font-weight: 700;margin-bottom: 0;line-height: 1}.error-page p{font-size: 16px;margin-bottom: 40px}.error-page a{border: 1px solid #e0e3eb;display: inline-block;padding: 11px 30px 8px;color: #4a4a4a;transition: 0.3s}.error-page a:hover{background: #ffcd05;color: #fff;border: 1px solid #ffcd05}.error-page a i{margin-left: 10px}.technical-analysis .tradingview-widget-container{margin-bottom: 30px}.symbol-info .tradingview-widget-container{margin-bottom: 15px}.markets-overview .tradingview-widget-container{margin-bottom: 30px}.settings .card{box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;border-radius: 5px;border: none;margin-bottom: 15px}.settings-nav{box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;border-radius: 5px}.settings-nav .nav-link{border-radius: 0;text-transform: uppercase;color: #18214d;font-weight: 600;margin: 2px 0;padding: 10px 20px}.settings-nav .nav-link i{margin-right: 10px}.settings .card-title{font-size: 16px;margin-bottom: 30px}.settings-profile .col-md-6{margin-bottom: 20px}.settings-profile input:not([type='radio']),.settings-profile select{border: 1px solid #e0e3eb;border-radius: 5px;font-size: 14px;height: 45px}.settings-profile input[type=submit]{background: #ffcd05;color: #fff;font-weight: 600;padding: 10px 25px;height: inherit;font-size: 16px;margin-top: 10px}.settings-profile .custom-file{display: inline-block;width: 20%;margin-left: 20px}.settings-profile .custom-file label{border: 1px solid #e0e3eb}.settings-profile .custom-file label:after{background: #ffcd05;color: #fff;font-weight: 600}.settings .wallet .nav-pills img{width: 40px;height: 40px;margin-right: 15px}.settings .wallet .nav-pills h2{margin-bottom: 0;line-height: 1;color: #18214d;font-size: 22px}.settings .wallet .nav-pills p{margin-bottom: 0;color: #18214d}.settings .wallet .nav-pills a.active{background: #0f7dff}.settings .wallet .nav-pills a{border-top: 1px solid #f0f3fa;padding: 15px}.settings .wallet .nav-pills a:first-child,.settings-nav .nav-link:first-child{border-top: 0;border-top-right-radius: 5px;border-top-left-radius: 5px}.settings .wallet .nav-pills a:last-child,.settings .settings-nav .nav-link:last-child{border-bottom-right-radius: 5px;border-bottom-left-radius: 5px}.settings .wallet .nav-pills h3{color: #18214d;margin-bottom: 0}.settings .wallet .nav-pills{box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;border-radius: 5px}.settings .wallet .nav-pills a{border-radius: 0}.settings .wallet .nav-pills a.active h2,.settings .wallet .nav-pills a.active h3,.settings .wallet .nav-pills a.active p{color: #ffffff}.settings .wallet .tab-content li i{font-size: 22px;color: #0f7dff;background: rgba(15, 125, 255, 0.13);width: 40px;height: 40px;border-radius: 50px;text-align: center;line-height: 45px;margin-right: 15px}.settings .wallet .tab-content h2{margin-bottom: 0;font-size: 18px}.settings .wallet .tab-content h3{margin-bottom: 0;font-size: 18px}.settings .wallet .tab-content li:first-child{border-bottom: 1px solid #f0f3fa;padding-bottom: 15px;margin-bottom: 15px}.settings .wallet .tab-content button.green{background: #26de81;color: #ffffff;box-shadow: 0px 0px 15px 0px #26de81ad}.settings .wallet .tab-content button.red{background: #ff231f;box-shadow: 0px 0px 15px 0px #ff231fad;color: #ffffff}.settings .wallet .tab-content button{padding: 12px 60px;margin-right: 10px;margin-bottom: 20px}.settings .wallet .tab-content button:focus{box-shadow: none}.settings .wallet .tab-content ul{margin: 0 0 40px}.settings .wallet-address input{padding: 25px 15px;font-size: 14px}.settings .wallet-address .input-group-prepend button{padding: 13px 20px;border-top-right-radius: 5px !important;border-bottom-right-radius: 5px !important}.settings .wallet-address input{border: 1px solid #e0e3eb}.settings .wallet-history i{margin-left: 14px}.settings .wallet-address .input-group{padding-top: 30px}.settings .wallet .tab-content h2.wallet-title{color: #18214d;font-size: 16px}.settings-notification li{display: flex;justify-content: space-between;padding: 15px 0;border-bottom: 1px solid #f0f3fa;align-items: center}.settings-notification li:first-child{padding-top: 0}.settings-notification li:last-child{padding-bottom: 0;border-bottom: 0}.settings-notification li span{color: #18214d59}.settings-notification li p{margin-bottom: 0}.settings .custom-control-label{cursor: pointer}.wallet-history .ion-md-trash{font-size: 16px;cursor: pointer}.wallet-history{overflow-x: auto}#dark,#dark header{background: #131722}#dark header nav a{color: #ffffff}#dark header nav a:hover{color: #ffcd05}#dark header nav a.btn:hover{color: #ffffff}#dark header nav .nav-item.active a{color: #ffcd05}#dark .market-pairs{border: 1px solid #2a2e39;background: #131722}#dark tr{background: #131722}#dark .market-pairs .table td,#dark .market-pairs .table th{border-top: 1px solid #2a2e39}#dark .market-history .table td,#dark .market-history .table th{border-top: 1px solid #2a2e39}#dark .order-book thead tr{border-bottom: 1px solid #2a2e39}#dark .order-book,#dark .market-history,#dark .market-news{border: 1px solid #2a2e39}#dark tbody tr:hover{background: #2a2e39}#dark .form-control::-webkit-input-placeholder{color: #69727a}#dark .form-control::-moz-placeholder{color: #69727a}#dark .form-control:-ms-input-placeholder{color: #69727a}#dark .form-control:-moz-placeholder{color: #69727a}#dark tbody tr{color: #ffffff}#dark thead th,#dark .market-pairs .nav-link{color: #4f5966}#dark .market-pairs .nav-link.active,#dark #STAR i{color: #ffffff}#dark .green{color: #26de81}#dark .red{color: #ff231f}#dark .market-pairs .nav{background: #1c2030}#dark .market-pairs input,#dark .market-pairs span{border-color: #2a2e39;background: #2a2e39}#dark .market-pairs input{color: #ffffff}#dark .heading{background: #1c2030;color: #ffffff}#dark .ob-heading tr{border-top: 1px solid #2a2e39 !important;border-bottom: 1px solid #2a2e39 !important}#dark .ob-heading tr:hover{background: #131722;cursor: default}#dark .ob-heading span{color: #4f5966}#dark .dropdown-menu{background: #131722;box-shadow: 0 0 10px 0 #131722;border: 1px solid #2a2e39}#dark .dropdown-item:focus,#dark .dropdown-item:hover{background-color: #2a2e39;color: #ffffff}#dark .market-history .nav{background: #1c2030}#dark .market-history .nav-link.active{color: #ffffff}#dark .market-history .nav-link{color: #4f5966}#dark .red-bg-80:after,#dark .red-bg-60:after,#dark .red-bg-40:after,#dark .red-bg-20:after,#dark .red-bg-10:after,#dark .red-bg-8:after,#dark .red-bg-5:after,#dark .red-bg:after{background: #ff231f63}#dark .market-news{background: #131722}#dark .market-news li{border-bottom: 1px solid #2a2e39}#dark .market-news li:hover{background: #2a2e39}#dark .market-news li strong,#dark .market-news li a{color: #c5cbce}#dark .market-order{background: #131722}#dark .no-data i,#dark .no-data{color: #2a2e39}#dark .market-trade{border: 1px solid #2a2e39;background: #131722}#dark .market-trade .nav .nav-item .nav-link.active{background: transparent;color: #ffffff}#dark .market-trade .nav .nav-item .nav-link{color: #4f5966}#dark .market-trade p{color: #c5cbce}#dark .market-trade-list li a{background: #2a2e39;color: #ffffff}#dark .market-trade input{border: 1px solid #2a2e39;background: #2a2e39;color: #ffffff}#dark .market-trade .input-group-text{background: #2a2e39;color: #ffffff;border-color: #2a2e39}#dark .market-trade-buy .market-trade-list li a:hover{background: #26de81;color: #fff}#dark .market-trade-sell .market-trade-list li a:hover{background: #ff231f;color: #fff}#dark #darkDepthChart{background: #131722}#dark .markets{background: #131722}#dark .table td,#dark table th{border-top: 1px solid #2a2e39}#dark .markets-pair-list .nav{background: #1c2030}#dark .markets-pair-list .nav-link.active,#dark #STAR i{color: #ffffff}#dark thead th,#dark .markets-pair-list .nav-link{color: #4f5966}#dark .markets-pair-list .load-more{border: 1px solid #2a2e39;color: #ffffff}#dark .markets-pair-list .load-more:hover{color: #fff;border: 1px solid #ffcd05}#dark .markets-content h2,#dark .markets-content p{color: #ffffff}#dark .markets-content span.green,#dark .markets-content span.red{color: #fff}#dark .market-trade-sell{border-left: 1px solid #2a2e39}#dark .markets-container{background: #1e222d}#dark .sign-up-form h3{border-top: 0;margin-top: 0;padding-top: 15px}#dark header nav .nav-item.active a.btn:hover{color: #fff}#dark .custom-control-input:checked ~ .custom-control-label::before{color: #fff;border-color: #ffcd05;background-color: #ffcd05}#dark .dropdown-menu::before{background: #131722;border-top: 1px solid #2a2e39;border-left: 1px solid #2a2e39}#dark .dropdown-menu p{color: #ffffff}#dark .dropdown-header{border-bottom: 1px solid #2a2e39}#dark .dropdown-footer{border-top: 1px solid #2a2e39}#dark .header-img-icon .profile-nav .nav-item .nav-link:hover{background-color: #2a2e39;color: #ffffff}#dark .form-control,#dark .settings-profile select{background-color: #2a2e39;border: 1px solid #2a2e39;color: #ffffff}#dark .form-access form{padding: 30px;border-radius: 5px;min-width: 350px;box-shadow: 0 0 10px 0 #131722;border: 1px solid #2a2e39}#dark .form-access h2,#dark .form-access{color: #ffffff}#dark .form-access .custom-control-label::before{border: #2a2e39 solid 1px;background-color: #2a2e39}#dark .error-page a{border: 1px solid #2a2e39;color: #ffffff}#dark .error-page a:hover{border: 1px solid #ffcd05;background: #ffcd05;color: #ffffff}#dark .error-page h2,#dark .error-page p{color: #c5cbce}#dark .wallet .nav-pills a,#dark .wallet-history{border-top: 1px solid #2a2e39}#dark .wallet .nav{background: #1e222d}#dark .wallet h2,#dark .wallet h3,#dark .wallet h4,#dark .wallet p{color: #ffffff}#dark .wallet button.green,#dark .wallet button.red,#dark .wallet .nav-pills a.active h2,#dark .wallet .nav-pills a.active h3,#dark .wallet .nav-pills a.active p{color: #ffffff}#dark .wallet .tab-content li:first-child{border-bottom: 1px solid #2a2e39}#dark .wallet-history tr{background: #1e222d}#dark .wallet-address input,#dark .wallet-address input:focus{border: 1px solid #2a2e39;background: #2a2e39;box-shadow: none;color: #ffffff}#dark .depth-chart-inner{border: 1px solid #2a2e39}#dark .markets-capital-item{box-shadow: 0 0 10px 0 #131722;border: 1px solid #2a2e39}#dark .markets-capital-item h2,#dark .markets-capital-item h4{color: #fff}#dark .settings .card{background: #1e222d}#dark .settings .card-title{color: #fff}#dark .settings-nav{background: #1e222d}#dark .settings-nav .nav-link{color: #ffffff}#dark .settings-notification li{border-bottom: 1px solid #2a2e39}#dark .settings-notification li:last-child{border-bottom: 0}#dark .settings-notification p{color: #ffffff}#dark .settings-notification span{color: #4f5966}#dark .settings label{color: #fff}#dark .settings .custom-file-label{background: #2a2e39;border: 1px solid #2a2e39;color: #616d75}#dark .settings-profile input[type=submit]{border: 1px solid #ffcd05}@media only screen and (max-width: 1434px){.market-pairs tbody{height: 760px}.no-fluid .market-pairs tbody{height: 815px}.settings-profile .custom-file{width: 25%}}@media only screen and (max-width: 1300px){.market-pairs tbody{height: 740px}.no-fluid .market-pairs tbody{height: 755px}}@media only screen and (max-width: 1200px){.markets-capital-item{height: 289px}}@media only screen and (max-width: 991px){.settings-nav{margin-bottom: 15px}.settings-profile .custom-file{width: 35%}}@media only screen and (max-width: 918px){.market-history tbody{height: 274px}}@media only screen and (max-width: 792px){.market-pairs tbody{height: 699px}}@media only screen and (max-width: 768px){.settings-profile .custom-file{width: 45%}header button.navbar-toggler i{font-size: 30px;color: #4a4a4a}header button.navbar-toggler:focus{outline: none}.navbar-collapse .dropdown.menu-avatar-icon{margin-top: 10px}.no-fluid .market-pairs{margin-bottom: 15px}.no-fluid .order-book{margin-top: 15px}.circle-pulse{left: 27px;right: inherit}.dropdown-menu::before{right: inherit;left: 5%}.wallet .nav{margin-bottom: 30px}.wallet-address img{margin-top: 40px}#dark header button.navbar-toggler i{color: #c5cbce}.market-order-item{padding: 5px 5px;overflow: hidden}.market-order-item li{font-size: 12px}.markets-capital-item{height: 304px}}@media only screen and (max-width: 576px){.markets-capital-item{height: 91.4%}}#dark .form-control, #dark .settings-profile select{background-color: #2a2e39;border: 1px solid #2a2e39;color: #ffffff}label{display: block}.settings-profile input:not([type='radio']), .settings-profile select{width: 100%;margin-bottom: 19px;padding-left: 8px}#dark .settings .card{background: #1f2225;padding: 10px}#dark .settings-profile input[type="submit"]{border: 1px solid #31b993;background: #31b993}</style>
        <style>
            /*!
             * Bootstrap v4.4.1 (https://getbootstrap.com/)
             * Copyright 2011-2019 The Bootstrap Authors
             * Copyright 2011-2019 Twitter, Inc.
             * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
             */[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}h5{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}ul{margin-top:0;margin-bottom:1rem}label{display:inline-block;margin-bottom:.5rem}input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}input{overflow:visible}[type=submit]{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox]{box-sizing:border-box;padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}h5{margin-bottom:.5rem;font-weight:500;line-height:1.2}h5{font-size:1.25rem}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.col-lg-9,.col-md-12{position:relative;width:100%;padding-right:15px;padding-left:15px}@media (min-width:768px){.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}@media (min-width:992px){.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before{border-color:#28a745}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before{border-color:#dc3545}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label::before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50%/50% 50%}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label::before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label::after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label::after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label::after{background-color:#fff;-webkit-transform:translateX(.75rem);transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-control-label::before{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label::before{transition:none}}.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}@supports ((position:-webkit-sticky) or (position:sticky)){}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}p{orphans:3;widows:3}@page{size:a3}body{min-width:992px!important}}
            /*# sourceMappingURL=bootstrap.min.css.map */
            .mtb15 {
                margin: 15px 0;
            }

            .mt15 {
                margin-top: 15px;
            }

            .mb15 {
                margin-bottom: 15px;
            }

            .ml15 {
                margin-left: 15px;
            }

            .mr15 {
                margin-right: 15px;
            }

            .ptb70 {
                padding: 70px 0;
            }

            .pt70 {
                padding-top: 70px;
            }

            .pb40 {
                padding-bottom: 40px;
            }
            .custom-control-input:focus ~ .custom-control-label::before {
                box-shadow: none;
            }

            .settings .card {
                box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 14px -6px;
                border-radius: 5px;
                border: none;
                margin-bottom: 15px;
            }

            .settings .card-title {
                font-size: 16px;
                margin-bottom: 30px;
            }

            .settings-profile input:not([type='radio']) {
                border: 1px solid #e0e3eb;
                border-radius: 5px;
                font-size: 14px;
                height: 45px;
            }

            .settings-profile input[type="submit"] {
                background: #ffcd05;
                color: #fff;
                font-weight: 600;
                padding: 10px 25px;
                height: inherit;
                font-size: 16px;
                margin-top: 10px;
            }

            .settings-notification li {
                display: flex;
                justify-content: space-between;
                padding: 15px 0;
                border-bottom: 1px solid #f0f3fa;
                align-items: center;
            }

            .settings-notification li:first-child {
                padding-top: 0;
            }

            .settings-notification li:last-child {
                padding-bottom: 0;
                border-bottom: 0;
            }

            .settings-notification li span {
                color: #18214d59;
            }

            .settings-notification li p {
                margin-bottom: 0;
            }

            .settings .custom-control-label {
                cursor: pointer;
            }


            #dark .custom-control-input:checked ~ .custom-control-label::before {
                color: #fff;
                border-color: #ffcd05;
                background-color: #ffcd05;
            }

            #dark .settings .card {
                background: #1e222d;
            }

            #dark .settings .card-title {
                color: #fff;
            }

            #dark .settings-notification li {
                border-bottom: 1px solid #2a2e39;
            }

            #dark .settings-notification li:last-child {
                border-bottom: 0;
            }

            #dark .settings-notification p {
                color: #ffffff;
            }

            #dark .settings-notification span {
                color: #4f5966;
            }

            #dark .settings label {
                color: #fff;
            }

            #dark .settings-profile input[type="submit"] {
                border: 1px solid #ffcd05;
            }
            #dark .custom-control-input:checked ~ .custom-control-label::before {
                color: #fff;
                border-color: #31b993;
                background-color: #31b993;
            }
            #dark .settings-profile input[type="submit"] {
                border: 1px solid #31b993;
            }
            .settings-profile input[type="submit"] {
                background: #31b993;
            }
            #dark .settings .card {
                background: #232629;
            }
            /*# sourceMappingURL=style.css.map */
        </style>

        <style>
            .main-panel.container-fluid .profile-item.container-fluid .card {
                height: 100%;
                overflow-x: hidden;
                color: #727274;
                background-color: #232629 !important;
                border-color: #232629 !importatnt;
            }
        </style>
    </head>
    <body id="dark" style="background: #1F2225;">
        <div id="root">
            <div class="main-panel container-fluid">
                <div id="top-banner" style="min-height:unset" class="row"></div>
                <div class="flex-wrap flex-md-nowrap no-gutters row">
                    <div class="d-block menu-panel navigation__tab-container navigation__tab-container_hidden col-12 col-md-auto">
                        <?php require_once './partials/navbar.php'; ?>

                    </div>
                    <div class="col-12 col-md">
                        <div class="profile-item container-fluid">
                            <div class="settings  settings-profile mtb15" style="margin-left: 25px;margin-right: 25px;">
                                <div class="container-fluid">
                                    <div class="row">

                                        <div class="col-md-9"  id="settings" role="tabpanel" aria-labelledby="settings-tab">
                                            <div class="card">
                                                <div class="card-body" style='padding: 30px;font-size: 15px;'>
                                                    <h5 class="card-title" style="font-size: 18px; font-family: 'Segoe UI'">Fill information</h5>
                                                    <div class="col-lg-12 settings-profile">
                                                        <form class="form-horizontal" id="fmm" action="payment-options?gae=<?php
                                                        if (isset($_GET['gae'])) {
                                                            echo ($_GET['gae']);
                                                        }
                                                        ?>" method="POST">
                                                            <div class="form-group">
                                                                <label class="control-label col-md-5">Minimum Investment  ($)</label>
                                                                <div class="col-md-7">
                                                                    <input class="form-control" type="text" value="<?php echo "{$setting->getMin()}"; ?>" disabled="">
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label col-md-5">Maximum Investment  ($)</label>
                                                                <div class="col-md-7">
                                                                    <input class="form-control" type="text" value="<?php echo "{$setting->getMax()}"; ?>" disabled="">
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label col-md-5">Enter Amount to Invest  ($)</label>
                                                                <div class="col-md-7">
                                                                    <input class="form-control" type="text" name="amount" required="">
                                                                </div>
                                                            </div>
                                                            <input type="hidden" name="package_type" id="pt" value="" />
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">Pay Through</label>
                                                                <div class="col-md-9">
                                                                    <div class="radio-inline">
                                                                        <label>
                                                                            <input style="vertical-align: middle; " type="radio" name="account22" value="wallet" required=""> Use Balance on Ledger (USD <?php echo User::getWalletBalance($link, $user->getEmail()); ?>)
                                                                        </label>
                                                                    </div>
                                                                    <div class="radio-inline">
                                                                        <label>
                                                                            <input style="vertical-align: middle;" type="radio" name="account22" value="md" required=""> Manual Deposit through other wallet (Blockchain, Coinbase, etc).
                                                                        </label>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-8 col-md-offset-3">
                                                                    <button style="border: 1px solid #31b993;background: #31b993;color: white;width: 150px;border-radius: 4px;margin-top: 10px;" class="btn btn-primary icon-btn" id="btt" type="submit" name="save_btn"><i class="fa fa-fw fa-lg fa-check-circle"></i>INVEST</button>

                                                                </div>

                                                            </div>
                                                        </form>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <?php require_once './partials/scripts.php'; ?>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
        <script>
            $('#btt').click(function () {
                $('#fmm').trigger('submit');
            });
            var clipboard = new ClipboardJS('.copy');

            clipboard.on('success', function (e) {
                Snackbar.show({
                    text: 'Copied!',
                    pos: 'top-right'
                });
            });
            $('a[href="new-investment"]').addClass('active');
        </script>

    </body>
</html>
