
:root{
  --green:#169B62;
  --white:#ffffff;
  --orange:#FF883E;
  --ink:#0b1220;
  --muted:#54657a;
  --card:#ffffff;
  --bg:#f4f6f8;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 16px;
}

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

.header{
  background: var(--green);
  padding: 16px 14px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.brand{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.brand-text{min-width:0}

.brand-title{
  margin:0;
  color:#fff;
  font-weight: 900;
  font-size: clamp(18px, 3.2vw, 28px);
  letter-spacing:.2px;
}

.brand .tag{
  margin:0;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

.brand-photo{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

@media (max-width: 420px){
  .brand{gap:10px}
  .brand-photo{width:58px; height:58px; border-radius: 16px;}
}

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

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 860px){
  .grid{grid-template-columns: 1.1fr .9fr;}
}

.card{
  background:var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
}

.h2{
  margin:0 0 8px;
  font-size: 18px;
}

.p{
  margin: 0 0 12px;
  color: var(--muted);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color:#fff;
  font-weight: 600;
  font-size: 12px;
}

.faq{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
details{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
}
summary{
  cursor:pointer;
  font-weight: 700;
  list-style:none;
}
summary::-webkit-details-marker{display:none}
details p{
  margin: 8px 0 0;
  color: var(--muted);
}

form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}

.row{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media(min-width:560px){
  .row{grid-template-columns: 1fr 1fr;}
}
label{
  font-size: 13px;
  font-weight: 700;
  display:block;
  margin-bottom: 6px;
}
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.14);
  font-size: 15px;
  background:#fff;
}
textarea{min-height: 120px; resize: vertical;}
input:focus, textarea:focus, select:focus{
  outline: 3px solid rgba(255,136,62,.25);
  border-color: rgba(255,136,62,.65);
}

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

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 6px;
}
button{
  border:none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor:pointer;
  background: var(--orange);
  color: #1c0f06;
  box-shadow: 0 10px 20px rgba(255,136,62,.25);
}
button:hover{filter: brightness(.98)}
a.link{
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
a.link:hover{text-decoration: underline;}

.note{
  font-size: 12px;
  color: var(--muted);
}

.alert{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,136,62,.10);
  color:#4d2a10;
  font-weight: 700;
}

.notice{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(22,155,98,.10);
  color:#0b3b26;
  font-weight: 700;
}

.confirm{
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,136,62,.12);
}

.btn-small{padding: 8px 10px; border-radius: 10px; font-weight: 800; font-size: 12px;}
.btn-secondary{background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid rgba(0,0,0,.14); box-shadow: none;}
.btn-secondary:hover{filter: brightness(.98)}
.btn-danger{background: rgba(176,0,32,.95); color:#fff; box-shadow: 0 10px 20px rgba(176,0,32,.18);}
.btn-danger:hover{filter: brightness(.98)}

.admin-form{margin-top:10px}
.admin-block{margin-top:12px}

.small{
  font-size: 12px;
  color: var(--muted);
}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius: 12px;
}
.table th, .table td{
  text-align:left;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  vertical-align: top;
}
.table th{
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
}
.thumb{
  width:80px;
  height:auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
}
.admin-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
