:root{
  --bg:#0b0f19;
  --panel:#10182b;
  --panel2:#0e1628;
  --text:#e8ecff;
  --muted:#9aa6c3;
  --accent:#7c5cff;
  --accent2:#2de2e6;
  --danger:#ff4d6d;
  --ok:#33d17a;
  --border:rgba(255,255,255,.08);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(45,226,230,.18), transparent 60%),
    radial-gradient(900px 700px at 50% 90%, rgba(255,77,109,.10), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 18px 60px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:44px; height:44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(124,92,255,.9), rgba(45,226,230,.85));
  box-shadow: 0 10px 30px rgba(124,92,255,.22);
}
.title{
  line-height:1.1;
}
.title h1{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing:.2px;
}
.title p{
  margin:2px 0 0;
  color:var(--muted);
  font-size: 13px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  transition: .15s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(45,226,230,.7));
  border: 0;
  color:#08101a;
  font-weight:800;
}
.btn.danger{
  background: rgba(255,77,109,.10);
  border:1px solid rgba(255,77,109,.30);
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card .inner{
  padding: 18px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.col-7{ grid-column: span 7; }
.col-5{ grid-column: span 5; }
@media (max-width: 860px){
  .col-7, .col-5{ grid-column: span 12; }
}

.drop{
  border: 1.5px dashed rgba(124,92,255,.55);
  background: rgba(124,92,255,.06);
  border-radius: 16px;
  padding: 22px;
  text-align:center;
  transition: .15s ease;
}
.drop.drag{
  background: rgba(45,226,230,.08);
  border-color: rgba(45,226,230,.85);
  transform: scale(1.01);
}
.drop h2{
  margin:0 0 6px;
  font-size: 16px;
}
.drop p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}
.file{
  display:none;
}

.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 14px;
  flex-wrap:wrap;
}
.hint{
  color: var(--muted);
  font-size: 12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: var(--muted);
}
.pill strong{ color: var(--text); }

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.tile{
  grid-column: span 3;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  position:relative;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: .15s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(124,92,255,.35);
}
.tile img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
@media (max-width: 980px){ .tile{ grid-column: span 4; } }
@media (max-width: 640px){ .tile{ grid-column: span 6; } }
@media (max-width: 420px){ .tile{ grid-column: span 12; } }

.badge{
  position:absolute;
  top:10px; left:10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing:.2px;
  backdrop-filter: blur(10px);
  border:1px solid var(--border);
}
.badge.user{
  background: rgba(51,209,122,.12);
  border-color: rgba(51,209,122,.35);
  color: #bff5d3;
}
.badge.scraped{
  background: rgba(45,226,230,.10);
  border-color: rgba(45,226,230,.35);
  color: #c6fbff;
}

.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
small code{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}