:root {
  --bg: #0c0f14;
  --panel: #151a22;
  --panel-2: #1d2430;
  --text: #f7f8fb;
  --muted: #aeb6c3;
  --line: rgba(255,255,255,.11);
  --orange: #ff6b19;
  --orange-2: #ff8f3d;
  --white: #fff;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button {
  font: inherit;
  border: 1px solid var(--line);
  background: #0f141c;
  color: var(--text);
  border-radius: 8px;
  padding: .78rem .9rem;
}
button, .btn {
  cursor: pointer;
  border: 0;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
}
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(12,15,20,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo, .admin-brand {
  font-weight: 950;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.logo img { max-height: 64px; width: auto; }
.logo::first-letter, .admin-brand::first-letter { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 1rem; font-weight: 700; color: var(--muted); }
.main-nav a:hover { color: var(--white); }
.nav-cta { color: #111 !important; background: var(--orange); padding: .6rem .8rem; border-radius: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; color: var(--text); background: var(--panel); }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  background: linear-gradient(180deg, rgba(12,15,20,.18), var(--bg)), url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?auto=format&fit=crop&w=1800&q=80') center/cover;
  padding: clamp(4rem, 8vw, 8rem) 0 3rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end; }
.hero-grid-single { grid-template-columns: 1fr; }
.kicker { color: var(--orange-2); text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); max-width: 900px; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.25rem; }
.lead { color: #d8dde6; font-size: 1.12rem; max-width: 680px; }
.search-box, .panel {
  background: rgba(21,26,34,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.search-box { padding: 1rem; }
.search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.search-grid button { grid-column: span 3; }
.section { padding: 3.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.grid { display: grid; gap: 1.1rem; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.card-body { padding: 1rem; }
.card img { width: 100%; height: 210px; object-fit: cover; background: #111; }
.card .meta, .meta { color: var(--muted); font-size: .9rem; }
.badge { display: inline-flex; padding: .22rem .5rem; border-radius: 6px; background: rgba(255,107,25,.15); color: var(--orange-2); font-weight: 800; font-size: .78rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 2rem; align-items: start; padding-top: 2rem; }
.article-content { font-size: 1.08rem; color: #e8ebf0; }
.article-content h2 { font-size: 1.8rem; margin-top: 2rem; }
.article-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; margin: 1rem 0; }
.listing-gallery { margin: 1rem 0; }
.listing-gallery-main { width: 100%; max-height: 540px; object-fit: cover; border-radius: 8px; background: #111; }
.listing-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
.listing-thumbs button { padding: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; overflow: hidden; height: 82px; }
.listing-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 8px; }
.specs th, .specs td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; }
.specs th { color: var(--muted); width: 42%; }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.filters button { grid-column: auto; }
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed rgba(255,255,255,.22);
  color: var(--muted);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  margin: 1rem 0;
  overflow: hidden;
}
.ad-slot img { width: 100%; height: 100%; object-fit: cover; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #080a0e;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1rem; align-items: center; }
.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #03170a;
  font-weight: 950;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-grid .full { grid-column: 1 / -1; }
.admin-body { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #0d1118; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 1rem; background: #080b10; border-right: 1px solid var(--line); }
.admin-sidebar nav { display: grid; gap: .35rem; margin-top: 1rem; }
.admin-sidebar a { padding: .65rem .75rem; border-radius: 8px; color: var(--muted); font-weight: 750; }
.admin-sidebar a:hover { background: var(--panel); color: var(--white); }
.admin-main { padding: 2rem; min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); background: #111720; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; color: var(--muted); }
.share-btn { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: .45rem .65rem; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: .9rem; }
.share-btn:hover { border-color: rgba(255,107,25,.6); color: var(--orange-2); }
.flash { padding: .85rem 1rem; border-radius: 8px; background: rgba(255,107,25,.16); color: var(--orange-2); margin-bottom: 1rem; border: 1px solid rgba(255,107,25,.35); }
.message { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .75rem; background: #101620; }
.message.is-me { background: rgba(255,107,25,.12); border-color: rgba(255,107,25,.28); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { padding: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.stat strong { display: block; font-size: 2rem; }
@media (max-width: 920px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-grid button { grid-column: span 2; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .main-nav {
    display: none;
    position: absolute;
    inset: 70px 1rem auto 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .hero { min-height: 640px; }
  .grid.cols-3, .grid.cols-4, .filters, .search-grid, .form-grid, .stats { grid-template-columns: 1fr; }
  .listing-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-grid button { grid-column: auto; }
  .section-head, .site-footer { flex-direction: column; align-items: flex-start; }
  .admin-main { padding: 1rem; }
}

/* Editorial redesign for public site */
body:not(.admin-body) {
  background: #f4f4f2;
  color: #171717;
}
body:not(.admin-body) .site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 8px 26px rgba(0,0,0,.06);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
body:not(.admin-body) .main-nav {
  color: #333;
  gap: 1.25rem;
  text-transform: uppercase;
  font-size: .86rem;
  letter-spacing: 0;
}
body:not(.admin-body) .main-nav a:hover {
  color: #d70000;
}
body:not(.admin-body) .logo {
  color: #111;
}
body:not(.admin-body) .logo img {
  max-height: 112px;
  max-width: 260px;
  object-fit: contain;
}
body:not(.admin-body) .nav-toggle {
  background: #111;
  color: #fff;
}
.magazine-top {
  background: #111;
  color: #fff;
  border-bottom: 4px solid #d70000;
}
.magazine-top-inner {
  padding: clamp(2.2rem, 5vw, 4.6rem) 0;
}
.magazine-top h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  text-transform: uppercase;
}
.magazine-top p {
  max-width: 760px;
  color: #d7d7d7;
  font-size: 1.12rem;
}
.headline-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
  border-bottom: 1px solid #ddd;
  color: #111;
}
.headline-strip strong {
  background: #d70000;
  color: #fff;
  padding: .3rem .55rem;
  text-transform: uppercase;
  font-size: .8rem;
}
.headline-strip div {
  display: flex;
  gap: 1.2rem;
  overflow: hidden;
  white-space: nowrap;
}
.headline-strip a {
  color: #222;
  font-weight: 750;
}
.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  gap: 1.5rem;
}
.featured-story {
  background: #fff;
  border: 1px solid #ddd;
}
.featured-story img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
}
.featured-story-body {
  padding: 1.35rem;
}
.featured-story h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  text-transform: uppercase;
}
.featured-story p {
  color: #444;
  max-width: 780px;
}
.read-more {
  display: inline-flex;
  margin-top: .6rem;
  color: #d70000;
  font-weight: 950;
  text-transform: uppercase;
}
.side-headlines {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
}
.side-headlines h3 {
  border-bottom: 3px solid #d70000;
  padding-bottom: .65rem;
  text-transform: uppercase;
}
.side-headline {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #e7e7e7;
}
.side-headline span {
  display: block;
  color: #d70000;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.side-headline strong {
  display: block;
  color: #111;
  line-height: 1.2;
}
body:not(.admin-body) .section {
  padding: 2.6rem 0;
}
body:not(.admin-body) .section-head {
  border-bottom: 3px solid #171717;
  padding-bottom: .75rem;
}
body:not(.admin-body) .section-head h2 {
  color: #111;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}
body:not(.admin-body) .card,
body:not(.admin-body) .panel {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: none;
}
body:not(.admin-body) .card {
  transition: transform .18s ease, box-shadow .18s ease;
}
body:not(.admin-body) .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,.08);
}
body:not(.admin-body) .card img {
  height: 235px;
}
body:not(.admin-body) .card-body h3 {
  color: #111;
  font-size: 1.35rem;
  line-height: 1.12;
}
body:not(.admin-body) .card-body p {
  color: #4d4d4d;
}
body:not(.admin-body) .badge {
  background: #d70000;
  color: #fff;
  border-radius: 0;
}
body:not(.admin-body) .meta,
body:not(.admin-body) .card .meta {
  color: #777;
}
body:not(.admin-body) .btn,
body:not(.admin-body) button {
  background: #d70000;
  color: #fff;
  border-radius: 4px;
}
body:not(.admin-body) .btn.secondary,
body:not(.admin-body) .share-btn {
  background: #111;
  color: #fff;
  border-color: #111;
}
body:not(.admin-body) input,
body:not(.admin-body) select,
body:not(.admin-body) textarea {
  background: #fff;
  color: #111;
  border-color: #ccc;
}
body:not(.admin-body) .article-layout {
  color: #111;
}
body:not(.admin-body) .article-content {
  color: #222;
}
body:not(.admin-body) .ad-slot {
  background: #fff;
  color: #777;
  border-color: #ddd;
}
body:not(.admin-body) .site-footer {
  background: #111;
  color: #ddd;
  border-top: 4px solid #d70000;
}
body:not(.admin-body) .footer-links {
  flex-wrap: wrap;
}
@media (max-width: 920px) {
  .magazine-layout {
    grid-template-columns: 1fr;
  }
  .headline-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  body:not(.admin-body) .main-nav {
    background: #fff;
    border-color: #ddd;
  }
  body:not(.admin-body) .logo img {
    max-height: 76px;
    max-width: 190px;
  }
  .headline-strip div {
    display: grid;
    white-space: normal;
  }
}
