:root {
  --green: #2e8b57;
  --orange: #ff8c00;
  --ink: #17231c;
  --muted: #66736d;
  --line: #dfe8e2;
  --soft: #f5faf7;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; background: #fff; }
body { font-family: var(--global-font, Arial, Helvetica, sans-serif); }
a { color: var(--green); text-decoration: none; }
.navbar { min-height: var(--header-height, 70px); padding: var(--header-padding-y, 0) var(--header-padding-x, 0); margin-bottom: var(--header-margin-bottom, 0); }
.navbar-brand { display: flex; gap: var(--header-brand-gap, 10px); align-items: center; font-weight: 800; color: var(--green); }
.navbar-brand img { width: var(--header-logo-width, 42px); height: var(--header-logo-width, 42px); object-fit: contain; }
.navbar-brand img.brand-logo-large { width: 74px; height: 74px; }
.navbar-nav { gap: var(--header-menu-gap, 0); }
.nav-link { font-weight: 700; font-size: 0.9rem; }
.btn-brand { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-brand:hover { background: #246f46; color: #fff; }
.btn-outline-brand { border: 1px solid var(--green); color: var(--green); background: #fff; }
.btn-orange { background: var(--orange); color: #141414; border: 1px solid var(--orange); font-weight: 800; }
.hero { min-height: 72vh; display: flex; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(18,70,42,.92), rgba(18,70,42,.68)), url('../images/hero-pattern.svg'); background-size: cover; }
.hero.builder-section { min-height: 72vh; display: flex; align-items: center; }
.hero.builder-bg-color { background-image: none; }
.hero h1 { max-width: 980px; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .98; font-weight: 900; letter-spacing: 0; }
.hero p { font-size: 1.35rem; font-weight: 700; color: #ffe0ad; }
.hero.builder-section p { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.site-section { padding: var(--global-section-spacing, 70px) 0; }
.site-section:nth-child(even) { background: var(--soft); }
.narrow { max-width: 840px; }
.site-section h1, .site-section h2 { color: var(--green); font-weight: 900; margin-bottom: 18px; }
.site-section p { color: var(--muted); font-size: 1.05rem; }
.card-grid, .price-grid, .sponsor-grid, .gallery-grid, .stat-grid, .media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature-card, .price-card, .sponsor-card, .media-grid article, .stat-grid article, .admin-card { border: 1px solid var(--line); border-radius: var(--global-radius, 8px); padding: 22px; background: #fff; }
.blank-page { min-height: 42vh; display: grid; align-items: center; }
.feature-card img, .sponsor-card img, .gallery-grid img, .gallery-grid video, .wide-image { width: 100%; border-radius: 8px; object-fit: cover; max-height: 360px; }
.feature-card video, .content-card video, .store-card video { width: 100%; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; background: #101b15; }
.gallery-grid figcaption { display: grid; gap: 4px; margin-top: 8px; }
.gallery-grid figcaption span { color: var(--muted); font-size: .95rem; }
.feature-card h3, .price-card h3, .sponsor-card h3 { font-size: 1.15rem; color: var(--green); font-weight: 800; }
.price-card strong { display: block; color: var(--orange); font-size: 1.4rem; }
.cta-band { padding: 70px 0; background: var(--green); color: #fff; }
.cta-band p { color: #e8fff1; }
.event-list { display: grid; gap: 14px; }
.event-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.event-row strong { color: var(--orange); display: block; }
.event-card { grid-template-columns: minmax(180px, 280px) 130px 1fr; align-items: start; background: #fff; }
.event-card .event-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #101b15; }
.mini-list { margin: 12px 0; padding-left: 18px; color: var(--muted); }
.event-speakers { margin-top: 10px; }
.form-box, .form-grid { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.form-grid textarea, .form-box textarea { min-height: 120px; }
.auth-wrap { min-height: 72vh; display: grid; place-items: center; background: var(--soft); padding: 40px 16px; }
.auth-panel { width: min(980px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.auth-panel form { display: grid; gap: 12px; }
.site-footer { padding: 46px 0; background: #13251b; color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.site-footer a { display: block; color: #eaf7ee; margin-bottom: 8px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.footer-logo { max-width: 150px; max-height: 95px; object-fit: contain; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.product-thumbs img, .product-thumbs video { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); background: #101b15; }
.store-hero { padding: 64px 0; background: #143720; color: #fff; }
.store-hero h1 { font-weight: 900; font-size: clamp(2rem, 5vw, 4rem); }
.store-hero p { max-width: 680px; color: #e8fff1; }
.store-filters { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 260px) auto; gap: 12px; margin-bottom: 24px; }
.store-promo { margin-bottom: 34px; }
.store-card { display: grid; align-content: start; gap: 9px; }
.store-card > img { aspect-ratio: 4 / 3; max-height: none; }
.store-card small { color: var(--muted); font-weight: 700; }
.store-card strong { color: var(--orange); font-size: 1.25rem; }
.product-badge { width: fit-content; border-radius: 999px; background: #fff3df; color: #8a4d00; border: 1px solid #ffd9a1; padding: 4px 10px; font-weight: 800; font-size: .8rem; }
.product-detail { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(280px, 1.1fr); gap: 28px; padding: 28px; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--global-radius, 8px); background: #fff; }
.product-detail-featured { margin-top: 0; margin-bottom: 24px; box-shadow: 0 18px 45px rgba(23,35,28,.08); }
.owner-dashboard-callout { border-left: 5px solid var(--orange); background: #fffaf2; }
.image-content { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr); gap: 24px; align-items: center; }
.image-content.image-right > div:first-child { order: 2; }
.builder-image-rounded { border-radius: var(--global-radius, 8px); }
.builder-image-circle { border-radius: 999px; aspect-ratio: 1 / 1; }
.builder-image-frame { border: 6px solid #fff; box-shadow: 0 12px 35px rgba(23,35,28,.18); }
.builder-divider { padding: 20px 0; }
.admin-body { background: #f4f7f5; min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: #14261b; color: #fff; padding: 18px; overflow-y: auto; }
.admin-sidebar h1 { font-size: 1.2rem; margin-bottom: 18px; }
.admin-sidebar a { display: block; color: #e8fff1; padding: 9px 10px; border-radius: 8px; margin-bottom: 4px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--green); color: #fff; }
.admin-main { margin-left: 250px; padding: 24px; }
.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.admin-card { margin-bottom: 18px; }
.admin-card form, .admin-card.admin-form { display: grid; gap: 12px; }
.stat-grid article strong { display: block; font-size: 2rem; color: var(--green); }
.stat-grid article span { color: var(--muted); text-transform: capitalize; }
.list-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.form-help { color: var(--muted); font-size: .9rem; margin: 6px 0; }
.message-box { padding: 16px 0; border-bottom: 1px solid var(--line); }
.chat-bubble { max-width: 780px; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.chat-bubble p { margin: 0; }
.chat-bubble.incoming { background: #eef7f1; }
.chat-bubble.outgoing { background: #fff2df; margin-left: auto; }
.drop-zone { border: 2px dashed var(--green); border-radius: 8px; padding: 28px; text-align: center; background: var(--soft); }
.drop-zone.is-dragging { background: #fff3df; }
.builder-section, .cta-band.builder-section { position: relative; overflow: hidden; }
.builder-section > .container, .builder-section > .container-fluid, .cta-band.builder-section > .container, .cta-band.builder-section > .container-fluid { position: relative; z-index: 1; }
.builder-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.builder-bg-video + .container, .builder-bg-video + .container-fluid { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.22); }
.builder-width-boxed > .container { max-width: 1140px; }
.builder-width-full > .container-fluid { width: 100%; max-width: none; padding-inline: clamp(16px, 4vw, 48px); }
.builder-grid { grid-template-columns: repeat(var(--builder-columns, 3), minmax(0, 1fr)); }
.builder-card-icon { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; background: var(--soft); color: var(--green); font-weight: 900; margin-bottom: 12px; }
.builder-outline { border-width: 2px; }
.builder-accent { border-top: 5px solid var(--orange); background: linear-gradient(180deg, rgba(255,140,0,.08), #fff 42%); }
.builder-glass { background: rgba(255,255,255,.72); backdrop-filter: blur(12px); }
.builder-media img, .content-card-media img { aspect-ratio: 16 / 10; max-height: none; }
.builder-commerce, .content-card-commerce { border-top: 5px solid var(--green); box-shadow: 0 18px 42px rgba(23,35,28,.1); }
.builder-shadow-none { box-shadow: none; }
.builder-shadow-soft { box-shadow: 0 12px 30px rgba(23,35,28,.08); }
.builder-shadow-strong { box-shadow: 0 22px 55px rgba(23,35,28,.24); }
.builder-animation-lift { transition: transform .2s ease, box-shadow .2s ease; }
.builder-animation-lift:hover { transform: translateY(-4px); }
.builder-animation-fade { animation: builderFade .65s ease both; }
.builder-hover-lift { transition: transform .2s ease, box-shadow .2s ease; }
.builder-hover-lift:hover { transform: translateY(-5px); }
.builder-hover-glow { transition: box-shadow .2s ease, border-color .2s ease; }
.builder-hover-glow:hover { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,140,0,.14), 0 18px 45px rgba(23,35,28,.14); }
.builder-hover-none:hover { transform: none; }
@keyframes builderFade { from { opacity: .05; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.builder-full { grid-column: 1 / -1; }
.builder-panel { display: grid; gap: 12px; }
.builder-panel h4 { font-size: 1rem; color: var(--green); font-weight: 800; }
.builder-preview { min-height: 220px; }
.builder-preview .builder-section { border: 1px dashed var(--line); border-radius: var(--global-radius, 8px); margin-top: 8px; }
.builder-advanced summary { cursor: pointer; font-weight: 800; color: var(--green); }
.builder-advanced .form-grid { margin-top: 14px; }
.header-live-preview { display: flex; align-items: center; gap: 14px; background: #fff; border-style: dashed; }
.header-live-preview strong { color: var(--green); }
.visual-card-editor { border: 1px solid var(--line); border-radius: var(--global-radius, 8px); padding: 14px; background: var(--soft); }
.builder-card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--global-radius, 8px); background: #fff; margin-bottom: 10px; }
.drag-handle { cursor: move; color: var(--muted); font-size: .85rem; font-weight: 800; text-transform: uppercase; }
.section-sort-row { background: #fff; }
.section-sort-row.is-dragging { opacity: .58; border-style: dashed; }
.list-line.is-selected { background: var(--soft); border-radius: var(--global-radius, 8px); padding-inline: 12px; }
.support-guide .admin-card p { color: var(--muted); }
.license-summary .stat-grid { margin-top: 12px; }

@media (max-width: 900px) {
  .admin-sidebar { position: static; width: auto; }
  .admin-main { margin-left: 0; }
  .event-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr !important; }
  .store-filters, .product-detail, .image-content { grid-template-columns: 1fr; }
  .image-content.image-right > div:first-child { order: 0; }
}
