/*
 * Galaxy 71 — общие стили модалок (.dep-modal).
 *
 * Copyright © 2026 Bratish Ltd & ExeCode Studio. All rights reserved.
 * Proprietary. See COPYRIGHT.md and LICENSE.
 *
 * Единый источник (вынесено из inline-CSS cabinet.html 2026-05-20).
 * Используется: cabinet.html (pass/nick/deposit/mk-confirm), gallery.html (mk-confirm).
 *
 * Повышенная специфичность `.dep-modal .xxx` нужна потому что модалка по DOM
 * находится внутри `.auth-card` (из _base.html), где есть глобальные правила
 * `.auth-card button { width:100%; background:#ffd369 }`.
 */
.dep-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3,5,15,0.78);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 30px 20px;
  backdrop-filter: blur(6px);
  animation: dep-fadein 0.15s ease-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dep-modal .dep-card { margin: auto; }
.dep-modal[hidden] { display: none; }
@keyframes dep-fadein { from { opacity: 0; } to { opacity: 1; } }
.dep-card {
  width: 100%; max-width: 440px;
  background: #14142a; border: 1px solid #2a2a48;
  border-radius: 14px; padding: 26px 24px 22px;
  position: relative; color: #e8e8f0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: dep-slideup 0.2s ease-out;
}
@keyframes dep-slideup {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.dep-modal .dep-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: #7070a0;
  font-size: 24px; cursor: pointer;
  width: 32px !important; height: 32px;
  padding: 0; margin: 0;
  border-radius: 6px; line-height: 1;
  min-height: auto;
}
.dep-modal .dep-close:hover { color: #ffd369; background: rgba(255,211,105,0.08); box-shadow: none; }
.dep-modal .dep-card h2 {
  margin: 0 0 10px; font-size: 22px; font-weight: 800;
  color: #58a6ff; letter-spacing: 0.3px;
}
.dep-modal .dep-sub { font-size: 13px; color: #9090a8; margin: 0 0 18px; line-height: 1.6; }
/* Текст confirm-модалки marketplace — ярче и крупнее штатной мелкой подписи
   (id-селектор перебивает .dep-modal .dep-sub только для #mkc-text). */
#mkc-text { font-size: 14px; color: #d2d6e4; }
.dep-modal .dep-label {
  font-size: 11px; color: #7070a0; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 8px;
}
.dep-modal .dep-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.dep-modal .dep-quick-btn {
  width: 100%;
  padding: 10px 4px; font-size: 14px; font-weight: 600;
  background: rgba(10,10,24,0.5); color: #d0d0e0;
  border: 1px solid #2a2a48; border-radius: 8px;
  cursor: pointer; transition: border-color .12s, background .12s;
  min-height: 40px; margin: 0;
}
.dep-modal .dep-quick-btn:hover  { border-color: #8ab4ff; box-shadow: none; }
.dep-modal .dep-quick-btn.active { border-color: #ffd369; background: rgba(255,211,105,0.1); color: #ffd369; }
.dep-modal .dep-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 15px;
  background: rgba(10,10,24,0.5); border: 1px solid #2a2a48;
  color: #d0d0e0; border-radius: 8px;
  font-family: inherit; -moz-appearance: textfield;
}
.dep-modal .dep-input::-webkit-outer-spin-button,
.dep-modal .dep-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dep-modal .dep-input:focus { outline: none; border-color: #ffd369; }
.dep-modal .dep-hint { font-size: 12px; color: #7080a0; margin-top: 6px; line-height: 1.5; }
.dep-modal .dep-hint b { color: #ffd369; }
.dep-modal .dep-currencies { display: grid; gap: 8px; }
.dep-modal .dep-cur {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; min-height: 48px;
  background: rgba(10,10,24,0.5); border: 1px solid #2a2a48;
  border-radius: 10px; cursor: pointer;
  font-size: 14px; transition: border-color .15s, background .15s;
}
.dep-modal .dep-cur:has(input:checked) { border-color: #ffd369; background: rgba(255,211,105,0.08); }
.dep-modal .dep-cur input { accent-color: #ffd369; }
.dep-modal .dep-go {
  width: 100%; margin-top: 18px;
  padding: 14px 16px; font-size: 15px; font-weight: 700;
  background: #ffd369; color: #0a0a18;
  border: none; border-radius: 10px; cursor: pointer;
  min-height: 48px; transition: box-shadow .15s;
}
.dep-modal .dep-go:hover { box-shadow: 0 0 24px rgba(255,211,105,0.35); }
.dep-modal .dep-go:disabled { opacity: .5; cursor: wait; }
.dep-modal .dep-err {
  background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4);
  color: #ffb0b0; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-top: 12px;
}
.dep-err[hidden] { display: none; }
.dep-modal .dep-ok {
  background: rgba(127,255,212,0.12); border: 1px solid rgba(127,255,212,0.4);
  color: #7fffd4; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-top: 12px; text-align: center; font-weight: 600;
}
.dep-ok[hidden] { display: none; }
