@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('/assets/phosphor/style.css');

:root {
  --accent-main: #FFB800;
  --accent-hover: #E5A600;
  --accent-soft: rgba(255, 184, 0, 0.16);
  --accent-cyan: #00F2FE;
  --accent-cyan-soft: rgba(0, 242, 254, 0.14);
  --accent-gradient: linear-gradient(135deg, #FFB800 0%, #00F2FE 100%);
  --accent-contrast: #0A0E17;

  --bg-app: #F5F7FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F0F3F8;

  --text-main: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-placeholder: #94A3B8;

  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-color: #E2E8F0;
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;

  --status-success: #10B981;
  --status-success-soft: rgba(16, 185, 129, 0.12);
  --status-danger: #EF4444;
  --status-danger-soft: rgba(239, 68, 68, 0.12);
  --status-warning: #F59E0B;
  --status-warning-soft: rgba(245, 158, 11, 0.12);

  --color-danger: #EF4444;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --radius-sm: 8px;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.08);

  --font-family: 'Times New Roman', Times, 'Georgia', 'Merriweather', serif;
  --transition-fast: 0.18s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: #0B1120;
  background-image: url('/img/app_bg.jpg?v=2');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.app-viewport {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: transparent;
  background-image: url('/img/app_bg.jpg?v=2');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  body {
    background-color: #070B14;
    background-image: url('/img/app_bg.jpg?v=2');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
  }
  .app-viewport {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  }
}

.card,
.app-card {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  position: relative;
  --text-main: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-placeholder: #94A3B8;
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --border-color: #E2E8F0;
}

.btn-primary {
  background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
  color: var(--accent-contrast);
  border-radius: var(--radius-btn);
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.38);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-btn);
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--border-light);
  width: 100%;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  margin-bottom: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-group-icon {
  font-size: 20px;
  color: var(--text-placeholder);
  margin-right: 10px;
  flex-shrink: 0;
  display: inline-flex;
}

.input-field {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  color: var(--text-main);
}

.input-field::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.input-control {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #0F172A;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-control:focus {
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-control::placeholder {
  color: #94A3B8;
}

.input-group .input-control {
  border: none;
  padding: 0;
  height: 100%;
  background: transparent;
}

.input-prefix {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  padding-right: 8px;
  display: inline-flex;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.badge-success {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #DC2626;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #B45309;
}

.badge-info {
  background: rgba(0, 242, 254, 0.14);
  color: #0284C7;
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.16);
  color: #64748B;
}

.badge-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.badge-alert--danger {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.badge-alert--success {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 480px;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  transition: color var(--transition-fast);
}

.app-bottom-nav-item i {
  font-size: 22px;
}

.app-bottom-nav-item.active {
  color: var(--accent-contrast);
  font-weight: 700;
}

.app-bottom-nav-item.active i {
  color: var(--accent-main);
}

.app-content {
  padding: 16px 16px 88px;
  width: 100%;
}

.app-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  color: #0F172A;
  --text-main: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
}

.app-header-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  text-align: center;
  flex: 1;
  margin: 0;
}

.app-header-btn {
  background: none;
  border: none;
  color: #0F172A;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
}

.app-header-action {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-hover);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 36px;
}

.sticky-footer-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  z-index: 40;
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.app-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--bg-surface);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
}

.app-sidebar.open {
  transform: translateX(0);
}

.app-sidebar-header {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.app-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.app-sidebar-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 10px 6px;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background var(--transition-fast);
}

.app-sidebar-link i {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-sidebar-link:hover {
  background: var(--bg-subtle);
}

.app-sidebar-link.active {
  background: var(--accent-soft);
  color: var(--text-main);
  font-weight: 700;
}

.app-sidebar-link.active i {
  color: var(--accent-main);
}

.app-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-action-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.12);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.14) 0%, rgba(0, 242, 254, 0.14) 100%);
  color: #FFB800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.quick-action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.card-stat, .stat-card {
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.14), transparent 60%), linear-gradient(145deg, #0B1120 0%, #162033 100%);
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid rgba(0, 242, 254, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 242, 254, 0.08);
  margin-bottom: 16px;
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
  --text-main: #F8FAFC;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #94A3B8;
  --bg-primary: rgba(11, 17, 32, 0.6);
  --border-color: rgba(255, 255, 255, 0.12);
}

.card-stat::before, .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFB800, #00F2FE, #FFB800);
  background-size: 200% 100%;
  animation: crypto-scan 4s linear infinite;
}

@keyframes crypto-scan {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.card-stat .card-stat-header, .stat-card .card-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-stat .card-stat-eyebrow, .stat-card .card-stat-eyebrow, .stat-card .stat-card-label {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-stat .badge-pill, .stat-card .badge-pill {
  background: rgba(0, 242, 254, 0.12);
  color: #00F2FE;
  border: 1px solid rgba(0, 242, 254, 0.28);
}

.card-stat .card-stat-value, .stat-card .card-stat-value {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #FFFFFF 0%, #E2E8F0 60%, #00F2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.card-stat .grid-3 {
  background: rgba(11, 17, 32, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-btn);
}

.card-stat .grid-3 div div:first-child {
  color: #94A3B8 !important;
}

.card-stat .grid-3 div div:last-child {
  color: #F8FAFC !important;
}

.card-stat .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-stat .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.list-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
  color: #0F172A;
  --text-main: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  color: inherit;
}

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

.list-item:hover {
  background: var(--bg-subtle);
}

.list-group {
  display: flex;
  flex-direction: column;
}

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

.list-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.list-item-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.list-item-chevron {
  color: var(--text-placeholder);
  font-size: 18px;
}

.tab-pills {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.tab-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  border-radius: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-pill.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-tag--warning {
  background: var(--status-warning-soft);
  color: #B45309;
}

.badge-tag--success {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.ui-float-wa,
.ui-float-tg,
#waFloat,
#tgFloat {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.modal-overlay.open,
.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.modal-window {
  position: relative;
  width: 100%;
  max-width: 390px;
  max-height: 90vh;
  overflow-y: auto;
  background: radial-gradient(circle at 85% 0%, rgba(0, 242, 254, 0.08), transparent 55%), linear-gradient(155deg, #0e172a 0%, #15233c 100%);
  border-radius: 22px;
  padding: 26px 22px 22px;
  color: #F1F5F9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  --text-main: #F8FAFC;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #94A3B8;
  --text-placeholder: #64748B;
}

.modal-window .input-group {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.modal-window .input-group:focus-within {
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}

.modal-window .input-field {
  color: #FFFFFF;
}

.modal-window .input-field::placeholder {
  color: #64748B;
}

.modal-overlay.open .modal-window,
.modal-overlay.is-open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, #00F2FE 30%, #38BDF8 50%, #00F2FE 70%, transparent);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.35);
  transform: rotate(90deg);
}

.modal-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform 0.2s ease;
}

.modal-window h2,
.modal-window h3 {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.modal-window p {
  color: #94A3B8;
  line-height: 1.5;
}

.modal-window .input-field,
.modal-window input[type="text"],
.modal-window input[type="password"],
.modal-window input[type="number"],
.modal-window textarea,
.modal-window select {
  background: rgba(10, 16, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  border-radius: 12px;
}

.modal-window .input-field:focus,
.modal-window input:focus,
.modal-window textarea:focus {
  border-color: #00F2FE;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
  background: rgba(10, 16, 28, 0.95);
}

.modal-window .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border-radius: 12px;
}

.modal-window .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.modal-window--success,
.modal-window[data-type="success"] {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(16, 185, 129, 0.35);
}

.modal-window--success::before,
.modal-window[data-type="success"]::before {
  background: linear-gradient(90deg, transparent, #10B981 30%, #34D399 50%, #10B981 70%, transparent);
  box-shadow: 0 0 18px #10B981;
}

.modal-window--success .modal-icon-badge,
.modal-window--success #alIcon {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(16, 185, 129, 0.06) 100%) !important;
  color: #10B981 !important;
  border: 2px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.45), inset 0 0 10px rgba(16, 185, 129, 0.2) !important;
  animation: modalPulseSuccess 2.2s ease-in-out infinite;
}

.modal-window--success .btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
  border: none !important;
}

.modal-window--error,
.modal-window--danger,
.modal-window[data-type="error"] {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(239, 68, 68, 0.24), inset 0 1px 0 rgba(239, 68, 68, 0.35);
}

.modal-window--error::before,
.modal-window--danger::before,
.modal-window[data-type="error"]::before {
  background: linear-gradient(90deg, transparent, #EF4444 30%, #F87171 50%, #EF4444 70%, transparent);
  box-shadow: 0 0 18px #EF4444;
}

.modal-window--error .modal-icon-badge,
.modal-window--error #alIcon,
.modal-window--danger .modal-icon-badge,
.modal-window--danger #alIcon {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.24) 0%, rgba(239, 68, 68, 0.06) 100%) !important;
  color: #EF4444 !important;
  border: 2px solid rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.45), inset 0 0 10px rgba(239, 68, 68, 0.2) !important;
  animation: modalPulseError 2.2s ease-in-out infinite;
}

.modal-window--error .btn-primary,
.modal-window--danger .btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35) !important;
  border: none !important;
}

.modal-window--warning,
.modal-window[data-type="warning"] {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(245, 158, 11, 0.35);
}

.modal-window--warning::before,
.modal-window[data-type="warning"]::before {
  background: linear-gradient(90deg, transparent, #F59E0B 30%, #FBBF24 50%, #F59E0B 70%, transparent);
  box-shadow: 0 0 18px #F59E0B;
}

.modal-window--warning .modal-icon-badge,
.modal-window--warning #alIcon {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24) 0%, rgba(245, 158, 11, 0.06) 100%) !important;
  color: #F59E0B !important;
  border: 2px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.2) !important;
  animation: modalPulseWarning 2.2s ease-in-out infinite;
}

.modal-window--warning .btn-primary {
  background: linear-gradient(135deg, #FFB800 0%, #F59E0B 100%) !important;
  color: #0A0E17 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35) !important;
  border: none !important;
}

.modal-window--info,
.modal-window[data-type="info"] {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.22), inset 0 1px 0 rgba(0, 242, 254, 0.35);
}

.modal-window--info::before,
.modal-window[data-type="info"]::before {
  background: linear-gradient(90deg, transparent, #00F2FE 30%, #38BDF8 50%, #00F2FE 70%, transparent);
  box-shadow: 0 0 18px #00F2FE;
}

.modal-window--info .modal-icon-badge,
.modal-window--info #alIcon {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.24) 0%, rgba(0, 242, 254, 0.06) 100%) !important;
  color: #00F2FE !important;
  border: 2px solid rgba(0, 242, 254, 0.45) !important;
  box-shadow: 0 0 26px rgba(0, 242, 254, 0.45), inset 0 0 10px rgba(0, 242, 254, 0.2) !important;
  animation: modalPulseInfo 2.2s ease-in-out infinite;
}

.modal-window--info .btn-primary {
  background: linear-gradient(135deg, #00F2FE 0%, #0284C7 100%) !important;
  color: #0A0E17 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.32) !important;
  border: none !important;
}

.modal-window--question,
.modal-window[data-type="question"] {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(129, 140, 248, 0.22), inset 0 1px 0 rgba(129, 140, 248, 0.35);
}

.modal-window--question::before,
.modal-window[data-type="question"]::before {
  background: linear-gradient(90deg, transparent, #818CF8 30%, #A5B4FC 50%, #818CF8 70%, transparent);
  box-shadow: 0 0 18px #818CF8;
}

.modal-window--question .modal-icon-badge,
.modal-window--question #alIcon {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.24) 0%, rgba(129, 140, 248, 0.06) 100%) !important;
  color: #818CF8 !important;
  border: 2px solid rgba(129, 140, 248, 0.45) !important;
  box-shadow: 0 0 26px rgba(129, 140, 248, 0.45) !important;
}

.modal-window--coupon {
  border-color: rgba(255, 184, 0, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 184, 0, 0.2), inset 0 1px 0 rgba(255, 184, 0, 0.35);
}

.modal-window--coupon::before {
  background: linear-gradient(90deg, transparent, #FFB800 30%, #FDE047 50%, #FFB800 70%, transparent);
  box-shadow: 0 0 18px #FFB800;
}

.modal-window--reward {
  border-color: rgba(255, 184, 0, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 184, 0, 0.28), inset 0 1px 0 rgba(255, 184, 0, 0.4);
}

.modal-window--reward::before {
  background: linear-gradient(90deg, transparent, #FFB800 20%, #10B981 50%, #00F2FE 80%, transparent);
  box-shadow: 0 0 20px #FFB800;
}

.modal-window--security {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.18), inset 0 1px 0 rgba(0, 242, 254, 0.3);
}

.modal-window--security::before {
  background: linear-gradient(90deg, transparent, #00F2FE 30%, #38BDF8 50%, #00F2FE 70%, transparent);
  box-shadow: 0 0 16px #00F2FE;
}

@keyframes modalPulseSuccess {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45), inset 0 0 10px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0), inset 0 0 14px rgba(16, 185, 129, 0.35); }
}

@keyframes modalPulseError {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45), inset 0 0 10px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), inset 0 0 14px rgba(239, 68, 68, 0.35); }
}

@keyframes modalPulseWarning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0), inset 0 0 14px rgba(245, 158, 11, 0.35); }
}

@keyframes modalPulseInfo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.45), inset 0 0 10px rgba(0, 242, 254, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(0, 242, 254, 0), inset 0 0 14px rgba(0, 242, 254, 0.35); }
}

.auth-card,
.register-card,
.machine-card,
.quick-action-card {
  --text-main: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-placeholder: #94A3B8;
  color: #0F172A;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #0F172A !important;
  caret-color: #0F172A !important;
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.modal-window input:-webkit-autofill,
.modal-window input:-webkit-autofill:hover,
.modal-window input:-webkit-autofill:focus,
.modal-window input:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFFFF !important;
  caret-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0 1000px #15233c inset !important;
}

