:root {
  --primary: #d11f2a;
  --primary-600: #a81720;
  --accent: #2f2f35;
  --text: #1a1d24;
  --muted: #6d7280;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e4e7ec;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(22, 28, 45, 0.08);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --container: 1100px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: var(--space-6) 0;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.74rem 1.28rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(209, 31, 42, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(209, 31, 42, 0.26);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f6;
}



.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.site-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0.98);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-topbar.is-scrolled::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
}

.brand-logo-wrap {
  width: clamp(120px, 34vw, 210px);
  max-height: 56px;
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--primary);
  display: block;
}

.top-links-nav {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  padding: 0.85rem 1rem 1rem;
  display: none;
}

.top-links-nav.is-open {
  display: block;
}

.top-links-nav ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.top-links-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
}

.top-links-nav a.active,
.top-links-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  width: 100%;
}

main {
  padding: var(--space-5) 0 var(--space-6);
}

.hero {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: 66svh;
  display: flex;
  align-items: center;
  padding: var(--space-6) var(--space-4);
  box-shadow: var(--shadow);
  color: #fff;
  background-color: #121212;
  background-image:
    linear-gradient(110deg, rgba(17, 19, 24, 0.74), rgba(17, 19, 24, 0.56)),
    url("assets/index-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: var(--space-2);
}

.hero p {
  max-width: 620px;
  color: #f9efe7;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-card h3,
.process-card h3,
.testimonial-card h3,
.project-card h3,
.package-card h3,
.gallery-card h3 {
  margin-bottom: 0.4rem;
}

.feature-card p,
.process-card p,
.testimonial-card p,
.project-card p,
.package-card p,
.gallery-card p {
  color: var(--muted);
}

.process-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.project-thumb,
.gallery-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
}

.package-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.4rem 0 0.75rem;
}

.package-features {
  margin: 0 0 1rem 1rem;
  color: var(--muted);
}

.package-features li + li {
  margin-top: 0.25rem;
}

.gallery-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.gallery-main-trigger,
.gallery-thumb-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-mini-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.public-gallery-modal[hidden] {
  display: none;
}

.public-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.public-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 30, 0.74);
  backdrop-filter: blur(10px);
}

.public-gallery-card {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 4vh auto;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.public-gallery-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.public-gallery-meta {
  color: var(--muted);
}

.public-gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f7fb 0%, #eef1f7 100%);
}

.public-gallery-image {
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.public-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 23, 35, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.public-gallery-nav.prev {
  left: 1rem;
}

.public-gallery-nav.next {
  right: 1rem;
}

.public-gallery-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.public-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.public-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.public-gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(209, 31, 42, 0.14);
}

.public-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.public-gallery-open {
  overflow: hidden;
}

.package-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(209, 31, 42, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.package-copy {
  margin-bottom: 0.8rem;
}

.rich-content {
  display: grid;
  gap: 0.65rem;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content h3,
.rich-content h4 {
  margin: 0;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.25rem;
  color: var(--muted);
}

.rich-content img {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  object-fit: cover;
}

.rich-content a {
  color: var(--primary);
  text-decoration: underline;
}

.package-card-featured {
  border-color: rgba(209, 31, 42, 0.25);
  box-shadow: 0 18px 40px rgba(209, 31, 42, 0.12);
}

.package-card-payments {
  background: linear-gradient(180deg, #fff 0%, #fbf6f3 100%);
}

.package-features-payments li {
  font-weight: 600;
}

.payment-methods-section {
  margin-top: 1.4rem;
}

.payment-methods-section .package-card-payments {
  width: 100%;
}

.form-shell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
}

form {
  display: grid;
  gap: 0.9rem;
}

form[hidden] {
  display: none !important;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.site-maintenance-banner {
  margin: 0 auto;
  border-radius: 0;
  text-align: center;
}

body.site-maintenance-mode {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f5f2 0%, #ffffff 100%);
}

body.site-maintenance-mode main,
body.site-maintenance-mode .site-footer {
  display: none !important;
}

.topbar-inner-maintenance {
  justify-content: flex-start;
}

.brand-maintenance {
  gap: 0.9rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
}

.brand-copy strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-maintenance-shell {
  min-height: calc(100vh - 108px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem 3rem;
}

.site-maintenance-card {
  width: min(680px, 100%);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(122, 134, 161, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(20, 30, 60, 0.12);
  text-align: center;
}

.site-maintenance-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, rgba(204, 23, 39, 0.12), rgba(204, 23, 39, 0.2));
}

.site-maintenance-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.site-maintenance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.78rem;
  }

  .site-maintenance-shell {
    min-height: calc(100vh - 92px);
    padding: 1.5rem 1rem 2rem;
  }

  .site-maintenance-card {
    padding: 2rem 1.25rem;
    border-radius: 24px;
  }
}

.rich-editor-shell {
  display: grid;
  gap: 0.75rem;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.2rem 0.55rem;
  border-bottom: 1px solid var(--border);
}

.rich-toolbar-select {
  width: auto;
  min-width: 132px;
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  box-shadow: none;
}

.rich-toolbar-select:focus {
  box-shadow: none;
  border: 0;
  outline: none;
}

.rich-toolbar-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 0 0.25rem;
}

.rich-toolbar-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.rich-toolbar-btn:hover {
  background: #f3f4f6;
  color: var(--primary);
}

.rich-toolbar-btn:focus {
  outline: none;
  background: #fff5f6;
  color: var(--primary);
}

.rich-editor {
  min-height: 180px;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: var(--bg);
  color: var(--text);
  padding: 0.9rem;
  line-height: 1.65;
  overflow: auto;
}

.rich-editor:focus {
  outline: none;
}

.rich-editor-shell {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote,
.rich-editor h3,
.rich-editor h4 {
  margin: 0 0 0.75rem;
}

.rich-editor img {
  width: min(100%, 320px);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 1.35rem;
}

label {
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 0.72rem 0.78rem;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(209, 31, 42, 0.16);
  outline: none;
}

.form-status {
  border-radius: 10px;
  padding: 0.75rem;
  font-weight: 600;
  display: none;
}

.form-status[hidden] {
  display: none;
}

.field-help {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .field-help {
    white-space: normal;
  }
}

.quote-image-preview {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}

.quote-image-preview[hidden] {
  display: none;
}

.quote-image-preview-item {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.quote-image-preview-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.quote-image-preview-item span {
  display: block;
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-status.success,
.form-status.error {
  display: block;
}

.form-status.info {
  display: block;
  background: #eef4ff;
  color: #244a7c;
  border: 1px solid #c8d8f4;
}

.form-status.success {
  background: #e7f7ef;
  color: #1d6b43;
  border: 1px solid #b6e4ca;
}

.form-status.error {
  background: #fde9e9;
  color: #9e2f2f;
  border: 1px solid #f2b7b7;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

th,
td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f6f7f9;
  color: var(--primary);
}

.map-frame {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.site-footer {
  background: #111318;
  color: #f4f6fa;
  padding: var(--space-5) 0;
}

.footer-inner {
  display: grid;
  gap: 0.9rem;
  text-align: center;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.footer-link,
.footer-icon {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.footer-link:hover,
.footer-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-inner {
    text-align: left;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .top-links-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .top-links-nav ul {
    margin: 0;
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }

  .top-links-nav a {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
  }

  .top-links-nav a.active,
  .top-links-nav a:hover {
    background: #f3f4f6;
  }

  .nav-cta {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .topbar-inner {
    min-height: 64px;
    padding: 0.35rem 0;
    gap: 0.55rem;
  }

  .brand-logo-wrap {
    width: clamp(112px, 44vw, 170px);
    max-height: 46px;
  }

  .brand-logo {
    max-height: 46px;
  }

  .top-links-nav {
    top: 64px;
    padding: 0.7rem 0.8rem 0.85rem;
  }
}
#about .card,
.about-card {
  text-align: center;
}

#about p,
.about-copy {
  max-width: 60ch;
  margin: 0.85rem auto 0;
  line-height: 1.9;
  color: var(--muted);
}

#about .section-title,
.about-card .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

#about .section-subtitle,
.about-card .section-subtitle {
  max-width: 64ch;
  margin: 0 auto 1.1rem;
}

h1,
h2,
h3 {
  font-weight: 760;
  letter-spacing: -0.01em;
}

main p {
  line-height: 1.78;
  max-width: 60ch;
}

.card p,
.hero p {
  max-width: none;
}

@media (max-width: 768px) {
  .hero {
    background-image: none !important;
    background: #121212 !important;
    text-align: center;
    justify-content: center;
    padding: 2rem 1.1rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
/* ===== Admin Styles ===== */
.admin-body {
  background: var(--surface);
  color: var(--text);
}

.admin-body .section-title {
  margin-bottom: 0.4rem;
}

.admin-app-shell {
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.admin-topbar-left,
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.admin-brand strong {
  display: block;
  font-size: 0.96rem;
}

.admin-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-brand-logo-wrap {
  width: 126px;
  max-height: 46px;
  display: flex;
  align-items: center;
}

.admin-brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 46px;
}

.admin-now {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-user-label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.admin-user-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.admin-signout-btn {
  padding: 0.52rem 0.95rem;
  font-size: 0.88rem;
}

.admin-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#sidebarToggle {
  flex-direction: column;
  gap: 4px;
}

#sidebarToggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 1rem;
  transform: translateX(-102%);
  transition: transform 0.25s ease;
  z-index: 90;
  overflow: auto;
}

.admin-sidebar nav {
  display: grid;
  gap: 0.35rem;
}

.admin-nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--primary);
  background: #fff5f6;
}

.admin-sidebar-open .admin-sidebar {
  transform: translateX(0);
}

.admin-main {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.1rem 0 2rem;
}

.admin-warning {
  margin-bottom: 1rem;
  border: 1px solid #f4d4d8;
  background: #fff5f6;
  color: #8a1f2b;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
}

.admin-section + .admin-section {
  margin-top: 1.4rem;
}

.admin-stats {
  margin-top: 0.85rem;
}

.admin-stat-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.admin-stat-card strong {
  font-size: 1.95rem;
  color: var(--primary);
  line-height: 1;
}

.admin-toolbar {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.admin-toolbar input,
.admin-toolbar select {
  background: #fff;
}

.admin-loading {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.8rem;
}

.admin-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  display: grid;
  gap: 0.6rem;
}

.admin-empty[hidden] {
  display: none;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table-wrap table {
  min-width: 980px;
}

.admin-status {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--border);
  display: inline-flex;
}

.admin-status.status-nuevo {
  color: #8a1f2b;
  background: #fff5f6;
  border-color: #f4d4d8;
}

.admin-status.status-en-proceso {
  color: #8a6400;
  background: #fff8e8;
  border-color: #ecd69e;
}

.admin-status.status-completado {
  color: #1d6b43;
  background: #e8f7ef;
  border-color: #bde4cb;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-mini {
  padding: 0.42rem 0.68rem;
  font-size: 0.78rem;
}

.admin-mini.danger {
  border-color: #edc3c8;
  color: #a81720;
}

.admin-mini.danger:hover {
  background: #fff3f5;
}

.admin-placeholder p {
  max-width: none;
  color: var(--muted);
}

.admin-content-card {
  display: grid;
  gap: 1.25rem;
}

.admin-manual-quote-card {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.admin-manual-quote-card[hidden] {
  display: none;
}

.admin-section-head h3,
.admin-list-head h3 {
  margin-bottom: 0.3rem;
}

.admin-section-head p,
.admin-list-head p {
  color: var(--muted);
}

.admin-content-form {
  display: grid;
  gap: 1rem;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-list-block {
  display: grid;
  gap: 0.85rem;
}

.admin-card-list {
  display: grid;
  gap: 0.9rem;
}

.admin-content-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  cursor: grab;
}

.admin-content-item-media img,
.admin-content-item-fallback {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
}

.admin-content-item-fallback {
  display: grid;
  place-items: center;
  background: #f5f5f5;
  color: var(--muted);
}

.admin-content-item-body {
  display: grid;
  gap: 0.8rem;
}

.admin-content-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.admin-chip-row,
.admin-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: #f5f6fa;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-chip.highlighted {
  background: rgba(209, 31, 42, 0.1);
  color: var(--primary);
  border-color: rgba(209, 31, 42, 0.18);
}

.admin-feature-list {
  margin: 0 0 0 1rem;
  color: var(--muted);
}

.admin-feature-list li + li {
  margin-top: 0.2rem;
}

.admin-checkbox-wrap {
  display: flex;
  align-items: end;
}

.admin-checkbox-label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 600;
}

.admin-checkbox-label input {
  width: auto;
}

.admin-list-empty {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.admin-existing-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}

.admin-existing-image-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  cursor: grab;
}

.admin-existing-image-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-existing-image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.7rem;
}

.admin-mini.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(209, 31, 42, 0.12);
}

.is-dragging {
  opacity: 0.55;
}

.admin-toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 140;
  display: grid;
  gap: 0.45rem;
}

.admin-toast {
  min-width: 240px;
  max-width: 360px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.68rem 0.8rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success {
  border-color: #bde4cb;
}

.admin-toast.error {
  border-color: #f4c9ce;
}

.admin-toast.info {
  border-color: #dbe3f4;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 35, 0.48);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 6vh auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 88vh;
  overflow: auto;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-modal-body {
  padding: 1rem;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-detail-grid dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.admin-detail-grid dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}

.admin-attachments {
  margin-top: 1.25rem;
}

.admin-attachments h4 {
  margin-bottom: 0.75rem;
}

.admin-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
}

.admin-attachment-link {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.admin-attachment-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-auth-shell {
  width: min(760px, calc(100% - 2rem));
  margin: 4rem auto 0;
  display: grid;
}

.admin-auth-shell[hidden] {
  display: none;
}

.admin-app-shell[hidden] {
  display: none;
}

.admin-auth-card {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.admin-auth-kicker {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth-copy {
  color: var(--muted);
  max-width: 60ch;
}

.admin-auth-warning {
  margin: 0;
}

.admin-auth-card .btn {
  justify-self: start;
}

.admin-auth-card .form-status {
  margin: 0;
}

body.admin-auth-active .admin-app-shell {
  display: none;
}

@media (min-width: 920px) {
  #sidebarToggle {
    display: none;
  }

  .admin-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    width: min(1360px, calc(100% - 1.5rem));
    margin: 0 auto;
  }

  .admin-sidebar {
    position: sticky;
    top: 84px;
    height: calc(100vh - 96px);
    transform: none;
    width: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 0.9rem;
  }

  .admin-main {
    width: 100%;
    margin: 0;
    padding: 0.9rem 0 2rem;
  }

  .admin-toolbar {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    padding: 0 0.65rem;
    height: 66px;
  }

  .admin-topbar-right {
    gap: 0.45rem;
  }

  .admin-user-label {
    display: none;
  }

  .admin-brand-logo-wrap {
    width: 112px;
    max-height: 40px;
  }

  .admin-brand-logo {
    max-height: 40px;
  }

  .admin-now {
    display: none;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-auth-shell {
    margin-top: 2rem;
  }

  .admin-content-item {
    grid-template-columns: 1fr;
  }

  .admin-content-item-head {
    flex-direction: column;
  }

  .gallery-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-gallery-card {
    width: calc(100% - 1rem);
    margin: 1.5vh auto;
    padding: 0.8rem;
  }

  .public-gallery-stage {
    min-height: 54vh;
  }

  .public-gallery-nav {
    width: 42px;
    height: 42px;
  }
}
