/* =========================================
   MIDNIGHT BLACK / CLEAN DESIGN (DONATE)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #07080b;
    color: #ffffff;
    overflow-x: hidden;
}

.donate-page {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    background-color: #07080b;
    padding-top: 150px;
    padding-bottom: 120px;
}

/* Статический фон без Fixed блёра */
.donate-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #1f150a 0%, #07080b 70%);
    z-index: 0;
    pointer-events: none;
}

.page-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Шапка */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-badge-wrap {
    margin-bottom: 14px;
}

.x2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.35);
}

.page-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #8b92a0;
    font-size: 15px;
    font-weight: 500;
}

/* Сетка формы */
.donate-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    align-items: start;
    margin-bottom: 70px;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.left-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Карточки слева */
.cyber-info-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label {
    font-size: 12px;
    color: #7b8392;
    font-weight: 500;
}

.info-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.cyber-tip-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: #8b92a0;
    font-size: 13.5px;
    line-height: 1.6;
}

.cyber-tip-box i {
    color: #ff9500;
    font-size: 18px;
    margin-top: 2px;
}

/* Карточка формы справа (без блёра, чистый плотный цвет) */
.cyber-glass-card {
    background: #0e1017;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 38px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.cyber-card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 26px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.cyber-input {
    width: 100%;
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cyber-input::placeholder { color: #52525b; }
.cyber-input:focus {
    border-color: #ff9500;
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.15);
}

.input-hint {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff9500;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
    background: rgba(255, 149, 0, 0.12);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 149, 0, 0.25);
}

.custom-dropdown { position: relative; user-select: none; }

.dropdown-selected {
    width: 100%;
    background: #080a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    border-radius: 14px;
    color: #52525b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-selected.has-value { color: #ffffff; }
.dropdown-selected::after { content: '▾'; color: #ff9500; font-size: 14px; }

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #121520;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #8b92a0;
    cursor: pointer;
}
.dropdown-option:hover { background: rgba(255, 149, 0, 0.15); color: #ffffff; }
.dropdown-option.selected { background: rgba(255, 149, 0, 0.25); color: #ff9500; }

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.checkbox-group input { margin-top: 3px; accent-color: #ff9500; width: 16px; height: 16px; cursor: pointer; }
.checkbox-group label { font-size: 12px; color: #7b8392; font-weight: 500; line-height: 1.5; cursor: pointer; }
.checkbox-group a { color: #a1a1aa; text-decoration: underline; }
.checkbox-group a:hover { color: #ffffff; }

.btn-cyber-pay {
    width: 100%;
    background: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-cyber-pay:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Виджет XRINE PLUS */
.xrine-plus-widget {
    background: #131110;
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 28px;
    padding: 40px;
    margin: 70px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.plus-widget-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 650px;
}

.plus-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 149, 0, 0.25);
    color: #ffb703;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 1.2px;
}

.plus-widget-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.plus-widget-desc {
    font-size: 14px;
    color: #9aa1b0;
    line-height: 1.5;
}

.plus-widget-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-plus-action {
    padding: 16px 26px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-plus-action.info {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.btn-plus-action.info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-plus-action.buy {
    background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    border: none;
    color: #000000;
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.35);
    font-weight: 900;
}
.btn-plus-action.buy:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* МАГАЗИН ТОВАРОВ */
.shop-section { padding-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.shop-section-title { text-align: center; font-family: 'Unbounded', sans-serif; font-size: 32px; font-weight: 900; color: #ffffff; margin-bottom: 8px; }
.shop-section-subtitle { text-align: center; color: #8b92a0; font-size: 14px; margin-bottom: 40px; }

.category-tabs { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 22px;
    border-radius: 14px;
    color: #8b92a0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}
.tab-btn:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.tab-btn.active {
    background: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(255, 149, 0, 0.3);
}

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.item-card {
    background: #0e1017;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.item-card:hover { transform: translateY(-4px); border-color: rgba(255, 149, 0, 0.4); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5); }

.plus-item-card {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.08) 0%, #0e1017 100%) !important;
    border-color: rgba(255, 183, 3, 0.35) !important;
}
.plus-card-icon { position: absolute; top: 16px; right: 16px; color: #ffb703; font-size: 18px; }

.item-preview { width: 100%; height: 150px; background: #080a0f; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.item-preview img { max-width: 82%; max-height: 82%; object-fit: contain; }

.item-title { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 12px; }

.item-list { list-style: none; margin-bottom: 20px; flex-grow: 1; }
.item-list li { font-size: 12.5px; color: #8b92a0; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.item-list li::before { content: '•'; color: #ff9500; font-weight: bold; }

.item-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.item-price { font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 900; color: #ff9500; }
.old-price { font-size: 12px; color: #52525b; text-decoration: line-through; margin-left: 6px; }
.discount-badge { background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin-left: 4px; }

.btn-buy {
    background: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s;
}
.btn-buy:hover { filter: brightness(1.1); }
.item-card.hide { display: none; }

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card {
    background: #141720; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px; width: 100%; max-width: 460px; padding: 32px;
    position: relative; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}
.modal-close {
    position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.05);
    border: none; color: #8b92a0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.modal-img-wrapper { width: 68px; height: 68px; background: #0d0f14; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-img-wrapper img { max-width: 80%; max-height: 80%; object-fit: contain; }
.modal-title-box h3 { font-family: 'Unbounded', sans-serif; font-size: 16px; color: #fff; margin-bottom: 4px; }
.modal-price-tag { font-family: 'Unbounded', sans-serif; font-size: 16px; color: #ff9500; font-weight: 800; }

.modal-details { background: rgba(8, 10, 15, 0.6); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.modal-details-title { font-size: 11px; text-transform: uppercase; color: #7b8392; font-weight: 800; margin-bottom: 8px; }
.modal-items-list { list-style: none; }
.modal-items-list li { font-size: 12.5px; color: #d4d4d8; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.modal-items-list li::before { content: '✓'; color: #ff9500; font-weight: bold; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.modal-form .form-group label { font-size: 12px; font-weight: 600; color: #8b92a0; }
.form-control { background: #0d0f14; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px 18px; color: #fff; font-size: 13.5px; outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: #ff9500; }
.btn-modal-submit { background: linear-gradient(135deg, #ff9500, #ff3b30); color: #fff; border: none; padding: 16px; border-radius: 14px; font-size: 13px; font-weight: 900; text-transform: uppercase; cursor: pointer; margin-top: 6px; transition: filter 0.2s; }
.btn-modal-submit:hover { filter: brightness(1.1); }

/* УВЕДОМЛЕНИЯ TOAST */
#toast-container { position: fixed; top: 100px; right: 25px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #171012; border: 1px solid rgba(239, 68, 68, 0.4); color: #fff; padding: 14px 18px; border-radius: 14px; display: flex; align-items: center; gap: 12px; min-width: 300px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); transform: translateX(120%); transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); }
.toast.show { transform: translateX(0); }
.toast-icon { width: 26px; height: 26px; background: rgba(239, 68, 68, 0.2); color: #ef4444; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.toast-content { display: flex; flex-direction: column; }
.toast-title { font-size: 11px; font-weight: 800; color: #ef4444; text-transform: uppercase; letter-spacing: 0.5px; }
.toast-message { font-size: 12.5px; color: #e4e4e7; margin-top: 1px; }

@media (max-width: 992px) {
    .donate-grid { grid-template-columns: 1fr; }
    .xrine-plus-widget { flex-direction: column; align-items: stretch; padding: 25px 20px; }
    .plus-widget-right { flex-direction: column; }
    .btn-plus-action { width: 100%; justify-content: center; }
}