@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #c8912a; --gold-lt: #e8b84d;
  --dark: #0f0c06; --red: #c0392b; --green: #276749;
  --text: #1e1508; --muted: #7a6a55; --border: #e2e8f0;
}
body { font-family:'Outfit',sans-serif; background:#f0f2f5; color:var(--text); }
h1,h2,h3,h4 { font-family:'Cormorant Garamond',serif; }
input,textarea,select {
  font-family:'Outfit',sans-serif; border:1.5px solid var(--border);
  border-radius:8px; padding:9px 13px; font-size:13px; width:100%;
  background:#fff; color:var(--text); outline:none; transition:0.2s;
}
input:focus,textarea:focus,select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(200,145,42,0.1); }
label { font-size:11px; font-weight:700; color:var(--muted); display:block; margin-bottom:5px; letter-spacing:0.5px; text-transform:uppercase; }
.ig { display:flex; flex-direction:column; margin-bottom:13px; }

/* LOGIN PAGE */
.login-page {
  min-height:100vh;
  background:linear-gradient(135deg,#0f0c06 0%,#2a1f0c 50%,#0f0c06 100%);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.login-box {
  background:#fff; border-radius:20px; padding:44px;
  width:100%; max-width:420px;
  box-shadow:0 30px 80px rgba(0,0,0,0.5);
}
.login-icon {
  width:62px; height:62px;
  background:linear-gradient(135deg,var(--gold),var(--gold-lt));
  border-radius:14px; display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px; font-size:26px;
  box-shadow:0 8px 24px rgba(200,145,42,0.35);
}
.login-logo {
  width:78px; height:78px; display:block; margin:0 auto 18px;
  object-fit:contain; background:#fff;
  border-radius:17px; box-shadow:0 12px 34px rgba(15,12,6,0.22);
}
.login-icon { display:none; }
.login-title { text-align:center; font-size:28px; color:var(--dark); margin-bottom:6px; }
.login-sub { text-align:center; color:var(--muted); font-size:13px; margin-bottom:30px; }
.pwd-wrap { position:relative; }
.pwd-toggle {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; font-size:16px;
}
.login-err { color:var(--red); font-size:13px; margin-bottom:12px; }
.login-note { text-align:center; font-size:10px; color:#ccc; margin-top:18px; }

/* ADMIN LAYOUT */
.admin-layout { min-height:100vh; display:flex; flex-direction:column; }
.admin-nav {
  background:var(--dark); padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:58px; position:sticky; top:0; z-index:100;
  border-bottom:1px solid rgba(200,145,42,0.15);
}
.admin-nav-title { font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:700; color:#fff; }
.admin-nav-logo {
  width:34px; height:34px; border-radius:8px; margin-right:10px;
  object-fit:contain; background:#fff;
  box-shadow:0 5px 16px rgba(0,0,0,0.24);
}
.admin-nav-badge {
  background:rgba(200,145,42,0.2); color:var(--gold);
  font-size:10px; padding:3px 10px; border-radius:20px;
  font-family:'Outfit',sans-serif; font-weight:600; margin-left:10px;
}
.admin-nav-right { display:flex; align-items:center; gap:12px; }
.secure-badge { color:rgba(255,255,255,0.3); font-size:11px; }
.btn-logout {
  background:rgba(229,62,62,0.12); color:#fc8181;
  border:1px solid rgba(229,62,62,0.25); padding:6px 16px;
  border-radius:7px; cursor:pointer; font-size:12px; font-family:'Outfit',sans-serif;
  transition:all 0.2s;
}
.btn-logout:hover { background:rgba(229,62,62,0.25); }

.admin-tabs {
  background:#fff; padding:10px 24px;
  border-bottom:1px solid var(--border); display:flex; gap:6px;
}
.atab {
  padding:8px 20px; border-radius:8px; border:none;
  background:transparent; cursor:pointer; font-weight:600; font-size:13px;
  color:var(--muted); transition:all 0.2s; font-family:'Outfit',sans-serif;
}
.atab:hover { background:#f0f2f5; }
.atab.active { background:var(--gold); color:#fff; }

.admin-body { max-width:960px; margin:0 auto; padding:28px 24px; width:100%; }

/* ADMIN CARDS */
.adm-section-title { font-family:'Cormorant Garamond',serif; font-size:24px; margin-bottom:4px; }
.adm-section-sub { color:var(--muted); font-size:12px; font-family:'Outfit',sans-serif; margin-bottom:18px; }
.adm-card { background:#fff; border-radius:14px; padding:22px; border:1px solid var(--border); margin-bottom:20px; }
.adm-card-title { font-family:'Cormorant Garamond',serif; font-size:20px; margin-bottom:16px; }
.adm-row { background:#fff; border-radius:12px; border:1px solid var(--border); margin-bottom:10px; overflow:hidden; }
.adm-row-header { padding:14px 18px; display:flex; gap:14px; align-items:flex-start; }
.adm-thumb {
  width:72px; height:72px; border-radius:10px; overflow:hidden; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:26px;
}
.adm-thumb.wooden { background:linear-gradient(135deg,#e8dcc8,#d4b890); }
.adm-thumb.steel { background:linear-gradient(135deg,#d0dce8,#b0c4d8); }
.adm-thumb img { width:100%; height:100%; object-fit:cover; }
.adm-row-info { flex:1; min-width:0; }
.adm-row-name { font-weight:600; font-size:15px; }
.adm-row-meta { font-size:12px; color:var(--muted); display:flex; gap:14px; flex-wrap:wrap; margin-top:4px; }
.adm-row-meta .off { color:var(--green); font-weight:600; }
.adm-row-actions { display:flex; gap:7px; flex-shrink:0; }
.adm-edit-area { padding:0 18px 18px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.form-grid .full { grid-column:span 2; }
.img-preview { border-radius:8px; overflow:hidden; height:96px; background:#f0e8d8; margin-bottom:4px; }
.img-preview img { width:100%; height:100%; object-fit:cover; }
.add-form-wrap { background:#fff; border-radius:14px; padding:20px; border:2px solid var(--gold); margin-bottom:18px; }
.hero-slide-row { display:flex; }
.hero-slide-thumb { width:130px; height:78px; flex-shrink:0; overflow:hidden; background:#f0e8d8; }
.hero-slide-thumb img { width:100%; height:100%; object-fit:cover; }
.hero-slide-info { flex:1; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; }

/* BUTTONS */
.btn-primary {
  background:var(--gold); color:#fff; border:none;
  padding:10px 22px; border-radius:8px; font-weight:600; cursor:pointer;
  transition:all 0.2s; font-family:'Outfit',sans-serif; font-size:13px;
}
.btn-primary:hover { background:var(--gold-lt); }
.btn-secondary {
  background:transparent; color:var(--gold); border:2px solid var(--gold);
  padding:9px 20px; border-radius:8px; font-weight:600; cursor:pointer;
  transition:all 0.2s; font-family:'Outfit',sans-serif; font-size:13px;
}
.btn-secondary:hover { background:var(--gold); color:#fff; }
.btn-edit {
  background:#e2ecf8; color:#3a5f9e; border:1px solid #9ab8e4;
  padding:6px 14px; border-radius:6px; cursor:pointer;
  font-size:12px; font-family:'Outfit',sans-serif; transition:all 0.2s;
}
.btn-edit:hover { background:#3a5f9e; color:#fff; }
.btn-delete {
  background:#fee2e2; color:var(--red); border:1px solid #fca5a5;
  padding:6px 14px; border-radius:6px; cursor:pointer;
  font-size:12px; font-family:'Outfit',sans-serif; transition:all 0.2s;
}
.btn-delete:hover { background:var(--red); color:#fff; }
.btn-full { width:100%; padding:13px 0; font-size:15px; }
.btn-back {
  width:100%; margin-top:10px; background:transparent; border:none;
  color:var(--muted); cursor:pointer; font-size:13px;
  font-family:'Outfit',sans-serif; padding:8px 0;
}
.btn-save-row { display:flex; gap:8px; margin-top:4px; }

/* BADGE */
.badge { padding:2px 9px; border-radius:20px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; }
.badge.wooden { background:#f5ead6; color:#7a5230; border:1px solid #d4b48c; }
.badge.steel { background:#e2ecf8; color:#3a5f9e; border:1px solid #9ab8e4; }

/* TOAST */
.toast {
  position:fixed; top:16px; right:16px; z-index:9999;
  background:#166534; color:#fff; padding:12px 20px;
  border-radius:10px; font-size:13px; font-family:'Outfit',sans-serif;
  box-shadow:0 4px 20px rgba(0,0,0,0.25);
  animation:fadeIn 0.3s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* GUIDE BOX */
.guide-box { background:#fffbeb; border-radius:12px; padding:20px; border:1px solid #fde68a; }
.guide-box h4 { color:#92400e; margin-bottom:10px; font-family:'Outfit',sans-serif; font-size:14px; }
.guide-box ol { font-size:12px; color:#78350f; line-height:2.2; padding-left:16px; font-family:'Outfit',sans-serif; }
.guide-box code { background:rgba(0,0,0,0.07); padding:1px 6px; border-radius:4px; }

/* EMPTY STATE */
.empty-state { text-align:center; padding:56px 0; color:var(--muted); font-family:'Outfit',sans-serif; }
.empty-state .eicon { font-size:46px; margin-bottom:12px; }

/* DISC BADGE INSIDE INPUT */
.disc-badge {
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:var(--gold); color:#fff; font-size:10px; font-weight:700;
  padding:2px 8px; border-radius:12px; pointer-events:none;
}
.input-wrap { position:relative; }

/* MSG */
.msg { font-size:12px; margin-bottom:12px; padding:8px 12px; border-radius:6px; }
.msg.err { background:#fee2e2; color:var(--red); }
.msg.ok { background:#dcfce7; color:var(--green); }
