html, body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}
a {
    color: #000;
    text-decoration: none;
}
body {
    background: #F7F5F2;
    font-family: "Onest", serif;
}
header {
    height: 76px;
    padding: 17px 0;
}
.header_logo {
    float: left;
}
.logo-href:hover {
    opacity: .8;
}
.header_logo--image, .header_logo--text {
    display: inline-block;
}
.header_logo--text {
    font-size: 20px;
    font-weight: 500;
    padding-top: 4px;
    margin-left: 5px;
}
.header_right {
    float: right;
}
.header_menu {
    margin-left: 40px;
    display: block;
    float: left;
}
.header_menu-item {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: 10px;
    padding-top: 3px;
}
.header_menu-item--icon {
    margin-right: 4px;
    font-size: 14px;
}
.header_menu-item--text {
    font-size: 14px;
}
.header_menu-item a {
    display: block;
    color: #000;
    padding: 7px 15px 7px 13px;
    text-decoration: none;
    border-radius: 40px;

}
.header_menu-item a:hover {
    color: #515151;
}
.header_menu-item__active a:hover {
    color: #000;
}
.header_menu-item__active a {
    background: #fff;
}
.header_profile {
    display: inline-block;
    font-size: 14px;
    text-align: right;
}
.header_profile--name {
    font-weight: 500;
}
.header_profile--links a {
    color: #8b8b8b;
    font-size: 14px;
}
.header_profile--links a:hover {
    text-decoration: none;

}
.header_right--link {
    padding: 10px 0px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    display: block;
}
.header_right--link:hover,
.header_right--link:focus-visible,
.header_right--link:focus-visible {
    border: 0;
}
.header_right--link:hover {
    text-decoration: underline;
}
.black_nofill_button {
    display: inline-block;
    padding: 8px 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    border-radius: 20px;
}
.black_nofill_button--header {
    display: block;
}
.telegram_button {
    color: #24A1DE;
    border: 2px solid #24A1DE;
    padding: 8px 20px;
}
.telegram_button i {
    margin-right: 5px;
}
.header_right--button_red {
    background: #F28585;
}
.header_right--item {
    margin-left: 30px;
    float: left;
}
.header_right--item:first-child {
    margin-left: 0px;
}
input[type=number] {
  -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.header_logo--image img {
    width: 42px;
}
.standard_padding--right {
    padding-right: 50px;
}
.standard_padding--left {
    padding-left: 50px;
}
.standard_padding {
    padding: 0 50px;
}
.bg_white {
    background: #FFF;
}
.bg_sand {
    background: #F4DEB3;
}
.bg_green {
    background: #CCE0AC;
}
.bg_yellow {
    background: #F0E9AC;
}
h1 {
    font-size: 30px;
    font-weight: 700;
}
.accent {
    color: #F28585;
}
.black_button {
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    line-height: 1.25rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    border-radius: 0.375rem;
    height: 2.5rem;
    background: #000;
}
a.black_button {
    text-decoration: none;
}
.members_form {
    margin-top: 20vh;
    padding: 0 40px;
    background: #fff;
    border-radius: 20px;
    padding: 60px 80px;
}
.members_form h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #303030;
}
.members_form .bottom_text {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #727272;
}
.members_form .bottom_text a {
    color: #000;
}
div.validation-error {
    color: red;
    font-size: 12px;
}
input.validation-error {
    border-color: #e57773;
    box-shadow: none
}
input.validation-error:focus {
    box-shadow: none;
}

.service_page_logo--image, .service_page_logo--text {
    display: inline-block
}
.service_page_logo--text {
    font-size: 20px;
    font-weight: 500;
    padding-top: 7px;
    margin-left: 5px;
}
.service_page_logo {
    margin-bottom: 50px;
    margin-top: 50px;
    text-align: center;
}
.service_page_logo--image img {
    width: 42px;
}
.mainscreen {
    padding-top: 10vh;
    padding-bottom: 40px;
}
.mainscreen_disclaimer {
    font-size: 16px;
    color: #AEAEAE;
    text-align: center;
    padding-top: 90px;
}
.mainscreen_disclaimer p {
    line-height: 1.3;
    margin: 0;
    font-size: 14px;
}
.mainscreen_title {
    padding-top: 10vh;
}
.mainscreen_title--main {
    font-size: 47px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}
.mainscreen_title--sub {
    font-size: 20px;
}
.mainpage_bottom--item {
    padding: 50px 0;
    padding-right: 20px;
}
.mainpage_bottom--item__title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}
.mainpage_bottom--item__text {
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 18px;
}
.features {
    float: right;
}
.features_item {
    border-radius: 30px;
    padding: 30px 22px;
    position: relative;
    float: left;
    margin-right: 17px;
}

.features_item--title {
    font-size: 27px;
}
.features_item--description {
    font-size: 16px;
}
.features_item-h {
    height: 269px;
    width: 39%;
}
.features_item-v {
    height: 361px;
    width: 27%;
}
.features_item--description {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: inherit;
}
.main {
    padding: 37px 0;
}
.main-button {
    background: #F28585;
    width: 100%;
    height: 56px;
    border: 0;
    color: #000;
    font-weight: 700;
    font-size: 17px;
    border-radius: 10px;
    border: 0;
}
.main-button:hover, .main-button:active, .main-button:focus-visible {
    background: #e77070;
    color: #000;
    border: 0;
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    background: #F28585;
    color: #000;
    border: 0;
}
.loading_button img {
    max-height: 100%;
}
.calc_block {
    background: #fff;
    border: 1px solid #DBDBDB;
    border-radius: 20px;
    padding: 20px;
}

#bot_settings .form-select, #bot_settings .form-control {
    background-color: #F7F5F2;
    border: 0;
    border-radius: 10px;
}
.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label
{
    color: #8A8A8A;
}
.form-floating>.form-control:not(:placeholder-shown) {

}
#bot_settings .form-floating>label:after {
    background-color: #F7F5F2;
}
div.error {
    position: absolute;
    top: 0;
    right: 6px;
    font-size: 12px;
    text-align: right;
    width: 100%;
    color: #F28585;
    padding: 3px;
}
#bot_settings .main-button:disabled, #bot_settings.main-button[disabled],
#bot_settings .main-button.running {
    background-color: #ccc;
    color: #f5f5f5;
    cursor:
}
.input_group {
    position: relative;
}

.radio-group {
    display: block;
}
#ranged {
    font-size: 14px;
    margin-bottom: 3px;
}
.input-group.ranged {

}
.ranged span {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    height: 100%;
    z-index: 10000;
    border-radius: 0px 6px 6px 0;
}
.radio-label {
    padding: 5px 0px;
    border: 1px solid #F7F5F2;
    border-radius: 10px;
    cursor: pointer;
    background-color: #F7F5F2;
    color: #000;
    font-size: 14px;
    margin-right: 5px;
    width: 100%;
    text-align: center;
}

.radio-button {
    display: none;
}

.radio-button:checked + .radio-label {
    border: 1px solid #F28585;
}

.radio-button:disabled + .radio-label {
    border: 1px solid #F7F5F2;
    background-color: #F7F5F2;
    color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.7;
}
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.7 !important;
    color: #ababaa;
}
input:disabled ~ label,
textarea:disabled ~ label,
select:disabled ~ label {
    opacity: 0.7 !important;
    cursor: not-allowed;
}
.period-custom-disabled-label {
    position: relative;
}
.period-custom-disabled-label::before {
    content: '🔒 Sign up';
    position: absolute;
    top: -11px;
    right: -5px;
    font-size: 9px;
    background: #241e1e;
    border-radius: 4px;
    padding: 1px 3px;
    color: #FFF;
}
.low_limit--percent, .high_limit--percent {
    position: absolute;
    color: #767676;
    font-size: 14px;
    top: 20px;
    right: 9px;
    font-weight: 300;
}
#grids_limit {
    position: absolute;
    color: #767676;
    font-size: 14px;
    top: 20px;
    right: 9px;
    font-weight: 300;
}
#coin_current_price {
   position: absolute;
   color: #767676;
   font-size: 14px;
   top: 20px;
   right: 35px;
   text-weight: 600;
}

.widget-lg {
    background: #F7F7F7;
    padding: 20px;
    border-radius: 10px;
}
.widget-grid--item_title, .widget-grid--item_measure {
    float: left;
    font-size: 14px;
    color: #000;
}
.widget-grid--item {
    margin: 5px 0;
}
.widget-grid--item:last-child {
    margin-bottom: 0px;
}
.widget-grid--superitem {
    margin-bottom: 15px;
}

.widget-grid--superitem .widget-grid--item_title {
    font-size: 22px;
    font-weight: 700;
}

.widget-grid--superitem .widget-grid--item_measure {
    font-size: 22px;
    font-weight: 700;
}
.widget-grid--item_title {
    line-height: 1.4;
}
.widget-grid--item_tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #a4a4a4;
    cursor: help;
}
.tooltip-box {
   position: absolute;
   top:50%;
   transform:translateY(-50%);
   left:100%;
   margin-left:15px;

   background: #333;
   color: #fff;
   padding: 2px;
   border-radius: 5px;
   font-size: 12px;
   width: 100px;
   text-align: center;
}
.tooltip-box:before {
   content: '';
   position: absolute;
   left: -8px;
   top:38%;
   transform:translateY(-38%);
   width: 0px;
   height: 0px;
   border-style: solid;
   border-width: 0 4px 8px 4px;
   border-color: transparent transparent #333 transparent;
   transform: rotate(270deg);
}
.widget-grid--item_measure span {
    line-height: 1;
}
.widget-grid--item_measure {
    text-align: right;

}
.widget-lg_block {
    position: relative;
}
.widget-line {
    margin: 20px 0;
    height: 1px;
    width: 100%;
    background: #DBE2F0;
    bottom: 0px;
}
.widget-grid--item__centered .widget-grid--item_title, .widget-grid--item__centered .widget-grid--item_measure {
    width: 100%;
    text-align: center;
}

#pairsTableContainer {
    height: 0;
    flex-grow: 1;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: 0;
    max-width: 100%;
}

.pairs-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: white;
    border-bottom: 1px solid #ddd;
}
.pairs-table {
    font-size: 14px;
}
.pair_item {
    font-size: 12px;
}
.pair_date {
   text-align: left;
}
.pair_profit {
   text-align: right;
}
.pair_items-hrow--cell {
    font-weight: 700;
}
.pair_items-table {
    display: table;
    width: 100%;
}
.pair_items-hrow, .pair_items-row {
    display: table-row;
    width: auto;
    clear: both;
}
.pair_items-hrow--cell, .pair_items-row--cell {
      display: table-cell;
}
.pair_items-hrow--time {
    width: 20%;
}
.pair_items-table {
    background: #F7F7F7;
    border-radius: 6px;
    padding: 5px 10px;
}
.pair_items-side-Sell {
    color: #f86c6c;
    font-weight: 500;
}
.pair_items-side-Buy {
    color: #77b90e;
    font-weight: 500;
}
.results_card {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    line-height: 1;
}
.results_card--header {
    padding: 28px 24px 20px 24px;
}
.results_card--body {
    padding: 15px 24px 25px 24px
}
.results_card--footer {
    padding: 19px 24px 19px 24px;
    border-top: 1px solid #E8E8E8;
}
.results_card--icon {
   width: 20px;
   margin-top: -5px;
   margin-left: 2px;
   display: inline-block;
}
.results_card--pair {
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
}
.results_card--item_header {
    font-size: 14px;
    color: #888888;
    margin-bottom: 6px;
}
.results_card--item_value {
    font-size: 14px;
}

.filters .form-select {
    font-size: 14px;
    border-radius: 30px;
    border: 1px solid #e8e8e8;
    padding: 4px 29px 4px 10px;
}
.filters label {
    font-size: 12px;
    color: #888888;
}

/* Ensure Safari doesn't apply default padding */
.custom-select::-ms-expand {
    display: none;
}

.article_card-link {
    display: block;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease-in-out;
}
.article_card {
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    height: 284px;
    position: relative;
}
.article_card-link:hover .article_card {
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}
.article_card--noimg {
    background: #F0E9AC;
    padding: 30px 22px;
}
.article_card--noimg .article_card-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: inherit;
}
.article_card--noimg .article_card-bottom--title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
}
.article_card-bottom--title {
    font-size: 22px;
    font-weight: 500;
}
.article_card-bottom--description {
    font-weight: 300;
    color: rgba(0,0,0,.6);
    font-size: 16px;
}
.article_card-top {
    width: 100%;
    overflow: hidden
}
.article_card-bottom {
    padding: 15px 22px;
}
.article_card img {
    width: 100%;
}
article {
    background: #fff;
    padding: 40px;
}
article h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
}
article h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
}
article strong {
    font-weight: 700;
}

@media (max-width: 1600px) {
    .mainscreen_title--main {
        font-size: 40px;
    }
}

@media (max-width: 1400px) {

    .mainscreen_title--main {
        font-size: 40px;
    }
    .standard_padding {
        padding: 0 20px;
    }
    .standard_padding--left {
        padding-left: 20px;
    }
    .standard_padding--right {
        padding-right: 20px;
    }

}

/* ======== MOBILE ========= */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden;  /* Prevent horizontal scrolling */
        max-width: 100vw;    /* Restrict content to viewport width */
    }
    .standard_padding {
        padding: 0 10px;
    }
    .standard_padding--left, .standard_padding--right {
        padding: 0;
    }
    .header_logo {
        text-align: center;
    }
    .mainscreen {
        padding: 0;
    }
    .main {
        padding: 20px 0;
    }
    .mainscreen_title {
        padding: 4vh 0;
    }
    .mainscreen_title--main {
        text-align: center;
        font-size: 36px;
        margin-bottom: 10px;
    }

    .mainscreen_title--sub {
        font-size: 16px;
        text-align: center;
    }
    .features_item {
        margin-left: 0;
        margin: 10px auto;
    }
    .features_item-h, .features_item-v {
        width: 100%;
        height: 201px;
    }
     .mainscreen_disclaimer {
         font-size: 12px;
         color: #AEAEAE;
         text-align: center;
         padding-top: 0px;
         margin: 20px 0 40px 0;
     }
     .calc_block {
        margin-bottom: 20px;
     }
     .widget-lg {
        margin-top: 20px;
     }
     .calc_block {
        background: none;
        border: none;
        padding: 0px;
     }
     .calc_block--form {
         background: #fff;
         padding: 20px;
         border-radius: 10px;
     }
     .members_form {
        padding: 60px 20px;
     }
     .header_logo--text {
         font-size: 17px;
     }
     .filters .form-select {
         font-size: 12px;
     }

     .mainpage_bottom--item {
        padding: 46px 0;
        text-align: center;
        padding-right: 0px;
        border-bottom: 1px solid #C4C4C4;
     }
     .mainpage_bottom {
        padding-top: 20px;
     }
}