:root{
  --bg0:#0b0f1a;
  --bg1:#0d1426;
  --glass: rgba(255,255,255,0.06);
  --glass2: rgba(0,0,0,.22);
  --border: rgba(255,255,255,0.10);
  --border2: rgba(255,255,255,0.08);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.85);
  --link:#cfe0ff;

  --radius-xl:18px;
  --radius-lg:16px;
  --radius-md:14px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);

  --grad-primary: linear-gradient(135deg,#00c2ff 0%, #2b69ff 100%);
  --grad-danger:  linear-gradient(135deg,#ff5c93 0%, #ff2b4f 100%);
}

html,body{height:100%}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: linear-gradient(180deg,var(--bg0) 0%, var(--bg1) 100%);
  color: var(--text);
  min-height:100vh;
}

a{color:var(--link); text-decoration:none; border-bottom:1px dashed rgba(207,224,255,.35)}
a:hover{opacity:1}

.app-center{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.app-wrap{width:100%; max-width:520px}

.app-card{
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand{display:flex; align-items:center; gap:12px; margin-bottom:18px;}
.brand img{height:46px; width:auto; filter: drop-shadow(0 8px 25px rgba(0,0,0,.45));}
.brand .title{font-weight:800; font-size:20px; letter-spacing:.3px;}
.sub{opacity:.85; font-size:13px; margin-bottom:18px;}

.pill{
  background: var(--glass2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.btn-grad{
  border:none;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
}
.btn-primary-grad{background: var(--grad-primary);}
.btn-danger-grad{background: var(--grad-danger);}

.form-control{
  background: rgba(0,0,0,.25) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--text) !important;
}
.form-control:focus{
  background: rgba(0,0,0,.30) !important;
  border-color: rgba(255,255,255,.25) !important;
  box-shadow:none !important;
  color:#fff !important;
}

.footer-row{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:18px; font-size:12px; opacity:.85;
}

.table-glass{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
}
.table-glass table{margin:0}
.table-glass .table > :not(caption) > * > *{
  background: transparent !important;
  color: var(--text);
  border-color: rgba(255,255,255,.08);
}

.badge-soft{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  font-size:12px;
  opacity:.9;
}

.toastx{
  position:fixed; left:50%; top:18px; transform:translateX(-50%);
  background:rgba(16,27,56,.95);
  border:1px solid rgba(255,255,255,.15);
  border-radius:16px;
  padding:12px 16px;
  display:flex; align-items:center; gap:10px;
  z-index:9999;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  min-width:240px; max-width:90vw;
}
.dot{
  width:18px; height:18px; border-radius:50%;
  border:2px solid rgba(255,255,255,.25);
  border-top-color:#30e39a;
  animation:spin .8s linear infinite;
  flex:0 0 auto;
}
@keyframes spin{to{transform:rotate(360deg);}}

@media (max-width:520px){
  .app-card{padding:22px}
}
