
.navbar-brand img {
    width:60px;
    height:60px;
}
:root, [data-bs-theme=dark] {
    --card-bg-main: #203040;
    --card-bg-money: #104040;
    --bs-body-bg: #0a131c;
    --bs-body-bg-start: #102030;
    --bs-body-bg-end: #0a131c;
    --bs-navbar-bg-color: #1c2839;
}
:root, [data-bs-theme=light] {
    --card-bg-main: #e4ecf3;
    --card-bg-money: #b2e0db;
    --bs-body-bg: #ffffff;
    --bs-body-bg-start: #ffffff;
    --bs-body-bg-end: #ffffff;
    --bs-navbar-bg-color: #e6eaf1;  
    --bs-border-color: rgba(0, 0, 0, .175);
}


.navbar {
    background-color: var(--bs-navbar-bg-color);
}
html, body {
    height: 100%;
    min-height: 100%;
}
body {
    font-family: Montserrat, sans-serif;
    min-height: 100%;
    background-attachment: fixed;
}

.nav .active, .nav .active * {
    /*background-color: var(--bs-primary) !important;*/
    color: #000 !important;
    border-color: var(--bs-primary) !important;
}
font,
a:hover,
a:focus,
a:active,
a {
    text-decoration:none;
}
.nav li {
text-align: center;
}
/*
.bg-dark .navbar,
.bg-dark .card {
    background-color: #26313b;
}

.bg-light .navbar,
.bg-light .card {
    background-color: #e3eaf1;
}

*/

.travel_frame {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;

    background-color: #fff;
    border-radius: 20px;

    display: none;
    z-index: 10600 !important;

    overflow-y: scroll;
}

.travel_frame_close {
    padding: 10px 0 0 20px;
    cursor: pointer;
}

.travel_frame_inner {
    padding: 20px;
}

.travel_frame_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: #000;
    opacity: 0.7;

    display: none;
    z-index: 10500 !important;
}

.travel_main_block {
    margin: auto;
    margin-top: 50px;
    width: 100%;
    padding:0 30px;
}

.container .container {
    margin: auto;
}

.travel_delay_users_block {
    margin-top: 20px;
}


/* Silver — сріблястий */
.level-1.emerald-wrapper-active,
.level-1 .emerald-wrapper-active,
.level-1 .emerald-wrapper-active *,
.btn_travel_level_selected[data-level="1"] {
    background-color: silver !important; /* срібло */
    color: #000 !important;
}

/* Gold — золотистий */
.level-2.emerald-wrapper-active,
.level-2 .emerald-wrapper-active,
.level-2 .emerald-wrapper-active *,
.btn_travel_level_selected[data-level="2"] {
    background-color: gold !important; /* золото */
    color: #000 !important;
}

/* Platinum — платиновий */
.level-3.emerald-wrapper-active,
.level-3 .emerald-wrapper-active,
.level-3 .emerald-wrapper-active *,
.btn_travel_level_selected[data-level="3"] {
    background-color: #B4C2D3 !important; /* платина */
    color: #000 !important;
}

/* Diamond — діамантовий */
.level-4.emerald-wrapper-active,
.level-4 .emerald-wrapper-active,
.level-4 .emerald-wrapper-active *,
.btn_travel_level_selected[data-level="4"] {
    background-color: lightblue !important; /* діамантовий (світло-блакитний) */
    color: #000 !important;
}

/* Titanium — титановий */
.level-5.emerald-wrapper-active,
.level-5 .emerald-wrapper-active,
.level-5 .emerald-wrapper-active *,
.btn_travel_level_selected[data-level="5"] {
    background-color: #778899 !important; /* сіро-блакитний */
    color: #000 !important;
}


.wrapp_icon-lock {
    position: absolute;
    left: 4%;
    top: auto;
    right: auto;
    bottom: auto;
}

.wrapp_soc-icon {
    position: absolute;
    left: 0%;
    top: auto;
    right: 0%;
    bottom: 2%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    -webkit-box-flex: 0;
    -webkit-flex: 0 auto;
    -ms-flex: 0 auto;
    flex: 0 auto;
    z-index: 20;
}

.wrapp_soc-icon._2 {
    left: auto;
    top: auto;
    right: 0%;
    bottom: 0%;
    z-index: 20;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.link_fb {
    margin-right: 5px;
}

.link_fb._2 {
    margin-right: 0px;
}

.link_tw {
    margin-right: 5px;
}

.link_tw._2 {
    margin-right: 0px;
}

.img_tw {
    margin-right: 0px;
}
.select2-container--krajee-bs5 .select2-results__option,
.select2-container--krajee-bs5 .select2-results__option[aria-selected],
.select2-container--krajee-bs5 .select2-results,
.select2-container--krajee-bs5 .select2-search__field,
.select2-container--krajee-bs5 .select2-selection ,
.select2-container--krajee-bs5 .select2-dropdown {
    /*background: var(--bs-body-bg) !important;*/
}
.select2-results__option {
    padding: 0 0.6rem;
}
.select2-container--krajee-bs5 .select2-selection--single {
    padding: 0.3rem;
}

/* Глобальні стилі сучасного пагінатора */
ul.pagination {
    display: flex !important;
    flex-wrap: wrap !important; /* перенесення на новий рядок при нестачі місця на мобілках */
    padding-left: 0 !important;
    list-style: none !important;
    border-radius: 0.25rem !important;
    gap: 0.4rem !important; /* невеликий простір між кнопками */
    align-items: center !important;
    justify-content: center !important; /* центрування */
    margin: 1.5rem 0 !important;
}

ul.pagination li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 0.9rem !important;
}

ul.pagination li a,
ul.pagination li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 0.5rem !important;
    color: #4a5568 !important; /* темно-сірий колір тексту */
    text-decoration: none !important;
    border-radius: 10px !important; /* красиві закруглені кути */
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
    background: transparent !important;
    border: 1px solid transparent !important; /* без рамки для звичайних чисел */
}

/* Кнопки Назад та Вперед (мають тонку рамку) */
ul.pagination li.prev a,
ul.pagination li.prev span,
ul.pagination li.next a,
ul.pagination li.next span,
ul.pagination li:first-child a,
ul.pagination li:first-child span,
ul.pagination li:last-child a,
ul.pagination li:last-child span {
    border: 1px solid #e2e8f0 !important; /* тонка світла рамка */
    background-color: #ffffff !important;
    color: #4a5568 !important;
}

/* Ефекти наведення для звичайних чисел та кнопок навігації */
ul.pagination li a:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

/* Активна сторінка (суцільно синій закруглений квадрат) */
ul.pagination li.active a,
ul.pagination li.active span {
    background-color: #3b82f6 !important; /* наш красивий брендовий синій колір */
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2) !important; /* легка преміальна тінь під активною кнопкою */
}

/* Вимкнені кнопки (наприклад, стрілочка назад на першій сторінці) */
ul.pagination li.disabled a,
ul.pagination li.disabled span {
    color: #cbd5e1 !important;
    border-color: #f1f5f9 !important;
    background-color: #f8fafc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Три крапки (...) */
ul.pagination li.ellipsis span,
ul.pagination li span.ellipsis {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    cursor: default !important;
}

/* Мобільна оптимізація пагінатора */
@media (max-width: 768px) {
    ul.pagination {
        gap: 0.25rem !important; /* компактніший простір на мобілках */
    }
    ul.pagination li {
        font-size: 0.8rem !important;
    }
    ul.pagination li a,
    ul.pagination li span {
        min-width: 32px !important;
        height: 32px !important;
        padding: 0 0.35rem !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 576px) {
    /* На вузьких мобільних екранах приховуємо неактивні цифри, */
    /* залишаючи лише стрілочки навігації та поточну активну сторінку. */
    /* Це 100% запобігає виходу за межі екрана та переносу на 2 рядки. */
    ul.pagination li:not(.active):not(.prev):not(.next):not(.first):not(.last) {
        display: none !important;
    }
    
    ul.pagination {
        gap: 0.35rem !important;
    }
    ul.pagination li a,
    ul.pagination li span {
        min-width: 36px !important; /* Робимо кнопки трохи більшими для зручності натискання пальцем */
        height: 36px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }
}
.modal-header .close {
    position: absolute;
    right: 24px;
}
h1 {
    margin-top: 0;
    text-align: center;
}
h2 {
    margin-top: 30px;
    font-size: 1.2em;
    color: #007bff;
}
.section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.form-control {
    color: #000000 !important;
}
[data-bs-theme="light"] .form-control:disabled, 
[data-bs-theme="light"] .form-control[readonly] {
    background-color: #e0e0e0 !important;
    opacity: 1;
}

/* Насичений градієнт для всього екрану */
body {
    background: linear-gradient(180deg, #e9ecf5 0%, #e6e8f4 40%, #e7eaf3 100%) repeat !important;
}

/* Картки з "скляним" ефектом */
.card {
    /* Робимо фон картки білішим і менш прозорим */
    background: linear-gradient(170deg, #fdfdff 0%, #f7f7ff 60%, #d5e5f4 100%) no-repeat !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    
    /* Чітка біла рамка (ефект відблиску на краях) */
    border: 1.5px solid #ffffff !important;
    
    /* М'яка зовнішня тінь для об'єму */
    box-shadow: 0 10px 30px rgba(165, 185, 225, 0.3) !important;
}

.nav .card {
    border-radius: 10px !important;
}

/* Колір заголовків (Синій як на фото) */
.card .fs-4, .card .fs-5 {
    color: #4a72b2 !important;
    font-weight: 500 !important;
}

/* Колір підписів у дужках */
.text-muted {
    color: #606060 !important;
}

/* Спеціальний блок "Зароблено" з бірюзовим градієнтом */
.card-money {
    background: linear-gradient(170deg, #d8efe7 0%, #b5d8d4 100%) !important;
    border: 1.5px solid #d1ede5 !important;
    color: #1f4936;
}
.card-main {

}

/* Покращене вирівнювання кнопок головного меню */
.row.g-3 .col-6 .card-body > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-decoration: none;
    /* Дозволяє довгим словам (Благотворительность) переноситися */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.row.g-3 .col-6 .card-body > a > i {
    /* Однаковий фіксований простір для іконки, щоб під нею текст завжди починався на одному рівні */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
}
.row.g-3 .col-6 .card-body > a > .fs-4 {
    /* Великий текст під іконкою */
    font-size: 1.1rem !important;
    line-height: 1.2;
    margin-top: 5px;
}
@media (min-width: 768px) {
    .row.g-3 .col-6 .card-body > a > .fs-4 {
        font-size: 1.3rem !important;
    }
}
.row.g-3 .col-6 .card-body > a > .small.text-muted {
    /* Підпис йде одразу після великого тексту */
    margin-top: 2px !important;
    padding-top: 0px;
}

/* Checkout Page Styles */
.checkout-card {
    border-radius: 1.5rem;
    overflow: hidden;
    border: none;
}
.summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    border: none;
}
.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.form-section-title i {
    color: #4a5568;
    background: #edf2f7;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.75rem;
}
.warehouse-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.warehouse-card:hover {
    border-color: #3182ce !important;
    background: #ebf8ff !important;
}
.warehouse-card.active {
    border-color: #3182ce !important;
    background: #ebf8ff !important;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.25), 0 4px 6px rgba(0,0,0,0.05) !important;
}
.delivery-option {
    cursor: pointer;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    background: linear-gradient(170deg, #fdfdff 0%, #f7f7ff 60%, #d5e5f4 100%) no-repeat;
}
.delivery-option:hover {
    background: #f7fafc;
}
.delivery-option.active {
    border-color: #3182ce;
    background: #ebf8ff;
}
.total-line {
    font-size: 1.25rem;
    font-weight: 800;
}

/* Validation Styles */
.has-error .help-block {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}
.has-error input, .has-error select, .has-error textarea {
    border-color: #dc3545 !important;
}
.has-error .select2-selection {
    border-color: #dc3545 !important;
}
.has-error .warehouse-card {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}
.has-error .delivery-option {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}
.has-error input:focus, .has-error textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Styles moved from account/wellness/index.php */
.btn_travel_level {
    background-color: #fff !important;
    color: rgba(141, 141, 141, 0.9);
    font-size: 18px;
    font-weight: 500;
    padding: 10px 25px;
    border: 1px solid rgba(141, 141, 141, 0.1);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .btn_travel_level {
        font-size: 16px;
        padding: 8px 15px;
    }

    .travel_frame {
        left: 10px;
        width: calc(100vw - 10px);
    }
}

.btn_travel_level_selected {
    color: #fff;
    background-color: #2365aa !important;
}

.travel_login_block {
    min-height: auto;
    font-size: 18px;
    padding: 40px 10px;
    color: #fff;
    background-color: #2365aa !important;
}

.travel_login_block_empty {
    background-color: #e0e0e0 !important;
    color: #737373;
}

.travel_login_block_number {
    position: absolute;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0 !important;
    color: #737373;
    border-radius: 100%;
    top: calc(-75px / 2);
    left: 50%;
    margin-left: calc(-75px / 2);
    font-size: 20px;
    font-weight: 700;
}

.travel_login_block_number.active {
    background: #2365aa;
    color: #fff;
}

.travel_login_block_me {
    padding: 20px 10px;
}

.emerald-wrapper {
    background: #fff;
    width: 100%;
    padding: 22px 20px;
    font-size: 16px;
    border: 1px solid rgba(141, 141, 141, 0.1);
    border-radius: 12px;
}

.emerald-head {
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(141, 141, 141, 0.1);
}

.emerald-name {
    font-size: 21px;
    font-weight: 700;
    color: #262626;
}

.emerald-name.text-danger {
    color: red !important;
}

.emerald-refferal {
    margin-top: 15px;
    font-weight: 400;
    color: rgba(141, 141, 141, 1)
}

.emerald-refferal b {
    margin: 0 5px;
}

.emerald-body {
    margin-top: 20px;
    width: 100%;
}

.emerald-body__list {
    margin: 0;
    padding: 0;
    width: 100%;
}

.emerald-body__list li {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emerald-body__list li span {
    font-weight: 400;
    color: rgba(141, 141, 141, 1);
}

.emerald-body__list li b {
    font-weight: 700;
    color: #262626;
}

.emerald-link {
    display: block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 600;
    color: #2F5256;
}

.emerald_login_block {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(141, 141, 141, 0.1);
    border-radius: 12px;
}

.emerald-wrapper-active {
    border: 1px solid #fff;
    background: #2365aa;
}

.emerald-wrapper-active .emerald-head {
    border-bottom: 1px solid #fff;
}

.emerald-wrapper-active .emerald-name, .emerald-wrapper-active .emerald-refferal, .emerald-wrapper-active .emerald-body__list li span, .emerald-wrapper-active .emerald-body__list li b, .emerald-wrapper-active .emerald-link {
    color: #fff;
}

.emerald-wrapper-danger {
    border: 1px solid #fff;
    background: #cc5555;
}

.emerald-wrapper-danger .emerald-head {
    border-bottom: 1px solid #fff;
}

.emerald-wrapper-danger .emerald-name, .emerald-wrapper-danger .emerald-refferal, .emerald-wrapper-danger .emerald-body__list li span, .emerald-wrapper-danger .emerald-body__list li b, .emerald-wrapper-danger .emerald-link {
    color: #fff;
}

.search {
    display: block;
}

.list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.list-item {
    width: 49%;
    margin-bottom: 15px;
    padding: 1rem;
    border: 1px solid rgba(141, 141, 141, 0.1);
    display: flex;
    align-items: center;
    position: relative;
    color: #262626;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .list-item {
        width: 100%;
    }
}

.list-item__avatar {
    margin-right: 1rem;
}

.list-item__content {
    width: 100%;
}

.list-item__avatar img {
    border: 1px solid rgba(141, 141, 141, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #fff;
}

.list-item__name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    width: 100%;
}

.list-item__name b, .list-item__name span {
    display: block;
}

.list-item__name > span {
    font-size: 1rem;
    color: rgba(141, 141, 141, 0.9);
    font-weight: 500;
}

.list-item__info {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
    color: rgba(141, 141, 141, 0.9);
}

/* =============================================
   Refill Page Styles
   ============================================= */

.refill-page-wrap {
    max-width: 560px;
    padding: 1.5rem 0.5rem;
}

/* Section label */
.refill-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

/* Network badge next to label */
.refill-network-badge {
    font-weight: 400;
    color: #888;
    font-size: 0.8rem;
}

/* Currency select dropdown */
.refill-currency-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.refill-select-icon {
    position: absolute;
    left: 1rem;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
}

.refill-currency-select {
    background: #fff;
    border: 1.5px solid #dde3ee;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}

.refill-currency-select-wrap.has-icon .refill-currency-select {
    padding-left: 2.8rem;
}

.refill-currency-select:focus {
    outline: none;
    border-color: #4a8af4;
    box-shadow: 0 0 0 3px rgba(74, 138, 244, 0.15);
}

/* Info Banner */
.refill-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e8f3ff 0%, #dceeff 100%);
    border: 1px solid #b5d3f7;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.refill-info-banner > div {
    min-width: 0;
    flex: 1;
}

.refill-info-icon {
    color: #2d7dd2;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.refill-info-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a5fa8;
}

.refill-info-sub {
    font-size: 0.82rem;
    color: #3a72b5;
    margin-top: 0.1rem;
    display: block;
    width: 100%;
}


/* Wallet Address Block */
.refill-address-block {
    display: flex;
    align-items: center;
    background: #f4f7fc;
    border: 1.5px solid #dde3ee;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    gap: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.refill-address-block:hover {
    border-color: #4a8af4;
}

.refill-address-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    word-break: break-all;
    flex: 1;
}

.refill-copy-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.4rem;
    transition: background 0.2s;
}

.refill-copy-btn:hover {
    background: rgba(74, 138, 244, 0.15);
}

.refill-copy-btn svg {
    width: 1rem;
    height: 1rem;
}

.refill-address-hint {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* QR Code block */
.refill-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.refill-qr-img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 1.5px solid #dde3ee;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.refill-qr-label {
    font-size: 0.76rem;
    color: #888;
}

/* Amount input with suffix */
.refill-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.refill-amount-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border-radius: 12px !important;
    border: 1.5px solid #dde3ee !important;
    padding-right: 4.5rem !important;
    font-size: 0.95rem !important;
}

/* ActiveForm generates .form-group inside flex wrap — must stretch */
.refill-amount-wrap > .form-group,
.refill-amount-wrap > div {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.refill-amount-input:focus {
    border-color: #4a8af4 !important;
    box-shadow: 0 0 0 3px rgba(74, 138, 244, 0.15) !important;
}

.refill-amount-suffix {
    position: absolute;
    right: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    pointer-events: none;
}

.refill-min-hint {
    font-size: 0.78rem;
}

/* Submit button */
.refill-submit-btn {
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    min-width: 180px;
}

/* Instruction block */
.refill-instruction-block {
    background: #f9fafc;
    border-radius: 12px;
    border: 1px solid #eaecf3;
    padding: 1rem 1.25rem;
}

.refill-instruction-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.refill-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: refill-step;
}

.refill-steps li {
    counter-increment: refill-step;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: #444;
    padding: 0.35rem 0;
}

.refill-steps li::before {
    content: counter(refill-step);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #4a8af4;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Warning block */
.refill-warning-block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, #eef3ff 0%, #e7edff 100%);
    border: 1px solid #c5d0f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.refill-warning-icon {
    color: #3a5bbf;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.refill-warning-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a3f8f;
    margin-bottom: 0.2rem;
}

.refill-warning-text {
    font-size: 0.82rem;
    color: #3a5bbf;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .refill-page-wrap {
        padding: 0.75rem 0;
    }
    .refill-qr-img {
        width: 130px;
        height: 130px;
    }
}

/* Agree label (tether agreement) */
.refill-agree-label {
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =============================================
   Transfer Page Styles
   ============================================= */

.transfer-page-wrap {
    max-width: 560px;
    padding: 1.5rem 0.5rem;
}

/* Alert block (blocked/activation) */
.transfer-alert-block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #664d03;
}

.transfer-alert-icon {
    font-size: 1.2rem;
    color: #e6a800;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Hero Header */
.transfer-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.transfer-hero-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a8af4, #2d5fc9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74,138,244,0.3);
}

.transfer-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.transfer-hero-sub {
    font-size: 0.84rem;
    color: #666;
    margin-top: 0.2rem;
}

.transfer-fee-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e8f5ea, #d4f0d8);
    color: #2a7a3e;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    border: 1px solid #b5deba;
}

/* Transfer arrows in banner */
.transfer-arrows {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.transfer-arrows-icon {
    font-size: 0.9rem;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.transfer-arrow-user {
    font-size: 1.5rem;
    color: #b0b8d4;
}

.transfer-arrow-user--green {
    color: #2dbd7f;
}

/* Transfer Input Groups (Bootstrap input-group based) */
.transfer-input-group {
    border-radius: 12px;
    border: 1.5px solid #dde3ee;
    background: #fff;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;  /* icon/suffix pin to top when error appears */
    overflow: hidden;
}

.transfer-input-group .input-group-text.transfer-ig-icon {
    background: #f4f7ff;
    border: none;
    border-radius: 12px 0 0 12px;
    color: #4a8af4;
    font-size: 1rem;
    padding: 0 1rem;
    height: 3rem;
    align-self: flex-start;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.transfer-input-group .input-group-text.transfer-ig-suffix {
    background: #f4f7ff;
    border: none;
    border-radius: 0 12px 12px 0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 1rem;
    height: 3rem;
    align-self: flex-start;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ActiveForm generates a .flex-grow-1 div inside input-group */
.transfer-input-group > .flex-grow-1 {
    flex: 1 1 auto;
    min-width: 0;
}

.transfer-input-group > .flex-grow-1 .form-control,
.transfer-input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: 3rem;
    font-size: 0.95rem;
    width: 100%;
}

.transfer-input-group .form-control.is-invalid,
.transfer-input-group .form-control.is-valid {
    border: none !important;
    box-shadow: none !important;
}

/* Validation error appears OUTSIDE and BELOW the input-group */
.transfer-field-error {
    font-size: 0.8rem;
    color: #dc3545;
    min-height: 0;
    padding: 0.15rem 0.25rem;
    display: block;
    line-height: 1.4;
}

/* Red border on input-group when error div has content */
.transfer-input-group.has-error,
.transfer-input-group:has(~ .transfer-field-error:not(:empty)) {
    border-color: #dc3545;
}

/* Standalone plain input (password) */
.transfer-plain-input {
    border-radius: 12px !important;
    border: 1.5px solid #dde3ee !important;
    font-size: 0.95rem !important;
    height: 3rem !important;
}

.transfer-plain-input:focus {
    border-color: #4a8af4 !important;
    box-shadow: 0 0 0 3px rgba(74,138,244,0.15) !important;
}

.transfer-input-group:focus-within {
    border-color: #4a8af4;
    box-shadow: 0 0 0 3px rgba(74,138,244,0.15);
}

/* Hide native number spin buttons */
.transfer-input-group input[type=number]::-webkit-inner-spin-button,
.transfer-input-group input[type=number]::-webkit-outer-spin-button,
input.refill-amount-input::-webkit-inner-spin-button,
input.refill-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.transfer-input-group input[type=number],
input.refill-amount-input {
    -moz-appearance: textfield;
}


.transfer-amount-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border-radius: 12px !important;
    border: 1.5px solid #dde3ee !important;
    padding-left: 2.5rem !important;
    padding-right: 5rem !important;
    font-size: 0.95rem !important;
    height: 3rem !important;
}

/* ActiveForm .form-group wrapper inside flex containers */
.transfer-amount-wrap > .form-group,
.transfer-amount-wrap > div,
.transfer-recipient-wrap > .form-group,
.transfer-recipient-wrap > div {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.transfer-amount-input:focus {
    border-color: #4a8af4 !important;
    box-shadow: 0 0 0 3px rgba(74,138,244,0.15) !important;
}

.transfer-balance-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.4rem;
}

.transfer-balance-value {
    font-weight: 700;
    color: #4a8af4;
}

/* Recipient field */
.transfer-recipient-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.transfer-recipient-icon {
    position: absolute;
    left: 1rem;
    color: #9b59b6;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.transfer-recipient-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border-radius: 12px !important;
    border: 1.5px solid #dde3ee !important;
    padding-left: 2.5rem !important;
    padding-right: 3rem !important;
    font-size: 0.95rem !important;
    height: 3rem !important;
}

.transfer-recipient-input:focus {
    border-color: #4a8af4 !important;
    box-shadow: 0 0 0 3px rgba(74,138,244,0.15) !important;
}

.transfer-qr-icon {
    position: absolute;
    right: 1rem;
    color: #4a8af4;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

.transfer-recipient-hint {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* Comment field */
.transfer-comment-wrap {
    position: relative;
}

.transfer-comment-icon {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    color: #4a8af4;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.transfer-comment-input {
    border-radius: 12px !important;
    border: 1.5px solid #dde3ee !important;
    padding-left: 2.5rem !important;
    padding-right: 3.5rem !important;
    font-size: 0.9rem !important;
    resize: none !important;
}

.transfer-comment-input:focus {
    border-color: #4a8af4 !important;
    box-shadow: 0 0 0 3px rgba(74,138,244,0.15) !important;
}

.transfer-comment-counter {
    position: absolute;
    right: 1rem;
    bottom: 0.6rem;
    font-size: 0.75rem;
    color: #aaa;
    pointer-events: none;
}

/* Details block */
.transfer-details-block {
    background: #f9fafc;
    border: 1px solid #eaecf3;
    border-radius: 14px;
    padding: 0.5rem 1.25rem;
}

.transfer-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f2f8;
}

.transfer-detail-row:last-child {
    border-bottom: none;
}

.transfer-detail-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.transfer-detail-label {
    font-size: 0.88rem;
    color: #555;
    flex: 1;
}

.transfer-detail-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
}

/* Submit button */
.transfer-submit-btn {
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 0.85rem !important;
    background: linear-gradient(90deg, #4a8af4, #2d5fc9) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(74,138,244,0.35) !important;
    transition: box-shadow 0.2s, transform 0.15s !important;
}

.transfer-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(74,138,244,0.45) !important;
    transform: translateY(-1px) !important;
}

.transfer-secure-hint {
    font-size: 0.78rem;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .transfer-page-wrap {
        padding: 0.75rem 0;
    }
    .transfer-hero-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Make refill info title fit in one line */
    .refill-info-title {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Make refill info sub fit in one line */
    .refill-info-sub {
        font-size: 0.55rem;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Make wallet address fit in one line */
    .refill-address-text {
        font-size: 0.68rem;
        word-break: keep-all !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Ensure the padding inside address block is a bit smaller on tiny screens to give more space */
    .refill-address-block {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }
    /* Reduce banner padding slightly on small screens to fit text */
    .refill-info-banner {
        padding: 0.75rem 0.85rem;
        gap: 0.6rem;
    }
    /* Compact instruction block for small screens */
    .refill-instruction-block {
        padding: 0.75rem 1rem;
    }
    .refill-instruction-title {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }
    .refill-steps li {
        font-size: 0.78rem;
        padding: 0.25rem 0;
        gap: 0.6rem;
    }
    .refill-steps li::before {
        min-width: 1.35rem;
        height: 1.35rem;
        font-size: 0.68rem;
    }
    /* Make balance cards amount and currency fit in one line */
    .card-money .display-6 {
        font-size: 1.15rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-money .fs-6 {
        font-size: 0.78rem !important;
    }
    .card-money .card-body {
        padding: 0.8rem 0.4rem !important;
    }
}

/* Payout page premium styles */
.payout-currency-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.payout-select-icon {
    position: absolute;
    left: 1rem;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
}

.payout-currency-select {
    background: #fff;
    border: 1.5px solid #dde3ee;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}

.payout-currency-select-wrap.has-icon .payout-currency-select {
    padding-left: 2.8rem;
}

.payout-currency-select:focus {
    outline: none;
    border-color: #4a8af4;
    box-shadow: 0 0 0 3px rgba(74, 138, 244, 0.15);
}

#payout-wallet-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.payout-card {
    border: 1.5px solid #dde3ee !important;
}

.payout-title {
    font-size: 1.25rem !important;
    color: #222;
    letter-spacing: -0.02em;
    text-align: left !important;
}

.payout-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.payout-input-suffix {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1.5px solid #dde3ee;
    border-left: none;
    color: #777;
    font-size: 0.95rem;
    white-space: nowrap;
    background-color: #fafafa !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
}

.payout-limits-row {
    font-size: 0.76rem !important;
    font-weight: 500;
    gap: 0.5rem;
}

.payout-limits-separator {
    color: #dde3ee !important;
    margin: 0 0.25rem;
}

.payout-limit-value {
    color: #26A17B;
    font-weight: 600;
}

.payout-send-code-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
    background: #f4f8ff;
    border: 1.5px solid #dde3ee;
    border-left: none;
    color: #1e6bfd;
    box-shadow: none;
}

.payout-send-code-btn:hover {
    background: #e8f1ff;
    color: #1a5ecf;
    text-decoration: none;
}

.payout-submit-btn {
    border-radius: 12px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    padding: 0.85rem 2rem !important;
    background: #1e6bfd !important;
    border-color: #1e6bfd !important;
    box-shadow: 0 4px 12px rgba(30, 107, 253, 0.25) !important;
    width: 100% !important;
}

.payout-submit-btn:hover {
    background: #1a5ecf !important;
    border-color: #1a5ecf !important;
    box-shadow: 0 6px 16px rgba(26, 94, 207, 0.35) !important;
}

.payout-input-left {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

.payout-card .form-group,
.payout-card .mb-3,
.payout-card .mb-4 {
    margin-bottom: 1.65rem !important;
}

.payout-terms-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.payout-terms-item {
    display: flex;
    align-items: center;
}

.payout-terms-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.85rem;
}

.payout-terms-title {
    font-weight: 700;
    color: #222;
    font-size: 0.95rem;
}

.payout-terms-desc {
    font-size: 0.85rem;
    color: #606060 !important;
}

/* Premium Transaction Status Badges */
.status-badge-success {
    display: inline-flex;
    align-items: center;
    background-color: #e8f8f0 !important;
    color: #1a9c63 !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    border: 1px solid #ccefdc;
    white-space: nowrap;
}
.status-badge-success::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background-color: #1a9c63;
    color: #ffffff;
    font-size: 0.52rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
}

.status-badge-danger {
    display: inline-flex;
    align-items: center;
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    border: 1px solid #fee2e2;
    white-space: nowrap;
}
.status-badge-danger::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.52rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
}

.status-badge-warning {
    display: inline-flex;
    align-items: center;
    background-color: #fffbeb !important;
    color: #d97706 !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    border: 1px solid #fef3c7;
    white-space: nowrap;
}
.status-badge-warning::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #d97706;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
}

/* GridView Sorting Icons */
.grid-view th a[data-sort] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.grid-view th a[data-sort]:hover {
    color: #2563eb;
    text-decoration: none;
}

.grid-view th a[data-sort]::after {
    content: "\f0dc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #a0aec0;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.grid-view th a[data-sort].asc::after {
    content: "\f0dd";
    color: #3b82f6;
}

.grid-view th a[data-sort].desc::after {
    content: "\f0de";
    color: #3b82f6;
}

/* Partner List Accordion Styles */
.partner-card-wrapper {
    border: 1px solid #f1f5f9 !important;
    border-radius: 1rem;
    overflow: hidden;
}

.partner-table-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    padding-left: 0.4rem;
    border-bottom: 1px solid #cbd5e1;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    background-color: #e2e8f0; /* темніший, контрастний фон заголовка */
    letter-spacing: 0.05em;
}

.partner-table-header-num {
    width: 28px; /* зменшено ширину */
    color: #475569;
    font-weight: 700;
    border-right: 1px solid #cbd5e1;
    margin-right: 10px; /* зменшено відступи */
    padding-right: 4px; /* зменшено внутрішній відступ */
    text-align: center;
}

.partner-table-header-id {
    width: 90px;
    color: #475569;
    padding-left: 5px;
}

.partner-table-header-fio {
    flex-grow: 1;
    color: #475569;
    padding-left: 0.5rem;
}

.partner-item {
    border-bottom: 1px solid #cbd5e1 !important;
}

.partner-item:last-child {
    border-bottom: none !important;
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    padding-left: 0.4rem;
    cursor: pointer;
    background: #f1f5f9; /* темніший, стильний фон елементів */
    transition: background 0.2s ease-in-out;
}

.partner-header:hover {
    background: #e2e8f0; /* темніший фон при наведенні */
}

.partner-num {
    width: 28px; /* зменшено ширину */
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    border-right: 1px solid #cbd5e1;
    margin-right: 10px; /* зменшено відступи */
    padding-right: 4px; /* зменшено внутрішній відступ */
    text-align: center;
}

.partner-id {
    width: 90px;
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
}

.partner-id a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease-in-out;
}

.partner-id a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.partner-name {
    flex-grow: 1;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
    padding-left: 0.5rem;
}

.partner-toggle-icon {
    width: 24px;
    text-align: right;
    transition: transform 0.2s ease-in-out;
}

.partner-toggle-icon i {
    font-size: 0.8rem;
    color: #a0aec0;
}

.partner-details {
    padding: 0.5rem 1rem;
    background-color: #fcfdfd;
    border-left: 3px solid #10b981;
}

.partner-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9 !important;
}

.partner-detail-row:last-child {
    border-bottom: none !important;
}

.partner-detail-label {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    gap: 0.5rem;
}

.partner-detail-label i {
    width: 16px;
}

.partner-detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.partner-phone-text {
    font-weight: 600;
    color: #2b6cb0;
    font-size: 0.85rem;
}

.partner-link-text {
    text-decoration: none;
    font-size: 0.8rem;
    color: #2b6cb0;
    font-weight: 500;
    max-width: 200px;
}

.partner-link-text:hover {
    color: #1a365d;
    text-decoration: underline;
}

.partner-badge-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.72rem;
}

/* Balance Grid responsive styles for premium horizontal scroll */
.balance-grid-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Примусовий гарний скролбар для мобільних пристроїв */
.balance-grid-wrapper::-webkit-scrollbar {
    height: 5px !important;
    display: block !important;
}
.balance-grid-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
}
.balance-grid-wrapper::-webkit-scrollbar-thumb {
    background: #3b82f6 !important; /* красивий брендовий синій скролбар */
    border-radius: 10px !important;
}
.balance-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8 !important;
}

/* Анімація пульсації для стрілочки скролу */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: .4;
        transform: translateX(4px); /* Стрілочка робить плавний натяк вбік */
    }
}

@media (max-width: 768px) {
    .balance-grid-wrapper .table {
        min-width: 920px !important; /* Гарантує, що таблиця не стискатиметься і не ламатиметься */
        font-size: 0.8rem !important; /* Великий, комфортний для читання шрифт */
    }
    .balance-grid-wrapper .table th,
    .balance-grid-wrapper .table td {
        padding: 0.6rem 0.5rem !important;
        vertical-align: middle !important;
    }
    .balance-grid-wrapper .form-control {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.4rem !important;
        height: auto !important;
    }
    .balance-grid-wrapper .d-flex {
        gap: 0.25rem !important;
    }
    .balance-grid-wrapper .text-muted {
        font-size: 0.7rem !important;
    }
}

/* User Profile Badge (Status & ID) styles */
.profile-badge-container {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 10px;
    padding: 4px 0px;
    width: fit-content;
    flex-wrap: nowrap;
}

.profile-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-badge-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: #f1f5f9;
    border-radius: 6px;
    color: #3b82f6;
    flex-shrink: 0;
}

.profile-badge-label {
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.1;
    font-weight: 500;
}

.profile-badge-value-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1.1;
}

.profile-badge-value-id {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.profile-badge-divider {
    width: 1px;
    height: 18px;
    background-color: #cbd5e1;
    flex-shrink: 0;
    margin: 0 4px;
}

.profile-badge-icon-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}