:root {
  --bg: #0b101b;
  --card-bg: rgba(30, 36, 50, 0.7);
  --text: #ffffff;
  --muted: #8b9bb4;
  --accent: #3b82f6; /* Blue like in screenshot */
  --accent-hover: #2563eb;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg) 70%);
  color: var(--text);
  min-height: 100vh;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 16px; padding-bottom: 40px; }

/* Screens logic */
.screen { display: none; animation: fadeIn 0.3s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.sub { font-size: 12px; color: var(--muted); }
.back-btn { background: none; border: none; color: var(--accent); font-size: 16px; cursor: pointer; padding: 0; }

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.hidden { display: none; }

.title { font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.sub-title { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* Elements */
.loader { text-align: center; color: var(--muted); padding: 20px; }
.qrbox { background: #fff; padding: 10px; border-radius: 12px; width: fit-content; margin: 15px auto; }
.inputbox input {
  width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  color: var(--muted); padding: 10px; border-radius: 8px; font-family: monospace;
  outline: none; box-sizing: border-box;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.mini { background: rgba(255,255,255,0.03); padding: 10px; border-radius: 10px; }
.big { font-size: 20px; font-weight: 700; margin: 5px 0; }
.bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); width: 0%; transition: width 1s; }

/* Buttons */
.buttons-list { display: grid; gap: 10px; }
.btn-plat {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: white; padding: 14px; border-radius: 12px; text-align: left;
  font-size: 15px; cursor: pointer; transition: 0.2s;
}
.btn-plat:active { background: rgba(255,255,255,0.1); }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn {
  border: none; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; text-align: center; text-decoration: none; display: block;
}
.primary { background: var(--accent); color: white; }
.ghost { background: rgba(255,255,255,0.1); color: white; }
.link { background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }

.steps { padding-left: 20px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.steps li { margin-bottom: 8px; }

.iconbtn { background: var(--accent); border: none; color: white; padding: 4px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; }
