:root {
  --bg: #07111f;
  --panel: #0f1c31;
  --panel-soft: #132544;
  --text: #eef4ff;
  --muted: #aabbd8;
  --accent: #61a7ff;
  --accent-soft: rgba(97, 167, 255, 0.12);
  --success: #3dd9a3;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(97, 167, 255, 0.18), transparent 0 30%),
    linear-gradient(180deg, #07111f 0%, #0b1526 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.stats,
.service-card,
.portfolio-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.hero-copy {
  padding: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 28px;
}

.lead,
.sublead,
.section-heading p,
.service-card p,
.description,
.info-block li {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
}

.stats div {
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 28px;
}

.section {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 16px;
}

.services-grid,
.portfolio-grid {
  display: grid;
  gap: 16px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card,
.portfolio-card {
  padding: 18px;
}

.thumb {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(97, 167, 255, 0.12), rgba(61, 217, 163, 0.08));
  color: #cdddf8;
  font-size: 14px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.badge {
  background: var(--accent-soft);
  color: #a9d1ff;
}

.status {
  background: rgba(61, 217, 163, 0.14);
  color: #97f0cc;
}

.portfolio-card h3,
.service-card h3 {
  margin: 14px 0 8px;
}

.info-block {
  margin-top: 14px;
}

.info-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.info-block ul {
  margin: 0;
  padding-left: 18px;
}

.visit-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.visit-link.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1fa855);
  color: white;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.wa-float:hover {
  filter: brightness(1.05);
}

.wa-float-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 18px;
}

.wa-float-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wa-float-copy small {
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-image,
.image-preview {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.gallery-thumb,
.image-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.admin-gallery-wrap {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.photo-editor-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
}

.check-row input {
  width: auto;
}

.admin-shell {
  padding-top: 24px;
}

.admin-shell.narrow {
  max-width: 720px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.admin-form,
.single-column {
  display: grid;
  gap: 14px;
}

.admin-form {
  padding-bottom: 110px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

textarea,
input {
  width: 100%;
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.editor-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.section-row,
.save-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.floating-save-row {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.save-hint {
  color: var(--muted);
  font-size: 13px;
}

.save-row button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), #3d7dff);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.save-row button:hover {
  filter: brightness(1.05);
}

.mini-btn,
.danger-btn {
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.mini-btn {
  background: var(--accent);
  color: white;
  border: none;
}

.danger-btn {
  background: transparent;
  color: #ffb3b3;
  border: 1px solid rgba(255, 100, 100, 0.35);
  margin-top: 8px;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.flash.success {
  background: rgba(61, 217, 163, 0.12);
  color: #97f0cc;
}

.flash.error {
  background: rgba(255, 100, 100, 0.12);
  color: #ffb3b3;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  z-index: 9999;
}

.image-modal.show {
  display: flex;
}

.image-modal-content {
  max-width: min(92vw, 980px);
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.image-modal-caption {
  margin-top: 10px;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 34px;
  color: white;
}

@media (max-width: 860px) {
  .hero,
  .form-grid,
  .admin-topbar,
  .section-row,
  .save-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .floating-save-row {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .wa-float {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }

  h1 {
    font-size: 32px;
  }
}
