:root{
  --bg:#0b0c14;
  --card:#121222;
  --line:rgba(255,255,255,.12);
  --text:#fff;
  --muted:rgba(255,255,255,.70);
  --ok:#8cffc1;
  --err:#ff8c8c;
  --shadow: 0 18px 60px rgba(0,0,0,.60);
  --r: 22px;

  --fs-h: 30px;
  --fs-label: 22px;
  --fs-in: 28px;
  --fs-btn: 24px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; height:100%; }
body{ background:none; color:var(--text); font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }

body.app{
  min-height:100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 40%),
    url("/assets/img/bg-texture.png");
  background-repeat: repeat;
  background-size: 420px 420px;
  background-position: center top;
}
body.app::before{
  content:"";
  position:fixed;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.78));
  pointer-events:none;
  z-index:0;
}
.brand,.wrap{ position:relative; z-index:1; }

.brand{ text-align:center; padding:14px 14px 6px; }
.brandLogo{
  width:min(92vw,360px);
  height:auto;
  display:block;
  margin:0 auto 6px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.75));
}
.brandSub{ margin:0; color:var(--muted); font-size:18px; }

.wrap{ max-width: 560px; margin:0 auto; padding: 14px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--card);
  border:1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

h2{ margin: 6px 0 12px; font-size: var(--fs-h); font-weight:900; }

.form label{ display:block; margin-top: 14px; }
.form span{ display:block; font-size: var(--fs-label); font-weight:800; margin-bottom:8px; }
.hint{ display:block; margin-top:8px; font-size:16px; color:rgba(255,255,255,.6); }

.input, input{
  width:100%;
  padding: 18px;
  font-size: var(--fs-in);
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(10,10,18,.95);
  color: rgba(255,255,255,.98);
}
.input::placeholder, input::placeholder{ color: rgba(255,255,255,.35); }
.input:focus, input:focus{
  outline:none;
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 4px rgba(255,255,255,.10);
}

.btnPrimary, .btnGhost, .btnBell{
  width:100%;
  padding: 18px;
  border-radius: 18px;
  font-size: var(--fs-btn);
  font-weight: 900;
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
}
.btnPrimary{
  color:#0b0b0f;
  background: linear-gradient(180deg,#fff 0%, #d7d7d7 45%, #8b8b8b 100%);
  box-shadow: 0 10px 30px rgba(255,255,255,.10), 0 20px 60px rgba(0,0,0,.65);
}
.btnPrimary:active{ transform:translateY(1px); }

.btnGhost{
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 800;
}
.btnGhost:active{ transform:translateY(1px); }

.btnBell{
  background: linear-gradient(180deg,#2b2b40,#161625);
  color:#fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.05);
}
.btnBell:active{ transform:translateY(1px); }

.row{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.row .btnGhost{ width:auto; padding: 12px 16px; font-size:18px; }

.msg{ margin-top:14px; min-height:26px; font-size:18px; }
.msg.ok{ color:var(--ok); }
.msg.err{ color:var(--err); }

.queue{ margin: 10px 0 0; padding-left: 18px; }
.queue li{
  padding: 12px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
  font-size: 20px;
}
.queue li:last-child{ border-bottom:0; }
.meta{ margin-top:6px; font-size:16px; color:var(--muted); }
.sep{ border:0; border-top:1px solid rgba(255,255,255,.08); margin: 12px 0 0; }
.empty{ margin-top:12px; font-size:18px; color:var(--muted); }

.itemActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.itemActions .btnGhost{
  width:auto;
  min-width:92px;
  padding: 14px 16px;
  font-size: 20px;
  border-radius: 16px;
}

.tiles{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top: 14px;
}
.tile{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  box-shadow: 0 14px 50px rgba(0,0,0,.45);
}
.tile img{ width:100%; display:block; }
.tileBtn{
  width:100%;
  border-radius:0;
  padding:12px 10px;
  font-size:18px;
  font-weight:900;
  background: rgba(255,255,255,.08);
  color:#fff;
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
}

.foot{ text-align:center; margin: 16px 0 24px; color: var(--muted); font-size:14px; }
a{ color:#bdeaff; text-decoration:none; }
