:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.58);
  --primary: #ffffff;
  --accent: #4f46e5;        /* indigo */
  --accent2: #22c55e;       /* green */
  --danger: #ef4444;        /* red */
  --shadow: 0 20px 45px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(79,70,229,0.35), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(34,197,94,0.20), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(255,255,255,0.08), transparent 55%),
    var(--bg);
}

a{ color: inherit; }
.container{
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-image: url("/android-chrome-192x192.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}


.badge{
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}

.hero{
  margin-top: 18px;
  padding: 26px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.h1{
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.4px;
}
.p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
}

.row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration:none;
  font-weight: 650;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
}
.btn:active{ transform: translateY(0px); }

.btn-primary{
  border-color: rgba(79,70,229,0.55);
  background: linear-gradient(135deg, rgba(79,70,229,0.92), rgba(79,70,229,0.65));
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(79,70,229,0.98), rgba(79,70,229,0.74));
}

.btn-danger{
  border-color: rgba(239,68,68,0.55);
  background: linear-gradient(135deg, rgba(239,68,68,0.92), rgba(239,68,68,0.65));
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.card{
  grid-column: span 4;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
  backdrop-filter: blur(10px);
  min-height: 118px;
}
.card h3{
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.card p{
  margin: 0;
  font-size: 13.5px;
  color: var(--muted2);
  line-height: 1.5;
}

@media (max-width: 920px){
  .card{ grid-column: span 6; }
}
@media (max-width: 560px){
  .card{ grid-column: span 12; }
}

.footer{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: 13px;
}
.footer a{
  color: var(--muted);
  text-decoration:none;
}
.footer a:hover{ text-decoration: underline; }

/* Page card style (used for auth/cancel/delete pages too) */
.page-card{
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.page-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
}

.alert{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.input{
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
}
.input:focus{
  border-color: rgba(79,70,229,0.65);
}
.label{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted2);
}

.copybox{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.copybox .value{
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  word-break: break-all;
}

/* Password eye toggle */
.pw-wrap {
  position: relative;
}

.pw-input {
  padding-right: 44px; /* space for the eye button */
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  width: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pw-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

.pw-toggle:focus {
  outline: none;
}
