/* Окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-box-title {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.modal-box-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 18px;
}

.modal-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-box-list li {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    font-size: 14px;
    color: #2c3e50;
}

.modal-box-list li .emoji {
    margin-right: 10px;
    font-size: 16px;
}

.modal-box-list li .reward {
    margin-left: auto;
    font-weight: 600;
    font-size: 14px;
    color: #193366;
}

.modal-box-close {
    display: block !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 11px !important;
    background: #193366 !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #fff !important;
    cursor: pointer !important;
    text-align: center !important;
    height: 40px !important;
    line-height: 13px !important;
}

.modal-box-close:hover {
    background: #152a4f !important;
}
    .modal-box-list li {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.15s ease;
}

.modal-box-list li:hover {
    background: #eef2ff;
    border-color: #cdd9f4;
    transform: translateY(-1px);
}

/* Виджет баланса для main.tpl */
.billing-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 14px 16px;
    margin-bottom: 15px;
}

.billing-widget-icon {
    font-size: 26px;
}

.billing-widget-info {
    flex: 1;
}

.billing-widget-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.billing-widget-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.billing-widget-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.billing-widget-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.billing-widget-link:hover {
    color: #193366;
}


 /* ;юз */
.bg-panel-cart
{
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 5px 5px 10px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.05); */
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}

.blue {
    text-align: center;
    margin-bottom: 15px;
}

/* Универсальная страница сообщений */
.billing-message {
    text-align: center;
    padding: 8px 0;
}

.billing-message-title {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}

.billing-message-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 22px;
}

.billing-message-text a {
    color: #3498db;
    text-decoration: none;
}

.billing-message-text a:hover {
    text-decoration: underline;
}
/* Универсальная страница сообщений */




/* для кнопак всяких */
.billing-btn_clear {
    background: #27ae60 !important;
    border: none !important;
    color: #ffffff !important;
    
    line-height: 40px !important;
    border-radius: 10px !important;
    
    display: block !important;
    width: 100% !important;
    margin: 4px 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.billing-btn_clear:hover {
    background: #1e8449 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.billing-btn_clear[name="invoice_delete"] {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.billing-btn_clear[name="invoice_delete"]:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}


/* бар */
.billing-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .billing-topbar {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.billing-topbar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    object-fit: cover;
    flex-shrink: 0;
}

.billing-topbar-info {
    flex: 1;
    min-width: 0;
}

.billing-topbar-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.billing-topbar-balance {
    font-size: 13px;
    color: #88929e;
}

.billing-topbar-balance b {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.billing-topbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

@media (max-width: 600px) {
    .billing-topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

.billing-topbar-btn-secondary {
    padding: 9px 14px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 500;
}
.billing-topbar-btn-active {
    color: #fff !important;
    background: #193366 !important;
    border-color: #193366 !important;
}

.billing-topbar-btn-secondary {
    color: #64748b;
    background: #fff;
    border: 1px solid #eef2f6;
}

.billing-topbar-btn-secondary:hover {
    color: #2c3e50;
    background: #fafbfc;
    border-color: #e2e8f0;
}

/* меню */
.billing-bicmenu {
    margin-bottom: 24px !important;
}

.billing-bicmenu-list {
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
}

@media (max-width: 600px) {
    .billing-bicmenu-list {
        flex-direction: column !important;
    }
}

.billing-bicmenu-item,
.billing-bicmenu-item-active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    color: #64748b !important;
    background: #fff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
    line-height: normal !important;
    height: auto !important;
    width: auto !important;
}

@media (max-width: 600px) {
    .billing-bicmenu-item,
    .billing-bicmenu-item-active {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.billing-bicmenu-item:hover {
    color: #2c3e50 !important;
    border-color: #e2e8f0 !important;
    background: #fafbfc !important;
}

.billing-bicmenu-item-active {
    color: #fff !important;
    background: #193366 !important;
    border-color: #193366 !important;
    font-weight: 600 !important;
}

/* Контейнер для списка пожертвований */
.donations-feed {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin: 16px 0;
    overflow: hidden;
}

.donations-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.donations-feed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.donations-feed-title svg {
    width: 18px;
    height: 18px;
    color: #3498db;
}

.donations-feed-count {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 20px;
}

.donations-feed-list {
    max-height: 170px;
    overflow-y: auto;
    padding: 4px 0;
}

.donation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.donation-item:last-child {
    border-bottom: none;
}

.donation-item:hover {
    background: #fafbfc;
}

.donation-avatar {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    flex-shrink: 0;
}

.donation-content {
    flex: 1;
    min-width: 0;
}

.donation-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.donation-from {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.donation-amount {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.donation-to {
    font-size: 13px;
    color: #666;
}

.donation-to a {
    color: #333;
    text-decoration: none;
}

.donation-to a:hover {
    color: #3498db;
}

.donation-message {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.donation-time {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

.donations-feed-empty {
    padding: 24px 16px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* Кастомизация скроллбара */
.donations-feed-list::-webkit-scrollbar {
    width: 4px;
}

.donations-feed-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.donations-feed-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.donations-feed-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.donate-widget {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #eee;
    margin: 12px 0;
    max-width: 100%;
}

.donate-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.donate-widget-icon {
    font-size: 18px;
}

.donate-widget-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.donate-widget-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.donate-widget-title a:hover {
    color: #3498db;
}

.donate-widget-stats {
    margin-left: auto;
    font-size: 13px;
    color: #666;
}

.donate-widget-stats b {
    color: #333;
}

.donate-widget-progress {
    height: 5px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 14px;
}

.donate-widget-progress span {
    display: block;
    height: 100%;
    background: #3498db;
    border-radius: 5px;
}

.donate-widget-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.donate-widget-input-wrapper {
    flex: 1;
}

.donate-widget-input {
    display: flex;
    align-items: center;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #eee;
    width: 100%;
}

.donate-widget-input input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    min-width: 60px;
}

.donate-widget-input span {
    padding: 10px 12px;
    color: #777;
    font-size: 13px;
    background: #f5f5f5;
    border-left: 1px solid #eee;
}

.donate-widget-fee {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    padding-left: 4px;
}

.donate-widget-btn {
    padding: 10px 18px !important;
    background: #27ae60 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.15s !important;
    align-self: flex-start !important;
    display: block !important;        
  	text-align: center !important; 
  	height: 13xp !important;    
  	line-height: normal !important; 
}

.donate-widget-btn:hover {
    background: #1e8449 !important;
    color: #fff !important;
}

.donate-widget-comment {
    margin-top: 10px;
}

.donate-widget-comment input {
    width: 100%;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.donate-widget-comment input:focus {
    border-color: #3498db;
    background: #fff;
}

.donate-widget-comment input::placeholder {
    color: #aaa;
}

.donate-widget-success {
    color: #27ae60;
    font-size: 13px;
    text-align: center;
    padding: 8px 0 4px;
}

.donate-widget-login {
    text-align: center;
    font-size: 13px;
    color: #888;
    padding: 8px 0 4px;
}

.donate-widget-login a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.donate-widget-blocked {
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
}

.donate-widget-off {
    padding: 14px 16px;
    color: #e74c3c;
    background: #fff;
    border: 1px solid #fee;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 480px) {
    .donate-widget-form {
        flex-direction: column;
    }
    
    .donate-widget-input-wrapper {
        width: 100%;
    }
    
    .donate-widget-btn {
        width: 100%;
    }
}


/* Общие стили для страниц (промокод + пополнение) */
.billingx-page-box {
    padding: 4px 0;
}

.billingx-page-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px;
}

.billingx-page-title {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 4px;
}

.billingx-page-subtitle {
    font-size: 13px;
    color: #88929e;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.4;
}

.billingx-page-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.billingx-page-input-wrapper input {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: #2c3e50;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px #e3e3e3;
    transition: all 0.15s ease;
}

.billingx-page-input-wrapper input:focus {
    box-shadow: inset 0 0 0 1px #3498db, inset 1px 2px 5px rgba(0,0,0,0.1);
    background: #fff;
}

.billingx-page-input-wrapper input::placeholder {
    color: #5a668c;
}

.billingx-page-input-wrapper::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

/* Промокод */
.promo-input-wrapper input {
    padding: 12px 40px 12px 14px;
}

.promo-input-wrapper::after {
    content: '🎁';
    font-size: 16px;
    opacity: 0.6;
}

/* Пополнение */
.pay-input-wrapper input {
    padding: 12px 110px 12px 14px;
}

.pay-input-wrapper::after {
    content: '⚡ энергии';
    color: #88929e;
    font-weight: 500;
}

/* Инфо блок */
.billingx-page-info {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #eef2f6;
}

.billingx-page-info-title {
    font-size: 11px;
    font-weight: 600;
    color: #88929e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.billingx-page-info-text {
    font-size: 12px;
    color: #5a668c;
    line-height: 1.5;
}

.billingx-page-info-text a {
    color: #3498db;
    text-decoration: none;
}

.billingx-page-info-text a:hover {
    text-decoration: underline;
}

/* Общие стили для страниц (промокод + пополнение) */

/* Сетка */
.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 700px) {
    .pay-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка */
.pay-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.pay-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 14px;
}

/* Инфо строки */
.pay-info-row {
    margin-bottom: 14px;
}

.pay-info-row:last-child {
    margin-bottom: 0;
}

.pay-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pay-info-value {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.pay-info-value s {
    color: #b0b8c0;
    margin-right: 6px;
}

/* Статус */
.pay-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #b45309;
    font-weight: 500;
}

.pay-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
}

/* Способ оплаты */
.pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-method:hover {
    border-color: #3498db;
    background: #fff;
}

/* Стиль для выбранного элемента */
.pay-method:has(input:checked) {
    border-color: #3498db;
    background: #fff;
}

.pay-method input {
    visibility: hidden;
    position: absolute;
}

.pay-method input + img {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.pay-method input:checked + img {
    opacity: 1;
}

.pay-method img {
    width: 75px;
    object-fit: contain;
    border-radius: 6px;
}

/* Купон */
.pay-coupon {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.pay-coupon-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px;
}

.pay-coupon-row {
    display: flex;
    gap: 8px;
}

.pay-coupon-row input {
    flex: 1 !important;
    padding: 10px 12px !important;
    background: #fafbfc !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    outline: none !important;
}

.pay-coupon-row input:focus {
    border-color: #3498db !important;
}

.pay-coupon-row button {
    padding: 10px 16px !important;
    background: #fff !important;
    border: 1px solid #3498db !important;
    border-radius: 8px !important;
    color: #3498db !important;
    font-size: 14px !important;
    line-height: 20px !important;
    cursor: pointer !important;
}

.pay-coupon-row button:hover {
    background: #3498db !important;
    color: #fff !important;
}

.pay-coupon-result {
    margin-top: 8px;
    font-size: 12px;
    color: #5a668c;
}

/* Кнопка */
.pay-submit {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}
