:root {
  --bg-top: #0f172a;
  --bg-bottom: #1e293b;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --panel: #1e293b;
  --accent: #14b8a6;
  --highlight: #fbbf24;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* Base */
* { box-sizing: border-box }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  line-height: 1.6;
}
main, header, footer, .topbar { position: relative; z-index: 1; }
.muted { color: var(--muted) }
a { color: inherit; text-decoration: none; }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(15,23,42, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.topbar__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-weight: 800; color: var(--ink); }
.navlinks { display: flex; gap: 10px; align-items: center; }
.navlinks a { opacity: .85; padding: 6px 10px; border-radius: 8px; }
.navlinks a:hover { opacity: 1; background: rgba(255,255,255,.08) }

/* Hero */
.hero { position: relative; width: 100%; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero__bg { position: absolute; inset: 0; background: url("header.jpg") center/cover no-repeat; filter: brightness(.75); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.hero__content { position: relative; z-index: 2; max-width: 85%; }
.hero__content h1 { font-size: clamp(2rem, 6vw, 4rem); margin: 0 0 8px; background: linear-gradient(90deg, #e9f1ff, #bcd3ff); -webkit-background-clip: text; color: transparent; }
.subtitle { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.2rem); }

/* Sections */
.section { max-width: 1100px; margin: 80px auto; padding: 0 20px; }
.section h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--highlight); margin-bottom: 20px; }

/* Cards / panels */
.card, .panel { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.table-wrap { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 16px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; }
.price-table th { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }

/* References grid */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.ref-card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.ref-card:hover { transform: translateY(-6px); box-shadow: 0 16px 42px rgba(0,0,0,.4); }
.ref-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ref-body { padding: 14px 18px; }
.ref-body h3 { font-size: 1.1rem; margin: 0 0 8px; }
.ref-body blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }

/* Gear */
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gear-card { background: var(--panel); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 220px; }
.gear-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); }
.gear-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gear-emoji { font-size: 1.4rem; }
.gear-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.gear-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gear-list li { position: relative; padding-left: 18px; }
.gear-list li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Admin */
.btn, .btn-primary, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); cursor: pointer }
.btn { background: transparent; color: var(--ink) }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--highlight)); color: #061018; border: none; font-weight: 700 }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255,107,107,.6) }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px }
.field input[type="text"], .field input[type="date"], .field input[type="password"], .field textarea { background: #0f182a; border: 1px solid rgba(255,255,255,.12); color: var(--ink); padding: 10px 12px; border-radius: 10px }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px }
.actions { display: flex; gap: 10px; flex-wrap: wrap }

.admin-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.admin-item { padding: 10px; border: 1px dashed rgba(255,255,255,.16); border-radius: 12px }
.admin-item h4 { margin: 0 0 6px }

.admin-tabs { display: flex; gap: 8px; margin: 6px 0 12px }
.tab { background: #0f182a; color: var(--ink); border: 1px solid rgba(255,255,255,.12); padding: 8px 10px; border-radius: 10px; cursor: pointer }
.tab.active { border-color: var(--accent) }
.tab-panel { margin-top: 8px }

.editor-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: start; margin-bottom: 8px }
.editor-row input[type="text"], .editor-row textarea { width: 100% }
.editor-row .emoji { width: 120px }

@media (max-width: 960px){
  .grid-form{ grid-template-columns: 1fr }
  .admin-list{ grid-template-columns: repeat(2,1fr) }
  .editor-row{ grid-template-columns: 1fr }
}
@media (max-width: 560px){
  .ref-grid { grid-template-columns: 1fr }
  .admin-list{ grid-template-columns: 1fr }
}
