/* Finest Gold Gallery — clean minimal UI */
:root{
  --bg:#0b0d10;
  --panel:#12161c;
  --panel2:#0f1318;
  --text:#e9eef5;
  --muted:#a6b0bf;
  --line:#1f2630;
  --brand:#d4af37;
  --ok:#2dd4bf;
  --bad:#fb7185;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:radial-gradient(1200px 600px at 20% 0%, #131927, var(--bg));
  color:var(--text);
}

.topbar{
  display:flex;
  gap:18px;
  padding:18px 18px 10px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:260px;
}
.logo{
  width:44px;height:44px;
  border-radius:12px;
  background:linear-gradient(140deg, #2a2f3a, #0f1318);
  border:1px solid var(--line);
  display:grid;place-items:center;
  color:var(--brand);
  font-weight:800;
  letter-spacing:0.5px;
}
.brand-title{font-weight:800;font-size:18px}
.brand-sub{color:var(--muted);font-size:12px;margin-top:2px}

.spotbox{
  flex:1;
  min-width:320px;
  max-width:720px;
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}

.spotrow{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
}
.spotlabel{
  font-weight:700;
  color:var(--brand);
}
.spotval{font-weight:600}
.spotgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:12px 0;
}
@media (max-width:820px){
  .spotgrid{grid-template-columns:1fr}
}

.spotcard{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:rgba(255,255,255,0.02);
}
.spotcard-h{color:var(--muted);font-size:12px;font-weight:600}
.spotcard-v{font-size:20px;font-weight:800;margin-top:6px}
.spotcard-s{margin-top:6px;color:var(--muted);font-size:12px}

.spotfoot{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  border-top:1px solid var(--line);
  padding-top:10px;
  flex-wrap:wrap;
}

.wrap{
  padding:10px 18px 28px;
  max-width:1200px;
  margin:0 auto;
}

.panel{
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  margin-top:14px;
}

.panelhead{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

h2{margin:0 0 12px;font-size:16px}
.pill{
  border:1px solid var(--line);
  background:rgba(212,175,55,0.08);
  color:var(--brand);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:820px){ .grid2{grid-template-columns:1fr} }

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.field>span{color:var(--muted);font-size:12px;font-weight:600}
input,select,textarea{
  background:#0a0e13;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  color:var(--text);
  outline:none;
}
textarea{resize:vertical;min-height:44px}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{background:rgba(255,255,255,0.07)}
.btn.primary{
  background:linear-gradient(180deg, rgba(212,175,55,0.25), rgba(212,175,55,0.10));
  border-color:rgba(212,175,55,0.35);
  color:#fff;
}
.btn.ghost{padding:8px 10px}

.itemform{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1.4fr auto;
  gap:10px;
  align-items:end;
}
@media (max-width:1100px){
  .itemform{grid-template-columns:1fr 1fr; align-items:stretch}
}

.preview{
  margin-top:8px;
  border:1px dashed var(--line);
  border-radius:12px;
  min-height:92px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:rgba(255,255,255,0.02);
}
.preview.small{min-height:60px}
.preview img{width:100%;height:100%;object-fit:cover;display:block}

.uploadrow{
  display:flex;
  gap:8px;
  align-items:center;
}

.tablewrap{overflow:auto; margin-top:10px}
.tbl{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}
.tbl th,.tbl td{
  border-bottom:1px solid var(--line);
  padding:10px 8px;
  text-align:left;
  vertical-align:middle;
}
.tbl th{color:var(--muted);font-size:12px}
.tbl tfoot td{border-bottom:none;padding-top:12px}
.right{text-align:right}

.tagimg{
  width:44px;height:34px;border-radius:8px;object-fit:cover;border:1px solid var(--line);
  background:#0a0e13;
}

.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
  flex-wrap:wrap;
}

.help{margin-top:10px;font-size:12px}
.muted{color:var(--muted)}

.foot{
  padding:20px 18px 30px;
  text-align:center;
}
