/* ============================================================
   Valveron Industrial - style.css
   Navy blue theme with gradient depth, gold & electric blue accents.
   ============================================================ */

:root {
  /* ---- Navy blue theme palette ---- */
  --void: #050b16;             /* page base - near-black navy */
  --charcoal: #0e1b30;         /* panels, cards, navbar */
  --charcoal-light: #142642;   /* hover / lighter panel */
  --charcoal-border: #22375a;  /* borders, dividers */
  --gold: #c9a24b;
  --gold-bright: #e4c374;
  --volt: #3b82f6;             /* electric blue accent, brighter against navy */
  --volt-bright: #60a5fa;
  --steel: #93a0b8;            /* secondary text, cool blue-grey */
  --steel-light: #f1f5f9;      /* primary text, near-white with a blue tint */
  --radius: 4px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- HERO TEXT SIZES - edit these values to resize hero slide text ----
     Used by .hero-inner h1 / p.lead / .hero-badge span further down.     */
  --hero-title-size: 100px;         /* headline on desktop */
  --hero-title-size-mobile: 20px;  /* headline on phones (<640px) */
  --hero-subtitle-size: 18px;      /* description text under the headline */
  --hero-badge-size: 18px;         /* small badge label above the headline */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(160deg, #050b16 0%, #0a1626 45%, #0d2038 100%);
  background-attachment: fixed;
  color: var(--steel-light);
  font-family: var(--font-body);
  line-height: 1.5;
}

@media (max-width: 768px) {
  /* Fixed backgrounds can hurt scroll performance on some mobile browsers */
  body { background-attachment: scroll; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(201,162,75,0.35); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--charcoal-border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: all .3s ease;
}
.btn-gold { background: var(--gold); color: var(--void); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 8px 30px -8px rgba(201,162,75,.4); }
.btn-outline { background: var(--charcoal); border-color: var(--charcoal-border); color: var(--steel-light); }
.btn-outline:hover { border-color: var(--volt); color: var(--volt); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(5,11,22,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--charcoal-border);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.brand-logo-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--steel-light);
}
.brand-logo-mark .badge {
  width: 36px; height: 36px; border: 1px solid rgba(201,162,75,.5);
  background: var(--charcoal); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.nav-links { display: flex; gap: 36px; position: relative; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--steel); position: relative; transition: color .3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-mobile a.active { color: var(--gold); }
.nav-indicator {
  position: absolute; bottom: -8px; height: 2px; background: var(--gold);
  border-radius: 2px; transition: left .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 0;
}
.nav-toggle { display: none; background: none; border: none; color: var(--steel-light); font-size: 24px; }
.nav-mobile {
  display: none; flex-direction: column; background: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-border); padding: 8px 24px 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 0; border-bottom: 1px solid rgba(42,44,48,.6); font-size: 14px; }

@media (max-width: 960px) {
  .nav-links, .navbar .btn-gold.desktop-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero Carousel ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,11,22,.94) 0%, rgba(5,11,22,.82) 42%, rgba(5,11,22,.55) 75%, rgba(5,11,22,.35) 100%),
    linear-gradient(to top, rgba(5,11,22,.9), transparent 40%);
}
.hero-slide-content {
  position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: 80px;
}
.hero-inner { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(201,162,75,.4); background: rgba(201,162,75,.08); backdrop-filter: blur(4px);
  padding: 6px 16px; border-radius: var(--radius); margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-badge span { font-family: var(--font-mono); font-size: var(--hero-badge-size); letter-spacing: 2px; color: var(--gold); }
.hero-inner h1 { font-size: var(--hero-title-size); line-height: 1.1; color: var(--steel-light); }
.hero-inner h1 .accent { color: var(--gold); }
.hero-inner p.lead { margin-top: 24px; max-width: 560px; color: var(--steel); font-size: var(--hero-subtitle-size); line-height: 1.7; }
.hero-ctas { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 480px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 32px; }
.hero-stats .num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--steel-light); }
.hero-stats .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--steel); margin-top: 4px; }

.hero-arrows { position: absolute; z-index: 3; right: 32px; bottom: 100px; display: flex; gap: 8px; }
.hero-arrows button {
  width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2);
  background: rgba(5,11,22,.5); backdrop-filter: blur(4px); color: var(--steel-light); font-size: 16px;
}
.hero-arrows button:hover { border-color: var(--gold); color: var(--gold); }
.hero-dots { position: absolute; z-index: 3; left: 32px; bottom: 40px; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 6px; border-radius: 3px; border: none; background: rgba(255,255,255,.3); transition: all .3s; }
.hero-dots button.active { width: 32px; background: var(--gold); }

@media (max-width: 640px) {
  .hero-inner h1 { font-size: var(--hero-title-size-mobile); }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .hero-arrows { display: none; }
  .hero-dots { left: 24px; bottom: 24px; }
}

/* ---------- Page header (banner untuk halaman selain Home) ---------- */
.page-header {
  position: relative; padding: 150px 0 64px; overflow: hidden;
  background-image:
    linear-gradient(rgba(201,162,75,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,75,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--charcoal-border);
}
.page-header .breadcrumb { margin-top: 14px; font-size: 12px; color: var(--steel); }
.page-header .breadcrumb a { color: var(--gold); }
.page-header .breadcrumb a:hover { text-decoration: underline; }
.page-header h1 { margin-top: 10px; font-size: 32px; color: var(--steel-light); }
.page-header p.lead { margin-top: 12px; max-width: 620px; color: var(--steel); font-size: 15px; line-height: 1.7; }

/* ---------- Google Maps embed ---------- */
.map-wrap {
  margin-top: 28px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--charcoal-border); position: relative;
}
.map-wrap iframe {
  width: 100%; height: 360px; border: 0; display: block;
  filter: invert(90%) hue-rotate(200deg) brightness(0.95) contrast(0.9);
}
.map-wrap .map-badge {
  position: absolute; left: 14px; top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--gold); background: rgba(5,11,22,.85); border: 1px solid rgba(201,162,75,.4); padding: 6px 12px; border-radius: var(--radius);
}

.section-cta { margin-top: 28px; }

/* ---------- Section headings ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--gold); }
.eyebrow.volt { color: var(--volt); }
.section-title { margin-top: 8px; font-size: 28px; color: var(--steel-light); }
.section { padding: 80px 0; }
.section-alt { background: rgba(31,33,36,0.25); border-top: 1px solid var(--charcoal-border); border-bottom: 1px solid var(--charcoal-border); }

/* ---------- Carousel ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 40px; height: 40px; border: 1px solid var(--charcoal-border); background: var(--charcoal); color: var(--steel); border-radius: var(--radius); }
.carousel-nav button:hover { border-color: var(--gold); color: var(--gold); }
.carousel-viewport {
  position: relative; height: 480px; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--charcoal-border); background: var(--charcoal);
}
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,11,22,.95), rgba(5,11,22,.4) 55%, transparent);
}
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; }
.carousel-caption .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.carousel-caption h3 { margin-top: 10px; font-size: 24px; color: var(--steel-light); max-width: 600px; }
.carousel-caption p { margin-top: 10px; color: var(--steel); max-width: 520px; font-size: 14px; }
.carousel-dots { margin-top: 20px; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button { width: 8px; height: 6px; border-radius: 3px; border: none; background: var(--charcoal-border); transition: all .3s; }
.carousel-dots button.active { width: 28px; background: var(--gold); }

@media (max-width: 640px) {
  .carousel-viewport { height: 380px; }
  .carousel-caption { padding: 20px; }
}

/* ---------- Brand grid ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-tile {
  height: 96px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--charcoal-border); background: var(--charcoal); border-radius: var(--radius);
  transition: all .3s ease; text-align: center; padding: 8px;
}
.brand-tile:hover, .brand-tile.active { border-color: var(--gold); background: rgba(201,162,75,.08); }
.brand-tile.active { color: var(--gold); }
.brand-tile img { max-height: 40px; filter: grayscale(100%) brightness(1.4) opacity(.55); transition: filter .4s; }
.brand-tile:hover img { filter: grayscale(0%) brightness(1) opacity(1); }
.brand-tile span { font-family: var(--font-display); font-weight: 700; font-size: 15px; }

@media (max-width: 860px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Filters ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--charcoal-border); background: var(--charcoal); color: var(--steel);
  padding: 9px 16px; border-radius: var(--radius); font-size: 12px; font-weight: 600; letter-spacing: .3px;
  transition: all .3s ease;
}
.chip:hover { border-color: var(--volt); color: var(--volt); }
.chip.active { border-color: var(--volt); background: rgba(59,130,246,.1); color: var(--volt); }
.search-box { position: relative; width: 260px; max-width: 100%; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: var(--radius);
  border: 1px solid var(--charcoal-border); background: var(--charcoal); color: var(--steel-light); font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box::before {
  content: "\2315"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--steel);
}

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--charcoal); border: 1px solid var(--charcoal-border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s ease; width: 100%;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(201,162,75,.4); box-shadow: 0 8px 30px -8px rgba(201,162,75,.25); }
.product-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--charcoal-light); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .cat-tag {
  position: absolute; left: 10px; top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--volt); border: 1px solid rgba(59,130,246,.4); background: rgba(5,11,22,.7); padding: 4px 8px; border-radius: var(--radius);
}
.product-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .brand-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--gold); }
.product-card h3 { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--steel-light); }
.product-card p { margin-top: 8px; font-size: 12px; color: var(--steel); flex: 1; }

.empty-state {
  border: 1px dashed var(--charcoal-border); border-radius: var(--radius); padding: 80px 24px; text-align: center; color: var(--steel);
}

@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Modal / Product Detail ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(5,11,22,.9);
  backdrop-filter: blur(6px); overflow-y: auto; padding: 40px 16px;
}
.modal-overlay.open { display: block; }
.modal-box {
  max-width: 980px; margin: 0 auto; background: var(--charcoal); border: 1px solid var(--charcoal-border);
  border-radius: 6px; position: relative;
}
.modal-close {
  position: absolute; right: 16px; top: 16px; z-index: 5; width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--charcoal-border); background: rgba(5,11,22,.7); color: var(--steel); font-size: 18px;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 40px; }

/* Image viewer */
.viewer {
  position: relative; height: 420px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--charcoal-border); background: var(--charcoal-light); cursor: zoom-in;
}
.viewer.zoomed { cursor: grab; }
.viewer.zoomed:active { cursor: grabbing; }
.viewer img { width: 100%; height: 100%; object-fit: contain; user-select: none; transition: transform .15s ease-out; transform-origin: center; }
.viewer-badge {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  color: var(--steel); background: rgba(5,11,22,.7); border: 1px solid var(--charcoal-border); padding: 5px 10px; border-radius: var(--radius);
}
.viewer-controls { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.viewer-controls button {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--charcoal-border); background: var(--charcoal);
  color: var(--steel); padding: 8px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 600;
}
.viewer-controls button:hover { border-color: var(--gold); color: var(--gold); }
.thumb-list { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.thumb-list img {
  width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--charcoal-border);
  opacity: .6; transition: all .2s;
}
.thumb-list img.active, .thumb-list img:hover { opacity: 1; border-color: var(--gold); }

/* Detail panel */
.detail-panel h2 { margin-top: 8px; font-size: 22px; color: var(--steel-light); }
.detail-panel .desc { margin-top: 12px; font-size: 14px; color: var(--steel); line-height: 1.7; }
.spec-title { margin-top: 28px; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--volt); text-transform: uppercase; }
.spec-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.spec-item { border-bottom: 1px solid rgba(42,44,48,.6); padding-bottom: 8px; }
.spec-item .k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(156,163,175,.7); }
.spec-item .v { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--steel-light); }
.inquiry-btns { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.inquiry-btns .btn { flex: 1; min-width: 180px; }

@media (max-width: 800px) {
  .modal-grid { grid-template-columns: 1fr; padding: 24px; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.point-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.point-card { border: 1px solid var(--charcoal-border); background: var(--charcoal); border-radius: var(--radius); padding: 20px; }
.point-card .ic { color: var(--volt); font-size: 20px; }
.point-card h4 { margin-top: 12px; font-size: 14px; color: var(--steel-light); }
.point-card p { margin-top: 6px; font-size: 12px; color: var(--steel); }
.about-photo { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--charcoal-border); }
.about-photo img { width: 100%; height: 420px; object-fit: cover; }
.about-photo .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--void), transparent 40%); }
.about-photo .caption {
  position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(5,11,22,.8);
  border: 1px solid var(--charcoal-border); border-radius: var(--radius); padding: 14px;
}
.about-photo .caption .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--gold); }
.about-photo .caption p { margin-top: 4px; font-size: 12px; color: var(--steel); }

@media (max-width: 900px) { .about-grid, .point-grid { grid-template-columns: 1fr; } }

/* ---------- Contact / Footer ---------- */
.contact-box { border: 1px solid rgba(201,162,75,.3); background: var(--charcoal); border-radius: 6px; padding: 48px; }
.contact-methods { margin-top: 32px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contact-method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--charcoal-border); background: var(--charcoal-light); border-radius: var(--radius); padding: 16px; }
.contact-method .label { font-size: 11px; color: var(--steel); }
.contact-method .val { font-size: 14px; font-weight: 700; color: var(--steel-light); }
@media (max-width: 800px) { .contact-methods { grid-template-columns: 1fr; } .contact-box { padding: 28px; } }

footer { border-top: 1px solid var(--charcoal-border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--steel); }

/* ---------- Blueprint corner frame (signature motif) ---------- */
.corner-frame { position: relative; }
.corner-frame::before, .corner-frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-color: var(--gold); opacity: .6; transition: all .3s ease;
}
.corner-frame::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner-frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.corner-frame:hover::before, .corner-frame:hover::after { width: 22px; height: 22px; opacity: 1; border-color: var(--gold-bright); }

/* ---------- Admin ---------- */
.admin-body { background: var(--void); min-height: 100vh; }
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 250px; background: var(--charcoal);
  border-right: 1px solid var(--charcoal-border); display: flex; flex-direction: column;
}
.admin-sidebar .logo { height: 80px; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1px solid var(--charcoal-border); }
.admin-sidebar .logo .badge { width: 32px; height: 32px; border: 1px solid rgba(201,162,75,.5); background: var(--void); border-radius: var(--radius); display:flex; align-items:center; justify-content:center; color: var(--gold); }
.admin-sidebar .logo .txt strong { display: block; font-family: var(--font-display); font-size: 14px; }
.admin-sidebar .logo .txt span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); }
.admin-nav { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--radius);
  font-size: 14px; color: var(--steel); border: 1px solid transparent;
}
.admin-nav a:hover { background: var(--charcoal-light); color: var(--steel-light); }
.admin-nav a.active { background: rgba(201,162,75,.1); border-color: rgba(201,162,75,.3); color: var(--gold); }
.admin-logout { padding: 16px; border-top: 1px solid var(--charcoal-border); }
.admin-logout button, .admin-logout a {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 16px; border-radius: var(--radius);
  background: none; border: none; color: var(--steel); font-size: 14px;
}
.admin-logout button:hover, .admin-logout a:hover { color: #f87171; background: var(--charcoal-light); }
.admin-content { margin-left: 250px; padding: 32px; }

@media (max-width: 860px) {
  .admin-sidebar { width: 72px; }
  .admin-sidebar .logo .txt, .admin-nav a span.label { display: none; }
  .admin-content { margin-left: 72px; }
}

.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 20px; color: var(--steel-light); }
.admin-header p { margin-top: 4px; font-size: 13px; color: var(--steel); }

.card { background: var(--charcoal); border: 1px solid var(--charcoal-border); border-radius: var(--radius); padding: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card .num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--steel-light); margin-top: 14px; }
.stat-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--steel); margin-top: 4px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; color: var(--steel); font-weight: 600; }
.form-group input[type=text], .form-group input[type=password], .form-group input[type=number],
.form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--charcoal-border);
  background: var(--charcoal-light); color: var(--steel-light); font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-group.checkbox { flex-direction: row; align-items: center; gap: 10px; }
.form-group.checkbox input { width: 16px; height: 16px; accent-color: var(--gold); }
.file-drop {
  height: 150px; border: 1.5px dashed var(--charcoal-border); border-radius: var(--radius); background: var(--charcoal-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--steel); cursor: pointer; text-align:center; padding: 12px;
  position: relative; overflow: hidden;
}
.file-drop:hover { border-color: var(--gold); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-drop-multi-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-drop-multi-list img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--charcoal-border); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
table thead { background: var(--charcoal-light); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; color: var(--steel); }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--charcoal-border); }
table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--charcoal-border); background: var(--charcoal); color: var(--steel); }
.icon-btn:hover.edit { border-color: var(--gold); color: var(--gold); }
.icon-btn:hover.del { border-color: #f87171; color: #f87171; }

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 20px; }
.alert-success { border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.1); color: #34d399; }
.alert-error { border: 1px solid rgba(248,113,113,.3); background: rgba(248,113,113,.1); color: #f87171; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--charcoal); border: 1px solid var(--charcoal-border); border-radius: 6px; padding: 36px; }
.login-card .badge { width: 52px; height: 52px; margin: 0 auto; border: 1px solid rgba(201,162,75,.5); background: var(--void); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 22px; }
.login-card h1 { text-align: center; margin-top: 16px; font-size: 17px; }
.login-card .sub { text-align: center; margin-top: 4px; font-size: 12px; color: var(--steel); }
.login-card form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }

.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gallery-item { position: relative; border: 1px solid var(--charcoal-border); border-radius: var(--radius); overflow: hidden; background: var(--charcoal); }
.gallery-item .thumb { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.gallery-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .featured-tag { position: absolute; left: 6px; top: 6px; font-size: 10px; color: var(--gold); background: rgba(5,11,22,.8); border: 1px solid rgba(201,162,75,.4); padding: 3px 7px; border-radius: var(--radius); }
.gallery-item .info { padding: 8px; }
.gallery-item .info .name { font-size: 12px; font-weight: 600; color: var(--steel-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-item .info .meta { font-size: 10px; color: var(--steel); margin-top: 2px; }
.gallery-item .actions { display: flex; gap: 6px; padding: 0 8px 8px; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
