body {
  background: #0b0f12;
  color: #e6f6ea;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 20px;
}

.screen {
  max-width: 430px;
  margin: auto;
}

.brand {
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 12px;
}

.card {
  background: #12171b;
  padding: 16px;
  margin: 14px 0;
  border-radius: 16px;
  border: 1px solid #1e2429;
}

.label {
  font-size: 13px;
  color: #8aa39b;
}

.value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
}

.sub {
  margin-top: 4px;
  font-size: 14px;
  color: #8aa39b;
}

.green { color: #39FF14; }

.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

/* КНОПКИ */
.btn {
  flex: 1;
  background: #1a2126;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #1e2429;
  font-weight: 600;
  color: #e6f6ea;
  text-align: center;
}

/* Основная */
.btn.primary {
  background: #39FF14;
  color: #0b0f12;
  border: none;
}

/* Вторичная (тихая) */
.btn.ghost {
  background: transparent;
  border: 1px solid #1e2429;
  color: #8aa39b;
}
.btn.ghost:hover {
  border-color: #39FF14;
  color: #39FF14;
}

/* Красная (опасное действие) */
.btn.red {
  background: #ff4d4d;
  border: none;
  color: white;
}
.btn.red:hover {
  opacity: .9;
}

/* МОДАЛКА */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 50;
}
.modal.hidden { display: none; }

.modal-body {
  background: #0b0f12;
  width: 100%;
  padding: 18px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border: 1px solid #1e2429;
  animation: slide-up .25s ease;
}

@keyframes slide-up {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.close-btn {
  font-size: 22px;
  background: none;
  border: none;
  color: #8aa39b;
  cursor: pointer;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-content label {
  display:block;
  margin: 12px 0 4px;
  font-size: 13px;
  color: #8aa39b;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  background: #12171b;
  border: 1px solid #1e2429;
  border-radius: 10px;
  color: #e6f6ea;
  font-size: 15px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

/* ТАБЛИЦА ИСТОРИИ */
.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.history-table th {
  text-align: left;
  padding: 6px 4px;
  color: #8aa39b;
  font-weight: 400;
  border-bottom: 1px solid #1e2429;
}

.history-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #1e2429;
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table .green {
  color: #39FF14;
}

.history-table .red {
  color: #ff4d4d;
}
.btn.inline {
  flex: 0;
  width: auto;
  padding: 0px 155px;
}
.icon-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.15);
}

.icon-btn svg path {
  transition: 0.2s ease;
}

.icon-btn:hover svg path {
  stroke: #ff5252;
}
