:root {
  --bg: #14161f;
  --bg-alt: #1c1f2b;
  --gold: #d4af37;
  --gold-soft: #caa24a;
  --text: #f1f1f1;
  --text-muted: #b6b6c0;
  --border: rgba(212, 175, 55, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f7f6f3;
  color: #1c1c1c;
}

a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar {
  background: #14161f url("/img/pattern-bg.jpg") center center / cover no-repeat;
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark img { display: block; width: 40px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { color: var(--gold); font-weight: 700; font-size: 1.4rem; letter-spacing: 1px; }
.brand-tagline { color: var(--text-muted); font-size: 0.78rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a, .dropdown-toggle {
  color: var(--text);
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}
.nav-links > a.active, .dropdown-toggle.active { color: var(--gold); }
.nav-links > a:hover, .dropdown-toggle:hover { color: var(--gold); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  background: #1c1f2b;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.9rem;
}
.dropdown-menu a:hover { background: rgba(212,175,55,0.12); color: var(--gold); }
.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); display: block; }

/* Hero slider */
.hero-slider {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #0c0e15;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  background: linear-gradient(120deg, #14161f 0%, #2a2210 55%, #caa24a 100%);
}
.hero-slide.is-active { display: flex; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,15,0.75) 0%, rgba(10,10,15,0.25) 60%, rgba(10,10,15,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  color: #fff;
}
.hero-content h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
  letter-spacing: 2px;
  color: #fff;
  overflow-wrap: break-word;
}
.hero-subtitle { color: var(--gold); font-size: 1.1rem; margin: 0 0 18px; overflow-wrap: break-word; }
.hero-schedule { font-size: 1rem; margin: 4px 0; overflow-wrap: break-word; }
.hero-contact { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; overflow-wrap: break-word; }

@media (max-width: 1024px) {
  .hero-slider { min-height: 380px; }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 768px) {
  .hero-slider { min-height: 340px; }
  .hero-content { padding: 28px 20px; }
  .hero-content h1 { font-size: 1.6rem; letter-spacing: 1px; }
  .hero-subtitle { font-size: 0.9rem; margin: 0 0 12px; }
  .hero-schedule { font-size: 0.85rem; }
  .hero-contact { font-size: 0.78rem; }
  .hero-nav { width: 36px; height: 36px; font-size: 1.4rem; }
  .socials-bar { gap: 16px; padding: 18px 14px; flex-wrap: nowrap; }
  .social-item { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
  .social-image { height: auto; max-height: 40px; width: auto; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-slider { min-height: 300px; }
  .hero-content { padding: 20px 16px; }
  .hero-content h1 { font-size: 1.25rem; letter-spacing: 0.5px; margin: 0 0 6px; }
  .hero-subtitle { font-size: 0.8rem; margin: 0 0 10px; }
  .hero-schedule { font-size: 0.75rem; }
  .hero-contact { font-size: 0.7rem; margin-top: 10px; }
  .hero-nav { width: 30px; height: 30px; font-size: 1.1rem; }
  .hero-nav.prev { left: 8px; }
  .socials-bar { gap: 10px; padding: 14px 10px; flex-wrap: nowrap; }
  .social-item { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
  .social-image { height: auto; max-height: 30px; width: auto; max-width: 100%; }
  .social-platform { font-size: 0.55rem; }
  .social-name { font-size: 0.72rem; margin-top: 2px; }
  .hero-nav.next { right: 8px; }
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-nav:hover { background: rgba(212,175,55,0.5); }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.hero-dot.is-active { background: var(--gold); }

/* Socials bar */
.socials-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 28px 24px;
  background: #efeeea;
  border-top: 5px solid var(--gold);
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}
.gold-divider-top { border-top: 5px solid var(--gold); }
.gold-divider { height: 5px; background: var(--gold); }
.social-item { text-align: center; }
.social-platform {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #888;
  text-transform: uppercase;
}
.social-name { display: block; font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.social-image { display: block; height: 56px; width: auto; max-width: 220px; object-fit: contain; }

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 { font-size: 1.6rem; margin: 0; }
.see-all { color: var(--gold-soft); font-weight: 600; font-size: 0.9rem; }

.page-header h1 { font-size: 2rem; margin: 0 0 8px; }
.detail-image-wrap { padding-top: 0; padding-bottom: 0; }
.detail-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; }

/* Kontak */
.contact-card {
  border: 1px solid #e2e0d8;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 28px;
}
.contact-card h2 { color: var(--gold-soft); font-size: 1.2rem; margin: 0 0 20px; }
.contact-row { margin-bottom: 18px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-label { display: block; color: #888; font-size: 0.85rem; margin-bottom: 4px; }
.contact-value { display: block; font-size: 1.02rem; white-space: pre-line; }
.contact-map { border-radius: 10px; overflow: hidden; border: 1px solid #e2e0d8; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid #e2e0d8; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  color: #1c1c1c;
}
.faq-icon { color: var(--gold-soft); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: #555;
  line-height: 1.7;
}
.faq-item.is-open .faq-answer { padding: 0 22px 20px; }
.contact-map iframe { display: block; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--gold-soft); font-weight: 600; }

.prose p { line-height: 1.8; font-size: 1.02rem; margin-bottom: 16px; color: #333; }
.prose h2 { margin-top: 28px; }
.prose ul, .prose ol { line-height: 1.8; padding-left: 22px; margin-bottom: 16px; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0 16px; display: block; }
.prose a { color: var(--gold-soft); text-decoration: underline; }
.prose .ql-align-center, .gallery-caption .ql-align-center { text-align: center; }
.prose .ql-align-right, .gallery-caption .ql-align-right { text-align: right; }
.prose .ql-align-justify, .gallery-caption .ql-align-justify { text-align: justify; }
.prose .ql-indent-1, .gallery-caption .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2, .gallery-caption .ql-indent-2 { padding-left: 6em; }
.prose .ql-indent-3, .gallery-caption .ql-indent-3 { padding-left: 9em; }
.prose .ql-indent-4, .gallery-caption .ql-indent-4 { padding-left: 12em; }
.prose .ql-indent-5, .gallery-caption .ql-indent-5 { padding-left: 15em; }
.prose .ql-indent-6, .gallery-caption .ql-indent-6 { padding-left: 18em; }
.prose .ql-indent-7, .gallery-caption .ql-indent-7 { padding-left: 21em; }
.prose .ql-indent-8, .gallery-caption .ql-indent-8 { padding-left: 24em; }
.prose .ql-direction-rtl, .gallery-caption .ql-direction-rtl { direction: rtl; text-align: inherit; }
.gallery-caption p { margin: 0; }

/* Custom Quill font choices (applies both in editor and on published pages) */
.ql-font-decorative { font-family: 'Brush Script MT', 'Lucida Handwriting', cursive; }
.ql-font-timesnewroman { font-family: 'Times New Roman', Times, serif; }
.ql-font-calibri { font-family: Calibri, Carlito, sans-serif; }
.ql-font-cambria { font-family: Cambria, Caladea, Georgia, serif; }
.ql-font-gisha { font-family: Gisha, Tahoma, sans-serif; }
.ql-font-futura { font-family: 'Futura Bk BT', Futura, 'Century Gothic', sans-serif; }
.ql-font-kalinga { font-family: Kalinga, Tahoma, sans-serif; }
.ql-font-centurygothic { font-family: 'Century Gothic', sans-serif; }

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="decorative"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="decorative"]::before { content: 'Decorative'; font-family: 'Brush Script MT', 'Lucida Handwriting', cursive; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="timesnewroman"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="timesnewroman"]::before { content: 'Times New Roman'; font-family: 'Times New Roman', Times, serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="calibri"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="calibri"]::before { content: 'Calibri'; font-family: Calibri, Carlito, sans-serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="cambria"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="cambria"]::before { content: 'Cambria'; font-family: Cambria, Caladea, Georgia, serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="gisha"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="gisha"]::before { content: 'Gisha'; font-family: Gisha, Tahoma, sans-serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="futura"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="futura"]::before { content: 'Futura Bk BT'; font-family: 'Futura Bk BT', Futura, 'Century Gothic', sans-serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="kalinga"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="kalinga"]::before { content: 'Kalinga'; font-family: Kalinga, Tahoma, sans-serif; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="centurygothic"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="centurygothic"]::before { content: 'Century Gothic'; font-family: 'Century Gothic', sans-serif; }
.ql-snow .ql-picker.ql-font { width: 160px; }

/* Custom Quill font sizes (applies both in editor and on published pages) */
.ql-size-small { font-size: 0.75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge { font-size: 2.5em; }

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { content: 'Kecil'; }
.ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value])::before,
.ql-snow .ql-picker.ql-size .ql-picker-item:not([data-value])::before { content: 'Normal'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { content: 'Besar'; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { content: 'Sangat Besar'; }

/* Admin rich text editor */
.rich-editor { background: #fff; }
.rich-editor .ql-editor { min-height: 220px; font-size: 0.95rem; }
.rich-editor-toolbar-row1 { display: flex; flex-wrap: wrap; align-items: center; }
.rich-editor-toolbar-row2 { display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid #ccc; }
.rich-editor-toolbar-row2.is-collapsed { display: none; }
.rich-editor-toolbar-toggle-wrap { margin-left: auto; }
.rich-editor-toolbar-toggle {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #444;
}
.rich-editor-toolbar-toggle:hover { background: #f0f0f0; }
.rich-editor-toolbar-toggle.is-active { background: #e8e8e8; color: #14161f; }

.rich-editor-toolbar-plain {
  border: none;
  background: none;
  width: 28px;
  height: 24px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: #444;
  border-radius: 3px;
}
.rich-editor-toolbar-plain:hover { background: #f0f0f0; color: #06c; }

.rich-editor-specialchar-wrap { position: relative; }
.rich-editor-specialchar-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(8, 26px);
  gap: 2px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.rich-editor-specialchar-panel.is-collapsed { display: none; }
.rich-editor-specialchar-item {
  border: none;
  background: none;
  width: 26px;
  height: 26px;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 3px;
}
.rich-editor-specialchar-item:hover { background: #e8e8e8; }

/* Admin device preview */
.preview-label { font-size: 0.85rem; color: #555; margin: 14px 0 6px; }
.device-preview { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #f3f2ee; }
.device-preview-toolbar { display: flex; gap: 6px; padding: 8px; background: #fff; border-bottom: 1px solid #eee; }
.device-preview-toolbar button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  color: #444;
}
.device-preview-toolbar button.active { background: #14161f; color: var(--gold); border-color: #14161f; }
.device-preview-wrap { overflow: auto; padding: 16px; display: flex; justify-content: center; }
.device-preview-frame { border: 1px solid #ddd; transform-origin: top left; background: #fff; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.card-image { height: 160px; }
.card-body { padding: 18px; }
.card-body h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.card-body p { margin: 0; color: #555; font-size: 0.92rem; line-height: 1.5; }
.card-date { color: var(--gold-soft); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; margin-left: 8px; }
.card-label {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-readmore { display: inline-block; margin-top: 10px; color: var(--gold-soft); font-weight: 600; font-size: 0.88rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 40%, transparent 75%);
  pointer-events: none;
}
.gallery-caption {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Footer */
.footer {
  background: #14161f url("/img/pattern-bg.jpg") center center / cover no-repeat;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 { color: var(--gold); margin: 0 0 14px; font-size: 0.92rem; }
.footer-col p { margin: 0 0 10px; line-height: 1.6; }
.footer-contact p { margin: 0; line-height: 1.6; white-space: pre-line; }
.footer-title { display: block; color: var(--gold); font-weight: 700; font-size: 1.15rem; letter-spacing: 1px; }
.footer-tagline { display: block; margin: 4px 0 18px; }
.footer-socials { display: flex; gap: 12px; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.social-icon.youtube { background: #ff0000; }
.social-icon.facebook { background: #1877f2; }
.social-icon.tiktok { background: #000; }
.social-icon.whatsapp { background: #25d366; }
.footer-links-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 24px; }
.footer-links-grid a { color: var(--text-muted); }
.footer-links-grid a:hover { color: var(--gold); }
.footer-links-grid a.active { color: var(--gold); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.74rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text); font-weight: 600; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Admin */
.admin-login-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  width: 100%;
  max-width: 360px;
  color: var(--text);
}
.admin-login-card h1 { color: var(--gold); font-size: 1.4rem; margin: 0 0 4px; }
.admin-login-card h1 span { color: var(--text); font-weight: 400; }
.admin-login-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 20px; }
.admin-login-card form { display: flex; flex-direction: column; gap: 6px; }
.admin-login-card label { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.admin-login-card input {
  background: #14161f;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
}
.admin-login-card button {
  margin-top: 18px;
  background: var(--gold);
  color: #14161f;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}
.admin-back { display: block; margin-top: 18px; text-align: center; color: var(--gold-soft); font-size: 0.85rem; }

.admin-body { background: #f3f2ee; min-height: 100vh; }
.admin-topbar {
  background: #14161f;
  border-bottom: 2px solid var(--gold);
}
.admin-topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-brand { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.admin-brand span { color: var(--text-muted); font-weight: 400; }
.admin-topbar-actions { display: flex; align-items: center; gap: 18px; }
.admin-topbar-actions a { color: var(--text-muted); font-size: 0.9rem; }
.admin-topbar-actions a:hover { color: var(--gold); }

.admin-shell {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 24px;
}
.admin-sidebar { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar a {
  padding: 10px 14px;
  border-radius: 6px;
  color: #444;
  font-size: 0.92rem;
}
.admin-sidebar a:hover { background: #e9e7e0; }
.admin-sidebar a.active { background: var(--gold); color: #14161f; font-weight: 600; }

.admin-content { min-width: 0; }
.admin-page-head h1 { margin: 0 0 20px; font-size: 1.5rem; }

.admin-alert { padding: 10px 16px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 16px; }
.admin-alert-ok { background: #dff3e3; color: #1d6b34; }
.admin-alert-error { background: #fbe1e1; color: #a32424; }

.admin-form {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 560px;
}
.admin-form.admin-form-wide { max-width: 1040px; }
.admin-form h2 { margin: 0 0 10px; font-size: 1.15rem; }
.admin-form label { font-size: 0.85rem; color: #555; margin-top: 10px; }
.admin-form input, .admin-form textarea, .admin-form select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
.admin-form-row { display: flex; gap: 12px; }
.admin-form-row input { flex: 1; }
.admin-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.admin-form-actions button {
  background: #14161f;
  color: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}
.admin-cancel { color: #888; font-size: 0.9rem; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.admin-table th { color: #888; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.admin-thumb-color { display: block; }
.admin-row-actions { display: flex; gap: 14px; align-items: center; }
.admin-row-actions a { color: var(--gold-soft); font-weight: 600; }
.admin-link-btn { background: none; border: none; padding: 0; color: #b33; font-weight: 600; cursor: pointer; font-size: 0.9rem; }

.admin-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.admin-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.admin-card h3 { margin: 0 0 6px; color: #14161f; }
.admin-card p { margin: 0; color: #666; font-size: 0.88rem; }

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c1f2b;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; }
}
