/* ================= ROOT ================= */
:root {
  --glass: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.18);
  --primary: #4da3ff;
}

/* ================= BASE ================= */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, system-ui;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a2a3a, #05080d);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= CARD ================= */
.glass {
  width: 100%;
  max-width: 560px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

h1 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 22px;
}

.desc {
  text-align: center;
  font-size: 14px;
  opacity: .7;
  margin-bottom: 20px;
}

/* ================= FORM ================= */
label {
  font-size: 13px;
  opacity: .75;
}

input, select {
  width: 100%;
  margin: 6px 0 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

/* ================= UDID INPUT ================= */
.udid-wrap {
  position: relative;
}

.udid-wrap input {
  padding-right: 96px;
}

.udid-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-70%);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4da3ff, #6cf);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(77,163,255,.45);
  transition: .2s;
}

.udid-btn:hover {
  transform: translateY(-50%) scale(1.05);
  opacity: .95;
}

/* ================= BUTTON ================= */
button {
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6cf);
  box-shadow: 0 6px 18px rgba(77,163,255,.45);
  transition: .2s;
}

button:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* ================= ACTION ================= */
.action-row {
  display: flex;
  gap: 10px;
}

/* ================= RESULT ================= */
.card {
  margin-top: 18px;
  padding: 16px;
  background: rgba(0,0,0,.35);
  border-radius: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.row span {
  opacity: .7;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.actions a,
.actions button {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
}

.actions a:hover,
.actions button:hover {
  background: rgba(255,255,255,.25);
}

.hidden {
  display: none;
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  font-size: 12px;
  opacity: .6;
  margin-top: 14px;
}

/* ================= LOADER ================= */
.loader {
  width: 80px;
  height: 50px;
  position: relative;
  margin: 20px auto;
}

.loader-text {
  position: absolute;
  top: 0;
  color: #C8B6FF;
  animation: text_713 3.5s ease both infinite;
  font-size: .8rem;
}

.load {
  background: #9A79FF;
  border-radius: 50px;
  display: block;
  height: 16px;
  width: 16px;
  bottom: 0;
  position: absolute;
  animation: loading_713 3.5s ease both infinite;
}

.load::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #D1C2FF;
  border-radius: inherit;
  animation: loading2_713 3.5s ease both infinite;
}

@keyframes text_713 {
  0% { letter-spacing: 1px }
  40% { letter-spacing: 2px; transform: translateX(26px) }
  80% { letter-spacing: 1px; transform: translateX(32px) }
  100% { transform: none }
}

@keyframes loading_713 {
  0% { width: 16px }
  40% { width: 100% }
  80% { width: 16px }
  100% { transform: none }
}

@keyframes loading2_713 {
  0% { width: 16px }
  40% { width: 80% }
  80% { width: 100% }
  100% { width: 16px }
}

/* FIX: đồng bộ chiều cao action select + button */
.action-row {
  display: flex;
  align-items: stretch;
}

.action-row select,
.action-row button {
  height: 48px;
  margin-top: 4px;
}

