:root{
  --bg:#070709;
  --card:rgba(255,255,255,0.06);
  --card2:rgba(255,255,255,0.10);
  --text:#f4f4f4;
  --muted:rgba(255,255,255,0.75);
  --line:rgba(255,255,255,0.14);
  --gold:#d6b15e;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font, "Playfair Display"), serif;
}

a{color: var(--gold); text-decoration:none}
a:hover{text-decoration:underline}

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
}

.hero{
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  background-size: cover;
  background-position: center;
}

.inner{
  padding: 34px 22px;
  display:grid;
  gap: 18px;
}

.header{
  text-align:center;
  padding-top: 6px;
}

.kicker{
  letter-spacing: .16em;
  text-transform: uppercase;
  font-family: var(--font, "Playfair Display"), serif;
  font-size: 12px;
  color: var(--muted);
}

.title{
  margin:10px 0 0 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
}

.subtitle{
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px){
  .grid.two{ grid-template-columns: 1fr 1fr; }
}

label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.32);
  color: var(--text);
  outline:none;
  font-family: inherit;
  font-size: 16px;
}

textarea{min-height:120px; resize: vertical}

.btnrow{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border: 1px solid rgba(214,177,94,.55);
  background: rgba(214,177,94,0.10);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .08s ease, background .18s ease;
}
.btn:hover{ background: rgba(214,177,94,0.18); transform: translateY(-1px); }
.btn.primary{ background: rgba(214,177,94,0.24); }
.btn.danger{ border-color: rgba(255,120,120,.55); background: rgba(255,120,120,.10); }

.small{
  text-align:center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice{
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  background: rgba(214,177,94,0.08);
  border-radius: 12px;
}

.error{
  border-left: 3px solid rgba(255,120,120,.8);
  padding: 10px 12px;
  background: rgba(255,120,120,0.10);
  border-radius: 12px;
}

.hr{
  height:1px;
  background: var(--line);
  margin: 8px 0;
}

.poem{
  white-space: pre-wrap;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
}

.adminTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.table th, .table td{
  text-align:left;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-size: 14px;
}
.table th{ color: rgba(255,255,255,0.88); font-weight:700; }
.table tr:hover td{ background: rgba(255,255,255,0.04); }
.badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.28);
  font-size: 12px;
  letter-spacing:.04em;
}
