:root {
  --blue: #0616b8;
  --navy: #07123a;
  --orange: #f26322;
  --green: #168a36;
  --indigo: #5a3fc0;
  --ink: #202842;
  --muted: #66708d;
  --line: #dfe5f2;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

.site-body {
  background: #f6f8fc;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 150px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  color: var(--navy);
}

.admin-link {
  padding: 8px 14px;
  background: var(--navy);
  color: #fff !important;
  border-radius: 6px;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 38px;
  padding: 64px 5vw 54px;
  background:
    linear-gradient(110deg, rgba(7, 18, 58, 0.9), rgba(6, 22, 184, 0.68)),
    url("/logo.png") center right 8vw / min(470px, 72vw) no-repeat,
    #0f1f57;
  color: #fff;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.admin-nav button:hover,
.danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.button:active,
.admin-nav button:active,
.danger:active {
  transform: translateY(0);
}

.button:disabled,
.admin-nav button:disabled,
.danger:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.button.primary {
  background: var(--orange);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hero-panel div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  font-weight: 900;
}

.section {
  padding: 70px 5vw;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.portfolio-card,
.promo-card,
.metric-grid article,
.table-wrap,
.login-panel,
.admin-form,
.promo-admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 230px;
  padding: 22px;
}

.service-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 16px;
}

.service-card h3,
.portfolio-card h3,
.promo-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.2;
}

.service-card p,
.portfolio-card p,
.promo-card p {
  margin: 0;
  color: var(--muted);
}

.accent-blue span { background: var(--blue); }
.accent-orange span { background: var(--orange); }
.accent-indigo span { background: var(--indigo); }
.accent-green span { background: var(--green); }

.about-band,
.contact-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 64px 5vw;
  background: var(--navy);
  color: #fff;
}

.about-band h2,
.contact-band h2 {
  color: #fff;
}

.about-band p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.portfolio-grid,
.promo-stage,
.promo-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card,
.promo-card,
.promo-admin-card {
  overflow: hidden;
}

.portfolio-card {
  padding: 22px;
  border-top: 5px solid var(--orange);
}

.portfolio-card span {
  color: var(--blue);
  font-weight: 900;
  font-size: 0.85rem;
}

.promo-art {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(130deg, var(--blue), var(--orange));
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.promo-art img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.promo-card h3,
.promo-card p,
.promo-admin-card h3,
.promo-admin-card p {
  padding: 0 16px;
}

.promo-card h3,
.promo-admin-card h3 {
  margin-top: 16px;
}

.promo-card p,
.promo-admin-card p {
  padding-bottom: 18px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-actions a {
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
  background: #fff;
  color: var(--navy);
}

.footer {
  padding: 22px 5vw;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.modern-topbar {
  padding-block: 10px;
  box-shadow: 0 12px 32px rgba(7, 18, 58, 0.08);
}

.modern-hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: 72px 5vw 58px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 18, 58, 0.94), rgba(6, 22, 184, 0.72)),
    radial-gradient(circle at top right, rgba(242, 99, 34, 0.28), transparent 34%),
    #07123a;
}

.modern-hero-copy h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(3rem, 7.5vw, 6.7rem);
  line-height: 0.93;
  color: #fff;
}

.modern-hero-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-showcase {
  position: relative;
  min-height: 540px;
}

.showcase-main {
  height: 100%;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.showcase-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card {
  position: absolute;
  left: -24px;
  bottom: 34px;
  width: min(270px, 70%);
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.showcase-card.second {
  left: auto;
  right: -18px;
  top: 34px;
  bottom: auto;
}

.showcase-card strong {
  display: block;
  color: var(--orange);
  font-size: 2.2rem;
  line-height: 1;
}

.showcase-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.modern-section {
  background: #fff;
}

.image-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.image-service-card {
  position: relative;
  min-height: 390px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(7, 18, 58, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.image-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(7, 18, 58, 0.18);
}

.image-service-card > img,
.image-service-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.02);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.image-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 18, 58, 0.08), rgba(7, 18, 58, 0.92));
}

.image-service-card:hover > img {
  opacity: 0.9;
  transform: scale(1.08);
}

.image-service-card span,
.image-service-card h3,
.image-service-card p {
  position: relative;
  z-index: 2;
}

.image-service-card span {
  display: inline-flex;
  margin: 18px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.image-service-card h3 {
  margin: 190px 18px 8px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.image-service-card p {
  margin: 0 18px 22px;
  color: rgba(255, 255, 255, 0.82);
}

.image-service-card::before {
  content: "View details";
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 70px 5vw;
  color: #fff;
  background: var(--navy);
}

.about-split h2 {
  color: #fff;
}

.about-split p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.about-stats {
  display: grid;
  gap: 14px;
}

.about-stats article {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-stats strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
}

.about-stats span {
  color: rgba(255, 255, 255, 0.74);
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 34px;
  align-items: start;
  padding: 78px 5vw;
  background:
    linear-gradient(120deg, rgba(245, 247, 251, 0.96), rgba(255, 244, 237, 0.96)),
    #f6f8fc;
}

.request-copy {
  position: sticky;
  top: 110px;
}

.request-copy h2 {
  max-width: 680px;
}

.request-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 600px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.request-form .wide,
.request-form button,
.request-form .form-message {
  grid-column: 1 / -1;
}

.form-message {
  margin: 0;
  min-height: 24px;
  color: var(--blue);
  font-weight: 800;
}

.form-message a {
  color: var(--orange);
}

.modern-contact {
  background: linear-gradient(120deg, var(--navy), var(--blue));
}

.modern-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.modern-footer strong {
  color: var(--navy);
}

.modern-footer p {
  margin: 4px 0 0;
}

.modern-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modern-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #18a94d;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(24, 169, 77, 0.34);
}

.maintenance-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(130deg, rgba(7, 18, 58, 0.98), rgba(6, 22, 184, 0.78)),
    #07123a;
}

.maintenance-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.maintenance-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.maintenance-bg span {
  position: absolute;
  width: 60vw;
  height: 110px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: sweepBand 9s linear infinite;
}

.maintenance-bg span:nth-child(1) {
  top: 8%;
  left: -65%;
}

.maintenance-bg span:nth-child(2) {
  top: 46%;
  left: -75%;
  animation-delay: 2.4s;
}

.maintenance-bg span:nth-child(3) {
  top: 76%;
  left: -70%;
  animation-delay: 5.2s;
}

.maintenance-card {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 34px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.maintenance-copy {
  text-align: left;
}

.maintenance-card img {
  width: min(330px, 80%);
}

.maintenance-card h1 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.maintenance-card p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 18, 58, 0.08);
}

.live-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242, 99, 34, 0.55);
  animation: pulseDot 1.7s ease-out infinite;
}

.maintenance-progress {
  width: min(470px, 100%);
  margin-top: 24px;
}

.maintenance-progress strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.maintenance-progress div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.maintenance-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--green));
  background-size: 220% 100%;
  animation: progressShift 2.8s ease-in-out infinite;
}

.maintenance-services {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.maintenance-services span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}

.maintenance-services span:nth-child(even) {
  background: var(--orange);
}

.maintenance-contact {
  margin-top: 26px;
}

.maintenance-contact a {
  box-shadow: 0 10px 22px rgba(7, 18, 58, 0.09);
}

.maintenance-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.activity-card,
.scan-panel,
.service-stream span {
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 18, 58, 0.14);
}

.activity-card {
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  animation: floatCard 4.5s ease-in-out infinite;
}

.activity-card span {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.15;
}

.activity-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.service-stream {
  display: grid;
  gap: 10px;
}

.service-stream span {
  display: block;
  padding: 10px 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  animation: slideService 5s ease-in-out infinite;
}

.service-stream span:nth-child(2n) {
  color: #fff;
  background: var(--orange);
  animation-delay: 0.2s;
}

.service-stream span:nth-child(3n) {
  color: #fff;
  background: var(--blue);
  animation-delay: 0.4s;
}

.scan-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(260px, 70%);
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.scan-panel span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dfe5f2, var(--blue), var(--orange), #dfe5f2);
  background-size: 260% 100%;
  animation: scanLine 2.6s linear infinite;
}

.scan-panel span:nth-child(2) {
  width: 72%;
  animation-delay: 0.3s;
}

.scan-panel span:nth-child(3) {
  width: 88%;
  animation-delay: 0.6s;
}

.scan-panel span:nth-child(4) {
  width: 58%;
  animation-delay: 0.9s;
}

@keyframes sweepBand {
  0% { transform: translateX(0) rotate(-18deg); }
  100% { transform: translateX(220vw) rotate(-18deg); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(242, 99, 34, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(242, 99, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 99, 34, 0); }
}

@keyframes progressShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideService {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}

@keyframes scanLine {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(7, 18, 58, 0.96), rgba(6, 22, 184, 0.72)),
    #07123a;
}

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

.login-panel {
  width: min(480px, calc(100% - 30px));
  margin: 42px auto;
  padding: 32px;
}

.login-panel img {
  width: 210px;
}

.login-panel h1 {
  margin: 18px 0 8px;
  color: var(--navy);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(7, 18, 58, 0.95), rgba(6, 22, 184, 0.74)),
    #07123a;
}

.auth-card,
.login-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 72px rgba(7, 18, 58, 0.18);
}

.auth-card {
  width: min(500px, 100%);
  padding: 30px;
}

.auth-card::before,
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-brand img {
  width: min(230px, 78%);
}

.auth-brand h1 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.auth-brand p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.stack-form,
.admin-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.message {
  min-height: 22px;
  color: var(--blue);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.dashboard {
  min-height: 100vh;
  position: relative;
  background: #eef2f7;
}

.admin-topbar-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar-mobile img {
  height: 30px;
}

.admin-sidebar-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.admin-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-sidebar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-sidebar-toggle.open span:nth-child(2) { opacity: 0; }
.admin-sidebar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 58, 0.5);
  z-index: 45;
}

.sidebar-overlay.open {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(7, 18, 58, 0.98), rgba(6, 22, 184, 0.9)),
    var(--navy);
  color: #fff;
}

.admin-content {
  padding: 32px;
  margin-left: 280px;
  min-width: 0;
}

.sidebar img {
  width: 185px;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
}

.sidebar h2 {
  color: #fff;
  font-size: 1.4rem;
}

.sidebar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.admin-nav button.active {
  background: var(--orange);
  border-color: var(--orange);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.daily-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.closing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.maintenance-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.export-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.export-panel h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.export-panel p {
  margin: 0;
  color: var(--muted);
}

.export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.export-actions input,
.export-actions select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  background: #fff;
}

.closed-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.maintenance-control h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.maintenance-control p {
  margin: 0;
  color: var(--muted);
}

.metric-grid article,
.daily-summary article,
.closing-summary article {
  padding: 18px;
  border-left: 5px solid var(--orange);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.daily-summary .deduction-summary-card {
  border-left-color: #dc2626;
}

.daily-summary .deduction-summary-card span {
  color: #dc2626;
}

.metric-grid article:hover,
.daily-summary article:hover,
.closing-summary article:hover,
.table-wrap:hover,
.maintenance-control:hover,
.export-panel:hover,
.invite-result:hover,
.promo-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
}

.metric-grid span,
.daily-summary span,
.closing-summary span {
  display: block;
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
}

.metric-grid p,
.daily-summary p,
.closing-summary p {
  margin: 6px 0 0;
  color: var(--muted);
}

.table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.table-title-row h2 {
  margin: 0;
}

.table-title-row span {
  color: var(--muted);
  font-weight: 900;
}

.compact-button {
  min-height: 38px;
  padding: 8px 13px;
}

.table-wrap {
  overflow-x: auto;
  padding: 18px;
  margin-bottom: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.table-wrap h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.deduction-row td {
  color: #b91c1c;
  background: #fff1f2;
  font-weight: 900;
}

.deduction-row td:first-child {
  border-left: 4px solid #dc2626;
}

.deduction-amount {
  color: #b91c1c;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.open {
  color: #166534;
  background: #dcfce7;
}

.status-pill.closed {
  color: #7c2d12;
  background: #ffedd5;
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
  margin-bottom: 20px;
}

.admin-form .wide,
.admin-form button {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions button {
  grid-column: auto;
}

.danger {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  background: #b91c1c;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button.is-busy,
.danger.is-busy,
button.is-busy {
  cursor: wait;
  opacity: 0.78;
  transform: translateY(1px);
  box-shadow: none;
}

.promo-admin-card button {
  margin: 0 16px 16px;
}

.invite-result {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invite-result h2 {
  font-size: 1.3rem;
}

.invite-result p {
  margin: 0;
  color: var(--muted);
}

.invite-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-back {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.login-panel .auth-back,
.auth-card .auth-back {
  width: 100%;
}

.gallery-showcase {
  background: #fff;
}

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 22px;
}

.public-gallery-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.public-gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.gallery-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.gallery-caption {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.public-gallery-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.public-gallery-card p,
.empty-gallery {
  margin: 0;
  color: var(--muted);
}

.empty-gallery {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f7f8fb;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero,
  .modern-hero,
  .about-band,
  .about-split,
  .contact-band,
  .request-section,
  .maintenance-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .image-service-grid,
  .portfolio-grid,
  .promo-stage,
  .metric-grid,
  .daily-summary,
  .closing-summary,
  .promo-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-topbar-mobile {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lift, 0 20px 50px rgba(7, 18, 58, 0.35));
  }

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

  .admin-content {
    margin-left: 0;
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .section-heading,
  .admin-heading,
  .maintenance-control,
  .export-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .export-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav {
    gap: 10px;
  }

  .hero {
    padding-top: 42px;
  }

  .service-grid,
  .portfolio-grid,
  .promo-stage,
  .public-gallery-grid,
  .metric-grid,
  .daily-summary,
  .closing-summary,
  .promo-admin-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .table-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 132px;
  }

  .admin-content {
    padding: 18px;
  }

  .maintenance-copy {
    text-align: center;
  }

  .maintenance-card p:not(.eyebrow),
  .maintenance-progress {
    margin-left: auto;
    margin-right: auto;
  }

  .maintenance-visual {
    min-height: 360px;
  }

  .hero-showcase,
  .showcase-main {
    min-height: 380px;
  }

  .request-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .image-service-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .modern-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

.reputation-site {
  background: #f7f8fb;
}

.reputation-topbar {
  min-height: 78px;
  padding: 12px 6vw;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(7, 18, 58, 0.1);
  box-shadow: 0 12px 28px rgba(7, 18, 58, 0.05);
}

.reputation-brand img {
  width: 124px;
}

.reputation-nav {
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.reputation-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 16px;
  border: 1px solid rgba(6, 22, 184, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6f8ff);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(7, 18, 58, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.reputation-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateX(-110%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(242, 99, 34, 0.18), transparent);
  transition: transform 0.38s ease;
}

.reputation-nav a:hover::after {
  transform: translateX(110%) skewX(-18deg);
}

.reputation-nav a:hover,
.reputation-nav a:focus-visible {
  border-color: rgba(242, 99, 34, 0.5);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 18, 58, 0.14);
}

.reputation-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(380px, 1.22fr);
  align-items: center;
  gap: 36px;
  padding: 52px 6vw 50px;
  min-height: 540px;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 99, 34, 0.1), transparent 28%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 48%, rgba(6, 22, 184, 0.08) 48%, rgba(6, 22, 184, 0.08) 100%),
    #fff;
}

.reputation-hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.15vw, 3.55rem);
  line-height: 1.06;
}

.reputation-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: #536078;
  font-size: 1.04rem;
  line-height: 1.75;
}

.reputation-hero-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 65px rgba(7, 18, 58, 0.18);
}

.reputation-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 58, 0.02), rgba(7, 18, 58, 0.38));
}

.reputation-hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.hero-business-image {
  transition: opacity 0.22s ease, transform 0.45s ease;
}

.hero-business-image.is-changing {
  opacity: 0.35;
  transform: scale(1.025);
}

.trust-panel {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(7, 18, 58, 0.18);
}

.trust-panel strong {
  display: block;
  color: var(--orange);
  font-size: 1.35rem;
}

.trust-panel span {
  color: var(--muted);
  font-weight: 800;
}

.reputation-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 6vw 64px;
  background: #fff;
}

.company-activities {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  gap: 34px;
  align-items: center;
  padding: 74px 6vw;
  background: linear-gradient(180deg, #fff, #f7f8fb);
}

.company-activities p:not(.eyebrow) {
  color: var(--muted);
  max-width: 560px;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(7, 18, 58, 0.06);
}

.activity-list span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.activity-list article:nth-child(2n) span {
  background: var(--orange);
}

.activity-list article:nth-child(5) span {
  background: var(--green);
}

.activity-list strong {
  color: var(--navy);
  text-transform: capitalize;
}

.why-choose-us {
  padding: 74px 6vw;
  background: var(--navy);
  color: #fff;
}

.why-choose-us h2 {
  color: #fff;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid article {
  min-height: 210px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.choice-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}

.choice-grid h3 {
  margin: 18px 0 8px;
  color: #fff;
  line-height: 1.15;
}

.choice-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.reputation-strip article {
  padding: 26px;
  background: var(--navy);
  color: #fff;
}

.reputation-strip article:nth-child(2) {
  background: var(--blue);
}

.reputation-strip article:nth-child(3) {
  background: var(--orange);
}

.reputation-strip strong {
  display: block;
  font-size: 1.2rem;
}

.reputation-strip span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.service-showcase {
  background: #f7f8fb;
}

.service-showcase .section-heading {
  max-width: 920px;
}

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

.refined-service-grid .image-service-card {
  min-height: 430px;
}

.reputation-about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 76px 6vw;
  background: #fff;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 680px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.principle-grid article {
  min-height: 155px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8faff);
  box-shadow: 0 12px 35px rgba(7, 18, 58, 0.06);
}

.principle-grid strong {
  display: block;
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}

.principle-grid span {
  display: block;
  margin-top: 18px;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.reputation-request {
  background:
    linear-gradient(120deg, rgba(7, 18, 58, 0.96), rgba(6, 22, 184, 0.82)),
    #07123a;
}

.reputation-request h2,
.reputation-request label {
  color: #fff;
}

.reputation-request .request-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.reputation-request .request-form {
  background: rgba(255, 255, 255, 0.98);
}

.reputation-request .request-form label {
  color: var(--navy);
}

.reputation-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 76px 6vw;
  background: #fff;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid var(--line);
}

.contact-item,
.social-placeholder {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.contact-item small,
.social-placeholder small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

.contact-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.whatsapp-icon {
  background: #18a94d;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.tiktok {
  background: #000;
  box-shadow: inset 4px 0 0 #25f4ee, inset -4px 0 0 #fe2c55;
}

.reputation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px 6vw;
  text-align: left;
  border-top: 1px solid var(--line);
}

.reputation-footer strong {
  color: var(--navy);
}

.reputation-footer p {
  margin: 3px 0;
}

.reputation-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.reputation-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}

.service-detail-page {
  background: #fff;
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 60px 6vw;
  background:
    linear-gradient(120deg, rgba(6, 22, 184, 0.08), transparent 42%),
    #fff;
}

.service-detail-hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.service-detail-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.service-detail-hero img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 65px rgba(7, 18, 58, 0.18);
}

.service-detail-body {
  padding: 66px 6vw;
  background: #f7f8fb;
}

.subservice-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.subservice-detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.subservice-detail-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.subservice-detail-card div {
  padding: 18px;
}

.subservice-detail-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.subservice-detail-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .reputation-hero,
  .company-activities,
  .reputation-about,
  .reputation-contact,
  .service-detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .reputation-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .reputation-brand img {
    width: 112px;
  }

  .reputation-hero {
    padding-top: 44px;
    background: #fff;
  }

  .reputation-hero-media,
  .reputation-hero-media > img {
    min-height: 360px;
  }

  .reputation-strip,
  .refined-service-grid,
  .principle-grid,
  .choice-grid,
  .subservice-detail-grid {
    grid-template-columns: 1fr;
  }

  .reputation-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V2 REFRESH — Typography, admin dashboard polish, and a
   fully responsive sales record system (cards on mobile).
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 22px 50px rgba(15, 23, 42, 0.16);
  --success: #168a36;
  --danger: #dc2626;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- General component polish ---------- */

.button {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button.primary {
  box-shadow: 0 12px 26px rgba(6, 22, 184, 0.28);
}

.button.primary:hover {
  box-shadow: 0 16px 34px rgba(6, 22, 184, 0.36);
}

.metric-grid article,
.daily-summary article,
.closing-summary article,
.table-wrap,
.admin-form,
.maintenance-control,
.export-panel,
.closed-notice,
.invite-result {
  border-radius: var(--radius-md);
  border-left-width: 4px;
}

/* ---------- Sidebar / mobile nav ---------- */

.sidebar {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.admin-nav button {
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav button.active {
  box-shadow: 0 10px 22px rgba(242, 99, 34, 0.35);
}

/* ---------- Metric cards with icons ---------- */

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(6, 22, 184, 0.1);
}

.metric-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--blue);
}

.metric-card.accent-1 .metric-icon { background: rgba(6, 22, 184, 0.1); }
.metric-card.accent-1 .metric-icon svg { fill: var(--blue); }
.metric-card.accent-2 { border-left-color: var(--blue); }
.metric-card.accent-2 .metric-icon { background: rgba(6, 22, 184, 0.12); }
.metric-card.accent-2 .metric-icon svg { fill: var(--blue); }
.metric-card.accent-3 { border-left-color: var(--danger); }
.metric-card.accent-3 .metric-icon { background: rgba(220, 38, 38, 0.1); }
.metric-card.accent-3 .metric-icon svg { fill: var(--danger); }
.metric-card.accent-4 { border-left-color: var(--orange); }
.metric-card.accent-4 .metric-icon { background: rgba(242, 99, 34, 0.12); }
.metric-card.accent-4 .metric-icon svg { fill: var(--orange); }

/* ---------- Search field ---------- */

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  min-width: 220px;
  flex: 1 1 220px;
}

.search-field.compact {
  min-width: 190px;
  flex: 0 1 240px;
}

.search-field svg {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  background: #fff;
}

.search-field input:focus {
  outline: 2px solid rgba(6, 22, 184, 0.35);
  outline-offset: 1px;
}

/* ---------- Table title row meta / count chip ---------- */

.table-title-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 22, 184, 0.08);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.amount-cell {
  font-weight: 900;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.empty-row td {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Table scroll wrapper (desktop horizontal safety net) ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap {
  overflow-x: visible;
}

table {
  min-width: 720px;
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: rgba(6, 22, 184, 0.035);
}

/* =========================================================
   RESPONSIVE SALES SYSTEM — collapse tables into cards
   on small screens using the data-label attributes emitted
   by admin.js, so every field stays readable on a phone.
   ========================================================= */

@media (max-width: 760px) {
  .metric-grid,
  .daily-summary,
  .closing-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .export-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field,
  .search-field.compact {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }

  .table-title-meta {
    width: 100%;
    justify-content: space-between;
  }

  .table-scroll table {
    min-width: 0;
  }

  .table-scroll thead {
    display: none;
  }

  .table-scroll table,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll td {
    display: block;
    width: 100%;
  }

  .table-scroll tr {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .table-scroll tr.deduction-row {
    border-left: 4px solid var(--danger);
  }

  .table-scroll tr.empty-row {
    box-shadow: none;
    border-style: dashed;
  }

  .table-scroll td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    text-align: right;
  }

  .table-scroll td:last-child {
    border-bottom: 0;
  }

  .table-scroll td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    margin-right: auto;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
  }

  .table-scroll td.actions-cell {
    justify-content: flex-end;
  }

  .table-scroll td.actions-cell::before {
    display: none;
  }

  .table-scroll tr.empty-row td {
    justify-content: center;
  }

  .table-scroll tr.empty-row td::before {
    display: none;
  }
}

@media (max-width: 420px) {
  .metric-grid,
  .daily-summary,
  .closing-summary {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile nav toggle (public site) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .reputation-nav.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5vw 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.24s ease, opacity 0.2s ease;
  }

  .reputation-nav.nav.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .reputation-nav.nav a {
    padding: 12px 4px;
    border-bottom: 1px dashed var(--line);
  }

  .reputation-topbar {
    position: relative;
  }
}

/* ---------- Subtle entrance animation for site sections ---------- */

.image-service-card,
.choice-grid article,
.public-gallery-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-service-card:hover,
.choice-grid article:hover,
.public-gallery-card:hover {
  transform: translateY(-4px);
}

.export-panel h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--navy);
}

/* ---------- Admin layout refresh ---------- */

.admin-body {
  background: #f4f7ff;
}

.dashboard {
  background:
    linear-gradient(180deg, #f3f6ff 0%, #ffffff 46%, #f7f9ff 100%);
}

.admin-content {
  max-width: 1500px;
  padding: 28px clamp(18px, 2.6vw, 42px);
}

.admin-section.active {
  display: grid;
  gap: 18px;
}

.admin-heading {
  margin-bottom: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-heading h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.metric-grid,
.daily-summary,
.closing-summary {
  margin-bottom: 0;
}

.metric-grid article,
.daily-summary article,
.closing-summary article,
.table-wrap,
.admin-form,
.maintenance-control,
.export-panel,
.invite-result {
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  background: #fff;
}

.metric-grid article,
.daily-summary article,
.closing-summary article {
  min-height: 118px;
}

.admin-form {
  align-items: end;
  margin-bottom: 0;
  box-shadow: var(--shadow);
}

.admin-form label {
  min-width: 0;
}

.admin-form textarea {
  min-height: 112px;
  resize: vertical;
}

.table-wrap {
  margin-bottom: 0;
  box-shadow: var(--shadow);
}

.table-scroll {
  border-radius: var(--radius-sm);
}

.promo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.promo-admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.promo-admin-card img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar {
  width: 292px;
  padding: 22px;
}

.admin-content {
  margin-left: 292px;
}

.sidebar img {
  width: 100%;
  max-width: 210px;
  align-self: center;
}

.admin-nav button:hover,
.admin-nav button:focus-visible {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.38);
}

.admin-nav button.active:hover,
.admin-nav button.active:focus-visible {
  background: var(--orange);
}

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

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

@media (max-width: 1040px) {
  .admin-content {
    margin-left: 0;
    padding: 18px;
  }

  .sidebar {
    width: min(320px, 86vw);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
}

@media (max-width: 680px) {
  .admin-content {
    padding: 14px;
  }

  .admin-heading,
  .table-wrap,
  .admin-form,
  .export-panel,
  .maintenance-control {
    padding: 16px;
  }

  .admin-heading h1 {
    font-size: 1.65rem;
  }

  .metric-grid,
  .daily-summary,
  .closing-summary {
    grid-template-columns: 1fr;
  }

  .metric-grid article,
  .daily-summary article,
  .closing-summary article {
    min-height: auto;
  }

  .button,
  .danger {
    width: 100%;
    justify-content: center;
  }

  .actions-cell .button,
  .actions-cell .danger {
    width: auto;
  }
}
