/* =============================================================
   Manual Pay — slim theme
   ============================================================= */
:root {
    --mp-bg:      rgb(36, 39, 49);
    --mp-bg2:     rgb(44, 47, 60);
    --mp-border:  rgb(55, 59, 74);
    --mp-primary: rgb(251, 71, 75);
    --mp-text:    rgb(165, 169, 180);
    --mp-bright:  rgb(220, 222, 230);
    --mp-success: rgb(36, 227, 77);
    --mp-radius:  12px;
    --mp-t:       0.2s ease;
}

/* ── Виджет-контейнер ──────────────────────────────────── */
.mp-widget {
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
}

.mp-widget__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--mp-border);
}

.mp-widget__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--mp-bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--mp-primary);
    flex: 0 0 44px;
}

.mp-widget__title {
    font-size: 1rem; font-weight: 700; color: var(--mp-bright);
}

.mp-widget__sub {
    font-size: 0.78rem; color: var(--mp-text); margin-top: 2px;
}

/* ── Сетка карт ─────────────────────────────────────────── */
.mp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding: 18px 20px;
}

.mp-empty {
    color: var(--mp-text); font-size: 0.875rem; padding: 8px 0;
}

/* ── Карточка карты ─────────────────────────────────────── */
.mp-card {
    background: var(--mp-bg2);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color var(--mp-t), transform var(--mp-t), box-shadow var(--mp-t);
}

.mp-card:hover {
    border-color: var(--mp-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mp-card__top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}

.mp-card__flag { font-size: 1.5rem; }

.mp-card__currency {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 3px 8px; border-radius: 20px;
    background: rgba(255,255,255,0.07); color: var(--mp-text);
}

.mp-card__bank {
    font-size: 0.9rem; font-weight: 700; color: var(--mp-bright);
    margin-bottom: 10px;
}

.mp-card__open {
    font-size: 0.78rem; color: var(--mp-primary); font-weight: 600;
}

/* ── Подсказка внизу виджета ─────────────────────────────── */
.mp-hint {
    padding: 12px 20px;
    font-size: 0.8125rem; color: var(--mp-text);
    border-top: 1px solid var(--mp-border);
    line-height: 1.5;
}

/* ── Модалка ─────────────────────────────────────────────── */
.mp-modal-content {
    background: rgb(27, 29, 36) !important;
    border: 1px solid var(--mp-border) !important;
    border-radius: var(--mp-radius) !important;
}

.mp-modal-header {
    border-bottom: 1px solid var(--mp-border) !important;
    padding: 14px 18px !important;
}

.mp-modal-body { padding: 18px !important; }

/* Визуальная "банковская карта" в модалке */
.mp-modal-card {
    background: linear-gradient(135deg, rgb(36,39,49) 0%, rgb(44,47,60) 100%);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 18px 20px 16px;
    margin-bottom: 4px;
    position: relative;
}

.mp-modal-card__name {
    font-size: 0.875rem; font-weight: 700; color: var(--mp-bright);
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: space-between;
}

.mp-modal-card__flag { font-size: 1.3rem; }

.mp-modal-card__number {
    font-size: 1.25rem; font-weight: 700; letter-spacing: 0.12em;
    color: #fff; font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
}

.mp-modal-card__footer {
    display: flex; align-items: center; justify-content: space-between;
}

.mp-modal-card__currency {
    font-size: 0.875rem; font-weight: 700; color: var(--mp-text);
}

/* ── Кнопки ─────────────────────────────────────────────── */
.mp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 18px;
    border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: opacity var(--mp-t), transform var(--mp-t);
    white-space: nowrap;
}

.mp-btn--primary {
    background: var(--mp-primary); color: #fff;
    box-shadow: 0 4px 14px rgba(251,71,75,0.35);
}

.mp-btn--primary:hover { opacity: 0.88; transform: translateY(-1px); }

.mp-btn--copy {
    background: var(--mp-bg); color: var(--mp-bright);
    border: 1px solid var(--mp-border);
    padding: 7px 14px; font-size: 0.8rem;
}

.mp-btn--copy:hover { border-color: var(--mp-primary); color: #fff; }

.mp-btn--file {
    background: var(--mp-bg2); color: var(--mp-bright);
    border: 1px solid var(--mp-border);
    padding: 8px 14px; font-size: 0.8rem; border-radius: 8px;
    cursor: pointer; flex: 0 0 auto;
}

.mp-btn--file:hover { border-color: var(--mp-primary); }

.w-100 { width: 100%; }
.mt-3  { margin-top: 14px; }

/* ── Форма заявки ────────────────────────────────────────── */
.mp-form { margin-top: 16px; }

.mp-form__group { margin-bottom: 14px; }

.mp-form__label {
    display: block; font-size: 0.8125rem; font-weight: 600;
    color: var(--mp-text); margin-bottom: 6px;
}

.mp-form__input {
    width: 100%; padding: 10px 14px;
    background: var(--mp-bg2); border: 1px solid var(--mp-border);
    border-radius: 8px; color: var(--mp-bright); font-size: 0.875rem;
    outline: none; transition: border-color var(--mp-t);
    box-sizing: border-box;
}

.mp-form__input:focus { border-color: var(--mp-primary); }

.mp-form__hint {
    font-size: 0.75rem; color: rgba(93,158,255,0.9); margin-top: 4px;
}

.mp-file-wrap { display: flex; align-items: center; gap: 10px; }

.mp-file-name { font-size: 0.8rem; color: var(--mp-text); }

/* ── Сообщения ───────────────────────────────────────────── */
.mp-msg {
    padding: 10px 14px; border-radius: 8px;
    font-size: 0.8125rem; font-weight: 600; margin-top: 10px;
}

.mp-msg--error  { background: rgba(251,71,75,0.15); color: rgb(251,71,75); }
.mp-msg--success{ background: rgba(36,227,77,0.12); color: var(--mp-success); }

/* ── Успешный экран ──────────────────────────────────────── */
.mp-success {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 10px 0;
}

.mp-success__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(36,227,77,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--mp-success);
    margin-bottom: 16px;
}

.mp-success__text {
    font-size: 0.9375rem; font-weight: 700; color: var(--mp-bright);
    line-height: 1.4;
}

/* ── Loader ──────────────────────────────────────────────── */
.mp-loader {
    display: flex; align-items: center;
    padding: 20px; color: var(--mp-text); font-size: 0.875rem;
}

/* ── Просмотр чека в админке (без зависимости от Bootstrap) ── */
.mp-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.75);
    display: flex; align-items: center; justify-content: center; padding: 16px; }
.mp-lightbox__box { position: relative; background: #fff; border-radius: 8px; max-width: 760px; width: 100%;
    max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.mp-lightbox__close { position: absolute; top: 4px; right: 10px; z-index: 2; border: 0; background: transparent;
    font-size: 30px; line-height: 1; cursor: pointer; color: #333; }
.mp-lightbox__body { padding: 36px 16px 8px; overflow: auto; text-align: center; }
.mp-lightbox__img { max-width: 100%; max-height: 72vh; border-radius: 6px; }
.mp-lightbox__foot { padding: 8px 16px 14px; text-align: center; font-size: 13px; }
.mp-lightbox__err { color: #c62828; padding: 24px 8px; word-break: break-all; }
